:root {
  --void: #030404;
  --surface: rgba(10, 15, 13, 0.72);
  --surface-hover: rgba(14, 21, 18, 0.84);
  --border: rgba(196, 218, 206, 0.11);
  --border-strong: rgba(206, 228, 216, 0.24);
  --ink: #eef3f0;
  --ink-body: rgba(226, 236, 230, 0.8);
  --ink-soft: rgba(206, 220, 212, 0.56);
  --ink-whisper: rgba(168, 184, 175, 0.36);

  --update: #f5a524;
  --update-soft: rgba(245, 165, 36, 0.12);
  --update-border: rgba(245, 165, 36, 0.38);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

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

html {
  background-color: var(--void);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  background: radial-gradient(ellipse 84% 74% at 50% 24%, #090e0c 0%, #040605 56%, #020303 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(182, 208, 194, 0.24); color: #ffffff; }
a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.14em 0.44em;
  border-radius: 6px;
  background: rgba(196, 218, 206, 0.08);
  border: 1px solid rgba(196, 218, 206, 0.12);
  color: #e6f0ea;
}

strong { color: var(--ink); font-weight: 500; }

.noir-atmosphere {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  filter: blur(105px) saturate(0.75);
  opacity: 0.78;
}

.smoke { position: absolute; border-radius: 46% 54% 50% 50% / 52% 44% 56% 48%; will-change: transform, opacity; }
.smoke--1 {
  width: clamp(24rem, 62vw, 66rem); height: clamp(20rem, 52vw, 54rem); top: 8%; left: 14%;
  background: radial-gradient(ellipse at 45% 45%, rgba(96, 128, 112, 0.16) 0%, rgba(36, 54, 46, 0.08) 46%, rgba(3, 4, 4, 0) 74%);
  animation: driftOne 28s ease-in-out infinite alternate;
}
.smoke--2 {
  width: clamp(22rem, 56vw, 58rem); height: clamp(22rem, 54vw, 56rem); bottom: 2%; right: 8%;
  background: radial-gradient(ellipse at 52% 52%, rgba(74, 102, 90, 0.15) 0%, rgba(28, 42, 36, 0.07) 48%, rgba(3, 4, 4, 0) 74%);
  animation: driftTwo 34s ease-in-out infinite alternate;
}
.smoke--3 {
  width: clamp(18rem, 44vw, 46rem); height: clamp(16rem, 38vw, 40rem); top: 38%; left: 52%;
  background: radial-gradient(ellipse at 50% 50%, rgba(146, 168, 156, 0.09) 0%, rgba(46, 62, 54, 0.04) 50%, rgba(3, 4, 4, 0) 75%);
  animation: driftThree 22s ease-in-out infinite alternate;
}

@keyframes driftOne { 0% { transform: translate(-6%, -4%) rotate(0deg) scale(1); opacity: 0.7; } 50% { transform: translate(7%, 6%) rotate(16deg) scale(1.1); opacity: 0.95; } 100% { transform: translate(-2%, 9%) rotate(-12deg) scale(0.95); opacity: 0.78; } }
@keyframes driftTwo { 0% { transform: translate(4%, 6%) rotate(0deg) scale(1.04); opacity: 0.68; } 50% { transform: translate(-8%, -5%) rotate(-18deg) scale(0.96); opacity: 0.92; } 100% { transform: translate(6%, -10%) rotate(14deg) scale(1.12); opacity: 0.74; } }
@keyframes driftThree { 0% { transform: translate(-45%, -30%) rotate(0deg) scale(0.92); opacity: 0.58; } 100% { transform: translate(-55%, -18%) rotate(24deg) scale(1.14); opacity: 0.9; } }

.noir-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; opacity: 0.62; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 80% 72% at 50% 35%, rgba(3, 4, 4, 0.1) 14%, rgba(2, 3, 3, 0.72) 78%, rgba(1, 2, 2, 0.95) 100%); }
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 3; pointer-events: none; opacity: 0.044;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 210px 210px; animation: grainDrift 7s steps(5) infinite;
}
@keyframes grainDrift { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.8%, 1.4%); } 50% { transform: translate(1.4%, -1.8%); } 75% { transform: translate(-1.2%, -1.2%); } }

.page {
  position: relative; z-index: 4; min-height: 100dvh; display: flex; flex-direction: column;
  padding-top: calc(clamp(1rem, 3vh, 2rem) + env(safe-area-inset-top));
  padding-bottom: calc(clamp(2rem, 5vh, 3.5rem) + env(safe-area-inset-bottom));
  padding-left: calc(clamp(1.1rem, 4vw, 2.5rem) + env(safe-area-inset-left));
  padding-right: calc(clamp(1.1rem, 4vw, 2.5rem) + env(safe-area-inset-right));
}

.topbar { width: 100%; max-width: 780px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; transition: opacity 0.2s ease; }
.brand:hover { opacity: 0.85; }
.brand-mark { display: block; border-radius: 6px; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.status-tag { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-weight: 300; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }

.pulse-dot { position: relative; width: 5px; height: 5px; border-radius: 50%; background: rgba(206, 228, 216, 0.92); box-shadow: 0 0 12px rgba(186, 218, 200, 0.75); animation: breatheDot 3.8s ease-in-out infinite; }
.pulse-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(190, 220, 204, 0.36); animation: haloPulse 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes breatheDot { 0%, 100% { opacity: 0.52; } 50% { opacity: 1; } }
@keyframes haloPulse { 0% { transform: scale(0.5); opacity: 0.78; } 75% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }

.container { width: 100%; max-width: 780px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; gap: clamp(2.25rem, 5vh, 3.5rem); }
.hero { padding-top: clamp(1rem, 4vh, 2.75rem); display: flex; flex-direction: column; gap: 1.25rem; }
.eyebrow { font-family: var(--font-mono); font-weight: 300; font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.headline {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 7.6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.045em;
  background: linear-gradient(180deg, rgba(246, 250, 248, 0.98) 0%, rgba(212, 226, 218, 0.9) 55%, rgba(136, 160, 148, 0.62) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 18px 46px rgba(0, 0, 0, 0.85));
}
.lead { max-width: 58ch; font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.62; color: var(--ink-body); font-weight: 300; }

.download-panel { margin-top: 0.5rem; padding: 1.25rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 0.9rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 46px; padding: 0 1.25rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 0.94rem; font-weight: 500; letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s var(--ease-organic), background 0.18s ease, border-color 0.18s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(180deg, #eef5f1 0%, #d4e3da 100%); color: #050807; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.btn-primary:hover { background: linear-gradient(180deg, #f8fcfa 0%, #e0ece5 100%); }
.btn-ghost { background: rgba(196, 218, 206, 0.06); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: rgba(196, 218, 206, 0.12); border-color: var(--border-strong); }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); }
.sep { color: var(--ink-whisper); }

.steps { display: flex; flex-direction: column; gap: 1rem; }
.step-card { display: grid; grid-template-columns: 3.1rem 1fr; gap: 1.1rem; padding: clamp(1.15rem, 3vw, 1.5rem); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: border-color 0.2s ease, background 0.2s ease; }
.step-card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.step-card--accent { border-color: var(--update-border); background: linear-gradient(135deg, rgba(245, 165, 36, 0.08) 0%, var(--surface) 58%); }
.step-index { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.08em; color: var(--ink-soft); padding-top: 0.2rem; }
.step-body { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.step-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem; }
.step-title { font-size: clamp(1.12rem, 2.5vw, 1.28rem); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.step-copy { font-size: 0.96rem; line-height: 1.62; color: var(--ink-body); font-weight: 300; }
.step-note { font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); padding-left: 0.8rem; border-left: 1px solid rgba(196, 218, 206, 0.22); }
.path-crumb { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6; color: var(--ink-soft); padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); background: rgba(3, 5, 4, 0.65); border: 1px solid var(--border); }
.repo-examples { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.1rem; }
.repo-chip { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: rgba(196, 218, 206, 0.06); color: var(--ink); font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer; transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease; }
.repo-chip:hover { background: rgba(196, 218, 206, 0.13); }
.repo-chip:active { transform: scale(0.97); }
.copy-hint { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.repo-chip.is-copied { border-color: rgba(186, 232, 206, 0.5); background: rgba(186, 232, 206, 0.16); }
.update-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.26rem 0.7rem; border-radius: var(--radius-pill); background: var(--update-soft); border: 1px solid var(--update-border); font-family: var(--font-mono); font-size: 0.72rem; color: #ffc25c; }
.update-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--update); box-shadow: 0 0 10px rgba(245, 165, 36, 0.75); }

.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; padding: 1.15rem 1.25rem; border-radius: var(--radius-md); background: rgba(6, 9, 8, 0.62); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.spec-item { display: flex; flex-direction: column; gap: 0.28rem; }
.spec-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-whisper); }
.spec-value { font-size: 0.86rem; color: var(--ink-body); }

.footer { width: 100%; max-width: 780px; margin: clamp(2.5rem, 6vh, 4rem) auto 0; display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--font-mono); font-weight: 300; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: lowercase; color: var(--ink-whisper); }
.footer a:hover { color: var(--ink-soft); }

[data-reveal] { opacity: 0; transform: translateY(12px); animation: revealOrganic 1.05s var(--ease-organic) forwards; animation-delay: var(--delay, 0s); }
@keyframes revealOrganic { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .step-card { grid-template-columns: 1fr; gap: 0.45rem; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .download-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .smoke, .grain, .pulse-dot, .pulse-dot::after { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; animation: none; }
}
