/* ===================================================================
   TOKEN HAPPY HOUR — "After Hours" design system
   A neon-lit terminal lounge. Warm dark, amber glow, happy-hour pop.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:ital,wght@0,400..800;1,400..600&family=JetBrains+Mono:wght@400;500;700&family=Monoton&display=swap');

:root {
  /* surfaces */
  --ink:        #0c0907;
  --ink-2:      #110b07;
  --surface:    #1a1209;
  --surface-2:  #241810;
  --line:       rgba(255, 178, 92, 0.16);
  --line-soft:  rgba(255, 178, 92, 0.08);

  /* text */
  --cream:      #f6ead6;
  --cream-dim:  #cdb799;
  --muted:      #93805f;

  /* accents */
  --amber:      #ffb13b;
  --amber-deep: #ff8c1a;
  --coral:      #ff5d52;
  --pink:       #ff4d97;
  --teal:       #34e3c4;

  /* glow shorthands */
  --glow-amber: 0 0 18px rgba(255,177,59,0.55), 0 0 42px rgba(255,140,26,0.30);
  --glow-pink:  0 0 16px rgba(255,77,151,0.55), 0 0 40px rgba(255,77,151,0.28);

  --maxw: 1180px;
  --r: 16px;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-neon: 'Monoton', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* --- Atmospheric background: warm bar lighting + grain + scanlines --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(255,140,26,0.20), transparent 60%),
    radial-gradient(50% 45% at 12% 90%, rgba(255,77,151,0.14), transparent 65%),
    radial-gradient(70% 60% at 50% 120%, rgba(52,227,196,0.07), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink) 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ----------------------------- Layout ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ------------------------------- Nav ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(12,9,7,0.85), rgba(12,9,7,0.35));
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav__brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: pulse 2.4s ease-in-out infinite;
}
.nav__links { display: flex; gap: 6px; align-items: center; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--cream); background: var(--surface); }
.nav__links a.active { color: var(--amber); }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

/* ------------------------- Neon OPEN sign ------------------------- */
.neon-sign {
  font-family: var(--font-neon);
  color: var(--coral);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-shadow: var(--glow-pink);
  animation: flicker 5s infinite;
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: var(--glow-pink); }
  20%, 24%, 55% { opacity: 0.35; text-shadow: none; }
}

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; padding: clamp(60px, 12vh, 130px) 0 80px; }
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  opacity: 0; animation: rise .8s .1s forwards;
}
.hero__kicker::before { content: "›_"; color: var(--teal); }

.wordmark { line-height: 0.86; margin-bottom: 28px; }
.wordmark .l1 {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  letter-spacing: -0.03em;
  color: var(--cream);
  opacity: 0; animation: rise .9s .2s forwards;
}
.wordmark .l2 {
  display: block;
  font-family: var(--font-neon);
  font-size: clamp(1.9rem, 6.6vw, 5.3rem);
  color: var(--amber);
  text-shadow: var(--glow-amber);
  margin-top: 0.18em;
  opacity: 0; animation: rise .9s .35s forwards, hum 4s 1.4s infinite;
}
@keyframes hum {
  0%,100% { text-shadow: var(--glow-amber); }
  48% { text-shadow: 0 0 22px rgba(255,177,59,0.75), 0 0 60px rgba(255,140,26,0.45); }
}

.hero__sub {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--cream-dim);
  margin-bottom: 22px;
  opacity: 0; animation: rise .9s .5s forwards;
}
.hero__sub b { color: var(--cream); font-weight: 600; }

.ticket {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--cream-dim);
  padding: 12px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255,177,59,0.04);
  margin-bottom: 38px;
  opacity: 0; animation: rise .9s .62s forwards;
}
.ticket .sep { color: var(--amber); }
.ticket b { color: var(--amber); font-weight: 700; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: rise .9s .75s forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ----------------------------- Buttons ---------------------------- */
.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--primary {
  background: var(--amber); color: #2a1604;
  box-shadow: var(--glow-amber);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(255,177,59,0.8), 0 0 60px rgba(255,140,26,0.4); }
.btn--ghost {
  background: transparent; color: var(--cream);
  border-color: var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--amber); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------- Stat strip --------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 70px;
  opacity: 0; animation: rise 1s .9s forwards;
}
.stat { background: var(--ink); padding: 28px 26px; }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--amber); line-height: 1; }
.stat__l { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* --------------------------- Section -------------------------- */
.section { padding: 80px 0; }
.section__eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em;
  line-height: 1.02; margin-bottom: 18px; color: var(--cream);
}
.section__lead { max-width: 640px; color: var(--cream-dim); font-size: 1.1rem; }

/* --------------------------- Feature cards --------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  background: linear-gradient(160deg, var(--surface), var(--ink) 130%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card__ico { font-size: 1.6rem; margin-bottom: 18px; display: block; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--cream-dim); font-size: 0.98rem; }
.card::after {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 60%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,26,0.12), transparent 70%);
  pointer-events: none;
}

/* ============================ EVENTS PAGE ============================ */
.countdown-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(255,140,26,0.14), transparent 60%),
    var(--surface);
  padding: 46px 32px;
  text-align: center;
  margin-top: 40px;
}
.countdown-wrap .when {
  font-family: var(--font-mono); color: var(--amber); letter-spacing: 0.06em;
  font-size: 0.92rem; text-transform: uppercase; margin-bottom: 8px;
}
.countdown-date { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,4vw,2.6rem); color: var(--cream); margin-bottom: 28px; }
.countdown { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cd-unit {
  min-width: 96px; padding: 18px 12px;
  background: var(--ink); border: 1px solid var(--line-soft); border-radius: 14px;
}
.cd-unit .v { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem,5vw,2.9rem); color: var(--amber); text-shadow: 0 0 14px rgba(255,177,59,0.4); line-height: 1; }
.cd-unit .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.cd-live { margin-top: 24px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--coral); }

.run-list { list-style: none; display: grid; gap: 14px; margin-top: 40px; }
.run-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--surface);
}
.run-list .t { font-family: var(--font-mono); color: var(--amber); font-weight: 700; min-width: 70px; }
.run-list h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 2px; }
.run-list p { color: var(--cream-dim); font-size: 0.95rem; }

/* ============================ LINKS PAGE ============================ */
.links-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 36px 0 10px; }
.search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--surface);
}
.search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--cream); font-family: var(--font-body); font-size: 0.98rem;
}
.search input::placeholder { color: var(--muted); }
.search .ico { color: var(--amber); }

.tagbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.tag-chip {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-soft); background: transparent; color: var(--cream-dim);
  transition: all .15s;
}
.tag-chip:hover { border-color: var(--line); color: var(--cream); }
.tag-chip.active { background: var(--amber); color: #2a1604; border-color: var(--amber); }

.links-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  margin: 10px 0 26px;
}
.links-meta .live { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); }
.links-meta .live .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 1.8s infinite; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.link-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--surface), var(--ink) 140%);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
}
.link-card:hover { transform: translateY(-4px); border-color: var(--amber); box-shadow: 0 14px 40px rgba(0,0,0,0.4); }
.link-card .lc-host { font-family: var(--font-mono); font-size: 0.74rem; color: var(--amber); letter-spacing: 0.03em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.link-card .lc-host::before { content: "→"; color: var(--teal); }
.link-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.2; margin-bottom: 8px; }
.link-card p { color: var(--cream-dim); font-size: 0.92rem; flex: 1; }
.link-card .lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.link-card .lc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-tag { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 9px; border-radius: 6px; background: rgba(255,177,59,0.1); color: var(--amber); }
.link-card .lc-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

.empty, .loading {
  text-align: center; padding: 70px 20px; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.95rem;
  border: 1px dashed var(--line-soft); border-radius: var(--r);
}
.empty .big { font-size: 2.4rem; display: block; margin-bottom: 14px; }

/* ----------------------------- Footer ----------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 90px; padding: 40px 0 60px;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.footer a { color: var(--cream-dim); text-decoration: none; }
.footer a:hover { color: var(--amber); }

/* ----------------------------- Utilities -------------------------- */
.glow-text { color: var(--amber); text-shadow: var(--glow-amber); }
.mono { font-family: var(--font-mono); }

@media (max-width: 640px) {
  .nav__links a { padding: 8px 10px; font-size: 0.76rem; }
  .stats { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__kicker, .wordmark .l1, .wordmark .l2, .hero__sub, .ticket, .cta-row, .stats { opacity: 1 !important; }
}
