:root {
  --bg: #0b0e14;
  --bg-2: #11151f;
  --card: #161b28;
  --card-2: #1c2334;
  --line: #262f45;
  --text: #e8ecf5;
  --muted: #9aa5bd;
  --gold: #f5b942;
  --gold-2: #d99a2b;
  --red: #ff4d4d;
  --green: #35d07f;
  --blue: #4da3ff;
  --radius: 16px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: grid; place-items: center; color: #14100a; font-weight: 900; font-size: 18px;
}
.brand span em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-size: 14px; font-weight: 600; transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--card-2); color: var(--text); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(245, 185, 66, 0.12), transparent 60%),
    radial-gradient(800px 400px at 10% 0%, rgba(77, 163, 255, 0.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 185, 66, 0.12); color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.35);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 20px 0 18px; font-weight: 900; }
.hero h1 .hl { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 56ch; margin-bottom: 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: 0.2s; border: 1px solid transparent;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1407; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245, 185, 66, 0.3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.machine {
  background: #0a0d14; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; text-align: center;
}
.machine .reels { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.reel {
  width: 70px; height: 84px; border-radius: 10px;
  background: linear-gradient(180deg, #20293f, #12172a);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 34px; font-weight: 900;
}
.reel.gold { color: var(--gold); }
.reel.red { color: var(--red); }
.reel.blue { color: var(--blue); }
.machine .bar {
  background: var(--red); color: #fff; font-weight: 800; letter-spacing: 2px;
  padding: 8px; border-radius: 8px; font-size: 13px;
}
.hero-card p.note { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

/* ===== SECTIONS ===== */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; }
.section-title h2 .hl { color: var(--gold); }
.section-title p { color: var(--muted); max-width: 60ch; margin: 12px auto 0; }

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

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px;
}
.icon-gold { background: rgba(245,185,66,0.14); color: var(--gold); }
.icon-red { background: rgba(255,77,77,0.14); color: var(--red); }
.icon-blue { background: rgba(77,163,255,0.14); color: var(--blue); }
.icon-green { background: rgba(53,208,127,0.14); color: var(--green); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 28px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
}
.tl-item .year {
  display: inline-block; background: var(--card-2); color: var(--gold);
  font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 6px;
  border: 1px solid var(--line); margin-bottom: 8px;
}
.tl-item h3 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { color: var(--muted); }

/* callout */
.callout {
  border-radius: var(--radius); padding: 24px; display: flex; gap: 16px;
  border: 1px solid; align-items: flex-start;
}
.callout.warn { background: rgba(255,77,77,0.08); border-color: rgba(255,77,77,0.4); }
.callout.gold { background: rgba(245,185,66,0.08); border-color: rgba(245,185,66,0.4); }
.callout .icon { font-size: 26px; line-height: 1; }
.callout h3 { font-size: 17px; margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: 15px; }

/* stat band */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; text-align: center; }
.stat .num { font-size: 38px; font-weight: 900; color: var(--gold); }
.stat .label { color: var(--muted); font-size: 14px; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; font-size: 15px; }
th { background: var(--card-2); color: var(--gold); font-weight: 700; }
td { border-top: 1px solid var(--line); color: var(--muted); }
td strong { color: var(--text); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; background: var(--bg-2); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--gold); }

/* ===== BANNER FULLSCREEN ===== */
.banner {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(245,185,66,0.18), transparent 60%),
    radial-gradient(700px 500px at 20% 100%, rgba(255,77,77,0.16), transparent 60%),
    linear-gradient(180deg, #0b0e14, #080a10);
  animation: fadeIn 0.5s ease;
}
.banner.hidden { display: none; }
.banner-inner {
  max-width: 640px; width: 100%; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 40px 36px 36px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  animation: slideUp 0.5s ease;
}
.banner-img {
  width: 170px; height: 170px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(245,185,66,0.16), rgba(255,77,77,0.10) 70%);
  border: 1px solid var(--line);
}
.banner-img img { width: 150px; height: 150px; }
.banner-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,77,77,0.14); color: var(--red);
  border: 1px solid rgba(255,77,77,0.4);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.banner-inner h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; margin-bottom: 14px; }
.banner-inner h1 .hl { color: var(--gold); }
.banner-inner p { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.banner-actions { display: flex; gap: 14px; }
.banner-actions .btn { flex: 1; justify-content: center; font-size: 16px; padding: 15px; }
.banner-inner .banner-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== PAGE HEADER (subpages) ===== */
.page-head { padding: 64px 0 32px; text-align: center; }
.page-head .kicker { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; }
.page-head h1 .hl { color: var(--gold); }
.page-head p { color: var(--muted); max-width: 64ch; margin: 14px auto 0; font-size: 17px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 40px 0 14px; }
.prose h2 .hl { color: var(--gold); }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--muted); font-size: 17px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* prev/next nav */
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; }
.pager a {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; font-weight: 700; transition: 0.2s; flex: 1;
}
.pager a:hover { border-color: var(--gold); }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .nav-inner { position: relative; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .banner-inner { padding: 32px 22px; }
  .banner-actions { flex-direction: column; }
}
