:root {
  color-scheme: light;
  --bg: oklch(96% 0.012 230);
  --bg-deep: oklch(90% 0.03 235);
  --surface: color-mix(in srgb, #ffffff 62%, transparent);
  --surface-raised: color-mix(in srgb, #ffffff 80%, transparent);
  --text: oklch(23% 0.03 250);
  --text-muted: oklch(44% 0.035 250);
  --text-subtle: oklch(56% 0.03 250);
  --border: color-mix(in srgb, #ffffff 65%, oklch(60% 0.05 240));
  --glass-edge: color-mix(in srgb, white 55%, transparent);
  --accent: oklch(48% 0.12 205);
  --accent-ink: oklch(99% 0.004 205);
  --accent-text: oklch(42% 0.12 205);
  --accent-glow: oklch(82% 0.12 200);
  --focus: oklch(50% 0.14 205);
  --danger: oklch(50% 0.18 22);
  --danger-chip: color-mix(in srgb, oklch(55% 0.19 22) 14%, white);
  --font-display: "Instrument Sans", "Segoe UI", sans-serif;
  --font-text: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  --dur-3: 360ms;
  --dur-4: 640ms;
  --shadow-1: 0 1px 2px color-mix(in oklch, oklch(30% 0.05 250) 8%, transparent),
    0 8px 24px -12px color-mix(in oklch, oklch(30% 0.05 250) 18%, transparent);
  --shadow-2: 0 2px 6px color-mix(in oklch, oklch(30% 0.05 250) 8%, transparent),
    0 24px 48px -16px color-mix(in oklch, oklch(30% 0.05 250) 24%, transparent);
}

:root[data-theme="dark"],
body[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(20% 0.03 255);
  --bg-deep: oklch(15% 0.035 260);
  --surface: color-mix(in srgb, #ffffff 8%, transparent);
  --surface-raised: color-mix(in srgb, #ffffff 13%, transparent);
  --text: oklch(94% 0.008 250);
  --text-muted: oklch(74% 0.02 250);
  --text-subtle: oklch(60% 0.02 250);
  --border: color-mix(in srgb, #ffffff 16%, transparent);
  --glass-edge: color-mix(in srgb, white 22%, transparent);
  --accent: oklch(80% 0.12 200);
  --accent-ink: oklch(18% 0.05 220);
  --accent-text: oklch(82% 0.11 200);
  --accent-glow: oklch(70% 0.12 205);
  --focus: oklch(80% 0.12 200);
  --danger: oklch(72% 0.16 22);
  --danger-chip: color-mix(in srgb, oklch(65% 0.18 22) 30%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-text);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(110% 70% at 85% -10%, color-mix(in oklch, var(--accent-glow) 45%, transparent), transparent 60%),
    radial-gradient(90% 60% at 5% 110%, color-mix(in oklch, oklch(75% 0.14 170) 38%, transparent), transparent 62%),
    radial-gradient(70% 55% at 110% 90%, color-mix(in oklch, oklch(72% 0.15 300) 26%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  background-attachment: fixed;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--glass-edge);
}

.aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 26s ease-in-out infinite alternate; }
.aurora .orb-a { width: 60vmax; height: 60vmax; left: -18vmax; top: -20vmax; background: radial-gradient(circle, color-mix(in oklch, var(--accent-glow) 70%, transparent), transparent 70%); }
.aurora .orb-b { width: 52vmax; height: 52vmax; right: -16vmax; bottom: -18vmax; background: radial-gradient(circle, color-mix(in oklch, oklch(75% 0.14 170) 65%, transparent), transparent 70%); animation-delay: -9s; }
.aurora .orb-c { width: 40vmax; height: 40vmax; right: 6vmax; top: -12vmax; background: radial-gradient(circle, color-mix(in oklch, oklch(74% 0.14 310) 55%, transparent), transparent 70%); animation-delay: -17s; }
body[data-theme="dark"] .aurora .orb { opacity: 0.34; }

.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.skip-link { position: absolute; left: 1rem; top: 1rem; translate: 0 -200%; z-index: 50; padding: 0.5rem 0.9rem; background: var(--text); color: var(--bg); border-radius: var(--radius-pill); text-decoration: none; }
.skip-link:focus { translate: 0 0; }

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 45%, transparent), var(--shadow-1);
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1120px, 100% - 2rem);
  margin: 1rem auto 0;
  padding: 0.7rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-pill);
}

.mark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.mark-sm { font-size: 0.95rem; }
.brand-tile { width: 2.4rem; height: 2.4rem; border-radius: 13px; overflow: hidden; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #0d1e2e, #125e6e); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-1); }
.brand-tile img { width: 68%; height: 68%; object-fit: contain; filter: brightness(0) invert(1); }
.brand-tile-sm { width: 1.9rem; height: 1.9rem; border-radius: 10px; }

.eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.page { position: relative; z-index: 2; width: min(1120px, 100% - 2rem); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 0 4rem; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-copy { display: grid; gap: 1.1rem; animation: rise 640ms cubic-bezier(0.16,1,0.3,1) both; }

.display { font-size: clamp(2.6rem, 1.1rem + 5.5vw, 4rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.lede { color: var(--text-muted); max-width: 40ch; text-wrap: pretty; font-size: 1.06rem; }
.micro { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-subtle); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.4rem; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; transition: filter 140ms, translate 140ms, box-shadow 140ms; }
.btn-primary { color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent), white 18%), var(--accent) 55%, color-mix(in oklch, var(--accent), black 12%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 6px rgba(0,0,0,0.18), 0 16px 36px -14px color-mix(in oklch, var(--accent) 65%, transparent); }
.btn-primary:hover { filter: brightness(1.07); translate: 0 -1px; }
.btn-primary:active { translate: 0 1px; }
.btn-glossy { background: var(--surface); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), var(--shadow-1); }
.btn-glossy:hover { translate: 0 -1px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), var(--shadow-2); }

.artifact { border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); background: var(--surface-raised); -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-2); rotate: -2deg; translate: 2% 0.5rem; overflow: hidden; max-width: 26rem; justify-self: end;
  animation: settle 760ms var(--ease-spring) both; animation-delay: 90ms; }
.artifact-head, .artifact-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.1rem; border-block-end: 1px solid var(--border); }
.artifact-foot { border-block-end: 0; border-block-start: 1px solid var(--border); color: var(--text-subtle); font-size: 0.8rem; }
.artifact-list { list-style: none; padding: 0; }
.artifact-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; padding: 0.9rem 1.1rem; border-block-end: 1px solid var(--border); }
.artifact-list li:last-child { border-block-end: 0; }

.stamp { display: inline-flex; min-width: 3.1rem; justify-content: center; padding: 0.22rem 0.55rem; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.stamp-root { color: var(--danger); background: var(--danger-chip); }
.stamp-path { color: var(--accent-text); background: color-mix(in oklch, var(--accent) 12%, transparent); }
.leader { display: flex; align-items: baseline; gap: 0.5ch; min-width: 0; font-family: var(--font-mono); font-size: 0.86rem; }
.leader::after { content: ""; flex: 1; border-block-end: 1px dotted var(--text-subtle); translate: 0 -0.2em; }

.install { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.4rem; max-width: 44rem; }
.install h2 { font-size: clamp(1.4rem, 1rem + 1.5vw, 1.9rem); letter-spacing: -0.02em; font-weight: 700; }
.install ol { list-style: none; padding: 0; display: grid; gap: 1rem; }
.install li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.install li:last-child { border-bottom: 0; padding-bottom: 0; }
.n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

.footer { position: relative; z-index: 2; width: min(1120px, 100% - 2rem); margin: 0 auto; padding: 1.5rem 0 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.muted { color: var(--text-muted); }

@keyframes rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { opacity: 0; translate: 6% 14px; rotate: -4deg; } to { opacity: 1; translate: 2% 0.5rem; rotate: -2deg; } }
@keyframes drift { from { translate: 0 0; } to { translate: 6vmax 4vmax; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .artifact { rotate: 0; translate: 0; justify-self: stretch; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
