/* War Thunder Offline — project site.
   Same design system as FlyWar: white ground, near-black ink, one orange accent,
   generous spacing, a fixed blurred nav and scroll-reveal animations. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --ink: #111214;
  --ink-2: #4b4f57;
  --muted: #8a8f98;
  --line: #e8e9ec;
  --accent: #f26a1b;
  --accent-soft: #fff2ea;
  --radius: 16px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 64px; padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2); font-size: 14.5px; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--ink); padding: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 148px 0 84px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.hero h1 {
  margin: 0 0 20px; font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
}
.lede { max-width: 62ch; margin: 0 0 30px; color: var(--ink-2); font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 0; padding: 0; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg); padding: 22px 20px; }
.stat dt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin: 0 0 44px; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.02em; font-weight: 800; line-height: 1.15;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #d6d8dd; transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .glyph {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  margin-bottom: 16px; border-radius: 11px; background: var(--accent-soft);
  color: var(--accent); font-size: 17px; font-weight: 700;
}

/* ---------- shots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt);
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.shot.placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  color: var(--muted); font-size: 14px; border-style: dashed;
}

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink-2); font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: 13.5px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  counter-increment: step; position: relative;
  padding: 22px 24px 22px 72px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg);
}
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- notice ---------- */
.notice {
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid #ffd9c2;
  color: #7a3410; font-size: 15px;
}
.notice strong { color: #5e2709; }

/* ---------- footer ---------- */
.footer {
  padding: 56px 0 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- animation ---------- */
.anim { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.anim-d1 { animation-delay: .05s; }
.anim-d2 { animation-delay: .12s; }
.anim-d3 { animation-delay: .2s; }
.anim-d4 { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { height: 58px; }
  .nav-links {
    position: fixed; inset: 58px 0 auto 0; flex-direction: column; gap: 0;
    padding: 8px 24px 18px; background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 118px 0 60px; }
  .section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .stat dt { font-size: 26px; }
}
