/* =========================================================================
   Nightlyfe — site design system  (dark, matches the app)
   One palette. 8pt grid. One radius scale. One elevation. No novelty.
   ========================================================================= */
:root {
  /* surfaces (graphite, same family as the app) */
  --bg: #0e141b;
  --surface: #15202a;
  --card: #1b2733;
  --card-2: #22303c;

  /* ink */
  --ink: #f2f6fa;
  --ink-2: #aebbc6;
  --ink-3: #7c8995;

  /* one accent (the app's electric blue) */
  --accent: #1fb6ff;
  --accent-hover: #4cc6ff;
  --accent-ink: #04121c;
  --accent-soft: rgba(31, 182, 255, 0.12);

  /* heat (only for data, never decoration) */
  --chill: #34d399;
  --steady: #fbbf24;
  --busy: #fb923c;
  --packed: #fb7185;

  /* lines + one elevation system */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);

  /* one radius scale */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* 8pt spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1120px;
  --display: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --body: 'Inter', -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--body); color: var(--ink-2); background: var(--bg); line-height: 1.6; font-size: 17px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
/* status badge — meaningful state (e.g. "coming soon"), not a section label */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(31,182,255,0.22); border-radius: var(--r-pill); padding: 5px 12px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 54ch; }
.ink { color: var(--ink); }

/* buttons (one shape, one radius, consistent padding) */
.btn { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px);
  background: rgba(14, 20, 27, 0.78); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--card-2); display: grid; place-items: center; }
.nav-links { display: flex; align-items: center; gap: var(--s8); }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

/* reveal — content is ALWAYS visible at rest (opacity:1). The entrance is a one-shot
   keyframe REPLAY that only runs when JS adds .in. No resting hidden state, so the page
   can never ship blank (JS off, slow, headless renderer, crawler, social preview). */
.reveal { opacity: 1; transform: none; }
html.js .reveal.in { animation: reveal-in .7s var(--ease) both; }
html.js .reveal[data-d="1"].in { animation-delay: .07s; }
html.js .reveal[data-d="2"].in { animation-delay: .14s; }
html.js .reveal[data-d="3"].in { animation-delay: .21s; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .reveal.in { animation: none; } html { scroll-behavior: auto; } }

/* cards (one elevation, one radius) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s8); }
.card.hoverable { transition: border-color .3s var(--ease); }
.card.hoverable:hover { border-color: var(--line-2); }

/* sections + grid */
section { padding: var(--s24) 0; }
.section-head { max-width: 56ch; margin-bottom: var(--s12); }
.section-head h2 { font-size: clamp(28px, 4.5vw, 44px); }
.section-head p { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s6); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
/* mobile nav: CSS-only burger so no features are lost on small screens */
.nav-burger { display: none; }
@media (max-width: 860px) {
  .g3, .g2 { grid-template-columns: 1fr; }
  .nav-inner { position: relative; }
  .nav-inner .brand { margin-right: auto; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; margin-right: var(--s3); }
  .nav-burger span { height: 2px; width: 22px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 var(--s6) var(--s4); z-index: 60; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: var(--s4) 0; border-top: 1px solid var(--line); font-size: 16px; }
}

footer { border-top: 1px solid var(--line); padding: var(--s16) 0 var(--s8); }

/* ---- line-mask reveal (premium heading entrance) ---- */
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask > span { display: block; }            /* visible at rest — never blank */
html.js .in .mask > span, html.js .mask.in > span { animation: mask-in 0.9s var(--ease) both; }
@keyframes mask-in { from { transform: translateY(110%); } to { transform: none; } }
html.js .mask[data-d="1"].in > span { animation-delay: 0.08s; }
html.js .mask[data-d="2"].in > span { animation-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) { html.js .mask.in > span, html.js .in .mask > span { animation: none; } }

/* ---- animated number counters ---- */
.count { font-variant-numeric: tabular-nums; }

/* ---- bar-name marquee (proof of real coverage) ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: var(--s4) 0; }
.marquee-track { display: inline-flex; gap: var(--s8); white-space: nowrap; animation: marquee 45s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--display); font-weight: 600; color: var(--ink-2); font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.marquee-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- live band ---- */
.live-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s12); align-items: center; }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; gap: var(--s8); } }
.live-num { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.live-num .unit { color: var(--accent); }
.hood { display: inline-flex; flex-wrap: wrap; gap: var(--s2); }
.hood span { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 12px; }

/* magnetic button lift */
.btn-primary { will-change: transform; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(31,182,255,0.4); }
