/* =========================================================
   Silverbhai — Silver Premium Design System
   Fonts: Schibsted Grotesk (headings) + JetBrains Mono (body)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette */
  --primary: #94a3b8;        /* silver */
  --primary-light: #cbd5e1;
  --primary-lighter: #e2e8f0;
  --primary-dark: #64748b;
  --secondary: #475569;
  --bg-body: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-dark: #1e293b;
  --bg-darker: #0f172a;
  --highlight: #3b82f6;      /* blue CTA */
  --highlight-dark: #2563eb;
  --highlight-light: #60a5fa;

  /* Gold accent (ties to brand logo) */
  --gold: #f5c518;
  --gold-dark: #d4a017;

  /* Text */
  --text: #1e293b;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --text-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-dark: #334155;

  /* Status */
  --success: #10b981;
  --danger: #ef4444;

  /* Metallic gradients */
  --silver-gradient: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 30%, #94a3b8 55%, #cbd5e1 80%, #e2e8f0 100%);
  --silver-shine: linear-gradient(135deg, #ffffff 0%, #e2e8f0 25%, #94a3b8 50%, #64748b 75%, #cbd5e1 100%);
  --dark-gradient: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gold-gradient: linear-gradient(135deg, #fde68a 0%, #f5c518 50%, #d4a017 100%);

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
  --shadow-blue: 0 8px 24px rgba(59, 130, 246, 0.35);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  --font-head: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
}

a { color: var(--highlight); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--highlight-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout Helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.mono-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
}
.eyebrow-center { text-align: center; margin-bottom: 52px; }

/* Silver text shimmer */
.silver-text {
  background: var(--silver-shine);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45);
}
.btn-silver {
  background: var(--silver-gradient);
  color: var(--bg-dark);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-silver:hover { color: var(--bg-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--highlight);
  border: 1.5px solid var(--highlight);
}
.btn-outline:hover { background: var(--highlight); color: #fff; }
.btn-lg { padding: 17px 40px; font-size: 1rem; }
.btn-block { width: 100%; }

/* WhatsApp button */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb955; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--bg-dark); letter-spacing: -0.02em; }
.logo-text span { color: var(--highlight); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--bg-dark); background: var(--bg-soft); }
.main-nav a.nav-cta { background: var(--blue-gradient); color: #fff; box-shadow: var(--shadow-blue); }
.main-nav a.nav-cta:hover { transform: translateY(-1px); color: #fff; }
.main-nav a.active { color: var(--highlight); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--bg-dark); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark-gradient);
  color: var(--text-light);
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(148, 163, 184, 0.18), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.2), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); color: #fff; margin-bottom: 22px; line-height: 1.08; }
.hero p.lead { font-size: 1.05rem; color: var(--primary-light); max-width: 540px; margin-bottom: 34px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--primary-light);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff; display: block; }
.hero-stat .num span { color: var(--gold); }
.hero-stat .lbl { font-size: 0.76rem; color: var(--text-soft); letter-spacing: 0.06em; }

/* Hero visual — metallic silver card */
.hero-visual { position: relative; }
.silver-card {
  background: var(--silver-gradient);
  border-radius: var(--radius-lg);
  padding: 3px;
  box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  position: relative;
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}
.silver-card:hover { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg); }
.silver-card-inner {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-radius: calc(var(--radius-lg) - 3px);
  padding: 28px;
}
.silver-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.silver-card-head .chip { font-size: 0.72rem; color: var(--primary-light); letter-spacing: 0.14em; text-transform: uppercase; }
.silver-card-head .live { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--success); }
.silver-card-head .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
.rate-display { text-align: center; padding: 14px 0 20px; }
.rate-display .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; }
.rate-display .price small { font-size: 1rem; color: var(--primary); }
.rate-display .change { font-size: 0.9rem; margin-top: 4px; }
.rate-display .change.up { color: var(--success); }
.rate-display .change.down { color: var(--danger); }
.mini-chart { width: 100%; height: 80px; margin-top: 6px; }
.card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.card-metric { background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.15); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.card-metric .v { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.95rem; }
.card-metric .k { font-size: 0.64rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--bg-dark); padding: 22px 0; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--primary-light); font-size: 0.85rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ---------- Cards / Features ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all var(--transition);
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--silver-gradient);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.card-icon svg { width: 26px; height: 26px; color: var(--bg-dark); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.9rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Tool cards (interactive teasers) */
.tool-card { overflow: hidden; padding: 0; }
.tool-card .tool-head { padding: 26px 26px 0; }
.tool-badge { display: inline-block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--highlight); background: rgba(59,130,246,0.1); padding: 4px 10px; border-radius: 100px; font-weight: 600; margin-bottom: 14px; }
.tool-card .tool-viz { margin: 18px 0 0; padding: 0 26px 26px; }

/* ---------- Games showcase ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 3;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.game-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-tile:hover img { transform: scale(1.07); }
.game-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 55%);
}
.game-tile .game-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.game-tile .game-label .name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; }
.game-tile .game-label .tag { font-size: 0.68rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.game-tile .play-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(37, 211, 102, 0.92); color: #fff;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 11px; border-radius: 100px; text-transform: uppercase;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-gradient); color: var(--gold);
  margin-bottom: 16px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.86rem; }

/* ---------- Split / CTA band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta-band {
  background: var(--dark-gradient);
  border-radius: var(--radius-xl);
  padding: 58px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.22), transparent 50%), radial-gradient(circle at 75% 60%, rgba(148,163,184,0.18), transparent 50%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { color: var(--primary-light); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Feature list ---------- */
.feature-list { display: flex; flex-direction: column; gap: 18px; }
.feature-row { display: flex; gap: 15px; align-items: flex-start; }
.feature-row .fr-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(59,130,246,0.1); display: flex; align-items: center; justify-content: center;
}
.feature-row .fr-icon svg { width: 21px; height: 21px; color: var(--highlight); }
.feature-row h4 { font-size: 1rem; margin-bottom: 3px; }
.feature-row p { color: var(--text-muted); font-size: 0.86rem; }

/* ---------- Stats band ---------- */
.stat-band { background: var(--silver-gradient); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); }
.stat-band .grid-4 { gap: 20px; }
.stat-box { text-align: center; }
.stat-box .num { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: var(--bg-dark); }
.stat-box .lbl { font-size: 0.8rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  background: var(--dark-gradient);
  color: var(--text-light);
  padding: 60px 54px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(59,130,246,0.2), transparent 45%), radial-gradient(circle at 80% 80%, rgba(148,163,184,0.15), transparent 45%);
}
.auth-visual > * { position: relative; z-index: 2; }
.auth-visual h2 { color: #fff; font-size: 2rem; margin-bottom: 18px; }
.auth-visual p { color: var(--primary-light); margin-bottom: 30px; }
.auth-perks { display: flex; flex-direction: column; gap: 16px; }
.auth-perk { display: flex; align-items: center; gap: 12px; color: var(--primary-light); font-size: 0.9rem; }
.auth-perk svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px 40px; background: var(--bg-body); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form .form-head { margin-bottom: 28px; }
.auth-form h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-form .form-head p { color: var(--text-muted); font-size: 0.9rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; margin-bottom: 7px; color: var(--secondary); }
.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.form-input-group { position: relative; }
.form-input-group .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-soft); padding: 4px; }
.form-input-group .toggle-pass svg { width: 18px; height: 18px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.84rem; }
.checkbox-line { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.checkbox-line input { width: 16px; height: 16px; accent-color: var(--highlight); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-soft); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-alt { text-align: center; margin-top: 22px; font-size: 0.88rem; color: var(--text-muted); }
.form-note { font-size: 0.78rem; color: var(--text-soft); margin-top: 16px; text-align: center; line-height: 1.6; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--dark-gradient); color: var(--text-light); padding: 66px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(59,130,246,0.18), transparent 45%); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--primary-light); max-width: 620px; font-size: 1rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { color: var(--primary); }

/* ---------- Tool workspace ---------- */
.tool-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.tool-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.tool-panel h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tool-panel .panel-sub { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 24px; }
.tool-dark { background: var(--dark-gradient); color: var(--text-light); border: none; }
.tool-dark h3 { color: #fff; }
.tool-dark .panel-sub { color: var(--primary-light); }

.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-tile { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-tile.dark { background: rgba(148,163,184,0.08); border-color: rgba(148,163,184,0.18); }
.stat-tile .st-val { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--bg-dark); }
.stat-tile.dark .st-val { color: #fff; }
.stat-tile .st-val.accent { color: var(--highlight); }
.stat-tile .st-val.gold { color: var(--gold-dark); }
.stat-tile .st-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }
.stat-tile.dark .st-lbl { color: var(--text-soft); }

.range-field { margin-bottom: 22px; }
.range-field .range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-field label { font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--secondary); }
.range-field .range-val { font-family: var(--font-head); font-weight: 700; color: var(--highlight); font-size: 1.05rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 100px;
  background: var(--primary-lighter); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-gradient); cursor: pointer;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4); border: 2px solid #fff;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #3b82f6; cursor: pointer; border: 2px solid #fff;
}

/* Chart canvas */
.chart-box { background: var(--dark-gradient); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.chart-box canvas { width: 100%; display: block; }
.chart-legend { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.chart-legend .lg { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--primary-light); }
.chart-legend .lg .sw { width: 12px; height: 12px; border-radius: 3px; }

/* Coin */
.coin-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 14px 0; }
.coin {
  width: 150px; height: 150px; border-radius: 50%;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.1s;
}
.coin-face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.35), var(--shadow-md);
}
.coin-heads { background: var(--silver-shine); color: var(--bg-dark); }
.coin-tails { background: var(--gold-gradient); color: var(--bg-dark); transform: rotateY(180deg); }
.coin.flipping { animation: coinFlip 1s cubic-bezier(0.3, 0.1, 0.3, 1); }
@keyframes coinFlip {
  0% { transform: rotateY(0) translateY(0); }
  50% { transform: rotateY(900deg) translateY(-70px); }
  100% { transform: rotateY(1800deg) translateY(0); }
}
.coin-result { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--bg-dark); min-height: 30px; }
.streak-log { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 90px; overflow-y: auto; }
.flip-chip { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; }
.flip-chip.h { background: var(--primary-lighter); color: var(--bg-dark); }
.flip-chip.t { background: var(--gold); color: var(--bg-dark); }

/* Network tree viz */
.net-tree { display: flex; flex-direction: column; gap: 16px; }
.net-level { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.18); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.net-level .nl-left { display: flex; align-items: center; gap: 14px; }
.net-level .nl-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-gradient); color: #fff; font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.net-level .nl-name { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 0.92rem; }
.net-level .nl-sub { font-size: 0.74rem; color: var(--text-soft); }
.net-level .nl-count { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.faq-item.open { border-color: var(--highlight-light); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--bg-dark);
}
.faq-q .faq-icon { flex-shrink: 0; width: 24px; height: 24px; transition: transform var(--transition); color: var(--highlight); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p { color: var(--secondary); margin-bottom: 14px; font-size: 0.92rem; }
.prose ul { margin: 0 0 16px 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--secondary); font-size: 0.92rem; }
.prose ul li::before { content: ''; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--highlight); }
.prose a { text-decoration: underline; }
.legal-meta { background: var(--bg-soft); border-left: 3px solid var(--highlight); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 30px; font-size: 0.86rem; color: var(--text-muted); }
.toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 34px; }
.toc h4 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc ol li { font-size: 0.88rem; }

/* ---------- CTA inline / disclaimer note ---------- */
.notice-band { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.2); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start; }
.notice-band svg { width: 26px; height: 26px; color: var(--highlight); flex-shrink: 0; }
.notice-band p { font-size: 0.86rem; color: var(--secondary); }
.notice-band strong { color: var(--bg-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-darker); color: var(--primary-light); padding: 58px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-dark); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: var(--text-soft); font-size: 0.86rem; margin: 16px 0 20px; max-width: 340px; }
.footer-brand .logo img { height: 40px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-soft); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(148,163,184,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary-light); transition: all var(--transition); }
.footer-social a:hover { background: var(--highlight); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-soft); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 0.8rem; color: var(--text-soft); }
.footer-legal-links a:hover { color: var(--primary-light); }
.footer-disclaimer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-dark); font-size: 0.74rem; color: var(--text-soft); line-height: 1.7; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); transition: all var(--transition);
  animation: waBounce 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@keyframes waBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .split, .auth-wrap, .tool-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .games-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .auth-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--bg-body); padding: 18px 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform 0.3s ease; z-index: 999;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4, .games-grid, .steps, .stat-band .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 24px; }
  .hero-stats { gap: 22px; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 70px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
