@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  --sky-0: #110c2c;
  --sky-1: #231a52;
  --sky-2: #33256f;
  --cliff: #05040b;
  --water-0: #1d2858;
  --water-1: #0a0f2b;
  --facet-1: #e4dcff;
  --facet-2: #a98bfa;
  --facet-3: #8b5cf6;
  --facet-4: #7c3aed;
  --facet-5: #5b21b6;
  --moon: #f6ebc6;
  --ring: #c4b5fd;
  --text: #f3efff;
  --text-2: #b7acdf;
  --line: rgb(196 181 253 / 0.18);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--sky-0);
}
.skip:focus { top: 16px; }

.accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #cdbcff; letter-spacing: -0.005em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgb(17 12 44 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 50%; }
.nav nav { display: flex; gap: 26px; font-size: .9375rem; }
.nav nav a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.star-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgb(196 181 253 / 0.35); background: rgb(17 12 44 / 0.45);
  transition: border-color .2s, background-color .2s;
}
.star-pill:hover { border-color: var(--ring); background: rgb(124 77 255 / 0.18); }
.star-count:not(:empty) { padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); color: var(--text-2); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .nav nav { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .2s ease, box-shadow .3s ease, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #140d33;
  background: linear-gradient(180deg, #c9b8ff, #9a72fa);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18) inset, 0 10px 40px -8px rgb(139 92 246 / 0.75), 0 0 60px -10px rgb(155 123 255 / 0.6);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3) inset, 0 14px 48px -6px rgb(139 92 246 / 0.9), 0 0 80px -6px rgb(155 123 255 / 0.75); }
.btn-ghost { color: var(--text); border: 1px solid rgb(196 181 253 / 0.4); background: rgb(17 12 44 / 0.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ring); background: rgb(124 77 255 / 0.16); }
.btn-star::before { content: "★" / ""; color: var(--moon); }
.star-pill.btn-star::before { color: var(--text); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: flex-start;
  background: #110c2c;
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-copy { padding-top: clamp(120px, 20vh, 220px); padding-bottom: 120px; }
.hero-copy > * { max-width: 600px; }
.hero-copy > h1 { max-width: 820px; }
.eyebrow {
  margin: 0 0 18px; font-size: .8125rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ring);
}
.hero h1 {
  margin: 0; font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem); line-height: .98; font-weight: 700; letter-spacing: -0.035em;
  text-wrap: balance; text-shadow: 0 2px 30px rgb(17 12 44 / 0.6);
}
.hero h1 .accent { font-size: 1.08em; letter-spacing: -0.01em; }
.hero-sub { margin: 24px 0 34px; font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 520px; text-wrap: pretty; }

@media (max-width: 720px) {
  .hero { align-items: stretch; }
  .hero-copy { padding-top: 104px; padding-bottom: max(500px, calc(91vw + 80px)); }
  .hero-scene {
    inset: auto auto 0 calc(50vw - 0.706 * 250vw);
    width: 250vw; max-width: none; height: auto; aspect-ratio: 1600 / 1000;
  }
}

/* Scene motion */
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: .78; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes shimmer { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
@keyframes sheen { 0%, 70%, 100% { opacity: 0; } 82% { opacity: .55; } }

.stars circle { fill: #fff; }
.stars .t1 { animation: twinkle 3.8s ease-in-out infinite; }
.stars .t2 { animation: twinkle 5.2s ease-in-out -1.7s infinite; }
.stars .t3 { animation: twinkle 4.4s ease-in-out -3.1s infinite; }
.glow { transform-box: fill-box; transform-origin: center; animation: breathe 7s ease-in-out infinite; }
.float { animation: float 8s ease-in-out infinite; }
.reflection { opacity: .55; }
.shimmer line { animation: shimmer 4s ease-in-out infinite; }
.shimmer line:nth-child(2) { animation-delay: -1.3s; }
.shimmer line:nth-child(3) { animation-delay: -2.6s; }
.sheen { mix-blend-mode: soft-light; animation: sheen 9s ease-in-out infinite; }
.waves path { opacity: .55; animation: drift 9s ease-in-out infinite alternate; }
.waves .w2 { animation-duration: 11s; animation-delay: -4s; }
.waves .w3 { animation-duration: 13s; animation-delay: -7s; }

/* Sections */
main { background: linear-gradient(180deg, #0a0f2b 0, #0c0a26 900px, #0d0a24 100%); }
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ring);
}
.kicker span {
  font-family: var(--font-mono); letter-spacing: 0; color: var(--text-2);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px;
}
.section h2 {
  margin: 0; font-size: clamp(2.125rem, 1.2rem + 3.2vw, 3.75rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance;
}
.section h2 .accent { font-size: 1.06em; }
.lead { margin: 22px 0 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text-2); max-width: 620px; text-wrap: pretty; }

.glass {
  background: linear-gradient(180deg, rgb(48 36 110 / 0.35), rgb(20 15 51 / 0.35));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

/* 01 Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; padding: 32px 30px 30px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgb(48 36 110 / 0.38), rgb(20 15 51 / 0.2));
  border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s;
}
.pillar::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(155 123 255 / 0.28), transparent 65%); pointer-events: none;
}
.pillar:hover { transform: translateY(-4px); border-color: rgb(196 181 253 / 0.4); }
.facet { width: 52px; height: 52px; margin-bottom: 26px; filter: drop-shadow(0 0 14px rgb(155 123 255 / 0.6)); }
.pillar h3 { margin: 0 0 10px; font-size: 1.375rem; letter-spacing: -0.015em; }
.pillar p { margin: 0; color: var(--text-2); }
.pillar .without { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .9375rem; }
.without span { display: block; margin-bottom: 2px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #8f84bd; }

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

/* 02 Demo */
.demo {
  display: grid; grid-template-columns: minmax(280px, 340px) 1fr minmax(320px, 1.3fr);
  align-items: center; gap: 0;
}
.phone {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 9 / 15.5;
  padding: 44px 14px 14px; border-radius: 44px;
  background: linear-gradient(180deg, #17123a, #0f0b27);
  border: 1px solid rgb(196 181 253 / 0.28);
  box-shadow: 0 0 0 8px #07061a, 0 0 0 9px rgb(196 181 253 / 0.18), 0 40px 80px -30px rgb(124 77 255 / 0.55);
}
.phone-notch { position: absolute; top: 14px; left: 50%; width: 92px; height: 22px; translate: -50% 0; border-radius: 999px; background: #07061a; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 8px 4px; font-size: .9375rem; }
.chat p { margin: 0; }
.bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; max-width: 88%; }
.bubble.user { align-self: flex-end; background: #6d4ae0; color: #fff; border-bottom-right-radius: 6px; }
.bubble.assistant { align-self: flex-start; background: rgb(255 255 255 / 0.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.tool {
  align-self: flex-start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  padding: 7px 10px; border-radius: 10px; font-size: .8125rem;
  background: rgb(5 4 11 / 0.55); border: 1px solid rgb(196 181 253 / 0.2); color: var(--text-2);
}
.tool code { font-family: var(--font-mono); color: var(--facet-2); font-size: .8125rem; }
.tool b { font-weight: 500; color: #8ee6b5; }
.composer { margin-top: 8px; padding: 11px 16px; border-radius: 999px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); color: #8f84bd; font-size: .875rem; }

.beam { position: relative; height: 2px; margin-inline: 8px; background: linear-gradient(90deg, transparent, rgb(196 181 253 / 0.35), transparent); }
.beam span {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--facet-1); box-shadow: 0 0 14px 4px rgb(155 123 255 / 0.9); opacity: 0;
}
.demo.is-syncing .beam span { animation: beam 1.1s cubic-bezier(.5, 0, .5, 1) forwards; }
@keyframes beam { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

.note-window { position: relative; border-radius: 14px; overflow: hidden; background: #1b1830; border: 1px solid rgb(255 255 255 / 0.1); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #15132a; border-bottom: 1px solid rgb(255 255 255 / 0.06); font-size: .8125rem; color: #8a86a6; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3655; }
.window-bar span { margin-left: 10px; }
.note-body { padding: 26px 32px 64px; }
.note-title { margin: 0 0 16px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #d9d5ee; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 2px 8px; margin-inline: -8px; border-radius: 6px; }
.tasks .box { flex: none; width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid #7f7aa3; }
.tasks .checked { color: #8a86a6; text-decoration: line-through; }
.tasks .checked .box { background: var(--facet-3); border-color: var(--facet-3); }
.tasks .new { background: rgb(139 92 246 / 0.16); box-shadow: inset 2px 0 0 var(--facet-2); }
.synced { position: absolute; right: 16px; bottom: 14px; margin: 0; display: flex; align-items: center; gap: 7px; font-size: .8125rem; color: #8a86a6; }
.synced .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd49a; box-shadow: 0 0 10px #5fd49a; }

.demo [data-step] { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.demo[data-state="idle"] [data-step], .demo[data-state="playing"] [data-step]:not(.is-shown) { opacity: 0; transform: translateY(8px); }

.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--text-2); }
.demo-foot p { margin: 0; }
.replay {
  font: inherit; font-size: .875rem; color: var(--text); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--line);
}
.replay:hover { border-color: var(--ring); }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .phone { width: min(320px, 100%); }
  .beam { width: 2px; height: 48px; background: linear-gradient(180deg, transparent, rgb(196 181 253 / 0.35), transparent); }
  .beam span { left: -3px; }
  .demo.is-syncing .beam span { animation-name: beam-down; }
  .note-window { width: 100%; max-width: 520px; }
}
@keyframes beam-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }

/* 03 Security */
.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.rings { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.rings svg { width: 100%; height: auto; overflow: visible; }
.ring {
  fill: none; stroke: var(--ring); stroke-width: 2; stroke-opacity: .38; stroke-dasharray: 2 7; stroke-linecap: round;
  transform-origin: 260px 260px; transition: stroke-opacity .5s, stroke-width .5s, filter .5s;
  animation: spin 120s linear infinite;
}
.ring:nth-child(even) { animation-direction: reverse; animation-duration: 90s; }
.ring.is-active { stroke-opacity: .95; stroke-width: 2.5; stroke-dasharray: none; filter: drop-shadow(0 0 10px rgb(155 123 255 / 0.9)); }
@keyframes spin { to { transform: rotate(360deg); } }

.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: layer; }
.layer-list li {
  position: relative; padding: 16px 20px 16px 64px; border-radius: 14px; cursor: default; counter-increment: layer;
  border: 1px solid transparent; transition: background-color .35s, border-color .35s;
}
.layer-list li::before {
  content: counter(layer, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  font-family: var(--font-mono); font-size: .8125rem; color: #8f84bd; transition: color .35s;
}
.layer-list h3 { margin: 0 0 4px; font-size: 1.125rem; letter-spacing: -0.01em; }
.layer-list p { margin: 0; color: var(--text-2); font-size: .9688rem; }
.layer-list li.is-active { background: rgb(48 36 110 / 0.35); border-color: var(--line); }
.layer-list li.is-active::before { color: var(--ring); }
.layer-list li:focus-visible { outline-offset: 0; }

.verify { margin-top: clamp(56px, 7vw, 88px); }
.verify-caption { margin: 0 0 12px; color: var(--text-2); }
.code {
  position: relative; border-radius: 14px; background: rgb(5 4 11 / 0.7); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset;
}
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; tab-size: 4; font-family: var(--font-mono); font-size: .875rem; line-height: 1.7; color: #ddd6fe; }
.code pre code { font-family: inherit; }
.limits { margin: 28px 0 0; color: var(--text-2); }
.limits a { color: var(--facet-2); text-decoration-color: rgb(169 139 250 / 0.4); text-underline-offset: 4px; }
.limits a:hover { color: var(--facet-1); }

@media (max-width: 900px) {
  .layers { grid-template-columns: 1fr; }
  .rings { max-width: 360px; }
  .layer-list li { padding-left: 52px; }
  .layer-list li::before { left: 16px; }
}

/* 04 Setup */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--facet-2), rgb(124 77 255 / 0.15));
  border-radius: 2px;
}
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 28px; }
.step-head { display: contents; }
.step-num {
  grid-row: 1 / span 2; align-self: start; position: relative; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-mono); font-weight: 500; color: #140d33;
  background: radial-gradient(circle at 35% 30%, var(--facet-1), var(--facet-3));
  box-shadow: 0 0 0 6px #0c0a26, 0 0 28px rgb(155 123 255 / 0.65);
}
.step h3 { grid-column: 2; margin: 8px 0 6px; font-size: 1.375rem; letter-spacing: -0.015em; }
.step h3 code, .step-body p code { font-family: var(--font-mono); font-size: .9em; color: var(--facet-1); }
.step-body { grid-column: 2; padding-bottom: 28px; max-width: 820px; }
.step-body > p { margin: 0 0 12px; color: var(--text-2); }
.step-body .code { margin-bottom: 20px; }
.step-body .note { font-size: .9375rem; }
.step-body a, .setup-foot a:not(.btn) { color: var(--facet-2); text-underline-offset: 4px; }

.connector {
  max-width: 440px; padding: 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgb(48 36 110 / 0.4), rgb(20 15 51 / 0.4)); border: 1px solid var(--line);
}
.connector p { margin: 0; }
.connector-title { font-weight: 600; margin-bottom: 14px !important; }
.field { display: grid; gap: 4px; margin-bottom: 12px !important; font-size: .8125rem; color: #8f84bd; }
.field b { font-weight: 400; font-size: .9375rem; color: var(--text); padding: 9px 12px; border-radius: 8px; background: rgb(5 4 11 / 0.55); border: 1px solid var(--line); }
.connector-ok { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: #8ee6b5; }
.connector-ok .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd49a; box-shadow: 0 0 10px #5fd49a; }

.setup-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 24px 28px; border-radius: 16px; border: 1px dashed var(--line); }
.setup-foot p { margin: 0; color: var(--text-2); }

.copy {
  position: absolute; top: 10px; right: 10px;
  font: 500 .75rem var(--font-sans); letter-spacing: .02em; color: var(--text-2); cursor: pointer;
  padding: 6px 10px; border-radius: 8px; background: rgb(17 12 44 / 0.9); border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: var(--ring); }
.copy[data-state="copied"] { color: #8ee6b5; border-color: rgb(95 212 154 / 0.5); }
.code:has(.copy) pre { padding-right: 84px; }

@media (max-width: 600px) {
  .step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .step-num { width: 36px; height: 36px; font-size: .875rem; }
  .steps::before { left: 17px; }
  .step h3 { margin-top: 4px; font-size: 1.1875rem; }
  .code pre { font-size: .8125rem; }
  .code:has(.copy) pre { padding-top: 48px; padding-right: 22px; }
}

/* 05 Tools */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-group { padding: 26px 26px 18px; border-radius: 20px; background: linear-gradient(180deg, rgb(48 36 110 / 0.3), rgb(20 15 51 / 0.15)); border: 1px solid var(--line); }
.tool-group h3 { margin: 0 0 16px; font-size: .8125rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ring); }
.tool-group dl { margin: 0; }
.tool-group dt { margin: 0; }
.tool-group dt code {
  display: inline-block; font-family: var(--font-mono); font-size: .875rem; color: var(--facet-1);
  padding: 3px 8px; margin-left: -8px; border-radius: 6px; transition: background-color .2s, color .2s;
}
.tool-group dd { margin: 2px 0 14px; color: var(--text-2); font-size: .9375rem; }
.tool-group dt:hover code { background: rgb(139 92 246 / 0.18); color: #fff; }
.tools-foot { margin: 32px 0 0; color: var(--text-2); }
.tools-foot a { color: var(--facet-2); text-underline-offset: 4px; }

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

/* 06 Closing */
.closing { position: relative; isolation: isolate; overflow: hidden; padding: clamp(140px, 16vw, 220px) 0 clamp(120px, 14vw, 180px); background: #0a0f2b; text-align: center; }
.underwater { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.deep-reflection { opacity: .32; animation: deep 7s ease-in-out infinite; transform-origin: 600px 0; }
.deep-glow { animation: shimmer 8s ease-in-out infinite; }
.bubbles circle { animation: rise 9s linear infinite; }
.bubbles circle:nth-child(2) { animation-delay: -3s; animation-duration: 11s; }
.bubbles circle:nth-child(3) { animation-delay: -5s; }
.bubbles circle:nth-child(4) { animation-delay: -1s; animation-duration: 12s; }
.bubbles circle:nth-child(5) { animation-delay: -7s; animation-duration: 10s; }
@keyframes deep { 0%, 100% { opacity: .26; transform: scaleY(1); } 50% { opacity: .4; transform: scaleY(1.03); } }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-420px); opacity: 0; } }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-mark { border-radius: 50%; margin-bottom: 28px; box-shadow: 0 0 0 1px rgb(196 181 253 / 0.4), 0 0 50px rgb(155 123 255 / 0.5); }
.closing h2 { margin: 0; font-size: clamp(2.375rem, 1.2rem + 4vw, 4.5rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.closing .lead { margin: 22px auto 36px; max-width: 560px; }
.closing .actions { justify-content: center; }
.closing .btn-primary.btn-star::before { color: #140d33; }

/* Footer */
.footer { background: #070a1f; border-top: 1px solid rgb(196 181 253 / 0.1); padding: 48px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand p { margin: 10px 0 0; color: var(--text-2); font-size: .9375rem; }
.footer-brand .footer-small { font-size: .8125rem; color: #8f84bd; }
.footer-small a { color: var(--text-2); text-decoration-color: rgb(196 181 253 / 0.35); text-underline-offset: 3px; }
.footer-small a:hover { color: var(--text); }
.footer-brand .footer-legal { max-width: 460px; margin-top: 14px; font-size: .75rem; line-height: 1.55; color: #8f84bd; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 36px; align-content: start; font-size: .9375rem; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 600px) {
  .footer-links { grid-template-columns: repeat(2, auto); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .reveal { opacity: 1; transform: none; }
  .nav { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .parallax { transform: none !important; }
}
