/* ----------------- tokens ----------------- */

:root {
  --paper:       #0d0f12;
  --paper-2:     #14171b;
  --surface:     #161a20;
  --surface-2:   #1c2129;

  --ink:         #f3eedf;
  --ink-2:       #d4cdb6;
  --ink-3:       #969ba2;
  --ink-4:       #6a6f76;
  --ink-5:       #3d4147;

  --border:      #232831;
  --border-2:    #2e3540;
  --border-hi:   #f3eedf;

  --accent:      #5fc7a0;
  --accent-2:    #82d6b6;
  --accent-3:    #4ba88a;
  --accent-soft: rgba(95, 199, 160, 0.12);

  --f-serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --f-sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --easing: cubic-bezier(0.22, 1, 0.36, 1);

  --pad-x: clamp(20px, 5.5vw, 96px);
  --max-w: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16.5px;
  line-height: 1.55;
  font-variation-settings: "wght" 400;
  font-feature-settings: "ss01" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(70vw 55vh at 50% -10%, rgba(95, 199, 160, 0.07), transparent 70%),
    radial-gradient(50vw 40vh at 100% 0%, rgba(255, 200, 140, 0.03), transparent 60%),
    var(--paper);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; }
code {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.94em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 3px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ----------------- shared section ----------------- */

main > section {
  padding: clamp(72px, 11vh, 130px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 7vh, 76px);
}

.section-head h2 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "SOFT" 50, "wght" 460;
  font-weight: 460;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.section-head h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 80, "wght" 480;
  color: var(--accent);
}

.section-sub {
  font-size: clamp(15.5px, 1.15vw, 18px);
  color: var(--ink-3);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ----------------- nav ----------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-x);
  background: rgba(13, 15, 18, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 540;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-3);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--easing);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--easing);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link-text {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.2s var(--easing);
}
.nav-link-text:hover { color: var(--ink); }

/* ----------------- buttons ----------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 540;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--easing),
              background 0.22s var(--easing),
              border-color 0.22s var(--easing),
              color 0.22s var(--easing),
              box-shadow 0.22s var(--easing);
  letter-spacing: -0.005em;
  white-space: nowrap;
  line-height: 1;
}
.btn-arrow { display: inline-block; transition: transform 0.22s var(--easing); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 6px 22px -10px rgba(0,0,0,0.6);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.25) inset,
    0 10px 28px -12px rgba(95,199,160,0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-3);
}

.btn-sm  { font-size: 13.5px; padding: 9px 16px; }
.btn-lg  { font-size: 15.5px; padding: 16px 26px; }

/* ----------------- hero ----------------- */

.hero {
  padding-top: clamp(80px, 12vh, 130px) !important;
  padding-bottom: clamp(96px, 12vh, 140px) !important;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(95, 199, 160, 0.25);
  border-radius: 999px;
  background: rgba(95, 199, 160, 0.06);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--accent-2);
  text-transform: lowercase;
  opacity: 0;
  animation: rise 0.9s var(--easing) forwards;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(95, 199, 160, 0.15);
}

.hero-title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 440;
  font-weight: 440;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 30px;
  color: var(--ink);
  text-wrap: balance;
  max-width: 14ch;
}
.hero-title .hero-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--easing) forwards;
}
.hero-title .hero-line:nth-child(1) { animation-delay: 0.05s; }
.hero-title .hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 470;
  color: var(--accent);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(17px, 1.45vw, 21px);
  color: var(--ink-3);
  max-width: 58ch;
  margin: 0 0 38px;
  line-height: 1.55;
  text-wrap: pretty;
  opacity: 0;
  animation: rise 0.9s var(--easing) 0.35s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s var(--easing) 0.5s forwards;
}

.hero-kpis {
  margin-top: 80px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  opacity: 0;
  animation: rise 0.9s var(--easing) 0.65s forwards;
}
.kpi { padding: 4px 0; }
.kpi-key {
  font-size: 13px;
  color: var(--ink-4);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  font-weight: 500;
}
.kpi-val {
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-weight: 500;
}

/* ----------------- story / chapters ----------------- */

.chapters {
  display: flex;
  flex-direction: column;
}
.chapter {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.chapter:last-child { border-bottom: 1px solid var(--border); }

.chapter-num {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 320;
  font-style: italic;
  font-size: clamp(60px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.chapter-body { max-width: 60ch; }

.chapter h3 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 60, "SOFT" 50, "wght" 500;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.chapter p {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-3);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ----------------- features ----------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 30px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--easing),
              border-color 0.3s var(--easing),
              box-shadow 0.3s var(--easing);
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.04) inset,
    0 24px 50px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(95, 199, 160, 0.08);
}
.feature h3 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 36, "SOFT" 50, "wght" 500;
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.feature-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.feature-list li {
  font-size: 13.5px;
  color: var(--ink-3);
  padding-left: 16px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ----------------- how it works ----------------- */

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  padding: 28px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s var(--easing),
              border-color 0.3s var(--easing);
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.step-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 20, "SOFT" 60, "wght" 460;
  font-size: 14px;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.step h3 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 32, "SOFT" 50, "wght" 500;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ----------------- infrastructure ----------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.spec-block {
  padding: 28px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.spec-title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 32, "SOFT" 50, "wght" 520;
  font-weight: 520;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.spec-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
}
.spec-list dt {
  color: var(--ink-4);
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.spec-list dd {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-weight: 500;
}

/* ----------------- pricing plans ----------------- */

.plans-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  padding: 30px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--easing),
              border-color 0.3s var(--easing),
              box-shadow 0.3s var(--easing);
}
.plan:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(95, 199, 160, 0.08);
}

.plan-banner {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.7);
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.plan-name {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 36, "SOFT" 50, "wght" 500;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-tagline {
  font-size: 14px;
  color: var(--ink-3);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding-bottom: 4px;
}
.plan-price .currency {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--ink-3);
  margin-right: 2px;
}
.plan-price .amount {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "SOFT" 50, "wght" 450;
  font-weight: 450;
  font-size: 56px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.plan-price .period {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 6px;
}

.btn-plan {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-hi);
  width: 100%;
  padding: 13px;
  font-weight: 540;
  border-radius: var(--r-sm);
}
.btn-plan:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-plan-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-plan-primary:hover {
  background: var(--accent-3);
  border-color: var(--accent-3);
  color: var(--paper);
}

.plan-finep {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-4);
  margin-top: -10px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex: 1;
}
.plan-features li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 8px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.plan-featured {
  border-color: var(--ink);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(95, 199, 160, 0.10);
}
.plan-featured:hover {
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(95, 199, 160, 0.14);
}

/* ----------------- faq ----------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 880px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--easing);
}
.faq-item[open] {
  border-color: var(--border-2);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.04) inset,
    0 16px 36px -18px rgba(0,0,0,0.55);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 480;
  font-weight: 480;
  font-size: 17.5px;
  color: var(--ink);
  letter-spacing: -0.015em;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.caret {
  text-align: right;
  color: var(--ink-4);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s var(--easing), color 0.3s var(--easing);
}
.faq-item[open] .caret {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-body {
  padding: 0 22px 22px;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-body p { margin: 0; max-width: 65ch; }

/* ----------------- cta ----------------- */

.cta {
  border-top: 1px solid var(--border);
}
.cta-title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "SOFT" 50, "wght" 460;
  font-weight: 460;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
}
.cta-sub {
  color: var(--ink-3);
  font-size: 17px;
  max-width: 58ch;
  margin: 0 0 30px;
  line-height: 1.6;
  text-wrap: pretty;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----------------- footer ----------------- */

.footer {
  margin-top: 0;
  padding: 36px var(--pad-x) 56px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr;
  gap: 28px;
  align-items: start;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.foot-brand {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 30, "SOFT" 50, "wght" 540;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 6px;
}
.foot-tag {
  font-size: 13px;
  color: var(--ink-4);
}
.foot-mid {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-3);
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 6px;
}
.foot-mid a { transition: color 0.2s var(--easing); }
.foot-mid a:hover { color: var(--ink); }

.foot-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
}
.foot-legal {
  font-size: 12.5px;
  color: var(--ink-3);
}
.foot-legal-dim {
  color: var(--ink-4);
  font-size: 12px;
}

/* ----------------- responsive ----------------- */

@media (max-width: 1080px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-grid .feature:nth-child(3) { grid-column: 1 / -1; }

  .how-steps  { grid-template-columns: 1fr 1fr; }
  .spec-grid  { grid-template-columns: 1fr; }
  .plans      { grid-template-columns: 1fr; }

  .nav-links  { display: none; }
}

@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature:nth-child(3) { grid-column: auto; }

  .chapter { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .chapter-num { font-size: 56px; }

  .nav { padding: 12px 18px; }
  .nav-cta .nav-link-text { display: none; }

  .hero-kpis {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }

  .hero-title { font-size: clamp(44px, 12vw, 80px); }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .foot-mid { justify-content: flex-start; }
  .foot-right { align-items: flex-start; text-align: left; }

  .plans-trust { gap: 16px; }
  .trust-item { font-size: 13px; }

  .faq-item summary { font-size: 16px; padding: 16px 18px; }
  .faq-body { padding: 0 18px 18px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .hero-line,
  .hero-sub,
  .hero-ctas,
  .hero-kpis {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
