/* Viking Smash — site styles. Tokens mirror docs/design/web-design-system.md
   (which ports lib/core/constants/app_theme.dart VikingPalette 1:1). */

@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2-SemiBold-latin.woff2') format('woff2');
  font-weight: 600; font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2-Bold-latin.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2-ExtraBold-latin.woff2') format('woff2');
  font-weight: 800; font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2-SemiBold-devanagari.woff2') format('woff2');
  font-weight: 600; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2-Bold-devanagari.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2-ExtraBold-devanagari.woff2') format('woff2');
  font-weight: 800; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF;
}

:root {
  --ink: #0A1628;
  --surface: #0D1B2A;
  --surface-2: #162540;
  --gold: #D4AF37;
  --gold-light: #E8C872;
  --crimson: #813133;
  --crimson-deep: #5A1F20;
  --parchment: #F6EEDF;
  --parchment-ink: #3B2C20;
  --amber: #E6891F;
  --teal: #237370;
  --green: #2CA558;
  --text: #E9E2D3;
  --text-dim: #B9B3A4;
  --radius-lg: 24px;
  --display: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; }

/* ── Nav ─────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 24px;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, .18);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--gold-light); text-decoration: none; white-space: nowrap;
}
.brand img { border-radius: 10px; }
.site-nav nav {
  display: flex; gap: 22px; flex: 1; justify-content: center;
}
.site-nav nav a {
  color: var(--text); text-decoration: none; font-size: 15px;
  white-space: nowrap;
}
.site-nav nav a:hover { color: var(--gold-light); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-select {
  appearance: none; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23E8C872' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text); border: 1px solid rgba(212,175,55,.35);
  border-radius: 10px; padding: 7px 28px 7px 10px; font-size: 14px; cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  text-decoration: none; border-radius: 999px; transition: transform .15s ease;
}
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241A06;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline {
  border: 2px solid var(--gold); color: var(--gold-light);
  padding: 12px 26px; font-size: 17px;
}
.btn-outline:hover { background: rgba(212,175,55,.12); }

/* ── Store badge buttons (drawn, i18n text) ───────────── */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #05070C; color: #F5F2EA;
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 8px 16px; text-decoration: none;
  font-family: var(--body); line-height: 1.15;
}
.store-badge svg { flex: 0 0 auto; }
.store-badge small { display: block; font-size: 11px; opacity: .8; }
.store-badge { font-weight: 700; font-size: 17px; }
.store-badge:hover { border-color: var(--gold); }
.store-badge-lg { padding: 12px 22px; font-size: 20px; }
.store-badge-lg small { font-size: 12px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,.38) 0%, rgba(10,22,40,.78) 55%, var(--ink) 96%),
    url('/assets/img/hero-bg.webp') center 30% / cover no-repeat var(--surface);
}
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-icon { width: 104px; border-radius: 24px; margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.hero-sub { font-size: 18px; color: var(--text); max-width: 46ch; }
.wordmark {
  font-size: clamp(52px, 7.5vw, 88px); font-weight: 800;
  letter-spacing: .01em; line-height: .95;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
  margin: 10px 0 14px;
}
.wordmark span {
  background: linear-gradient(180deg, var(--gold-light) 30%, var(--gold) 75%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tag {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 27px); color: var(--gold-light);
  max-width: 34ch; margin-bottom: 28px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-mini { font-size: 14px; color: var(--text-dim); }

/* Plaque — the one card form allowed: artwork framed in carved border */
.plaque {
  border-radius: var(--radius-lg); overflow: clip;
  border: 3px solid var(--gold);
  outline: 1px solid rgba(212,175,55,.35); outline-offset: 4px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.4);
}
.plaque figcaption {
  padding: 10px 14px; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--gold-light); background: linear-gradient(180deg, var(--crimson), var(--crimson-deep));
}
.hero-video { justify-self: end; max-width: 320px; width: 100%; }
.video-facade {
  display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: #000; position: relative;
}
.video-facade img { width: 100%; aspect-ratio: 590/1280; object-fit: cover; }
.play-ring {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,22,40,.72); color: var(--gold-light);
  border: 2px solid var(--gold);
  transition: transform .15s ease;
}
.video-facade:hover .play-ring { transform: scale(1.08); }
.hero-video video { width: 100%; display: block; aspect-ratio: 590/1280; background: #000; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 88px 24px; }
.section-title {
  text-align: center; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800;
  color: #fff; margin-bottom: 56px;
}
.section-title::after {
  content: ""; display: block; width: 72px; height: 4px; margin: 18px auto 0;
  background: var(--gold); border-radius: 2px;
}
.section-title.dark { color: var(--parchment-ink); }
.section-title.dark::after { background: var(--crimson); }

/* Feature rows — alternating text / plaque */
.feature-rows { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 88px; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; }
.feature-copy h3 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  color: var(--gold-light); margin-bottom: 14px;
}
.feature-copy p { font-size: 17px; max-width: 46ch; }

/* Parchment band — the game's modal language */
.parchment {
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(255,255,255,.5), transparent 60%),
    var(--parchment);
  color: var(--parchment-ink);
}

/* How-to steps — real sequence, numbers justified */
.steps {
  max-width: 880px; margin: 0 auto; list-style: none;
  display: grid; gap: 18px; counter-reset: step;
}
.steps li {
  counter-increment: step; position: relative; min-width: 0;
  background: #FFFDF7; border: 2px solid #DCC9A8; border-radius: 18px;
  padding: 20px 24px 20px 78px; font-size: 17px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--crimson); color: var(--parchment);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 20px;
}
.steps li strong { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; }

/* Claims — two big statements, icons left */
.claims {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.claim { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; align-items: start; }
.claim-ic { grid-row: span 2; width: 64px; height: 64px; color: var(--gold); }
.claim h3 { font-size: 24px; font-weight: 700; color: #fff; }
.claim p { color: var(--text-dim); font-size: 16px; max-width: 44ch; }

/* Gallery — horizontal snap strip */
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 78vw);
  gap: 20px; overflow-x: auto; padding: 8px 24px 24px;
  scroll-snap-type: x mandatory; scrollbar-color: var(--gold) var(--surface-2);
}
.gallery-strip > figure { scroll-snap-align: center; }
.gallery-strip img { width: 100%; height: auto; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #FFFDF7; border: 2px solid #DCC9A8; border-radius: 16px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--parchment-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 700; color: var(--crimson);
  transition: transform .2s ease; flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-size: 16px; }

/* Press — crimson banner */
.press { padding: 64px 24px; }
.press-inner {
  max-width: var(--wrap); margin: 0 auto;
  background: linear-gradient(180deg, var(--crimson), var(--crimson-deep));
  border-radius: var(--radius-lg); border: 2px solid var(--gold);
  padding: 44px 40px; text-align: center;
}
.press-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--gold-light); margin-bottom: 12px; }
.press-fact { max-width: 60ch; margin: 0 auto 28px; font-size: 16px; }
.press-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.press-link {
  border: 1.5px solid var(--gold-light); color: var(--gold-light);
  border-radius: 999px; padding: 10px 22px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px;
}
.press-link:hover { background: rgba(212,175,55,.14); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(212,175,55,.18);
  padding: 40px 24px 48px; text-align: center;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-bottom: 20px; }
.footer-legal a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-legal a:hover { color: var(--gold-light); }
.footer-tag { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ── Download page ───────────────────────────────────── */
.download-page {
  min-height: 100vh; display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(10,22,40,.55), var(--ink) 82%),
    url('/assets/img/hero-bg.webp') center / cover no-repeat fixed var(--surface);
}
.dl-wrap { text-align: center; padding: 48px 24px; max-width: 560px; }
.dl-icon { width: 96px; margin: 0 auto 20px; border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.dl-title { font-size: clamp(34px, 6vw, 48px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.dl-sub { color: var(--text); font-size: 17px; margin-bottom: 32px; }
.dl-badges { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 24px; }
.dl-note { color: var(--gold-light); font-size: 15px; margin-bottom: 20px; }
.dl-home { font-size: 14px; color: var(--text-dim); }

/* ── Orchestrated load motion — the one allowed moment ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.3,1) backwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .25s; }
.hero-copy > :nth-child(4) { animation-delay: .35s; }
.hero-copy > :nth-child(5) { animation-delay: .45s; }
.hero-video { animation: rise .7s .3s cubic-bezier(.2,.7,.3,1) backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .site-nav nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 560px) {
  .site-nav nav { order: 4; }
  .nav-right { order: 3; flex-basis: 100%; display: flex; gap: 10px; }
  .nav-right .lang-select { flex: 1; min-width: 0; }
  .nav-right .btn { flex: 1; min-width: 0; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px 64px; }
  .hero-video { justify-self: center; max-width: 280px; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .claims { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 20px; }
}
