/* ═══════════════════════════════════════════════════════════════
   Football Life Sim — footballlifesim.com
   Palette and shapes taken from the in-game UI: near-black navy
   panels, a fire-orange gradient, and per-attribute accent colours.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:         #0A0D14;
  --bg-2:       #0E131C;
  --line:       rgba(255, 255, 255, .08);
  --line-2:     rgba(255, 255, 255, .14);

  --txt:        #EAEFF7;
  --txt-dim:    #9DAABF;
  --txt-mute:   #6E7C93;

  /* Fire palette lifted from the logo: amber #FFC94B -> flame #F2571B */
  --orange:     #FF8A1E;
  --orange-lt:  #FFB020;

  --grad-fire:  linear-gradient(100deg, #FFC94B 0%, #FF8A1E 46%, #F2571B 100%);
  --grad-panel: linear-gradient(160deg, #18202E 0%, #121926 100%);

  --radius:     18px;
  --radius-lg:  26px;
  --shadow:     0 24px 60px -20px rgba(0, 0, 0, .8);
  --shadow-fire:0 20px 60px -18px rgba(242, 87, 27, .55);

  --maxw:       1200px;
  --pad:        clamp(20px, 5vw, 40px);

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--orange-lt);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: #10131A;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top .18s;
}
.skip-link:focus { top: 0; }

/* ── Type ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-lt);
  margin-bottom: 16px;
}

.grad {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container-narrow { max-width: 820px; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.section-lead {
  margin-top: 18px;
  color: var(--txt-dim);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(10, 13, 20, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 41px;
  filter: drop-shadow(0 3px 10px rgba(255, 138, 30, .45));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-lt);
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--txt-dim);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  padding: 3px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch button {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--txt-mute);
  transition: color .2s, background .2s;
}
.lang-switch button.is-active {
  background: var(--grad-fire);
  color: #14161B;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
}
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons + store badges ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  transition: transform .18s, box-shadow .25s, filter .2s;
}
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-primary {
  background: var(--grad-fire);
  color: #14161B;
  box-shadow: 0 8px 24px -8px rgba(255, 138, 30, .7);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 186px;
  padding: 11px 22px 11px 18px;
  background: #05070C;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
  transition: transform .18s, border-color .25s, box-shadow .25s;
}
.store-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 32, .65);
  box-shadow: 0 14px 34px -14px rgba(255, 138, 30, .75);
}
.store-icon { width: 27px; height: 27px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small {
  font-size: .63rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #B9C3D4;
}
.store-text b {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.store-badges-lg .store-badge { padding: 13px 26px 13px 22px; min-width: 208px; }
.store-badges-lg .store-icon { width: 31px; height: 31px; }
.store-badges-lg .store-text b { font-size: 1.3rem; }

.store-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--txt-mute);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 84px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -30%; right: -12%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 138, 30, .26) 0%, rgba(242, 87, 27, .10) 38%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.035em;
}
.hero-title span { display: block; }
.hero-lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  color: var(--txt-dim);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dd {
  margin-top: 3px;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--txt-mute);
}

/* Device frame — the game runs in landscape, so the bezel is too */
.device {
  position: relative;
  padding: 9px;
  background: linear-gradient(150deg, #262E3C 0%, #10151E 55%, #1C2431 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.device-screen {
  overflow: hidden;
  border-radius: 18px;
  background: #05070C;
  aspect-ratio: 20 / 9;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-cam {
  position: absolute;
  left: 17px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  background: #05070C;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.hero-visual { position: relative; }
.device-tilt {
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) rotate(-1deg);
  box-shadow: var(--shadow), var(--shadow-fire), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.hero-logo-float {
  position: absolute;
  left: -34px; bottom: -38px;
  width: clamp(84px, 12vw, 132px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(242, 87, 27, .6));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-13px) rotate(2deg); }
}

/* ── Marquee ────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: 15px 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scroll-x 46s linear infinite; }
.marquee-set { display: flex; }
.marquee i {
  display: block;
  padding: 0 26px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--txt-mute);
  white-space: nowrap;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ── Feature cards ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .55;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--accent);
}
.card-icon svg {
  width: 23px; height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--txt-dim); font-size: .95rem; }

/* ── Career steps ───────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 26px clamp(22px, 3vw, 34px);
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step-no {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
}
.step-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step-body p { color: var(--txt-dim); font-size: .95rem; }
.step-shot { margin: 0; }
.step-shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .9);
}

/* ── Split sections ─────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.split-rev .split-copy { order: 2; }
.split-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 20px; }
.split-copy > p { color: var(--txt-dim); }
.split-visual { margin: 0; }

.tick-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.tick-list li {
  position: relative;
  padding-left: 32px;
  color: var(--txt-dim);
  font-size: .96rem;
}
.tick-list li b { color: var(--txt); font-weight: 600; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-fire);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--txt-dim);
}
.chip em { font-style: normal; color: var(--txt-mute); }
.chip-hot {
  border-color: rgba(255, 138, 30, .5);
  background: rgba(255, 138, 30, .12);
  color: var(--orange-lt);
}

/* ── Attributes ─────────────────────────────────────────────── */
.attr-list { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.attr-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  font-size: .88rem;
}
.attr-list span { color: var(--txt-dim); }
.attr-list i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  position: relative;
}
.attr-list i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 999px;
  background: var(--c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent);
}
.attr-list b {
  font-family: var(--font-mono);
  font-size: .85rem;
  text-align: right;
  color: var(--c);
}

.cond-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.cond {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--txt-dim);
}

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.stat-card {
  padding: 26px 24px;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 2px solid var(--orange);
}
.stat-card h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--orange-lt); }
.stat-card p { font-size: .9rem; color: var(--txt-dim); }

.wide-shot { margin: 0; }
.device-wide { max-width: 980px; margin-inline: auto; }

/* ── Fame grid ──────────────────────────────────────────────── */
.fame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.fame-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s, border-color .25s;
}
.fame-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.fame-shot { overflow: hidden; aspect-ratio: 20 / 9; background: #05070C; }
.fame-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fame-card:hover .fame-shot img { transform: scale(1.04); }
.fame-body { padding: 24px 26px 28px; }
.fame-body h3 { font-size: 1.18rem; margin-bottom: 9px; }
.fame-body p { font-size: .93rem; color: var(--txt-dim); }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 138, 30, .5) transparent;
}
.gallery-scroll::-webkit-scrollbar { height: 7px; }
.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 30, .5);
  border-radius: 99px;
}
.gallery-track {
  display: flex;
  gap: 18px;
  padding-inline: var(--pad);
  width: max-content;
}
.shot {
  position: relative;
  flex: 0 0 auto;
  width: min(520px, 78vw);
  padding: 0;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070C;
  text-align: left;
  transition: transform .25s, border-color .25s, box-shadow .3s;
}
.shot:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 138, 30, .55);
  box-shadow: 0 20px 48px -20px rgba(255, 138, 30, .55);
}
.shot img { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; }
.shot span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(transparent, rgba(5, 7, 12, .92));
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt);
}
.gallery-hint p {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-mute);
  text-align: center;
}

/* ── Nations ────────────────────────────────────────────────── */
.conf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.conf {
  padding: 26px 24px;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.conf h3 {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--txt-mute);
  margin-bottom: 12px;
}
.conf-count b {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.04em;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.conf-count span { margin-left: 5px; font-size: .82rem; color: var(--txt-mute); }
.conf-name { margin-top: 6px; font-size: .95rem; color: var(--txt-dim); }
.conf-more { border-style: dashed; }

.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.flag-grid li {
  padding: 10px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .85rem;
  color: var(--txt-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .2s, color .2s;
}
.flag-grid li:hover { border-color: rgba(255, 138, 30, .45); color: var(--txt); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq[open] { border-color: rgba(255, 138, 30, .4); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--orange-lt);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v14h-2z'/%3E%3Cpath fill='%23000' d='M5 11h14v2H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v14h-2z'/%3E%3Cpath fill='%23000' d='M5 11h14v2H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--txt-dim); font-size: .95rem; }

/* ── Download CTA ───────────────────────────────────────────── */
.download {
  position: relative;
  padding: clamp(72px, 10vw, 118px) 0;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  text-align: center;
}
.download-glow {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(1000px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 138, 30, .22) 0%, rgba(242, 87, 27, .07) 40%, transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}
.download-inner { position: relative; }
.download-logo {
  width: clamp(88px, 12vw, 118px);
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 34px rgba(242, 87, 27, .55));
}
.download h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 16ch;
  margin-inline: auto;
}
.download > .container > p { margin-top: 18px; color: var(--txt-dim); }
.download .store-badges { justify-content: center; margin-top: 36px; }
.download .store-note { text-align: center; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: .9rem;
  color: var(--txt-mute);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
}
.footer-nav h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin-bottom: 14px;
}
.footer-nav a {
  display: block;
  padding: 5px 0;
  font-size: .9rem;
  color: var(--txt-dim);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--orange-lt); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--txt-mute);
}
.footer-fine { opacity: .8; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 2vw, 24px);
  padding: clamp(16px, 4vw, 48px);
  /* Opaque enough that a backdrop blur would cost GPU time for no visible gain. */
  background: rgba(4, 6, 10, .96);
  animation: fade-in .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }

.lb-figure { margin: 0; min-width: 0; }
.lb-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.lb-figure figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.lb-nav, .lb-close {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--txt);
  transition: background .2s, border-color .2s;
}
.lb-nav:hover, .lb-close:hover {
  background: rgba(255, 138, 30, .2);
  border-color: rgba(255, 138, 30, .6);
}
.lb-close { position: absolute; top: 18px; right: 18px; font-size: 1.9rem; }

/* ── Reveal on scroll ───────────────────────────────────────── */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 620px; }
  .device-tilt { transform: none; }
  .hero-logo-float { left: auto; right: -10px; bottom: -30px; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
  .step { grid-template-columns: auto minmax(0, 1fr); }
  .step-shot { grid-column: 1 / -1; max-width: 520px; }
  .fame-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .nav-toggle { display: flex; }
  .hide-sm { display: none; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    background: rgba(14, 19, 28, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header { background: rgba(10, 13, 20, .9); backdrop-filter: blur(14px); }
}

@media (max-width: 620px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .store-badge { flex: 1 1 100%; min-width: 0; justify-content: center; }
  .step { padding: 22px; gap: 16px; }
  .step-no { font-size: 1.6rem; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-figure figcaption { margin-bottom: 56px; }
  .footer-bottom { flex-direction: column; }
}

/* ── Motion preferences ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ── Legal pages (privacy.html / terms.html) ────────────────── */
.legal { padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 9vw, 104px); }
.legal-head { margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-updated {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--txt-mute);
}
.legal-body h2 {
  margin: 44px 0 14px;
  font-size: 1.32rem;
  color: var(--orange-lt);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--txt-dim); font-size: .97rem; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-body ul li { position: relative; padding-left: 20px; }
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.legal-body a { color: var(--orange-lt); text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  margin-top: 44px;
  padding: 20px 24px;
  background: rgba(255, 138, 30, .07);
  border: 1px solid rgba(255, 138, 30, .28);
  border-radius: 14px;
  font-size: .9rem;
  color: var(--txt-dim);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-mute);
  transition: color .2s;
}
.back-link:hover { color: var(--orange-lt); }
