:root {
  --bg: #070a14;
  --bg-soft: #0c1224;
  --text: #e9edf9;
  --muted: #a8b3cd;
  --flame-a: #ff3b30;
  --flame-b: #ff9f1c;
  --cyan: #3df2ff;
  --card: rgba(15, 22, 44, 0.78);
  --border: rgba(140, 165, 255, 0.2);
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 15% -10%, rgba(255, 68, 48, 0.28), transparent 42%),
              radial-gradient(circle at 90% 0%, rgba(61, 242, 255, 0.12), transparent 35%),
              var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: 'Space Mono', monospace; color: var(--cyan); }

.container { width: min(1120px, 92%); margin: 0 auto; }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
  background: linear-gradient(90deg, var(--flame-a), var(--flame-b), var(--cyan));
}

.site-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(10px);
  background: rgba(7, 10, 20, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.brand img { width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.2); }
nav ul { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
nav a { color: #c8d5ff; font-weight: 600; font-size: 0.95rem; }
nav a:hover { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; letter-spacing: 0.01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: linear-gradient(120deg, var(--flame-a), var(--flame-b)); color: #1d0b00; box-shadow: 0 10px 30px rgba(255, 110, 43, .35); }
.btn.ghost { background: rgba(61, 242, 255, .1); border-color: rgba(61, 242, 255, .55); color: var(--cyan); }
.btn.xl { padding: 14px 22px; font-size: 1.05rem; }
.nav-cta { display: flex; gap: 10px; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-flame {
  position: absolute; inset: -15% -10% auto; height: 360px; z-index: -1;
  background: conic-gradient(from 180deg at 50% 10%, rgba(255,59,48,.26), rgba(255,159,28,.22), rgba(61,242,255,.14), rgba(255,59,48,.26));
  filter: blur(34px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06) translateY(10px); opacity: .86; } }

.hero-grid {
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 26px;
  align-items: stretch; padding: 56px 0 30px;
}
.tag {
  display: inline-block; margin: 0 0 16px; padding: 6px 11px;
  border: 1px solid rgba(255,159,28,.45); border-radius: 999px;
  color: #ffd9a0; font-family: 'Space Mono', monospace; font-size: .82rem;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
h1 { margin: 0 0 16px; font-size: clamp(1.95rem, 4.2vw, 3.2rem); }
.lead { color: #d8e3ff; font-size: 1.07rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.meta-line { color: var(--muted); font-size: .95rem; }
.hero-card {
  background: linear-gradient(170deg, rgba(255, 102, 61, 0.22), rgba(10, 18, 38, 0.9));
  border: 1px solid rgba(255, 170, 112, 0.28); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.hero-card .score { font-size: 2.5rem; margin: 4px 0; color: #ffe6cb; }
.hero-card .votes { margin: 0; color: #ffc07a; font-family: 'Space Mono', monospace; }
.hero-card .note { margin: 3px 0 18px; font-size: .82rem; color: #ffcf9f; }
.hero-card blockquote { margin: 0; font-size: .96rem; color: #e7f9ff; border-left: 3px solid var(--cyan); padding-left: 12px; }
.hero-card cite { display: block; margin-top: 8px; color: #8deeff; }

.marquee-wrap { overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(8, 12, 24, .72); }
.marquee-wrap.second { background: rgba(20, 14, 10, .52); }
.marquee { display: flex; white-space: nowrap; gap: 2rem; padding: 12px 0; font-family: 'Space Mono', monospace; color: #ffd7a7; }
.marquee span { flex-shrink: 0; }
.marquee-left span { animation: mleft 24s linear infinite; }
.marquee-right span { animation: mright 26s linear infinite; }
@keyframes mleft { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes mright { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.section { padding: 52px 0; }
.section.alt { background: linear-gradient(180deg, rgba(61,242,255,.03), rgba(255,159,28,.05)); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
.prose p, .prose li { color: #d4def6; }
.prose ul { padding-left: 20px; }

.slider {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.slides { position: relative; min-height: 120px; }
.slide { display: none; animation: fade .35s ease; }
.slide.active { display: block; }
@keyframes fade { from { opacity: .2; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.slide h3 { margin: 0 0 8px; color: #fff2df; }
.slide p { margin: 0; color: #d4def8; }
.dots { display: flex; gap: 8px; margin-top: 16px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid #8ea2df;
  background: transparent; cursor: pointer;
}
.dot.active { background: linear-gradient(120deg, var(--flame-a), var(--flame-b)); border-color: transparent; }

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 20px;
}
.countdown > div {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-align: center; padding: 14px;
}
.countdown span { display: block; font-family: 'Space Mono', monospace; font-size: 1.9rem; color: #fff2de; }
.countdown small { color: #9cb2e8; }

.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.acc-item button {
  width: 100%; text-align: left; border: none; background: none; color: #e6eeff;
  font: 700 1rem/1.45 'Space Grotesk', sans-serif; padding: 14px 16px; cursor: pointer;
}
.acc-item div { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-item p { margin: 0; padding: 0 16px 14px; }
.acc-item.open div { max-height: 220px; }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: rgba(5, 7, 15, .95); padding: 22px 0 90px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: #9caad3; }
.lang-links { display: flex; gap: 12px; }
.lang-links a { color: #d6e6ff; }

.mobile-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 85;
  display: none; gap: 10px; padding: 10px; background: rgba(6,9,18,.95); border-top: 1px solid rgba(255,255,255,.12);
}
.mobile-dock .btn { flex: 1; }

#to-top {
  position: fixed; right: 14px; bottom: 86px; z-index: 86;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(8, 14, 27, .85); color: #d9f9ff; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
#to-top.show { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .mobile-dock { display: grid; grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 110px; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(1.7rem, 9vw, 2.2rem); }
}
