/* Line Clash — marketing site. Palette follows the game UI (bg #1A2535, gold, purple, green PLAY). */

@font-face { font-family: "Titan One"; src: url("fonts/TitanOne-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #121a27;
  --bg-2: #1a2535;
  --surface: #202d42;
  --surface-2: #26364f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f8;
  --muted: #a3b2c9;
  --faint: #7d8ca4;
  --gold: #f5b92e;
  --gold-deep: #d9930f;
  --gold-ink: #3a2400;
  --purple: #8a6cf5;
  --blue: #4a8ce8;
  --green: #5cbf5f;
  --red: #e5664f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1120px;
  --display: "Titan One", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Language switch: <html data-lang="en|pl">, blocks marked lang="en" / lang="pl". No JS = English. */
html[data-lang="en"] [lang="pl"],
html[data-lang="pl"] [lang="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd56b; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.2vw, 42px); letter-spacing: 0.01em; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 26, 39, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.brand:hover { color: var(--text); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (min-width: 820px) { .nav { display: flex; } }

.lang { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 820px) { .lang { margin-left: 8px; } }
.brand + .lang { margin-left: auto !important; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 800 13px/1 var(--body); letter-spacing: 0.06em; padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 400 19px/1 var(--display); letter-spacing: 0.02em; text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #ffcf4d, var(--gold) 45%, var(--gold-deep)); color: var(--gold-ink); box-shadow: 0 5px 0 #9c6a08, 0 12px 28px rgba(245, 185, 46, 0.28); }
.btn-gold:hover { color: var(--gold-ink); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); font-family: var(--body); font-weight: 800; font-size: 17px; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.chip strong { color: var(--text); font-weight: 800; }

.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("hero-bg.webp") center 30% / cover no-repeat;
  transform: scale(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,26,39,.55) 0%, rgba(18,26,39,.72) 45%, var(--bg) 100%),
    radial-gradient(80% 60% at 20% 30%, rgba(18,26,39,.55), transparent 70%);
}
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; padding-top: 72px; padding-bottom: 96px; } }
.hero-logo { width: min(420px, 82vw); margin: 0 0 18px -8px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.6vw, 50px); letter-spacing: 0.01em; text-shadow: 0 3px 16px rgba(0,0,0,.5); }
.hero .lead { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: #dbe3ef; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 24px; }
.hero-phone { justify-self: center; width: min(300px, 74vw); }
@media (min-width: 900px) { .hero-phone { justify-self: end; width: 320px; transform: rotate(2.5deg); } }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; border-radius: 40px; padding: 10px;
  background: linear-gradient(145deg, #3a475e, #121923 60%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone img { width: 100%; aspect-ratio: 720 / 1560; object-fit: cover; border-radius: 31px; background: var(--bg-2); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
}
.step-art { height: 112px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-bottom: 18px; }
.step-art img { max-height: 112px; width: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.step-art img.sm { max-height: 76px; }
.step h3 { display: flex; align-items: baseline; gap: 10px; }
.step h3::before {
  counter-increment: step; content: counter(step);
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); font: 400 15px/1 var(--display); transform: translateY(-2px);
}
.step p { color: var(--muted); margin-top: 8px; }

/* ---------- Screenshots ---------- */
.shots-band { background: linear-gradient(180deg, var(--bg), var(--bg-2) 40%, var(--bg)); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 72vw); gap: 22px; overflow-x: auto; padding: 8px 16px 20px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 8px 0 0; gap: 36px; } }
.shot { scroll-snap-align: center; margin: 0; }
.shot figcaption { margin-top: 18px; text-align: center; }
.shot figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.shot figcaption span { color: var(--muted); font-size: 15px; }

/* ---------- Modes ---------- */
.modes { display: grid; gap: 16px; }
@media (min-width: 820px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mode .tag { display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.mode p { color: var(--muted); margin-top: 8px; }
.tag-blue { background: rgba(74,140,232,.16); color: #8fbaf6; }
.tag-green { background: rgba(92,191,95,.16); color: #8fdc91; }
.tag-purple { background: rgba(138,108,245,.18); color: #b7a6ff; }

/* ---------- Units ---------- */
.units-group + .units-group { margin-top: 44px; }
.units-group h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.units-group h3 small { font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--faint); }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (min-width: 700px) { .units { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; } }
.unit {
  position: relative; padding: 14px 10px 12px; border-radius: var(--radius-sm); text-align: center;
  background: radial-gradient(120% 90% at 50% 20%, #2c3d59, var(--surface) 70%); border: 1px solid var(--line);
}
.unit img { height: 92px; width: auto; max-width: 100%; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
@media (min-width: 700px) { .unit img { height: 108px; } }
.unit span { display: block; font-weight: 800; font-size: 14px; line-height: 1.25; }
.unit.lv2 { background: radial-gradient(120% 90% at 50% 20%, #3b2f63, #2a2442 70%); border-color: rgba(138,108,245,.35); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 7px; }
.badge { white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: rgba(138,108,245,.32); color: #ddd4ff; }
.badge.fly { background: rgba(74,140,232,.3); color: #c3dbfc; }
.units-note { margin-top: 18px; color: var(--faint); font-size: 15px; }

/* ---------- Progression ---------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
@media (min-width: 1000px) { .feature { grid-template-columns: 1fr; } }
.feature img { width: 56px; height: 56px; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.feature p { color: var(--muted); margin-top: 6px; font-size: 16px; }

/* ---------- Beta band ---------- */
.beta {
  position: relative; overflow: hidden; border-radius: 26px; padding: 40px 24px;
  background: linear-gradient(135deg, #3a2a7a, #22325a 55%, #1a2535);
  border: 1px solid rgba(138,108,245,.35); box-shadow: var(--shadow);
  display: grid; gap: 26px; align-items: center;
}
@media (min-width: 820px) { .beta { grid-template-columns: auto 1fr auto; padding: 44px 48px; gap: 36px; } }
.beta .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.beta h2 { font-size: clamp(26px, 3.4vw, 36px); }
.beta p { color: #d3dbea; margin-top: 10px; }
.beta small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Support ---------- */
.support { display: grid; gap: 16px; }
@media (min-width: 820px) { .support { grid-template-columns: repeat(3, 1fr); } }
.support article { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.support article p { color: var(--muted); margin-top: 8px; }
.email { font-weight: 800; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal page ---------- */
.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 46px); }
.legal .meta { color: var(--faint); margin-top: 10px; font-size: 15px; }
.legal .summary { margin: 30px 0 8px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.legal .summary h2 { font-family: var(--body); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal .summary li { margin: 6px 0; }
.legal section { margin-top: 38px; }
.legal section h2 { font-family: var(--body); font-weight: 800; font-size: 23px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; color: #dfe6f1; }
.legal p, .legal li { color: #cfd8e6; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 7px 0; }
.legal .basis { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.legal .basis b { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 800; width: 34%; }
.legal td { color: #cfd8e6; }
@media (max-width: 560px) {
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal th { padding-bottom: 2px; border-bottom: 0; }
  .legal td { padding-top: 2px; }
}
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; margin-bottom: 20px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound-logo { margin: 0 auto 24px; width: min(320px, 70vw); }
.notfound-cta { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
  .hero-phone { transform: none !important; }
}
