/* =========================================================================
   TURBO CLUB — design system
   Dark, premium, high-energy B2B events brand.
   ========================================================================= */

:root {
  /* surfaces */
  --ink:        #0A0B0F;
  --ink-2:      #101218;
  --surface:    #15171F;
  --surface-2:  #1C1F29;
  --line:       rgba(255,255,255,.08);
  --line-2:     rgba(255,255,255,.14);

  /* text */
  --text:       #F4F5F8;
  --muted:      #A1A7B4;
  --faint:      #818794;

  /* brand */
  --turbo:      #FF5A1F;   /* hot orange — primary */
  --turbo-2:    #FF2D78;   /* magenta — gradient partner */
  --volt:       #C6FF3D;   /* electric lime — energy accent */
  --grad:       linear-gradient(100deg, #FF5A1F 0%, #FF2D78 100%);

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  --radius:   18px;
  --radius-s: 12px;
  --maxw:     1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--turbo); color: #fff; }
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ambient background glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 60vw at 78% -10%, rgba(255,90,31,.16), transparent 60%),
    radial-gradient(50vw 50vw at 8% 10%, rgba(255,45,120,.10), transparent 60%);
  pointer-events: none; z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* ---------------------------- typography ---------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--turbo);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); display: inline-block; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 60ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------ buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,90,31,.6); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255,90,31,.75); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ------------------------------ navbar ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(10,11,15,.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 15px; transform: skewX(-8deg);
  box-shadow: 0 6px 18px -6px rgba(255,90,31,.7);
}
.brand .mark .icon { transform: skewX(8deg); color: #fff; }
.nav-burger .icon { color: var(--text); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ------------------------------- hero ------------------------------- */
.hero { padding: clamp(70px, 12vw, 130px) 0 70px; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); max-width: 16ch; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); }
.hero-stats .stat .l { color: var(--muted); font-size: 14px; }

/* ------------------------------ sections ---------------------------- */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section-head { max-width: 70ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 5vw, 50px); margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* card grid */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------------------- event card ---------------------------- */
.ev-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s;
}
.ev-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.ev-cover {
  height: 168px; position: relative; display: grid; place-items: center; overflow: hidden;
}
.ev-cover.ev-cover-lg { height: 260px; border-radius: var(--radius); }
.ev-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.45)); }
.ev-cover .deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ev-cover-glow { position: absolute; width: 70%; height: 140%; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 0; opacity: .55; filter: blur(6px); }
.ev-cover-icon { position: relative; z-index: 2; display: grid; place-items: center; filter: drop-shadow(0 10px 26px rgba(0,0,0,.55)); }
.ev-cover-icon .icon { stroke-width: 1.4; }
.ev-card:hover .ev-cover-icon { transform: scale(1.06); transition: transform .3s ease; }
.ev-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ev-body h3 { font-size: 21px; }
.ev-meta { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 5px; }
.ev-meta .row { display: flex; align-items: center; gap: 8px; }
.ev-meta .row .icon { color: var(--faint); }
.ev-card .btn { margin-top: auto; align-self: flex-start; }

/* tags & status pills */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; gap: 6px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-status {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.pill-live   { background: rgba(198,255,61,.16); color: var(--volt); border: 1px solid rgba(198,255,61,.4); }
.pill-soon   { background: rgba(255,90,31,.16); color: var(--turbo); border: 1px solid rgba(255,90,31,.4); }
.pill-past   { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }

/* filter bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filters button {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
  transition: all .15s;
}
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button.active { background: var(--grad); border-color: transparent; color: #fff; }

/* feature strip (about-club teaser on home) */
.feature { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(255,90,31,.12); border: 1px solid rgba(255,90,31,.2); display: grid; place-items: center; color: var(--turbo); }
.feature .ic .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===================== event detail page ===================== */
.detail-hero { padding: 50px 0 30px; }
.back-link { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.back-link:hover { color: var(--text); }
.back-link .icon { transform: rotate(180deg); }
.detail-hero .tags { display: flex; gap: 10px; margin: 18px 0 20px; flex-wrap: wrap; }
.detail-hero h1 { font-size: clamp(34px, 6vw, 64px); max-width: 18ch; }
.detail-hero .tagline { color: var(--muted); font-size: clamp(16px,2vw,20px); margin-top: 18px; max-width: 60ch; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; padding-bottom: 90px; }
.detail-main { display: flex; flex-direction: column; gap: 40px; }
.block h2 { font-size: 26px; margin-bottom: 16px; }
.block p { color: #C9CDD6; }
.hl-list { list-style: none; display: grid; gap: 10px; }
.hl-list li { display: flex; gap: 11px; align-items: flex-start; color: #C9CDD6; }
.hl-list li::before { content: "▸"; color: var(--turbo); font-weight: 700; }

/* sticky info card */
.info-card { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row .ic { width: 24px; display: grid; place-items: center; color: var(--turbo); margin-top: 1px; }
.info-row .k { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.info-row .v { font-weight: 600; }
.info-card .btn { width: 100%; justify-content: center; }
.info-divider { height: 1px; background: var(--line); }

/* tournament-specific blocks */
.prize-pool-banner {
  background: var(--grad); border-radius: var(--radius); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 24px 60px -28px rgba(255,90,31,.7);
}
.prize-pool-banner .amt { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 64px); color: #fff; line-height: 1; }
.prize-pool-banner .lbl { color: rgba(255,255,255,.85); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.table th { background: var(--surface-2); font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table td.rank { font-family: var(--display); font-weight: 700; color: var(--turbo); }
.table td.prize { color: var(--volt); font-weight: 600; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; }

.rules-list { list-style: none; counter-reset: r; display: grid; gap: 12px; }
.rules-list li { counter-increment: r; display: flex; gap: 14px; color: #C9CDD6; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.rules-list li::before { content: counter(r); font-family: var(--display); font-weight: 700; color: var(--turbo); min-width: 22px; }

/* ----------------------------- CTA band ----------------------------- */
.cta-band { background: var(--grad); border-radius: var(--radius); padding: clamp(40px,7vw,68px); text-align: center; box-shadow: 0 30px 80px -36px rgba(255,90,31,.7); }
.cta-band h2 { font-size: clamp(28px,5vw,46px); color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 14px auto 28px; max-width: 50ch; }
.cta-band .btn-ghost { background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-light { background: #fff; color: var(--ink); }

/* join form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); font-family: var(--display); font-weight: 600; letter-spacing: .03em; }
.field input, .field select, .field textarea {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 13px 15px; color: var(--text); font-family: var(--body); font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turbo); }
.form-note { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* ------------------------------ footer ------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 14px; max-width: 38ch; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; flex-wrap: wrap; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* keyboard focus — visible ring for a11y (only on keyboard nav) */
:focus-visible { outline: 2px solid var(--turbo); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .ev-card a:focus-visible { outline-offset: 4px; }
.filters button:focus-visible, .nav-links a:focus-visible { outline-offset: 2px; }

/* anchor offset so #past heading isn't hidden under the sticky nav */
[id] { scroll-margin-top: 88px; }

/* respect reduced-motion: no entrance animation, no transform-based motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .ev-card:hover, .ev-card:hover .ev-cover-icon { transform: none !important; }
}

/* ----------------------------- responsive --------------------------- */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
