@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #050505;
  --surface: #0a0a0a;
  --surface-raised: #111111;
  --surface-soft: #171717;
  --text: #fafafa;
  --text-dim: #b5b5b5;
  --text-muted: #777777;
  --line: rgb(255 255 255 / 0.11);
  --line-strong: rgb(255 255 255 / 0.2);
  --emerald: #10b981;
  --emerald-light: #6ee7b7;
  --emerald-soft: rgb(16 185 129 / 0.12);
  --radius: 24px;
  --radius-inner: 16px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--emerald);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 9rem) 0; }
.section-heading { max-width: 700px; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0.85rem; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -0.055em; }
.section-heading p { max-width: 59ch; margin-bottom: 0; color: var(--text-dim); font-size: 1rem; }
.kicker { margin-bottom: 0.85rem; color: var(--emerald-light); font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-wrap { position: fixed; top: 1rem; right: 0; left: 0; z-index: 10; pointer-events: none; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1168px, calc(100% - 32px));
  min-height: 64px;
  margin: auto;
  padding: 0.5rem 0.65rem 0.5rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  background: linear-gradient(120deg, rgb(23 23 23 / 0.8), rgb(10 10 10 / 0.57));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 12px 32px rgb(0 0 0 / 0.2);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  pointer-events: auto;
}
.brand { color: var(--text); font-size: 0.86rem; font-weight: 800; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--emerald-light); }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav-links a { color: var(--text-dim); font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: color 180ms ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-action, .button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 220ms cubic-bezier(.16, 1, .3, 1), color 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms cubic-bezier(.16, 1, .3, 1), transform 220ms cubic-bezier(.16, 1, .3, 1);
}
.nav-action { background: var(--emerald); color: #04281d; }
.button-primary { border: 1px solid transparent; background: var(--emerald); color: #04281d; }
.button-secondary { border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.04); color: var(--text); }
.nav-action:hover, .button-primary:hover { background: var(--emerald-light); }
.button-secondary:hover { border-color: rgb(255 255 255 / 0.35); background: rgb(255 255 255 / 0.08); }
.nav-action:active, .button-primary:active, .button-secondary:active { transform: scale(0.96); }

.hero { position: relative; min-height: 100dvh; padding: 8.5rem 0 4rem; overflow: clip; }
.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: '';
  background: radial-gradient(circle at 76% 28%, rgb(16 185 129 / 0.17), transparent 27%), radial-gradient(circle at 22% 84%, rgb(16 185 129 / 0.08), transparent 26%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.88fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; min-height: calc(100dvh - 12.5rem); }
.hero-copy { max-width: 650px; }
.hero h1 { max-width: 700px; margin-bottom: 1.25rem; font-size: clamp(3.1rem, 5.4vw, 5.3rem); line-height: 0.93; letter-spacing: -0.07em; }
.hero h1 strong { color: var(--emerald-light); font-weight: inherit; }
.hero-lede { max-width: 52ch; margin-bottom: 1.75rem; color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-art { position: relative; min-height: 520px; }
.hero-photo { position: absolute; inset: 1.5rem 0 0 2rem; width: calc(100% - 2rem); height: calc(100% - 1.5rem); border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--radius); object-fit: cover; opacity: 0.62; filter: saturate(0.62) contrast(1.12); }
.glass-workflow {
  position: absolute;
  inset: 0 2.8rem 3rem 0;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(17 17 17 / 0.77), rgb(10 10 10 / 0.56));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 24px 70px rgb(0 0 0 / 0.24);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.glass-workflow::before { position: absolute; inset: 1px; border: 1px solid rgb(255 255 255 / 0.06); border-radius: calc(var(--radius) - 1px); content: ''; pointer-events: none; }
.glass-workflow h2 { position: relative; margin: 0.55rem 0 1rem; max-width: 13ch; font-size: clamp(1.55rem, 2.3vw, 2.25rem); line-height: 1.02; letter-spacing: -0.045em; }
.flow-step { position: relative; display: grid; grid-template-columns: 1.9rem 1fr auto; gap: 0.75rem; align-items: center; min-height: 52px; padding: 0.65rem 0.75rem; border-radius: var(--radius-inner); background: rgb(5 5 5 / 0.35); color: var(--text-dim); font-size: 0.8rem; }
.flow-step b { color: var(--emerald-light); font-family: var(--mono); font-size: 0.65rem; }
.flow-step strong { color: var(--text); }
.flow-step span { font-size: 0.72rem; }

.proof { border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-item { min-height: 120px; padding: 1.25rem clamp(1rem, 4vw, 3rem); border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; margin-bottom: 0.25rem; color: var(--emerald-light); font-size: 1.7rem; letter-spacing: -0.06em; }
.proof-item p { margin: 0; max-width: 22ch; color: var(--text-dim); font-size: 0.82rem; }

.bento { display: grid; grid-template-columns: 1.15fr 0.85fr 0.85fr; grid-template-rows: repeat(2, minmax(245px, auto)); gap: 1rem; }
.bento-card { position: relative; min-width: 0; overflow: hidden; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bento-card h3 { margin-bottom: 0.65rem; font-size: clamp(1.3rem, 2.3vw, 2rem); letter-spacing: -0.045em; }
.bento-card p { margin-bottom: 0; color: var(--text-dim); font-size: 0.87rem; }
.bento-card--lead { grid-row: span 2; display: flex; flex-direction: column; justify-content: end; min-height: 500px; padding: 2rem; }
.bento-card--lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: grayscale(0.8) contrast(1.25); }
.bento-card--lead::after { position: absolute; inset: 0; content: ''; background: linear-gradient(to top, rgb(5 5 5 / 0.96) 10%, rgb(5 5 5 / 0.12) 80%); }
.bento-card--lead > * { position: relative; z-index: 1; }
.bento-card--signal { background: linear-gradient(145deg, rgb(16 185 129 / 0.2), rgb(10 10 10 / 0.9) 55%); }
.bento-card--signal::after { position: absolute; top: -6rem; right: -6rem; width: 16rem; height: 16rem; border: 1px solid rgb(110 231 183 / 0.25); border-radius: 50%; content: ''; }
.bento-card--code { background: var(--surface-soft); }
.code-line { display: block; margin-top: 1.5rem; overflow-wrap: anywhere; color: var(--emerald-light); font-family: var(--mono); font-size: clamp(0.7rem, 1.1vw, 0.85rem); line-height: 1.7; }
.bento-card--guide { background: linear-gradient(140deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02)); }

.story { position: relative; }
.story-intro { max-width: 680px; margin-bottom: 4rem; }
.story-track { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.95fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.story-rail { position: sticky; top: 7.5rem; }
.story-rail h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 0.95; letter-spacing: -0.065em; }
.story-rail p { max-width: 36ch; color: var(--text-dim); }
.story-steps { display: grid; gap: 20vh; padding-bottom: 20vh; }
.story-card { min-height: min(70dvh, 560px); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); opacity: 0.45; transform: translateY(28px) scale(0.98); transition: opacity 550ms cubic-bezier(.16, 1, .3, 1), transform 550ms cubic-bezier(.16, 1, .3, 1), border-color 550ms cubic-bezier(.16, 1, .3, 1); }
.story-card.is-visible { border-color: rgb(110 231 183 / 0.45); opacity: 1; transform: translateY(0) scale(1); }
.story-card h3 { margin-bottom: 0.8rem; font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: 1; letter-spacing: -0.05em; }
.story-card p { max-width: 42ch; color: var(--text-dim); }
.story-card ul { display: grid; gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.story-card li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.88rem; }
.story-card li:last-child { border-bottom: 0; }
.story-card li span { display: block; margin-top: 0.25rem; color: var(--text-muted); font-size: 0.78rem; }

.install-shell { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(140deg, rgb(16 185 129 / 0.12), var(--surface) 45%); overflow: hidden; }
.install-copy { padding: clamp(1.6rem, 5vw, 4rem); }
.install-copy h2 { margin-bottom: 0.9rem; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 0.96; letter-spacing: -0.065em; }
.install-copy p { max-width: 50ch; margin-bottom: 0; color: var(--text-dim); }
.commands { display: grid; gap: 0.7rem; padding: clamp(1rem, 3vw, 2rem); background: rgb(5 5 5 / 0.45); }
.command { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.9rem 0.9rem 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-inner); background: rgb(255 255 255 / 0.035); }
.command code { min-width: 0; overflow-wrap: anywhere; color: var(--emerald-light); font-family: var(--mono); font-size: 0.73rem; line-height: 1.55; }
.copy-button { min-width: 76px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; font-size: 0.72rem; font-weight: 800; transition: background-color 180ms ease, transform 180ms ease; }
.copy-button:hover { background: rgb(255 255 255 / 0.09); }
.copy-button:active { transform: scale(0.96); }
.copy-button.is-copied { border-color: var(--emerald); color: var(--emerald-light); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-inner); background: var(--surface); }
.faq summary { padding: 1rem 1.1rem; color: var(--text); cursor: pointer; font-size: 0.9rem; font-weight: 700; }
.faq p { padding: 0 1.1rem 1.1rem; margin-bottom: 0; color: var(--text-dim); font-size: 0.85rem; }

.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer a { color: var(--text-dim); }

.reveal { transition: opacity 600ms cubic-bezier(.16, 1, .3, 1), transform 600ms cubic-bezier(.16, 1, .3, 1); }
html[data-motion-ready='true'] .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
:focus-visible { outline: 2px solid var(--emerald-light); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .story-track { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; }
  .hero-grid { min-height: auto; }
  .hero-art { max-width: 620px; min-height: 440px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .bento-card--lead { grid-row: auto; grid-column: span 2; min-height: 390px; }
  .story-rail { position: static; margin-bottom: 2.5rem; }
  .story-steps { gap: 2rem; padding-bottom: 0; }
  .story-card { min-height: auto; opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1200px); }
  .nav { min-height: 58px; padding-left: 0.85rem; }
  .nav-action { min-height: 40px; padding-inline: 0.8rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .hero-art { min-height: 390px; }
  .glass-workflow { inset: 0 0.7rem 2rem 0; padding: 1rem; }
  .hero-photo { inset: 1.2rem 0 0 1rem; width: calc(100% - 1rem); height: calc(100% - 1.2rem); }
  .flow-step { grid-template-columns: 1.5rem 1fr; }
  .flow-step span { display: none; }
  .proof-grid, .bento, .faq { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .bento-card--lead { grid-column: auto; min-height: 340px; }
  .command { grid-template-columns: 1fr; }
  .copy-button { width: 100%; }
  .footer-inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html[data-motion-ready='true'] .reveal { opacity: 1; transform: none; }
  .story-card { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .glass-workflow { background: var(--surface-raised); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
