:root {
  --ink: #0a0611;
  --ink-2: #120a1e;
  --ink-3: #1b1029;
  --panel: rgba(30, 18, 44, 0.72);
  --panel-solid: #1c1129;
  --cream: #f7e8c8;
  --muted: #c6b4d6;
  --dim: #8f7ba1;
  --gold: #f2b73d;
  --gold-2: #ffd77a;
  --red: #a82424;
  --red-2: #e0523e;
  --violet: #7b4aa0;
  --line: rgba(247, 232, 200, 0.14);
  --line-strong: rgba(247, 232, 200, 0.26);
  --font-display: "Bungee", "Impact", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Cascadia Mono", Consolas, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(123, 74, 160, 0.32), transparent 60%),
    radial-gradient(900px 600px at 92% 8%, rgba(168, 36, 36, 0.22), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(242, 183, 61, 0.09), transparent 60%),
    var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(247, 232, 200, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 232, 200, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(10, 6, 17, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand:hover { color: var(--gold-2); }

.brand-mark {
  color: var(--gold);
  font-size: 14px;
  transform: rotate(45deg);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-small {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 12px;
  background: rgba(242, 183, 61, 0.12);
  border-color: rgba(242, 183, 61, 0.32);
  color: var(--gold-2);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1b1029;
  box-shadow: 0 8px 0 #8a5a13, 0 18px 40px rgba(242, 183, 61, 0.18);
}

.btn-primary:hover {
  color: #1b1029;
  box-shadow: 0 10px 0 #8a5a13, 0 22px 48px rgba(242, 183, 61, 0.28);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cream);
  background: rgba(247, 232, 200, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(242, 183, 61, 0.5);
  background: rgba(242, 183, 61, 0.07);
}

.arrow {
  font-size: 18px;
  line-height: 1;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 72px 0 56px;
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(242, 183, 61, 0.26);
  border-radius: 999px;
  background: rgba(242, 183, 61, 0.06);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 4px rgba(143, 123, 161, 0.14);
}

.status-dot.is-live {
  background: #57d38c;
  box-shadow: 0 0 0 4px rgba(87, 211, 140, 0.14);
}

.status-dot.is-down {
  background: var(--red-2);
  box-shadow: 0 0 0 4px rgba(224, 82, 62, 0.14);
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin: 0 0 24px;
  max-width: 100%;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 9.2vw, 8.8rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-shadow: 0 6px 0 rgba(36, 14, 24, 0.7), 0 20px 60px rgba(0, 0, 0, 0.45);
}

h1 span { color: var(--gold); }

.lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.build-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.build-meta div { min-width: 0; }

.build-meta dt {
  margin-bottom: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-meta dd {
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-art {
  position: relative;
  z-index: 1;
  padding: 24px 16px 28px;
}

.door-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 61, 0.44);
  border-radius: var(--radius);
  background: var(--ink-3);
  box-shadow:
    0 0 0 8px rgba(242, 183, 61, 0.05),
    0 30px 100px rgba(0, 0, 0, 0.62),
    0 0 80px rgba(123, 74, 160, 0.18);
  transform: rotate(-2deg);
}

.door-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.24));
}

.door-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.04);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.24) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
}

.door-glow {
  position: absolute;
  inset: -30% -18%;
  background: radial-gradient(circle at 50% 50%, rgba(242, 183, 61, 0.26), transparent 52%);
  filter: blur(22px);
  pointer-events: none;
}

.sticker {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rune {
  position: absolute;
  color: var(--gold);
  font-size: 22px;
  opacity: 0.8;
  animation: float 5s ease-in-out infinite;
}

.rune-a { top: 2px; left: 2px; animation-delay: -1.4s; }
.rune-b { right: 8px; top: 22%; animation-delay: -2.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
  50% { transform: translateY(-12px) rotate(12deg); opacity: 0.95; }
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(242, 183, 61, 0.22);
  border-bottom: 1px solid rgba(242, 183, 61, 0.22);
  background: rgba(242, 183, 61, 0.06);
}

.ticker-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 12px 0;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head .kicker { grid-column: 1; margin-bottom: 0; }

h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.section-head h2 { grid-column: 2; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature {
  min-height: 220px;
  padding: 30px;
  background:
    linear-gradient(150deg, rgba(123, 74, 160, 0.12), transparent 60%),
    var(--ink-2);
  transition: background 200ms ease;
}

.feature:hover {
  background:
    linear-gradient(150deg, rgba(242, 183, 61, 0.1), transparent 60%),
    var(--ink-3);
}

.feature-no {
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.feature h3 {
  margin-bottom: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.feature p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-section {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 104px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  overflow: hidden;
  border: 1px solid rgba(242, 183, 61, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(123, 74, 160, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(36, 18, 50, 0.96), rgba(18, 10, 30, 0.96));
  box-shadow: var(--shadow);
}

.download-copy { padding: 48px; }
.download-copy h2 { margin-bottom: 18px; }

.download-copy .muted { max-width: 50ch; }

.muted { color: var(--muted); }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 28px 0 30px;
}

.mono {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 42px;
  color: var(--muted);
  font-size: 14px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.fineprint {
  margin: 0;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.download-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(242, 183, 61, 0.08), transparent 50%),
    rgba(0, 0, 0, 0.18);
}

.download-art img {
  display: block;
  width: 100%;
  border: 1px solid rgba(242, 183, 61, 0.3);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(1.5deg);
}

.download-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 183, 61, 0.3);
  border-radius: 10px;
  background: rgba(10, 6, 17, 0.82);
  backdrop-filter: blur(10px);
}

.download-badge span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.download-badge strong {
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 13px;
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.status-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.status-card-warn {
  border-color: rgba(242, 183, 61, 0.3);
  background:
    linear-gradient(150deg, rgba(242, 183, 61, 0.07), transparent 55%),
    var(--panel);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-line strong {
  color: var(--cream);
  font-size: 14px;
}

.warn-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.status-card p { margin-bottom: 18px; font-size: 13px; }

.status-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.status-card li::marker { color: var(--gold); }

.hashrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hashrow .mono {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.final-cta {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 104px;
  padding: 76px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 { margin-bottom: 26px; }

.final-cta .fineprint { margin-top: 18px; }

footer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 42px 24px 54px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  text-align: center;
  font-size: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 15px;
}

footer p { margin: 0; }
footer a { color: var(--muted); }

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-top: 56px;
  }

  .hero-art { max-width: 720px; margin: 0 auto; }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head h2 { grid-column: 1; }

  .download-card { grid-template-columns: 1fr; }
  .download-art { min-height: 260px; order: -1; }
  .download-copy { padding: 34px; }

  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 18px; gap: 12px; }
  .nav { display: none; }
  .brand { font-size: 15px; }
  .btn-small { padding: 8px 12px; font-size: 11px; }

  .hero,
  .section,
  .download-section,
  .final-cta {
    width: min(100% - 32px, var(--max));
  }

  .hero { padding: 46px 0 32px; }
  h1 { font-size: clamp(3.4rem, 19vw, 6.6rem); }
  .lede { font-size: 15px; }
  .build-meta { grid-template-columns: 1fr 1fr; gap: 14px; }
  .build-meta div:last-child { grid-column: 1 / -1; }

  .cta-row { align-items: stretch; }
  .cta-row .btn { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 24px; }
  .feature-no { margin-bottom: 18px; }

  .section { padding: 72px 0; }
  .download-section { padding-bottom: 72px; }
  .download-copy { padding: 26px; }
  .download-art { padding: 18px; min-height: 200px; }
  .download-badge { right: 10px; bottom: 10px; }
  .download-actions .mono { width: 100%; }
  .final-cta { padding: 58px 16px; margin-bottom: 72px; }
  .sticker { width: 74px; height: 74px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
