/* ===========================================================================
   World of Tanks LP — cinematic theme. Self-contained.
   =========================================================================== */
:root {
  --bg: #0c0e11;
  --bg-2: #121519;
  --panel: #181c22;
  --panel-2: #1e232a;
  --ink: #f3f1ea;
  --muted: #9aa1ab;
  --line: #2a3038;
  --gold: #f0a92b;
  --hot: #ff5a1f;
  --steel: #6f93bd;
  --grad: linear-gradient(135deg, #ffb43a 0%, #ff5a1f 100%);
  --max: 1180px;
  --display: "Oswald", "Noto Sans JP", "Noto Sans KR", Impact, "Arial Narrow Bold", system-ui, sans-serif;
  --body: "Inter", "Noto Sans JP", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.lead { font-size: 1.13rem; color: #cfd3d8; margin: 0 auto 1rem; }
.narrow .lead { max-width: 720px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .28em; font-size: .82rem;
  color: var(--gold); font-weight: 600; }

.section-title { font-size: clamp(1.7rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.section-title.center { margin-left: auto; margin-right: auto; }

a { color: var(--gold); text-decoration: none; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; cursor: pointer; border: 0;
  padding: 1rem 2.1rem; border-radius: 6px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn-primary { background: var(--grad); color: #1c0d00; box-shadow: 0 10px 30px -8px rgba(255,90,31,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(255,90,31,.75); filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-play { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.btn-play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .82rem; border-radius: 5px; }

/* ---- Header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s, border-color .25s, box-shadow .25s;
  background: linear-gradient(180deg, rgba(8,9,11,.85), transparent); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10,12,15,.96); border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.4); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .85rem 24px; }
.logo { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.logo-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  filter: drop-shadow(0 5px 12px rgba(255,90,31,.4)); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.logo-badge svg { width: 42px; height: 42px; display: block; }
.logo:hover .logo-badge { transform: rotate(-6deg) scale(1.07); }
.logo-word { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; line-height: .95; }
.logo-word b { font-size: 1.24rem; letter-spacing: .03em; font-weight: 700;
  background: linear-gradient(180deg, #ffe2a6, #ff8a2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-word span { color: #cfd3d8; font-size: .68rem; letter-spacing: .26em; font-weight: 500; margin-top: 1px; }
.lang-nav { margin-left: auto; display: flex; gap: .15rem; flex-wrap: wrap; }
.lang-link { color: var(--muted); font-size: .8rem; padding: .3rem .55rem; border-radius: 5px; font-weight: 500; transition: .15s; }
.lang-link.is-active, .lang-link:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.site-header .btn-sm { font-family: var(--display); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 7rem 0 4rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img);
  background-size: cover; background-position: center; transform: scale(1.08); animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.08) translateY(0); } to { transform: scale(1.18) translateY(-2%); } }
.hero-overlay { position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(120% 90% at 50% 30%, rgba(12,14,17,.35), rgba(12,14,17,.82) 60%, var(--bg) 100%),
              linear-gradient(180deg, rgba(12,14,17,.55), rgba(12,14,17,.35) 40%, var(--bg) 100%); }
/* Muted autoplay video background (covers poster when the browser allows it) */
.hero-video { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity 1.1s ease; }
.hero-video.playing { opacity: 1; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 1.1rem 0; text-shadow: 0 4px 30px rgba(0,0,0,.6);
  background: linear-gradient(180deg, #fff, #d7d2c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title.sm { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #d8dbe0; max-width: 660px; margin: 0 auto 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.center-actions { justify-content: center; }
.hero-note { color: #b6bcc4; font-size: .85rem; margin-top: 1.3rem; }
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--ink);
  opacity: .7; animation: bob 1.8s ease-in-out infinite; }
.scroll-cue svg { width: 30px; height: 30px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---- Stat bar ---- */
.statbar { background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-bottom: 1px solid var(--line); padding: 2.4rem 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat { position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -.5rem; top: 15%; height: 70%; width: 1px; background: var(--line); }
.stat-value { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-top: .2rem; }

/* ---- Sections ---- */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--bg-2); }
.section p { color: #c7ccd2; }
.section .narrow .lead + .lead { margin-top: 1rem; }

/* ---- Trailer big video ---- */
.video-hero { position: relative; display: block; width: 100%; margin: 2.5rem auto 0; max-width: 960px; aspect-ratio: 16/9;
  border-radius: 12px; border: 1px solid var(--line); background-size: cover; background-position: center; cursor: pointer;
  overflow: hidden; box-shadow: 0 30px 70px -25px rgba(0,0,0,.8); }
.video-hero::after { content: ""; position: absolute; inset: 0; background: rgba(8,10,13,.35); transition: background .2s; }
.video-hero:hover::after { background: rgba(8,10,13,.15); }
.video-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px;
  display: grid; place-items: center; border-radius: 50%; background: var(--grad); box-shadow: 0 12px 40px -6px rgba(255,90,31,.7);
  transition: transform .2s; }
.video-hero:hover .video-play { transform: translate(-50%,-50%) scale(1.08); }
.video-play svg { width: 34px; height: 34px; fill: #1c0d00; stroke: none; margin-left: 4px; }
.video-play.sm { width: 56px; height: 56px; }
.video-play.sm svg { width: 22px; height: 22px; }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2rem 1.7rem;
  transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-6px); border-color: rgba(240,169,43,.4); background: var(--panel-2); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 10px;
  background: rgba(240,169,43,.12); color: var(--gold); margin-bottom: 1rem; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---- Tank classes ---- */
.class-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; }
.class-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.2rem; text-align: center;
  transition: transform .2s, border-color .2s; }
.class-card:hover { transform: translateY(-6px); border-color: rgba(111,147,189,.5); }
.class-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: .9rem;
  background: rgba(111,147,189,.14); color: var(--steel); }
.class-icon svg { width: 28px; height: 28px; }
.class-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.class-card p { color: var(--muted); font-size: .88rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; counter-reset: s; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2rem 1.7rem; }
.step-num { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #1c0d00; font-family: var(--display);
  font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---- Video gallery ---- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 3rem; }
.video-card { position: relative; aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  background-size: cover; background-position: center; overflow: hidden; transition: transform .2s; }
.video-card:hover { transform: translateY(-5px); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,13,.1), rgba(8,10,13,.75)); }
.video-card-label { position: absolute; z-index: 2; left: 1.2rem; bottom: 1rem; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .05em; font-size: 1rem; color: #fff; text-align: left; }

/* ---- Requirements ---- */
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 3rem; }
.spec-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.9rem; }
.spec-card.featured { border-color: rgba(240,169,43,.45); box-shadow: 0 0 0 1px rgba(240,169,43,.15) inset; }
.spec-tag { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: .25rem; margin-bottom: 1.1rem; }
.spec-card ul { list-style: none; }
.spec-card li { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0; color: #cfd3d8; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.li-mark { color: var(--gold); flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; }
.li-mark svg { width: 16px; height: 16px; }

/* ---- Tips ---- */
.tips-list { list-style: none; margin-top: 2.5rem; display: grid; gap: .7rem; }
.tips-list li { display: flex; align-items: flex-start; gap: .8rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.2rem; color: #cfd3d8; }
.tips-list .li-mark { color: var(--hot); }

/* ---- FAQ ---- */
.faq { margin-top: 2.5rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-size: 1.02rem;
  padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--gold); transition: transform .2s; flex: none; }
.faq-plus svg { width: 22px; height: 22px; }
.faq details[open] .faq-plus { transform: rotate(180deg); }
.faq p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---- Final CTA ---- */
.final-cta { position: relative; overflow: hidden; padding: 6rem 0; }
.final-cta::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img); background-size: cover;
  background-position: center; filter: grayscale(.2); }
.final-cta .container { position: relative; z-index: 2; }

/* ---- Sticky mobile CTA ---- */
#sticky-cta { display: none; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 45; justify-content: center;
  background: var(--grad); color: #1c0d00; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em;
  text-align: center; padding: .95rem; border-radius: 8px; box-shadow: 0 10px 30px -6px rgba(255,90,31,.6); }

/* ---- Footer ---- */
.site-footer { background: #08090b; border-top: 1px solid var(--line); padding: 3rem 0; font-size: .85rem; color: var(--muted); }
.site-footer p { margin-bottom: .7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1.2rem 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---- Consent / overlays ---- */
.consent-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: rgba(8,9,11,.97);
  border-top: 1px solid var(--line); padding: 1rem 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: center; }
.consent-banner[hidden] { display: none !important; } /* the hidden attr must beat display:flex */
.consent-banner p { margin: 0; font-size: .85rem; color: var(--muted); max-width: 720px; }
.consent-actions { display: flex; gap: .6rem; }
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.8); display: flex; align-items: flex-start;
  justify-content: center; padding: 5vh 16px; overflow: auto; }
.overlay[hidden] { display: none; }
.overlay-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; max-width: 760px; width: 100%; padding: 2.2rem; position: relative; }
.overlay-box h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.overlay-box p { color: #c7ccd2; font-size: .95rem; margin-bottom: .8rem; }
.overlay-close { position: absolute; top: .6rem; right: 1rem; background: none; border: 0; color: var(--muted); font-size: 2rem; cursor: pointer; line-height: 1; }

/* ---- Video lightbox ---- */
.video-lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 4vh 16px; }
.video-lightbox[hidden] { display: none; }
.lightbox-frame { width: 100%; max-width: 1000px; aspect-ratio: 16/9; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero::before { animation: none; }
  .scroll-cue { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid, .class-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .stat + .stat::before { display: none; }
  .grid, .steps, .req-grid, .class-grid { grid-template-columns: 1fr; }
  .lang-nav { display: none; }
  .site-header .btn-sm { display: none; }
  #sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
  .hero { min-height: 92vh; }
}
