/* Dota Insight landing page. Colours and type follow the app's own theme
   (lib/core/theme/app_colors.dart): near-black ground, Dota red, gold,
   Exo 2 for display and Inter for text. */

:root {
  --bg: #07070a;
  --bg-alt: #0b0b10;
  --surface: #101016;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.6);
  --red: #e53935;
  --btn: #d32f2f; /* white on this is 4.98:1; on --red it is 4.0:1 */
  --gold: #ffb300;
  --blue: #42a5f5;
  --purple: #b07ad8;
  --green: #66bb6a;
  --lose: #ef5350;
  --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5.6vw, 80px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px; border-radius: 13px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: #e03a36; color: #fff; transform: translateY(-1px); }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; border-radius: 14px; box-shadow: 0 12px 40px rgba(229, 57, 53, 0.35); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav a:hover { color: #fff; }
.nav .lang {
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: 720px; padding-block: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 179, 0, 0.4); border-radius: 999px; background: rgba(255, 179, 0, 0.08);
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); display: block; }
h1 {
  margin: 24px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.5px;
}
h1 em { font-style: normal; color: var(--red); }
.lede { margin: 24px 0 0; max-width: 580px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--text-3); }
.facts li { display: flex; align-items: center; gap: 22px; }
.facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); margin-right: 0; }

.stage { position: relative; min-height: 700px; }
.stage .glow { position: absolute; left: 50%; top: 52%; width: min(520px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(229, 57, 53, 0.42) 0%, rgba(229, 57, 53, 0) 68%); }
.stage .phone { position: absolute; }
.stage .back { left: 2%; top: 17%; --w: 280px; transform: rotate(-6deg); }
.stage .front { right: 0; top: 3%; --w: 320px; z-index: 1; }

/* ── Phone frame ─────────────────────────────────────────────────────────── */
.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 1080 / 2240;
  padding: calc(var(--w) * 0.033);
  border-radius: calc(var(--w) * 0.153);
  background: linear-gradient(160deg, #2a2a33, #15151b);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}
.phone img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * 0.123); background: var(--bg);
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats { background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats li { padding: 34px 0 34px 40px; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; color: var(--gold); }
.stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.45; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding-block: 88px; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
h2 {
  margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.4px; line-height: 1.06;
  font-size: clamp(30px, 3.6vw, 48px);
}
.features-head { padding-block: 88px 40px; }

.feature { padding-block: 72px; border-top: 1px solid var(--line); }
.feature.alt { background: var(--bg-alt); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.feature.rev .copy { order: 2; }
.feature .copy { display: flex; flex-direction: column; gap: 20px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--tone); }
h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.4px; }
.copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.points li::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-top: 7px; border-radius: 2px; background: var(--tone); }
.copy .note { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 14px; line-height: 1.6; color: var(--text-3); }
.visual { position: relative; display: flex; justify-content: center; align-items: center; }
.visual::before {
  content: ""; position: absolute; width: min(500px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--tone-glow) 0%, transparent 68%);
}
.visual .phone { position: relative; }
.tone-gold { --tone: var(--gold); --tone-glow: rgba(255, 179, 0, 0.2); }
.tone-purple { --tone: var(--purple); --tone-glow: rgba(176, 122, 216, 0.22); }
.tone-blue { --tone: var(--blue); --tone-glow: rgba(66, 165, 245, 0.2); }
.tone-red { --tone: var(--lose); --tone-glow: rgba(229, 57, 53, 0.24); }
.tone-green { --tone: var(--green); --tone-glow: rgba(102, 187, 106, 0.2); }

/* ── More ────────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.card { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.card h3 { font-size: 22px; letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.card p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* ── Languages ───────────────────────────────────────────────────────────── */
.langs .wrap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 80px; align-items: center; }
.langs p { margin: 18px 0 0; font-size: 17px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); font-size: 15px; font-weight: 500; line-height: 1.4; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { display: flex; gap: 20px; align-items: flex-start; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 0.9; color: var(--red); }
.steps h3 { font-size: 20px; letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.steps p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin-top: 36px; align-items: start; }
.faq-grid details { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 0; }
.faq-grid summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 400; color: var(--text-3); transition: transform 0.15s ease; }
.faq-grid details[open] summary::after { content: "–"; }
.faq-grid details p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.final {
  text-align: center; padding-block: 88px; border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 100%, rgba(229, 57, 53, 0.28) 0%, transparent 65%), var(--bg-alt);
}
.final img { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 20px; }
.final h2 { text-transform: uppercase; font-weight: 900; font-size: clamp(30px, 4vw, 48px); }
.final p { margin: 16px 0 28px; font-size: 18px; color: var(--text-2); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.site-footer .brand { font-size: 18px; flex-shrink: 0; }
.site-footer .brand img { width: 34px; height: 34px; }
.site-footer p { margin: 0; max-width: 660px; font-size: 13px; line-height: 1.65; color: var(--text-3); }
.site-footer a.link { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; }

/* ── Prose (privacy page) ────────────────────────────────────────────────── */
.prose { max-width: 760px; padding-block: 72px 96px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 0; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose .meta { font-size: 14px; color: var(--text-3); margin-top: 12px; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, 0.3); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .feature .wrap { gap: 48px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .langs .wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 960px) {
  .nav a:not(.btn):not(.lang) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 24px; gap: 8px; }
  .stage { min-height: 560px; order: 2; }
  .stage .glow { width: min(420px, 100%); }
  .stage .back { --w: 230px; left: calc(50% - 250px); top: 12%; }
  .stage .front { --w: 260px; right: auto; left: calc(50% - 90px); top: 0; }
  .feature { padding-block: 56px; }
  .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature.rev .copy { order: 0; }
  .feature .visual { order: 2; }
  .section, .features-head { padding-block: 64px; }
  .features-head { padding-bottom: 24px; }
  .steps ol { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 720px) {
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 24px 0 24px 20px; }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 36px; }
  .stats span { font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .copy p { font-size: 16px; }
  .points li { font-size: 15px; }
  .chips li { padding: 7px 12px; font-size: 14px; }
  .chips { gap: 8px; }
}

@media (max-width: 520px) {
  .site-header .wrap { height: 64px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 8px; }
  .nav .lang { padding: 5px 8px; }
  .nav .btn { padding: 0 14px; font-size: 14px; gap: 8px; }
  .nav .btn svg { width: 14px; height: 14px; }
  .nav .btn .long { display: none; }
  .cta-row .btn { width: 100%; }
  .btn-lg { min-height: 56px; padding: 0 22px; font-size: 17px; }
  .facts li { gap: 12px; }
  .facts { gap: 8px 12px; }
  .stage { min-height: 520px; }
  .stage .back { --w: 176px; left: 4px; top: 15%; }
  .stage .front { --w: 232px; left: auto; right: 4px; top: 0; }
  .final .btn { width: 100%; }
}

@media (max-width: 360px) {
  .stage .back { display: none; }
  .stage .front { right: auto; left: 50%; transform: translateX(-50%); }
}
