@import url("../fonts/fonts.css?v=fcaa32f914");

/* BattleForge site. One deliberate dark theme (the game's night-war world);
   ice blue = the app's brand accent, ember = the fires in the backgrounds. */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0c1016;
  --panel: #111821;
  --panel-2: #17202b;
  --line: #243142;
  --text: #eef3f7;
  --muted: #9aa7b4;
  --ice: #8fd3ff;
  --ice-deep: #1a3448;
  --ember: #ec8f45;
  --ember-deep: #3a2414;
  --good: #7fd88f;
  --bad: #ef8b8b;
  --radius: 14px;
  --display: "Cormorant SC", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c2e8ff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.05; }
h1 { font-size: clamp(38px, 5vw, 62px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember);
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c8d3dd; max-width: 60ch; }

/* -- buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #ffb069, var(--ember)); color: #1b0f06; box-shadow: 0 8px 30px rgba(236, 143, 69, .28); }
.btn-primary:hover { color: #1b0f06; background: linear-gradient(180deg, #ffc088, #f29a52); }
.btn-ghost { background: rgba(143, 211, 255, .08); border-color: rgba(143, 211, 255, .35); color: var(--ice); }
.btn-ghost:hover { background: rgba(143, 211, 255, .16); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ice); color: var(--ice); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* -- header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 13, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 49, 66, .6);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 26px; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font: 700 13px var(--body); cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--panel); }
.lang summary svg { width: 17px; height: 17px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lang-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; color: var(--muted); font: 600 14px var(--body); padding: 9px 12px; cursor: pointer; }
.lang-list button:hover { background: var(--panel); color: var(--text); }
.lang-list button[aria-pressed="true"] { color: var(--ice); }
.title-line { display: block; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* -- hero ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #07090d url("../img/hero-poster.webp") center/cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .55) 55%, rgba(7, 9, 13, .35) 100%),
              linear-gradient(180deg, rgba(7, 9, 13, 0) 60%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero-copy { display: grid; gap: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

/* App preview (HTML replica of the real app window). */
.app-preview {
  background: #101418; border: 1px solid #263140; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(143, 211, 255, .06);
  font-size: 13px; max-width: 480px; justify-self: end; width: 100%;
}
.app-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #1b2028; color: var(--ice); font-weight: 700; }
.app-titlebar i { color: #e08080; font-style: normal; }
.app-account { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #151a21; border-bottom: 1px solid #232a33; }
.app-avatar { width: 24px; height: 24px; border-radius: 50%; background: #1b3142; color: var(--ice); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.app-name { font-weight: 700; }
.app-plan { background: #1b3142; color: var(--ice); border-radius: 8px; padding: 0 7px; font-weight: 700; font-size: 11px; }
.app-profile { margin-left: auto; color: var(--muted); font-size: 12px; }
.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #1b2028; }
.app-tabs span { text-align: center; padding: 9px 4px; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; }
.app-tabs span.on { color: var(--text); background: #101418; border-color: var(--ice); font-weight: 700; }
.app-body { padding: 14px; display: grid; gap: 10px; }
.app-status { display: flex; align-items: center; gap: 8px; }
.app-status b { color: var(--good); }
.app-buttons { display: flex; gap: 8px; }
.app-buttons span { flex: 1; text-align: center; padding: 8px; border-radius: 10px; background: #232a33; font-weight: 700; }
.app-buttons .start { background: #1b3142; color: var(--ice); border: 1px solid var(--ice); }
.app-buttons .stop { color: #e08080; }
.app-log { background: #0b0e11; border-radius: 10px; padding: 10px 12px; font: 12px/1.7 "Cascadia Mono", Consolas, monospace; color: #b9c4cf; min-height: 150px; }
.app-log .t { color: #5f6b77; }
.app-log .ok { color: var(--good); }
.app-log .gold { color: #e8c26a; }
.preview-caption { margin-top: 10px; text-align: right; color: var(--muted); font-size: 12px; }

/* -- promo banner ------------------------------------------------------------------ */
.promo { background: linear-gradient(90deg, var(--ember-deep), #16202b); border-block: 1px solid rgba(236, 143, 69, .35); }
.promo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 14px; }
.promo-text { font-weight: 600; }
.promo-code { font: 700 18px "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; color: #ffd2a8; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(236, 143, 69, .6); padding: 6px 12px; border-radius: 8px; }
.promo-until { color: var(--muted); font-size: 14px; }

/* -- sections ---------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-map { background: var(--bg-2) url("../img/war-map.webp") center/cover no-repeat; position: relative; }
.section-map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 9, 13, .4) 18%, rgba(7, 9, 13, .4) 82%, var(--bg) 100%); pointer-events: none; }
.section-map > * { position: relative; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { border-left: 2px solid var(--ember); padding: 4px 0 4px 18px; display: grid; gap: 6px; }
.pain strong { font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: linear-gradient(180deg, rgba(23, 32, 43, .92), rgba(17, 24, 33, .92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start;
}
.feature-head { display: flex; align-items: center; gap: 14px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ice-deep); display: grid; place-items: center; flex: none; }
.feature-icon svg { width: 26px; height: 26px; color: var(--ice); }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; align-items: baseline; color: #c8d3dd; }
.feature li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--ice); transform: translateY(-2px) rotate(45deg); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.tag-pro { background: var(--ice-deep); color: var(--ice); }
.tag-free { background: rgba(127, 216, 143, .12); color: var(--good); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; counter-increment: step; }
.step::before { content: counter(step); font: 700 40px/1 var(--display); color: var(--ember); }

/* -- pricing -------------------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 18px; align-content: start; }
.plan-pro { border-color: rgba(143, 211, 255, .45); background: linear-gradient(180deg, #13202c, #111821); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.plan-name { font: 700 34px/1 var(--display); }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price .amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.plan-price .per { color: var(--muted); }
.plan-price s { color: var(--muted); font-size: 20px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.plan li.yes svg { color: var(--good); }
.plan li.no { color: var(--muted); }
.plan li.no svg { color: #56616d; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.option {
  position: relative; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; color: var(--text); cursor: pointer; font: inherit; display: grid; gap: 4px;
}
.option:hover { border-color: rgba(143, 211, 255, .6); }
.option[aria-pressed="true"] { border-color: var(--ice); box-shadow: 0 0 0 1px var(--ice) inset; background: #16293a; }
.option .o-title { font-weight: 700; }
.option .o-price { font-size: 20px; font-weight: 800; }
.option .o-old { color: var(--muted); font-size: 13px; }
.option .o-badge { position: absolute; top: -10px; right: 10px; background: var(--ember); color: #1b0f06; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.signup-note { background: rgba(127, 216, 143, .08); border: 1px solid rgba(127, 216, 143, .35); color: #cfeed6; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.price-skeleton { color: var(--muted); }

/* -- trust ---------------------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.trust-item svg { width: 26px; height: 26px; color: var(--ember); }
.risk { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 90ch; }

/* -- faq ------------------------------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--ice); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: #c8d3dd; }

/* -- final cta + footer ----------------------------------------------------------------- */
.final { text-align: center; display: grid; justify-items: center; gap: 18px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: 13px; }

/* -- account page ----------------------------------------------------------------------- */
.account-shell { min-height: calc(100vh - 68px); background: var(--bg-2) url("../img/war-map.webp") center/cover fixed; padding-block: 36px 64px; font-size: 15px; }
.account-grid { display: grid; gap: 16px; max-width: 600px; margin-inline: auto; }
.card { background: rgba(17, 24, 33, .94); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; gap: 12px; }
.card h1 { font-size: clamp(26px, 3.4vw, 32px); }
.card h2 { font-size: clamp(20px, 2.4vw, 24px); }
.card .btn:not(.btn-sm) { min-height: 42px; padding-inline: 18px; font-size: 15px; }
.card .plan-price .amount { font-size: 30px; }
.card .option .o-price { font-size: 17px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 14px; font-weight: 600; }
.input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #0b1016; color: var(--text); padding: 0 14px; font: 15px var(--body); width: 100%; }
.input:focus { outline: 2px solid var(--ice); outline-offset: 0; border-color: transparent; }
.input.code { letter-spacing: .5em; font-size: 24px; text-align: center; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.msg-error { background: rgba(239, 139, 139, .1); color: var(--bad); border: 1px solid rgba(239, 139, 139, .35); }
.msg-ok { background: rgba(127, 216, 143, .1); color: var(--good); border: 1px solid rgba(127, 216, 143, .35); }
.msg-info { background: rgba(143, 211, 255, .08); color: #cfe9fb; border: 1px solid rgba(143, 211, 255, .3); }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { display: inline-block; border-radius: 8px; padding: 3px 10px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.pill-pro { background: var(--ice-deep); color: var(--ice); }
.pill-free { background: var(--panel-2); color: var(--muted); }
#google-button { min-height: 44px; width: 100%; max-width: 360px; overflow: hidden; }

.legal { max-width: 820px; margin-inline: auto; padding-block: 48px 80px; display: grid; gap: 16px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-family: var(--body); font-size: 20px; font-weight: 800; margin-top: 12px; }
.legal p, .legal li { color: #c8d3dd; }
.draft { border: 1px dashed var(--ember); color: #ffd2a8; border-radius: 10px; padding: 10px 14px; }

/* -- responsive -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .app-preview { justify-self: start; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: rgba(7, 9, 13, .97); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .header-actions .btn-download-top { display: none; }
  .features, .steps, .pain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .brand span { display: none; }
  .hero-ctas .btn { width: 100%; }
  .trust { grid-template-columns: 1fr; }
  .feature, .plan, .card, .step { padding: 20px; }
  .app-tabs span { font-size: 11px; padding-inline: 2px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .btn { transition: none; }
}
.ref-row { align-items: center; }
.ref-code { font: 700 18px var(--body); letter-spacing: .12em; color: var(--ice); background: var(--ice-deep); padding: 7px 12px; border-radius: 10px; }
