/* ============================================================
   Waivo — shared design system
   Static CSS. No framework. Dark, data-forward, quant aesthetic.
   ============================================================ */

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

:root {
  /* Brand */
  --navy:    #07101f;
  --navy-2:  #0b1729;
  --navy-3:  #0d1c30;
  --cyan:    #00d4d4;
  --cyan-2:  #00f0c8;
  --white:   #eef6ff;
  --muted:   #8aa8c8;
  --muted-2: #5f7a98;

  /* Surfaces */
  --panel:        rgba(255,255,255,0.035);
  --panel-2:      rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.08);
  --border-cyan:  rgba(0,212,212,0.22);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --maxw: 1080px;
  --radius: 16px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Backdrop */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, #0d3a5c 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 110%, #002a3a 0%, transparent 60%),
    var(--navy);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(0,212,212,0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 80%);
}

/* Shell */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 88px 0; }
@media (max-width: 640px){ section { padding: 60px 0; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(7,16,31,0.92) 30%, rgba(7,16,31,0));
  backdrop-filter: blur(8px);
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-wordmark {
  font-size: 21px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--white);
  text-decoration: none; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--border-cyan); background: rgba(0,212,212,0.06);
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: rgba(0,212,212,0.14); transform: translateY(-1px); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,212,212,0.09); border: 1px solid var(--border-cyan);
  border-radius: 100px; padding: 6px 15px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--cyan);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Eyebrow / section headers */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600;
}
.section-head {
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.1; margin: 14px 0 0;
}
.section-intro { color: var(--muted); font-size: clamp(15px,2vw,18px); max-width: 640px; margin-top: 16px; }

/* Typography helpers */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--cyan); }
.grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 55%, #a7f7ea 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons + form (shared with existing signup behavior) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #042022; border: none; border-radius: 12px;
  padding: 14px 24px; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: 0 4px 22px rgba(0,212,212,0.30); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(0,212,212,0.45); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--white); box-shadow: none;
  border: 1px solid var(--border-cyan);
}
.btn-ghost:hover { background: rgba(0,212,212,0.10); box-shadow: none; }

.signup-card {
  width: 100%; max-width: 520px;
  background: var(--panel); border: 1px solid var(--border-cyan);
  border-radius: 20px; padding: 30px 28px; backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.signup-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.signup-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.form-group { display: flex; gap: 10px; }
.form-input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; font-size: 15px; font-family: inherit;
  color: var(--white); outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: rgba(138,168,200,0.6); }
.form-input:focus { border-color: rgba(0,212,212,0.5); box-shadow: 0 0 0 3px rgba(0,212,212,0.10); }
.success-msg {
  display: none; align-items: center; gap: 10px; margin-top: 16px;
  background: rgba(0,212,212,0.10); border: 1px solid rgba(0,212,212,0.3);
  border-radius: 12px; padding: 14px 18px; font-size: 14px; font-weight: 500; color: var(--cyan-2);
}
.success-msg.show { display: flex; }
.privacy-note { font-size: 12px; color: rgba(138,168,200,0.5); margin-top: 14px; text-align: center; }
@media (max-width: 540px){ .form-group { flex-direction: column; } }

/* Generic card grid */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--border-cyan); background: var(--panel-2); }
.card-index { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: .12em; }
.card h3 { font-size: 19px; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.3px; }
.card p { color: var(--muted); font-size: 14.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 900px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px;
  color: var(--muted-2); font-size: 13px;
}
.site-footer .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }

/* Showcase cards + read-more */
.showcase-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.read-more { color: var(--cyan); font-weight: 600; font-size: 14px; margin-top: 16px; display: inline-block; }
.showcase-card:hover .read-more { text-decoration: underline; }

/* ===== Ripple demo ===== */
.ripple-stage {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 30px; border: 1px dashed var(--border-cyan); border-radius: var(--radius);
  background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(0,212,212,0.06), transparent 70%);
}
.ripple-protector {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border-cyan); border-radius: 14px;
  padding: 16px 22px; color: var(--white); font-family: inherit; text-align: left;
  transition: transform .2s, border-color .2s, opacity .3s, background .2s;
}
.ripple-protector:hover { transform: translateY(-2px); background: rgba(0,212,212,0.10); }
.ripple-protector .rp-figure { font-size: 30px; }
.ripple-protector .rp-text { display: flex; flex-direction: column; }
.ripple-protector .rp-text strong { font-size: 16px; }
.ripple-protector .rp-hint { font-size: 12.5px; color: var(--muted); }
.ripple-status { font-size: 12px; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; }

/* Pulled state */
.ripple.pulled .ripple-protector { opacity: .4; border-color: rgba(255,90,90,0.5); border-style: dashed; transform: translateY(2px); }
.ripple.pulled .ripple-status { color: #ff8a8a; }
.ripple-effects .effect { opacity: .32; transform: scale(.99); transition: opacity .45s ease, transform .45s ease, border-color .45s; }
.ripple.pulled .ripple-effects .effect { opacity: 1; transform: none; border-color: var(--border-cyan); }
.ripple.pulled .ripple-effects .effect:nth-child(1){ transition-delay:.05s; }
.ripple.pulled .ripple-effects .effect:nth-child(2){ transition-delay:.15s; }
.ripple.pulled .ripple-effects .effect:nth-child(3){ transition-delay:.25s; }
.ripple.pulled .ripple-effects .effect:nth-child(4){ transition-delay:.35s; }
.ripple-effects .effect .card-index { color: var(--muted-2); }
.ripple.pulled .ripple-effects .effect .card-index { color: var(--cyan); }
@media (prefers-reduced-motion: reduce){ .ripple-effects .effect { opacity:1; transform:none; } }

/* ===== Comparison bar / band component ===== */
.cmp { display: flex; flex-direction: column; gap: 14px; }
.cmp-row { display: grid; grid-template-columns: 130px 1fr 62px; align-items: center; gap: 12px; }
.cmp-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.cmp-track { position: relative; height: 12px; border-radius: 7px; background: rgba(255,255,255,0.06); overflow: hidden; }
.cmp-fill { position: absolute; inset: 0 auto 0 0; border-radius: 7px; background: linear-gradient(90deg, rgba(0,212,212,0.55), var(--cyan)); }
.cmp-fill.dim { background: linear-gradient(90deg, rgba(138,168,200,0.25), rgba(138,168,200,0.5)); }
.cmp-val { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
/* Mobile: override any inline column widths so the bar track stays legible */
@media (max-width: 560px){
  .cmp-row { grid-template-columns: 84px 1fr 96px !important; gap: 8px !important; }
  .cmp-label { font-size: 12px; }
  .cmp-val { font-size: 11.5px; }
}

/* ===== Case-study template ===== */
.case-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.back-bar { position: sticky; top: 0; z-index: 40; background: rgba(7,16,31,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.back-bar .inner { max-width: 760px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.back-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.back-link:hover { color: var(--cyan); }

.case-head { padding: 48px 0 8px; }
.case-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.case-title { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; margin: 14px 0; }
.case-title .a { color: #f0b27a; }   /* side A — warm */
.case-title .b { color: #6fc6f0; }   /* side B — cool */
.case-sub { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.rule { height: 1px; background: var(--border); margin: 22px 0; }

.case-block { padding: 30px 0; border-top: 1px solid var(--border); }
.case-block:first-of-type { border-top: none; }
.block-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.block-title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.6px; margin: 10px 0 12px; }
.block-intro { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.case-block p.body { color: var(--white); opacity: .9; font-size: 15.5px; line-height: 1.7; margin-top: 12px; }
.case-call { font-size: clamp(17px,2.4vw,20px); line-height: 1.6; color: var(--white); }

/* Side-by-side comparison cards (player/team/coach blocks) */
.sides { display: grid; gap: 16px; margin-top: 18px; }
.side { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; border-top: 3px solid var(--muted-2); }
.side.warm { border-top-color: #f0b27a; }
.side.cool { border-top-color: #6fc6f0; }
.side-name { font-size: 18px; font-weight: 700; }
.side-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.side-stat { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; }
.side-stat .big { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--cyan); white-space: nowrap; }
.side.warm .side-stat .big { color: #f0b27a; }
.side.cool .side-stat .big { color: #6fc6f0; }
.side-stat .desc { font-size: 14px; color: var(--muted); }
.side .txt { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--white); opacity: .88; }

/* Why-it-matters callout — left accent border (consistent across all pieces) */
.why { border-left: 3px solid var(--cyan); background: rgba(0,212,212,0.05); padding: 16px 18px; border-radius: 0 10px 10px 0; margin-top: 20px; font-size: 15px; line-height: 1.65; }
.why b, .why strong { color: var(--cyan); }
.callout { border-left: 3px solid #f0b27a; background: rgba(240,178,122,0.06); padding: 16px 18px; border-radius: 0 10px 10px 0; margin-top: 18px; font-size: 14.5px; line-height: 1.6; }
.callout .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #f0b27a; display: block; margin-bottom: 8px; }
.proof { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--cyan); background: rgba(0,212,212,0.06); border: 1px solid var(--border-cyan); border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.proof .lbl { color: var(--muted); }

/* Stat trios */
.stat-trio { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.stat-trio .cell { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat-trio .cell .big { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--cyan); line-height: 1.15; }
.stat-trio .cell .desc { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
@media (max-width: 560px){ .stat-trio { grid-template-columns: 1fr; } }

/* Framework cards (How Waivo grades) */
.framework { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
.framework .fc { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.framework .fc .n { font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.framework .fc h4 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.framework .fc p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px){ .framework { grid-template-columns: 1fr; } }

/* Timeline (coaching track record) */
.timeline { margin-top: 18px; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.tl-when { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }
.tl-when .where { display: block; color: var(--muted-2); margin-top: 2px; }
.tl-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tl-body p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px){ .tl-item { grid-template-columns: 1fr; gap: 6px; } }

/* Stack → call verdict */
.verdict { background: linear-gradient(180deg, rgba(0,212,212,0.06), transparent); border: 1px solid var(--border-cyan); border-radius: 16px; padding: 26px; margin-top: 18px; }
.verdict .v-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.verdict .v-title { font-size: clamp(20px,3vw,26px); font-weight: 800; letter-spacing: -0.5px; margin: 8px 0 12px; }
.verdict p { color: var(--white); opacity: .9; font-size: 15.5px; line-height: 1.7; }
.tagline { font-family: var(--mono); font-size: 15px; color: var(--cyan); margin-top: 18px; text-align: center; font-weight: 600; }

/* WAIVO disclaimer footer (source protection — mandatory) */
.waivo-disclaimer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.waivo-disclaimer .mark { font-weight: 800; letter-spacing: 0.5px; }
.waivo-disclaimer .mark .vo { color: var(--cyan); }
.waivo-disclaimer p { font-size: 12.5px; color: var(--muted-2); line-height: 1.65; margin-top: 10px; }

/* End-of-case CTA */
.case-cta { text-align: center; background: var(--panel); border: 1px solid var(--border-cyan); border-radius: 18px; padding: 34px 24px; margin: 30px 0; }
.case-cta h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.case-cta p { color: var(--muted); margin: 10px auto 20px; max-width: 460px; font-size: 15px; }

/* Floor–ceiling band */
.band { position: relative; height: 46px; margin: 10px 0; }
.band-track { position: absolute; top: 50%; left: 0; right: 0; height: 8px; transform: translateY(-50%); border-radius: 6px; background: rgba(255,255,255,0.06); }
.band-range { position: absolute; top: 50%; height: 8px; transform: translateY(-50%); border-radius: 6px; background: linear-gradient(90deg, rgba(0,212,212,0.25), rgba(0,212,212,0.6)); }
.band-marker { position: absolute; top: 50%; width: 3px; height: 24px; transform: translate(-50%,-50%); background: var(--cyan-2); border-radius: 2px; box-shadow: 0 0 10px rgba(0,240,200,0.6); }
.band-marker::after { content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--cyan-2); white-space: nowrap; }
.band-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
