/* Sons of Ignition — site oficial. Proposta A "Brasa" (prancha de 22/11/2026). */
:root {
  --bg: #0d0806;
  --bg-2: #140b06;
  --card: #160d08;
  --line: #2a1a10;
  --line-2: #3a2416;
  --ember: #ff7a1a;
  --ember-hover: #ff9a3d;
  --ember-2: #ffb347;
  --cream: #fff1dc;
  --text: #e9dccb;
  --muted: #cdbba6;
  --muted-2: #b9a690;
  --dim: #8a7562;
  --ink: #1a0d05;
  --display: 'Black Ops One', 'Impact', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-2); }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--ember-2); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ember); color: var(--ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- topo ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(13, 8, 6, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.brand span { font-family: var(--display); font-size: 20px; letter-spacing: 0.06em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-left: auto; font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.nav-links a:hover { color: var(--cream); }
.lang { display: flex; gap: 10px; align-items: center; }
.lang::before { content: ''; width: 1px; height: 18px; background: #4a3626; margin-right: 6px; }
.lang a[aria-current='true'] { color: var(--cream); }
.lang a:not([aria-current='true']) { color: var(--dim); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-family: var(--cond); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 4px; padding: 10px 18px; font-size: 17px; border: 2px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-lg { font-size: 22px; padding: 14px 28px; }
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-primary:hover { background: var(--ember-hover); color: var(--ink); }
.btn-ghost { border-color: #6e4a2e; color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--ember-2); color: var(--cream); }
.btn-soon { border-color: #6e4a2e; color: var(--ember-2); background: rgba(255, 122, 26, 0.08); cursor: default; }
.nav-links .btn { padding: 8px 16px; color: var(--ink); }
.nav-links .btn-soon { color: var(--ember-2); }

/* ---------- hero ---------- */
/* Topo vivo: a tela inicial do jogo (palco de 1920×1080, static/js/title.js). Os carros e o logo
   aparecem sempre inteiros; o palco escala para caber. */
.title-stage { position: relative; width: 100%; height: min(46vw, calc(100svh - 70px), 900px); min-height: 180px; overflow: hidden; background: #140a05; }
.title-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, rgba(13, 8, 6, 0), var(--bg)); pointer-events: none; }
.ts-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.ts-stage img, .ts-stage i { position: absolute; display: block; max-width: none; pointer-events: none; }
.ts-back, .ts-vignette { left: 0; top: 0; width: 1920px; height: 1080px; }
.ts-back { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ts-car { position: absolute; }
.ts-car > img { left: 0; top: 0; width: 100%; height: 100%; }
.ts-flare { background: radial-gradient(circle farthest-corner, #fffbe6 0%, #ffe9a8 9%, rgba(255, 190, 90, 0.75) 20%, rgba(255, 130, 40, 0.28) 45%, rgba(255, 130, 40, 0) 70%); opacity: 0; }
.ts-streak { background: radial-gradient(ellipse farthest-corner, rgba(255, 240, 200, 0.95) 0%, rgba(255, 170, 80, 0.4) 40%, rgba(255, 170, 80, 0) 72%); opacity: 0; }
.title-stage:not(.is-live) .ts-flare, .title-stage:not(.is-live) .ts-streak { opacity: 1; }
.ts-embers { position: absolute; inset: 0; }
.ts-stage .ts-ember { left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(255, 207, 107, 1) 0%, rgba(255, 207, 107, 0.6) 40%, rgba(255, 207, 107, 0.36) 40%, rgba(255, 207, 107, 0) 100%); will-change: transform, opacity; }
.ts-logo { position: absolute; left: 593px; top: 636px; width: 733px; height: 337px; overflow: hidden; }
.ts-logo img { left: 0; top: 0; width: 733px; height: 337px; }
.ts-stage .ts-burn { left: 519.7px; top: 0; width: 879.6px; height: 46px; opacity: 0; background: radial-gradient(ellipse farthest-corner, rgba(255, 240, 200, 0.95) 0%, rgba(255, 170, 80, 0.4) 40%, rgba(255, 170, 80, 0) 72%); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding-top: 24px; padding-bottom: 48px; }
.hero-copy { flex: 1 1 520px; }
.kicker { font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: 0.26em; color: var(--ember); text-transform: uppercase; margin-bottom: 10px; }
.hero .kicker { color: var(--ember-2); }
.hero h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 60px); line-height: 1.02; color: var(--cream); }
.hero-lead { margin-top: 16px; max-width: 600px; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- trailer ---------- */
.trailer { padding-top: 24px; padding-bottom: 88px; }
.trailer-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); background: #000 url('/img/shot_circuit.jpg') center / cover; }
.trailer-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.trailer-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 32px; background: linear-gradient(180deg, rgba(10, 5, 2, 0) 55%, rgba(10, 5, 2, 0.85)); }
.trailer-soon span { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: 0.22em; color: var(--cream); text-transform: uppercase; border: 1px solid rgba(255, 241, 220, 0.4); padding: 8px 16px; border-radius: 4px; background: rgba(13, 8, 6, 0.6); }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; padding: 0; cursor: pointer; color: var(--cream); background: linear-gradient(180deg, rgba(10, 5, 2, 0.15), rgba(10, 5, 2, 0.55)); font: inherit; }
.yt-play svg { display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.15s; }
.yt-facade:hover .yt-play svg, .yt-facade:focus-visible .yt-play svg { transform: scale(1.1); }
.yt-label { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: 0.22em; text-transform: uppercase; background: rgba(13, 8, 6, 0.6); border: 1px solid rgba(255, 241, 220, 0.35); border-radius: 4px; padding: 6px 14px; }
.trailer-note { margin-top: 10px; font-size: 13px; color: var(--dim); text-align: center; }

/* ---------- seções ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); color: var(--cream); line-height: 1.05; }
.section-head { margin-bottom: 40px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { min-width: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.feature-img { aspect-ratio: 16 / 10; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-body { padding: 20px 22px 24px; }
.feature h3, .feature p { color: var(--muted); font-size: 16px; }

/* Garagem: lista de carros clicável + giro de 360° (static/js/site.js, quadros do VehicleShowcase). */
.garage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.car-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.car { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-content: start; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 4px; padding: 12px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.car:hover { border-left-color: var(--ember-2); background: #1d1009; }
.car[aria-pressed="true"] { border-color: var(--line-2); border-left-color: var(--ember); background: #23130a; }
.car-num { grid-row: span 2; font-family: var(--display); font-size: 15px; color: var(--dim); padding-top: 4px; }
.car[aria-pressed="true"] .car-num { color: var(--ember); }
.car-name { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; color: var(--cream); text-transform: uppercase; line-height: 1.1; }
.car-text { font-size: 14px; line-height: 1.45; color: var(--muted-2); }
.spin { position: relative; aspect-ratio: 2 / 1.12; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(ellipse 70% 60% at 50% 62%, #3a1f0f 0%, #1b0e07 60%, #0f0805 100%); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.spin.is-dragging { cursor: grabbing; }
.spin-floor { position: absolute; left: 14%; right: 14%; bottom: 13%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.spin::before { content: ''; position: absolute; left: 0; right: 0; top: 66%; height: 1px; background: linear-gradient(90deg, rgba(255, 179, 71, 0), rgba(255, 179, 71, 0.35), rgba(255, 179, 71, 0)); }
.spin-car { position: absolute; left: 0; right: 0; top: 4%; aspect-ratio: 2 / 1; background-repeat: no-repeat; background-size: 600% 600%; transition: opacity 0.2s; }
.spin.is-loading .spin-car { opacity: 0.25; }
.spin-name { position: absolute; left: 20px; top: 14px; font-family: var(--display); font-size: 26px; color: var(--cream); letter-spacing: 0.04em; }
.spin-hint { position: absolute; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.spin-hint svg { color: var(--ember-2); }
.car h3 { color: var(--cream); font-size: 24px; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.stats-head { margin-bottom: 32px; }
.stat { position: relative; }
.stat-more { position: absolute; top: 16px; right: 16px; font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-2); border: 1px solid rgba(255, 179, 71, 0.4); border-radius: 3px; padding: 3px 8px; }
.stat-num { font-family: var(--display); font-size: 72px; line-height: 1; color: var(--ember); }
.stat-label { margin-top: 10px; font-family: var(--cond); font-weight: 600; font-size: 22px; color: var(--cream); text-transform: uppercase; }
.stat p:last-child { margin-top: 6px; font-size: 15px; color: var(--muted-2); }

.roadmap-copy { flex: 1 1 420px; }
.roadmap-copy p { font-size: 18px; color: var(--muted); margin: 18px 0 24px; }
.roadmap-art { flex: 0 1 420px; }
.zoomable { position: relative; display: block; transform: rotate(1.5deg); border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); cursor: zoom-in; transition: transform 0.2s; }
.zoomable:hover { transform: rotate(0.5deg) scale(1.01); }
.zoomable img { width: 100%; border-radius: 4px; }
.zoom-tag { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); background: rgba(13, 8, 6, 0.85); border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 10px; }
.zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 5, 3, 0.96); color: var(--text); }
.zoom::backdrop { background: rgba(0, 0, 0, 0.7); }
.zoom-view { position: absolute; inset: 0 0 56px 0; overflow: hidden; cursor: grab; touch-action: none; }
.zoom-view img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.zoom-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--line); background: #0d0806; }
.zoom-hint { flex: 1; font-size: 14px; color: var(--muted-2); }
.zoom-btn { min-width: 40px; height: 40px; font: 600 20px var(--body); color: var(--cream); background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; }
.zoom-btn:hover { border-color: var(--ember-2); }
.no-scroll { overflow: hidden; }

.cta { text-align: center; }
.cta p { max-width: 580px; margin: 14px auto 30px; font-size: 18px; color: var(--muted); }
.cta .actions { justify-content: center; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0604; color: var(--dim); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.footer-brand { font-family: var(--display); color: var(--muted); letter-spacing: 0.06em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cream); }
.footer-copy { margin-left: auto; }

/* ---------- páginas de texto (press kit, privacidade, 404) ---------- */
.page-head { padding-top: 72px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); color: var(--cream); line-height: 1.05; }
.page-head p { margin-top: 12px; color: var(--muted); max-width: 720px; }
.prose { max-width: 820px; padding-top: 40px; padding-bottom: 88px; }
.prose h2 { font-family: var(--cond); font-weight: 700; font-size: 28px; letter-spacing: 0.03em; color: var(--ember-2); text-transform: uppercase; margin: 44px 0 12px; }
.prose h3 { font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--cream); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--cream); }
.prose code { background: var(--card); padding: 1px 6px; border-radius: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--card); color: var(--cream); font-family: var(--cond); font-size: 17px; letter-spacing: 0.04em; }
.note { background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 20px 24px; margin-bottom: 8px; }

.press-grid { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 48px; padding-bottom: 88px; align-items: flex-start; }
.press-main { flex: 1 1 560px; min-width: 0; }
.press-side { flex: 0 1 340px; min-width: 0; position: sticky; top: 96px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.facts h2 { font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--ember-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--dim); text-transform: uppercase; font-family: var(--cond); letter-spacing: 0.06em; }
.facts dd { margin: 0; color: var(--text); }
.press-main h2 { font-family: var(--cond); font-weight: 700; font-size: 28px; color: var(--ember-2); text-transform: uppercase; letter-spacing: 0.03em; margin: 40px 0 12px; }
.press-main h2:first-child { margin-top: 0; }
.press-main p, .press-main ul { color: var(--text); margin: 0 0 14px; }
.press-main ul { padding-left: 22px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery a.contain img { object-fit: contain; padding: 10px; background: #1d120a; }
.gallery span { display: block; padding: 8px 10px; font-size: 13px; color: var(--muted-2); }

@media (max-width: 960px) {
  .garage { grid-template-columns: 1fr; gap: 0; }
  .cars-copy { display: contents; }
  .garage .kicker { order: 1; }
  .garage h2 { order: 2; margin-bottom: 20px; }
  .garage-view { order: 3; position: sticky; top: 76px; z-index: 2; }
  .car-picker { order: 4; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
  .nav-links { margin-left: 0; width: 100%; gap: 4px 18px; }
  .nav-links .btn { margin-left: auto; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .press-side { position: static; }
  .car-picker { grid-template-columns: 1fr; }
  .garage-view { top: 0; }
  .spin { border-radius: 0 0 6px 6px; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-img img { transition: none; }
}

/* ---------- estúdio (logo GG, proposta A da prancha de 22/11) ---------- */
.footer-copy { display: flex; align-items: center; gap: 12px; }
.studio { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.studio img { width: 42px; height: auto; }
.studio span { font-family: 'Michroma', var(--body); font-size: 12px; letter-spacing: 0.28em; color: #c3c7cc; }
.studio:hover span { color: var(--cream); }
.gallery a.studio-tile img { background: #0b0b0c; padding: 18px; }
