/* Aligned with Hermes Command / Resolve theme */
:root {
  --bg: #E8ECF1;
  --panel: #F4F6F9;
  --panel-2: #FAFBFC;
  --surface: #ffffff;
  --text: #2e3440;
  --muted: #6B7280;
  --line: rgba(46, 52, 64, 0.06);
  --brand: #2DD4BF;
  --brand-strong: #14B8A6;
  --brand-subtle: rgba(45, 212, 191, 0.1);
  --radius: 12px;
  --shadow: 0 1px 3px rgba(46, 52, 64, 0.06);
  --shadow-lg: 0 4px 16px rgba(46, 52, 64, 0.09);
  --container: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

::selection {
  background: rgba(45, 212, 191, 0.25);
  color: var(--text);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── Layout helpers ── */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.logo-mark {
  width: 2rem;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: #2e3440;
  font-size: 0.95rem;
  font-weight: 700;
}

.logo-text {
  font-size: 1.05rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-right > a {
  color: var(--muted);
  transition: color 120ms ease;
}

.nav-right > a:hover {
  color: var(--text);
}

.nav-right > a.primary-button {
  color: #fff;
}

.nav-right > a.primary-button:hover {
  color: #fff;
}

/* ── Buttons ── */

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  cursor: pointer;
  border: none;
}

.primary-button {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-2);
}

.secondary-button:hover {
  background: var(--panel);
}

/* ── Typography helpers ── */

.section-heading {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 var(--space-xl);
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch;
  line-height: 1.65;
}

/* ── Sections: shared spacing ── */

section {
  padding-block: var(--space-2xl);
}

/* ── Section 1: Hero ── */

.hero {
  padding-block: calc(var(--space-2xl) * 1.4) var(--space-2xl);
  background: linear-gradient(175deg, var(--panel-2) 0%, var(--bg) 100%);
}

.hero-inner {
  max-width: 800px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero-subline {
  margin: var(--space-lg) 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
}

.hero-actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.secondary-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 120ms ease;
}

.secondary-link:hover {
  color: var(--text);
}

.hero-note {
  margin: var(--space-md) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Section 2: Problem ── */

.problem-section {
  background: var(--panel-2);
}

.problem-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--brand-subtle);
  color: var(--brand-strong);
  margin-bottom: var(--space-md);
}

.problem-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.05rem;
  font-weight: 700;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Section 3: Pillars ── */

.pillars-section {
  background: var(--bg);
}

.pillar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
}

.pillar-row:first-of-type {
  border-top: none;
}

.pillar-row--reverse {
  direction: rtl;
}

.pillar-row--reverse > * {
  direction: ltr;
}

.pillar-body h3 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.01em;
}

.pillar-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.proof-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.proof-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: var(--space-md);
}

.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.proof-list li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

/* Numbered list for pillar 1 */
ol.proof-list {
  counter-reset: proof;
}

ol.proof-list li {
  counter-increment: proof;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

ol.proof-list li::before {
  content: counter(proof);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--brand-subtle);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Bullet list for pillar 2 */
.proof-list--bullets li::before {
  content: "•";
  color: var(--brand-strong);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Monospace surface list for pillar 3 */
.proof-list--mono li {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  display: flex;
  gap: 0.75rem;
}

.proof-surface {
  color: var(--brand-strong);
  font-weight: 700;
  min-width: 5.5rem;
  display: inline-block;
}

/* ── Section 4: AI trust ── */

.ai-trust-section {
  background: var(--panel-2);
}

.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-block: var(--space-xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}

.pipeline-stage {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.pipeline-arrow {
  padding: 0 0.4rem;
  font-size: 1.2rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: calc(var(--space-md) + 0.1rem);
  line-height: 1;
  user-select: none;
}

.pipeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--brand-subtle);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pipeline-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.pipeline-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow);
}

.mode-card h4 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 700;
}

.mode-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.mode-closing {
  margin: var(--space-lg) 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Section 5: Features ── */

.features-section {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--brand-subtle);
  color: var(--brand-strong);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.feature-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Section 6: Details ── */

.details-section {
  background: var(--panel-2);
}

.details-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.details-copy .section-heading {
  max-width: 28ch;
}

.details-copy .section-intro {
  margin-bottom: 0;
}

.details-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.details-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.details-checklist li::before {
  content: "✓";
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Section 7: Waitlist ── */

.waitlist-section {
  background: linear-gradient(160deg, var(--brand-subtle) 0%, var(--bg) 60%);
  border-top: 1px solid rgba(45, 212, 191, 0.2);
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
}

.waitlist-inner {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.waitlist-inner .section-heading {
  margin-bottom: var(--space-sm);
}

.waitlist-inner .section-intro {
  margin-bottom: var(--space-xl);
  margin-inline: auto;
}

.waitlist-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.required {
  color: var(--brand-strong);
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.95rem;
  font-family: var(--sans);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.form-row--checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--brand-strong);
  flex-shrink: 0;
}

.form-error {
  font-size: 0.875rem;
  color: #c0392b;
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 7px;
  padding: 0.6rem 0.875rem;
}

.submit-button {
  align-self: stretch;
  padding-block: 0.85rem;
  font-size: 1rem;
}

.form-privacy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: var(--surface);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--brand-subtle);
  color: var(--brand-strong);
}

.waitlist-success p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 36ch;
}

/* ── Section 8: Founder note ── */

.founder-section {
  background: var(--bg);
}

.founder-inner {
  max-width: 600px;
}

.founder-heading {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
}

.founder-inner p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.founder-inner p:last-child {
  margin-bottom: 0;
}

/* ── Section 9: FAQ ── */

.faq-section {
  background: var(--panel-2);
}

.faq-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--brand-strong);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 200ms ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: var(--space-md);
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease, padding-bottom 260ms ease;
}

.faq-answer.is-open {
  max-height: 400px;
  padding-bottom: var(--space-md);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-lg);
  background: var(--panel-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-copy {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .pillar-row {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .pillar-row--reverse > * {
    direction: ltr;
  }

  .details-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    flex-direction: column;
    gap: 0;
  }

  .pipeline-stage {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .pipeline-arrow {
    display: none;
  }

  .pipeline-num {
    flex-shrink: 0;
    margin-top: 0.1rem;
  }

  section {
    padding-block: var(--space-xl);
  }
}

@media (max-width: 680px) {
  .nav-inner {
    min-height: 64px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 0.75rem;
    gap: 0.5rem;
  }

  .nav-right {
    gap: 0.75rem;
  }

  .nav-right > a:not(.primary-button) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-actions .primary-button {
    width: 100%;
    justify-content: center;
  }

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

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

  .waitlist-inner {
    text-align: left;
  }

  .waitlist-inner .section-intro {
    text-align: left;
  }

  .submit-button {
    width: 100%;
    justify-content: center;
  }
}
