*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --stock:   #ffffff;
  --ink:     #232020;
  --muted:   #7A7064;
  --rule:    #DDD9CF;
  --pink:    #FF4D8D;
  --blue:    #5AAFD3;
  --grape:   #5A3575;
  --max:     1160px;
  --pad:     clamp(1.25rem, 4vw, 2.5rem);
}

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--stock);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--grape); outline-offset: 3px; border-radius: 2px; }

/* ── Container ── */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Nav ── */

.nav {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--stock);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: 2rem;
}

.wordmark {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.wordmark:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { opacity: 0.8; }
.btn:focus-visible { outline: 2px solid var(--grape); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: var(--stock);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover { border-color: var(--muted); opacity: 1; }

.btn-primary-inv {
  background: var(--stock);
  color: var(--ink);
  border-color: var(--stock);
}

.btn-ghost-inv {
  background: transparent;
  color: var(--stock);
  border-color: rgba(246,241,231,0.4);
}

.btn-ghost-inv:hover { border-color: rgba(246,241,231,0.7); opacity: 1; }

/* ── Section labels ── */

.section-label {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 3.5rem);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vh, 6rem) 0;
}

.hero-text {
  max-width: 580px;
}

.hero-eyebrow {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.hero-text h1 {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-text p:not(.hero-eyebrow) {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* ── Sections above fixed canvas ── */

.capabilities,
.how,
.pricing,
.cta-block,
footer {
  position: relative;
  z-index: 1;
  background: var(--stock);
}

/* ── Capabilities ── */

.capabilities {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cap-item {
  padding: 1.75rem 2rem 1.75rem 0;
  border-top: 2px solid var(--rule);
}

.cap-item + .cap-item {
  border-left: none;
}

.cap-item:not(:last-child) {
  padding-right: 2rem;
  margin-right: 0;
}

.cap-title {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.cap-body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── How it works ── */

.how {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.how-step {
  position: relative;
}

.how-visual {
  width: 100%;
  height: 160px;
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.how-ordinal {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--rule);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.how-title {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.how-body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Pricing ── */

.pricing {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.pricing-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plan {
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan.featured {
  background: var(--ink);
  color: var(--stock);
  border-color: var(--ink);
}

.plan-name {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.plan.featured .plan-name {
  color: rgba(246,241,231,0.55);
}

.plan-price {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
  font-variant-numeric: tabular-nums;
}

.plan-period {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.plan.featured .plan-period {
  color: rgba(246,241,231,0.55);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
  flex: 1;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.plan.featured .plan-features {
  border-top-color: rgba(246,241,231,0.15);
}

.plan-features li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-features li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
  position: relative;
  top: -0.1em;
}

.plan.featured .plan-features li {
  color: rgba(246,241,231,0.7);
}

.plan.featured .plan-features li::before {
  background: rgba(246,241,231,0.3);
}

/* ── CTA block ── */

.cta-block {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.cta-block h2 {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 0.875rem;
}

.cta-block p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

/* ── Inner pages ── */

.inner-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner-page footer {
  margin-top: auto;
}

.inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem var(--pad) 5rem;
  flex: 1;
}

.inner-back {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 3rem;
  transition: color 0.15s;
}

.inner-back:hover { color: var(--ink); }

.inner h1 {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.inner .updated {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.inner h2 {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2.5rem 0 0.625rem;
}

.inner p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

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

.inner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.inner a:hover { opacity: 0.7; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-text { max-width: 100%; }

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

  .cap-item {
    padding-right: 1.5rem;
  }

  .cap-item:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

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

  .cap-item {
    padding-right: 0;
  }

  .nav-links .nav-secondary { display: none; }
}
