/* ============================================================
   CLUBTRACK — Marketing Site
   Design tokens: Ink #0F172A · Red #E11D2A · Blue #1D4ED8
   Display: Archivo · Body: Inter · Data/mono: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #0F172A;
  --ink-2: #16213A;
  --ink-3: #1E2A47;
  --red: #E11D2A;
  --red-d: #B5121D;
  --blue: #1D4ED8;
  --blue-l: #3B6BF0;
  --mist: #F5F6F9;
  --paper: #FFFFFF;
  --line: #E4E7EE;
  --slate: #64748B;
  --slate-d: #475569;
  --gold: #C9971F;
  --green: #16A34A;

  --display: 'Archivo', 'Arial Black', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lift: 0 20px 60px rgba(15,23,42,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ── Reveal-on-scroll ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1){transition-delay:.03s}
.reveal-stagger.in > *:nth-child(2){transition-delay:.1s}
.reveal-stagger.in > *:nth-child(3){transition-delay:.17s}
.reveal-stagger.in > *:nth-child(4){transition-delay:.24s}
.reveal-stagger.in > *:nth-child(5){transition-delay:.31s}
.reveal-stagger.in > *:nth-child(6){transition-delay:.38s}
.reveal-stagger.in > *:nth-child(7){transition-delay:.45s}
.reveal-stagger.in > *:nth-child(8){transition-delay:.52s}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px;
  font-family: var(--body); transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(225,29,42,.28); }
.btn-primary:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(225,29,42,.36); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.15); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; }
.brand img { width: 34px; height: 34px; }
.brand .c1 { color: var(--red); }
.brand .c2 { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--slate-d); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .signin { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: 84px 0 0;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; }
.hero-glow.r { width: 480px; height: 480px; background: var(--red); top: -160px; right: -120px; }
.hero-glow.b { width: 420px; height: 420px; background: var(--blue); bottom: -140px; left: -100px; opacity: .28; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .09em; color: #FCA5AC; background: rgba(225,29,42,.14); border: 1px solid rgba(225,29,42,.35);
  padding: 7px 14px; border-radius: 100px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 22px 0 20px; }
.hero h1 .hl-r { color: var(--red); }
.hero h1 .hl-b { color: var(--blue-l); }
.hero-sub { font-size: 17.5px; color: #B8C1D9; max-width: 600px; margin: 0 auto 34px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 13px; color: #93A0BD; margin-bottom: 64px; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: #5C7099; flex-shrink: 0; }

/* Product mock window */
.mockwrap { position: relative; z-index: 2; padding: 0 20px; }
.mock-window {
  max-width: 980px; margin: 0 auto; background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-lift); overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  transform: translateY(2px);
}
.mock-chrome { background: #EEF0F5; padding: 12px 16px; display: flex; align-items: center; gap: 7px; }
.mock-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #D7DBE3; }
.mock-body { background: var(--mist); padding: 22px 26px 0; }
.mock-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-topbar h4 { font-family: var(--display); font-size: 18px; color: var(--ink); }
.mock-role { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--slate); }
.mock-logout { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }
.mock-range { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.mock-range .seg { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--slate-d); }
.mock-range .seg.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.mock-range .exp { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 7px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.mock-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.mock-kpi .lbl { font-size: 10.5px; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; }
.mock-kpi .val { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.mock-kpi .delta { font-size: 10.5px; color: var(--green); margin-top: 2px; }
.mock-kpi .delta.warn { color: var(--red); }
.mock-alert { background: #FFF7E6; border: 1px solid #F5D98B; border-radius: 9px; padding: 10px 14px; font-size: 12px; color: #8A6416; margin-bottom: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.mock-alert b { color: #6B4A0C; }
.mock-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-chart { background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; padding: 14px 16px 0; height: 108px; overflow: hidden; }
.mock-chart .ct { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; }
.mock-bars i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; opacity: .85; }
.mock-bars i:last-child { background: var(--red); }

/* ── Stat strip ─────────────────────────────────────── */
.statstrip { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.06); }
.statstrip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: #fff; }
.stat-item .lbl { font-size: 12px; color: #93A0BD; margin-top: 4px; }

/* ── Generic section scaffolding ────────────────────── */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); }
.section-head p { font-size: 16px; color: var(--slate-d); margin-top: 14px; line-height: 1.65; }
.on-dark .kicker { color: #FCA5AC; }
.on-dark .section-head h2 { color: #fff; }
.on-dark .section-head p { color: #B8C1D9; }

/* ── Problem section ────────────────────────────────── */
.problem { background: var(--paper); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.pcard .icn { width: 50px; height: 50px; border-radius: 12px; background: #FCE4E6; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pcard .icn svg { width: 24px; height: 24px; color: var(--red); }
.pcard h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.pcard p { font-size: 14.5px; color: var(--slate-d); line-height: 1.6; }

/* ── Split feature (dashboard deep-dive + login) ────── */
.split { background: var(--mist); }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .bullets li { display: flex; gap: 14px; margin-bottom: 22px; }
.split .bullets .dot { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.split .bullets .dot svg { width: 16px; height: 16px; color: #fff; }
.split .bullets h4 { font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.split .bullets p { font-size: 14px; color: var(--slate-d); line-height: 1.55; }

/* login mock card */
.login-mock { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 40px 36px; max-width: 380px; margin: 0 auto; border: 1px solid var(--line); }
.login-mock .lm-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.login-mock .lm-logo img { width: 30px; }
.login-mock .lm-sub { text-align: center; font-size: 12px; color: var(--slate); margin-bottom: 26px; }
.login-mock label { display: block; font-size: 12px; font-weight: 700; color: var(--slate-d); margin-bottom: 6px; }
.login-mock .fld { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 8px; margin-bottom: 18px; background: #FAFBFC; }
.login-mock .fwd { text-align: center; font-size: 12.5px; color: var(--blue); margin-top: 14px; font-weight: 600; }

/* ── Features grid ──────────────────────────────────── */
.features { background: var(--paper); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fcard { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .18s, transform .18s, box-shadow .18s; }
.fcard:hover { border-color: transparent; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.fcard .icn { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fcard .icn svg { width: 21px; height: 21px; }
.fcard.t-r .icn { background: #FCE4E6; } .fcard.t-r .icn svg { color: var(--red); }
.fcard.t-b .icn { background: #DCE7FC; } .fcard.t-b .icn svg { color: var(--blue); }
.fcard h3 { font-size: 15.5px; margin-bottom: 8px; color: var(--ink); }
.fcard p { font-size: 13.5px; color: var(--slate-d); line-height: 1.55; }

/* ── Roles ──────────────────────────────────────────── */
.roles { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rcard { background: var(--ink-2); border-radius: var(--radius); padding: 28px 24px; border: 1px solid rgba(255,255,255,.06); }
.rcard .rtag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #FCA5AC; background: rgba(225,29,42,.15); padding: 4px 10px; border-radius: 100px; margin-bottom: 16px; }
.rcard h3 { font-size: 18px; margin-bottom: 10px; }
.rcard p { font-size: 13.5px; color: #B8C1D9; line-height: 1.6; }

/* ── How it works ───────────────────────────────────── */
.how { background: var(--paper); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.hstep { position: relative; padding: 0 22px 0 0; }
.hstep .hn { font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 14px; }
.hstep h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--ink); }
.hstep p { font-size: 13.5px; color: var(--slate-d); line-height: 1.6; }
.hstep .hline { position: absolute; top: 9px; left: calc(100% - 14px); width: calc(100% - 8px); height: 1px; background: var(--line); }
.hstep:last-child .hline { display: none; }

/* ── Security (dark) ────────────────────────────────── */
.security { background: var(--ink); color: #fff; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scard { display: flex; gap: 18px; padding: 8px 0; }
.scard .icn { flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px; background: var(--red); display: flex; align-items: center; justify-content: center; }
.scard .icn svg { width: 21px; height: 21px; color: #fff; }
.scard h4 { font-size: 15.5px; margin-bottom: 6px; }
.scard p { font-size: 13.5px; color: #B8C1D9; line-height: 1.6; }

/* ── Plans ──────────────────────────────────────────── */
.plans { background: var(--mist); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; }
.plan.feat { border-color: var(--red); box-shadow: 0 12px 34px rgba(225,29,42,.14); position: relative; }
.plan.feat::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 28px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 100px; }
.plan h3 { font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.plan .pdesc { font-size: 13.5px; color: var(--slate); margin-bottom: 20px; }
.plan .price { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan .price small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--slate); margin-top: 4px; }
.plan ul { flex: 1; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; font-size: 13.5px; color: var(--slate-d); margin-bottom: 13px; line-height: 1.4; }
.plan li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq { background: var(--paper); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; text-align: left; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.faq-q .plus::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-q .plus::after { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item.open .plus::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { font-size: 14.5px; color: var(--slate-d); line-height: 1.65; padding: 0 4px 22px; max-width: 660px; }

/* ── Final CTA ──────────────────────────────────────── */
.cta-final { background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-final .hero-glow.r { top: -220px; right: -80px; }
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; position: relative; z-index: 2; }
.cta-final p { font-size: 16px; color: #B8C1D9; max-width: 480px; margin: 0 auto 34px; position: relative; z-index: 2; }
.cta-final .hero-actions { position: relative; z-index: 2; margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────── */
footer { background: #0B1220; color: #93A0BD; padding: 70px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; line-height: 1.65; max-width: 280px; }
.foot-col h5 { font-family: var(--body); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5C7099; margin-bottom: 18px; }
.foot-col li { margin-bottom: 12px; font-size: 13.5px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.foot-social { display: flex; gap: 14px; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; }
.foot-social svg { width: 15px; height: 15px; }
.foot-social a:hover { background: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-cta .signin { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: none; flex-direction: column; gap: 4px; background: #fff; border-top: 1px solid var(--line); padding: 10px 28px 20px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 0; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; }

  .problem-grid, .feat-grid, .roles-grid, .sec-grid, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; }
  .hstep .hline { display: none; }
  .split-inner { grid-template-columns: 1fr; gap: 48px; }
  .split .order-2 { order: 2; }
  .statstrip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .hero { padding-top: 64px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-charts { grid-template-columns: 1fr; }
  .problem-grid, .feat-grid, .roles-grid, .sec-grid, .plans-grid, .how-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .plan.feat { transform: none; }
  .hero-trust { gap: 14px 20px; }
}
