/* ═══════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:        #0B0B18;
  --surface:   #111127;
  --card:      #181830;
  --card-h:    #1E1E3C;
  --border:    #252548;
  --border-h:  #383870;

  --amber:     #E8A045;
  --amber-dim: rgba(232,160,69,.12);
  --amber-glow:rgba(232,160,69,.28);

  --teal:      #00D4AA;
  --teal-dim:  rgba(0,212,170,.10);
  --teal-glow: rgba(0,212,170,.28);

  --red:       #FF6B6B;
  --red-dim:   rgba(255,107,107,.10);

  --violet:    #8B7FFF;
  --violet-dim:rgba(139,127,255,.10);

  --text:      #EDEDF5;
  --soft:      #9090B8;
  --muted:     #55557A;

  --r:  16px;
  --rs: 8px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 100px;
}

/* background orbs */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0;
  animation: orbIn 1.4s var(--ease) forwards, drift 12s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,160,69,.45) 0%, transparent 70%);
  top: -250px; right: -150px;
  animation-delay: 0s, 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,.35) 0%, transparent 70%);
  bottom: -180px; left: -120px;
  animation-delay: .4s, 3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,127,255,.25) 0%, transparent 70%);
  top: 50%; left: 40%;
  animation-delay: .8s, 6s;
}

@keyframes orbIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(25px,-18px) scale(1.04); }
  66%      { transform: translate(-18px,25px) scale(.97); }
}

/* hero content */
.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .6s .2s var(--ease) forwards;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(60px, 11vw, 128px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .7s .35s var(--ease) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--soft);
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .6s .55s var(--ease) forwards;
}

/* stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp .6s .7s var(--ease) forwards;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.stat-sep {
  width: 1px;
  height: 52px;
  background: var(--border);
}

/* CTA */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--amber);
  color: #0B0B18;
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  opacity: 0;
  animation: fadeUp .6s .9s var(--ease) forwards;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px var(--amber-glow);
}

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

/* ═══════════════════════════════════════════════
   INSIGHT BANNER
═══════════════════════════════════════════════ */
.insight-section { padding: 0 0 40px; }

.insight-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 30px;
  background: var(--amber-dim);
  border: 1px solid rgba(232,160,69,.22);
  border-radius: var(--r);
}
.insight-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.insight-box p { font-size: 15px; color: var(--soft); line-height: 1.7; }
.insight-box strong { color: var(--text); }
.insight-box em { color: var(--red); font-style: normal; }

/* ═══════════════════════════════════════════════
   CONTROLS
═══════════════════════════════════════════════ */
.controls-section { padding: 0 0 28px; }

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.ctrl-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctrl-label { font-size: 12px; color: var(--muted); }

.sort-btn, .filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--soft);
  font-size: 13px;
  transition: all .2s var(--ease);
}
.sort-btn:hover, .filter-btn:hover {
  border-color: var(--border-h);
  color: var(--text);
}
.sort-btn.active, .filter-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #0B0B18;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   CARDS GRID
═══════════════════════════════════════════════ */
.cards-section { padding-bottom: 80px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ─── CARD ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);

  /* scroll reveal */
  opacity: 0;
  transform: translateY(24px);
}
.card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s var(--ease), transform .5s var(--ease),
              box-shadow .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.card:hover {
  background: var(--card-h);
  border-color: var(--border-h);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

/* Variants */
.card--best {
  border-color: rgba(0,212,170,.35);
  background: linear-gradient(150deg, #181830, #0D2018);
}
.card--best::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(0,212,170,.12) 0%, transparent 60%);
  pointer-events: none;
}
.card--best:hover {
  box-shadow: 0 24px 64px rgba(0,212,170,.18);
  border-color: rgba(0,212,170,.55);
}

.card--worst { border-color: rgba(255,107,107,.3); }
.card--worst:hover { box-shadow: 0 24px 64px rgba(255,107,107,.12); }

.card--online { border-color: rgba(139,127,255,.3); }
.card--online:hover { box-shadow: 0 24px 64px rgba(139,127,255,.12); }

/* ─── BADGE ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.badge--best   { background: var(--teal-dim);   color: var(--teal);   border: 1px solid rgba(0,212,170,.3); }
.badge--worst  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(255,107,107,.3); }
.badge--online { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(139,127,255,.3); }

/* ─── CARD HEADER ──────────────────────────── */
.card-head { position: relative; z-index: 1; }
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.65;
}

/* ─── METRICS ──────────────────────────────── */
.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.metric {}
.metric-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 3px;
}
.metric-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.metric-val small { font-size: 12px; color: var(--muted); font-weight: 400; }
.v-amber  { color: var(--amber); }
.v-teal   { color: var(--teal); }
.v-red    { color: var(--red); }
.v-muted  { color: var(--muted); font-size: 14px; }
.v-sm     { font-size: 14px; }

/* ─── METER ────────────────────────────────── */
.meter-wrap { position: relative; z-index: 1; }
.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.meter-track {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width 1.1s cubic-bezier(.2,0,.2,1) .15s;
}
.card.revealed .meter-fill { width: var(--w, 0%) !important; }

.m-teal   { background: linear-gradient(90deg, var(--teal), #44FFB0); }
.m-green  { background: linear-gradient(90deg, #7DC74A, #C5E04A); }
.m-amber  { background: linear-gradient(90deg, var(--amber), #F5D040); }
.m-red    { background: linear-gradient(90deg, #FF8C42, var(--red)); }
.m-none   { background: var(--border); }

/* ─── FORMAT TAGS ──────────────────────────── */
.card-formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ftag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--soft);
}

/* ─── FEATURE TAGS ─────────────────────────── */
.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.feature {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--soft);
}

/* ─── CARD LINK ────────────────────────────── */
.card-footer { margin-top: auto; position: relative; z-index: 1; }
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-radius: var(--rs);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  transition: all .22s var(--ease);
}
.card-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}
.card--best .card-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}
.link-arrow {
  font-size: 18px;
  transition: transform .22s var(--ease);
}
.card-link:hover .link-arrow { transform: translateX(5px); }

/* ═══════════════════════════════════════════════
   VERDICT
═══════════════════════════════════════════════ */
.verdict-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.verdict-card {
  padding: 28px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .28s var(--ease);
}
.verdict-card:hover { transform: translateY(-5px); }

.vc--best   { border-color: rgba(0,212,170,.35); }
.vc--practice { border-color: rgba(232,160,69,.35); }
.vc--online { border-color: rgba(139,127,255,.35); }

.vc-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.vc--best .vc-badge    { color: var(--teal); }
.vc--practice .vc-badge { color: var(--amber); }
.vc--online .vc-badge  { color: var(--violet); }

.verdict-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
}
.verdict-card p {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
}

.vc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  align-self: flex-start;
  transition: all .22s var(--ease);
}
.vc--best .vc-link    { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,212,170,.3); }
.vc--practice .vc-link { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(232,160,69,.3); }
.vc--online .vc-link  { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(139,127,255,.3); }
.vc-link:hover { filter: brightness(1.25); transform: translateX(4px); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-title { font-size: 56px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-sep { display: none; }
  .controls-bar { flex-direction: column; align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .verdict-grid { grid-template-columns: 1fr; }
  .insight-box { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
