:root {
  --accent: #69c350;
  --accent-dark: #2f7f24;
  --accent-soft: rgba(105, 195, 80, 0.18);
  --ink: #17211f;
  color: #17211f;
  background: #f6f2ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, var(--accent-soft), transparent 28rem),
    linear-gradient(180deg, #f7f3ec 0%, #ffffff 45%, #eef8eb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(247, 243, 236, 0.84);
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  left: 0;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand img,
footer img {
  display: block;
  height: 2.4rem;
  width: auto;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: flex-end;
  font-size: 0.95rem;
}

nav a {
  color: #44514d;
}

nav a:hover {
  color: var(--accent-dark);
}

.login-link {
  border: 1px solid rgba(105, 195, 80, 0.38);
  border-radius: 999px;
  color: var(--accent-dark);
  padding: 0.55rem 0.9rem;
}

.hero-section {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
  min-height: calc(100vh - 4.5rem);
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4.5rem) 4rem;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: #14211e;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 1.4rem;
  max-width: 9ch;
}

h2 {
  color: #14211e;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  color: #14211e;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-text,
.section-heading p,
.open-source-section p,
.contact-section p,
.workflow-section li {
  color: #51605c;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 39rem;
}

.hero-actions,
.contact-section {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
}

.primary-action {
  background: var(--accent);
  color: #10210d;
  box-shadow: 0 1rem 2rem rgba(105, 195, 80, 0.28);
}

.secondary-action {
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.12);
  color: #17211f;
}

.product-preview {
  background: #17211f;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.5rem;
  box-shadow: 0 2rem 5rem rgba(23, 33, 31, 0.24);
  color: #ffffff;
  min-height: 31rem;
  overflow: hidden;
}

.preview-toolbar {
  align-items: center;
  background: #24302d;
  display: flex;
  gap: 0.45rem;
  height: 3rem;
  padding: 0 1rem;
}

.preview-toolbar span {
  background: #cbd7d3;
  border-radius: 50%;
  display: block;
  height: 0.65rem;
  opacity: 0.7;
  width: 0.65rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  min-height: 28rem;
}

.preview-grid aside {
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.preview-grid aside strong {
  color: var(--accent);
  margin-bottom: 1rem;
}

.preview-grid aside span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.preview-content {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.metric-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-row div,
.work-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  padding: 1rem;
}

.metric-row small {
  color: rgba(255, 255, 255, 0.6);
  display: block;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.metric-row strong {
  color: #ffffff;
  font-size: 1.8rem;
}

.timeline {
  align-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.45rem;
  display: grid;
  gap: 1rem;
  min-height: 10rem;
  padding: 1.5rem;
}

.timeline span {
  background: linear-gradient(90deg, var(--accent), #d9ef72);
  border-radius: 999px;
  display: block;
  height: 1.15rem;
  width: var(--width);
}

.work-card {
  align-self: end;
}

.work-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  margin: 0.65rem 0 0;
}

.highlights,
.section,
.workflow-section,
.audience-teaser,
.matrix-section,
.open-source-section,
.contact-section,
footer {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 5rem;
}

.highlights article,
.feature-grid article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  padding: 1.35rem;
}

.feature-grid article {
  display: flex;
  flex-direction: column;
}

.highlights span,
.feature-grid span {
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.highlights h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.highlights p,
.feature-grid p {
  color: #51605c;
  line-height: 1.6;
  margin: 0;
}

.feature-grid details {
  border-top: 1px solid rgba(23, 33, 31, 0.1);
  margin-top: auto;
  padding-top: 0.9rem;
}

.feature-grid summary {
  color: #17211f;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  list-style: none;
}

.feature-grid summary::-webkit-details-marker {
  display: none;
}

.feature-grid summary::after {
  color: var(--accent-dark);
  content: "+";
  float: right;
  font-size: 1.1rem;
  line-height: 1;
}

.feature-grid details[open] summary::after {
  content: "-";
}

.feature-grid ul {
  color: #51605c;
  display: grid;
  gap: 0.55rem;
  line-height: 1.55;
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.section {
  padding-bottom: 5rem;
  padding-top: 1rem;
}

.section-heading {
  max-width: 48rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.workflow-section,
.audience-teaser,
.matrix-section,
.open-source-section,
.script-section,
.contact-section {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr);
  padding-bottom: 5rem;
  padding-top: 5rem;
}

.workflow-section {
  border-top: 1px solid rgba(23, 33, 31, 0.12);
}

.workflow-section ol {
  counter-reset: workflow;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-section li {
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 3.8rem;
  position: relative;
}

.workflow-section li::before {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #10210d;
  content: counter(workflow);
  counter-increment: workflow;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: 1rem;
  width: 2rem;
}

.audience-teaser {
  align-items: center;
  border-top: 1px solid rgba(23, 33, 31, 0.12);
  grid-template-columns: minmax(0, 1fr) auto;
}

.audience-teaser h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 52rem;
}

.matrix-section {
  border-top: 1px solid rgba(23, 33, 31, 0.12);
  grid-template-columns: 1fr;
  padding-top: 5rem;
}

.matrix-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
}

.matrix-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matrix-stack article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  padding: 1.35rem;
}

.matrix-stack span {
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.matrix-stack p {
  color: #51605c;
  line-height: 1.6;
  margin: 0;
}

.matrix-diagram {
  align-self: stretch;
  background: #17211f;
  border-radius: 0.5rem;
  color: #ffffff;
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.matrix-diagram div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 1rem;
}

.matrix-diagram small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 500;
}

.matrix-diagram span {
  background: var(--accent);
  border-radius: 999px;
  display: block;
  height: 1rem;
  justify-self: center;
  width: 0.24rem;
}

.federation-panel {
  align-items: start;
  background: rgba(105, 195, 80, 0.11);
  border: 1px solid rgba(105, 195, 80, 0.28);
  border-radius: 0.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  margin-top: 1rem;
  padding: 1.35rem;
}

.federation-panel h3 {
  margin-bottom: 0;
}

.federation-panel p {
  color: #51605c;
  line-height: 1.65;
  margin-bottom: 0;
}

.open-source-section {
  align-items: center;
  background: #17211f;
  border-radius: 0.5rem;
  color: #ffffff;
  margin-bottom: 5rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.open-source-section h2,
.contact-section h2 {
  margin-bottom: 1rem;
}

.open-source-section h2 {
  color: #ffffff;
}

.open-source-section p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0;
}

.open-source-section .secondary-action {
  justify-self: end;
}

.script-section {
  border-top: 1px solid rgba(23, 33, 31, 0.12);
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
  padding-bottom: 5rem;
  padding-top: 4rem;
}

.script-section p {
  color: #51605c;
  font-size: 1.08rem;
  line-height: 1.7;
}

.script-section > div:first-child {
  max-width: 42rem;
}

.code-window {
  background: #17211f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4rem rgba(23, 33, 31, 0.22);
  color: #dff8d8;
  margin-top: 2rem;
  overflow: hidden;
  width: 100%;
}

.code-window-toolbar {
  align-items: center;
  background: #24302d;
  display: flex;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1rem;
}

.code-window-toolbar span {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: block;
  height: 0.68rem;
  width: 0.68rem;
}

.code-window-toolbar span:nth-child(2) {
  background: var(--accent);
}

.code-window-toolbar strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  margin-left: 0.4rem;
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.code-window code {
  color: #dff8d8;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.92rem, 1.7vw, 1rem);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-window code::before {
  color: var(--accent);
  content: "$ ";
  font-weight: 800;
}

.contact-section {
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 5rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.contact-section p {
  margin-bottom: 0;
}

.legal-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem) 5rem;
}

.contact-page,
.audience-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem) 5rem;
}

.contact-heading,
.audience-heading {
  max-width: 58rem;
  margin-bottom: 2.5rem;
}

.contact-heading h1,
.audience-heading h1 {
  max-width: 12ch;
}

.contact-heading p,
.audience-heading p {
  color: #51605c;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 46rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  display: grid;
  gap: 1rem;
  max-width: 820px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  color: #17211f;
  display: grid;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 0.45rem;
  color: #17211f;
  font: inherit;
  font-weight: 500;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.contact-form textarea {
  line-height: 1.55;
  min-height: 12rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(105, 195, 80, 0.18);
  outline: none;
}

.honeypot {
  display: none;
}

.contact-form .check-row {
  align-items: start;
  display: flex;
  font-weight: 500;
  gap: 0.7rem;
  line-height: 1.55;
}

.contact-form .check-row input {
  flex: 0 0 auto;
  margin-top: 0.25rem;
  min-height: auto;
  width: auto;
}

.check-row a,
.form-status.error {
  color: var(--accent-dark);
  font-weight: 800;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-actions button {
  border: 0;
  cursor: pointer;
}

.form-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  color: #51605c;
  margin: 0;
}

.audience-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  padding: 1.35rem;
}

.audience-grid span {
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.audience-grid h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.audience-grid p,
.audience-grid li,
.audience-fit li {
  color: #51605c;
  line-height: 1.6;
}

.audience-grid ul,
.audience-fit ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.audience-fit {
  align-items: start;
  border-top: 1px solid rgba(23, 33, 31, 0.12);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  margin-top: 5rem;
  padding-top: 4rem;
}

.legal-heading {
  max-width: 45rem;
  margin-bottom: 2.5rem;
}

.legal-heading h1 {
  max-width: none;
}

.legal-heading p,
.legal-grid p {
  color: #51605c;
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-grid article {
  align-content: start;
}

.legal-grid article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 0.5rem;
  padding: 1.35rem;
}

.legal-grid h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.legal-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.legal-grid p {
  margin-bottom: 0.8rem;
}

.legal-grid p:last-child {
  margin-bottom: 0;
}

.legal-grid ul {
  color: #51605c;
  display: grid;
  gap: 0.45rem;
  line-height: 1.6;
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.legal-grid a {
  color: var(--accent-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

footer {
  align-items: center;
  border-top: 1px solid rgba(23, 33, 31, 0.1);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

footer a,
footer p {
  color: #51605c;
  font-size: 0.92rem;
}

footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 980px) {
  .hero-section,
  .workflow-section,
  .audience-teaser,
  .matrix-section,
  .open-source-section,
  .script-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .highlights,
  .feature-grid,
  .form-grid,
  .audience-grid,
  .audience-fit,
  .matrix-layout,
  .federation-panel,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .open-source-section .secondary-action {
    justify-self: start;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer div {
    justify-content: flex-start;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-section {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  .contact-heading h1,
  .audience-heading h1 {
    font-size: 2.55rem;
    max-width: none;
  }

  .product-preview {
    min-height: auto;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid aside {
    display: none;
  }

  .metric-row,
  .highlights,
  .feature-grid,
  .audience-grid,
  .matrix-stack,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
