:root {
  color-scheme: dark;
  --bg: #000000;
  --deck-bg: #060606;
  --deck-hover: #0e0e0e;
  --fg: #ffffff;
  --muted: #a6a6a6;
  --dim: #6e6e6e;
  --line: #1f1f1f;
  --line-strong: #3a3a3a;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; background: var(--bg); color: var(--fg); }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #ffffff; color: #000000; }
a { color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade { animation: fadeUp 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }
.glitch-inline { display: inline-grid; align-items: center; justify-items: center; font-family: var(--mono); }
.glitch-sizer { grid-area: 1 / 1; visibility: hidden; pointer-events: none; user-select: none; white-space: nowrap; }
.glitch-live { grid-area: 1 / 1; white-space: nowrap; }
@keyframes bwFlicker {
  0% { transform: translate(0, 0); opacity: 1; }
  25% { transform: translate(-2px, 0); opacity: 0.72; }
  50% { transform: translate(2px, -1px); background: #ffffff; color: #000000; }
  75% { transform: translate(-1px, 1px); background: transparent; color: inherit; opacity: 0.86; }
  100% { transform: translate(0, 0); opacity: 1; }
}
[data-glitching="true"] .glitch-live { animation: bwFlicker 0.22s steps(2, end); }
.dot-matrix { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
.site-header, .stage, .site-footer { position: relative; z-index: 1; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(10px); }
.header-inner { max-width: 62rem; margin: 0 auto; padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; }
.wordmark { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--fg); }
.nav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.65rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1.4rem; }
.nav-link { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 0.22rem 0; border-bottom: 1px solid transparent; transition: color 0.18s ease, border-color 0.18s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
.nav-cta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 0.5rem 0.92rem; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); transition: background 0.18s ease, color 0.18s ease; }
.nav-cta:hover { background: transparent; color: var(--fg); }
.stage { max-width: 62rem; width: 100%; margin: 0 auto; padding: clamp(2rem, 4.5vh, 3.5rem) 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: clamp(2.1rem, 4.5vh, 3.1rem); }
.hero-zone { max-width: 46rem; }
.eyebrow { margin: 0 0 0.95rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
h1 { margin: 0 0 0.55rem; font-size: clamp(2.25rem, 4.8vw, 3.45rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.035em; color: var(--fg); }
h1 .sub-italic { display: block; margin-top: 0.22em; font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: #bcbcbc; }
.secret-whisper { margin: 0 0 1.5rem; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: #808080; }
.secret-whisper a { color: var(--fg); font-weight: 600; letter-spacing: 0.1em; text-decoration: none; border-bottom: 1px dashed #777777; padding: 0.04rem 0.2rem; transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.secret-whisper a:hover { background: var(--fg); color: var(--bg); border-bottom-color: var(--fg); }
.lead { margin: 0 0 1.85rem; max-width: 38rem; font-size: 1.05rem; line-height: 1.62; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.btn-solid, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.8rem 1.45rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.btn-solid { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.btn-solid:hover { background: transparent; color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); font-family: var(--mono); letter-spacing: 0.1em; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.spec-deck { border: 1px solid #242424; background: rgba(6, 6, 6, 0.9); backdrop-filter: blur(4px); }
.deck-bar { padding: 0.72rem 1.35rem; border-bottom: 1px solid #1e1e1e; background: #030303; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.25rem; }
.deck-url-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 0.8rem; min-width: 0; }
.deck-tag { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.raw-link { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; user-select: all; transition: color 0.15s ease; }
.raw-link:hover { color: var(--fg); }
.deck-actions { display: flex; align-items: center; gap: 0.45rem; }
.order-trigger, .copy-trigger { display: inline-flex; align-items: center; justify-content: center; padding: 0.32rem 0.72rem; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.order-trigger { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.order-trigger:hover { background: transparent; color: var(--fg); }
.copy-trigger { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.copy-trigger:hover, .copy-trigger[data-copied="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .deck-grid { grid-template-columns: 1fr; } }
.deck-cell { padding: 1.45rem 1.4rem; border-right: 1px solid #1e1e1e; text-decoration: none; color: inherit; display: block; transition: background 0.18s ease; }
.deck-cell:last-child { border-right: 0; }
@media (max-width: 800px) { .deck-cell { border-right: 0; border-bottom: 1px solid #1e1e1e; } .deck-cell:last-child { border-bottom: 0; } }
a.deck-cell:hover { background: var(--deck-hover); }
.metric-fig { font-family: var(--mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.45rem; color: var(--fg); }
.metric-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #cfcfcf; margin-bottom: 0.55rem; }
.metric-layer-secret .metric-label, .metric-label.metric-label-invert { display: inline-block; background: #ffffff; color: #000000; font-weight: 700; padding: 0.08rem 0.42rem; }
.metric-desc { margin: 0; font-size: 0.87rem; color: var(--muted); line-height: 1.54; }
.metric-glitch-card { position: relative; cursor: pointer; }
.metric-glitch-stack { display: grid; }
.metric-layer { grid-area: 1 / 1; transition: opacity 0.12s ease; }
.metric-glitch-card[data-secret-active="false"] .metric-layer-secret { opacity: 0; pointer-events: none; }
.metric-glitch-card[data-secret-active="true"] .metric-layer-normal { opacity: 0; pointer-events: none; }
@keyframes cardScanGlitch {
  0% { transform: translateX(0); filter: invert(0); }
  25% { transform: translateX(-2px); filter: invert(1); }
  50% { transform: translateX(2px); filter: invert(0); opacity: 0.65; }
  75% { transform: translateX(-1px); opacity: 0.9; }
  100% { transform: translateX(0); filter: invert(0); opacity: 1; }
}
.metric-glitch-card[data-card-glitching="true"] .metric-glitch-stack { animation: cardScanGlitch 0.24s steps(2, end); }
.site-footer { border-top: 1px solid #161616; padding: 1.15rem 1.5rem; font-size: 0.76rem; color: var(--dim); }
.footer-row { max-width: 62rem; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-links a, .footer-btn { appearance: none; background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); text-decoration: none; cursor: pointer; }
.footer-links a:hover, .footer-btn:hover { color: var(--fg); }
.mono-modal { background: #050505; color: var(--fg); border: 1px solid var(--line-strong); padding: 1.85rem; max-width: 31rem; width: calc(100vw - 2rem); }
.mono-modal::backdrop { background: rgba(0, 0, 0, 0.84); }
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.15rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.modal-top h2 { margin: 0; font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.modal-x { background: none; border: 1px solid var(--line-strong); color: var(--fg); width: 28px; height: 28px; font-family: var(--mono); cursor: pointer; }
.modal-x:hover { border-color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  .hero-fade, [data-glitching="true"] .glitch-live, .metric-glitch-card[data-card-glitching="true"] .metric-glitch-stack {
    animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important;
  }
}