/* wall.app — multi-platform download page
 * Purpose: conversion-focused platform launcher.
 * Design: distinct from wall.support/wall.lu — wider max-width,
 * split-panel hero, numbered-step onboarding, app-store visual feel.
 */

:root {
  --bg:           #080810;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-md:   rgba(255, 255, 255, 0.06);
  --surface-hi:   rgba(255, 255, 255, 0.09);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hi:    rgba(255, 255, 255, 0.15);
  --text:         #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.62);
  --text-dim:     rgba(255, 255, 255, 0.38);

  /* Wall brand cyan */
  --cyan:         #4FC3F7;
  --cyan-2:       #00BCD4;
  --cyan-grad:    linear-gradient(135deg, #4FC3F7 0%, #00BCD4 100%);

  /* Wall brand indigo — CTA / step numbers / active indicators */
  --indigo:       #6366F1;
  --indigo-2:     #818CF8;
  --indigo-grad:  linear-gradient(135deg, #6366F1 0%, #818CF8 100%);

  --max-w: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 900px 500px at 70% -8%, rgba(99, 102, 241, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 700px 400px at 10% 100%, rgba(79, 195, 247, 0.08) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── BILINGUAL TOGGLE ─────────────────────────────────────────────────────
   Both EN and RU spans coexist; CSS shows the one matching <html class>.
   Inline <script> in <head> sets lang-ru for ru/uk/be/kk navigator.language.
   ────────────────────────────────────────────────────────────────────────── */
.i18n-en, .i18n-ru { display: inline; }
.lang-en .i18n-ru  { display: none !important; }
.lang-ru .i18n-en  { display: none !important; }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
/* Brand mark — real Wall 7-brick logo, not the placeholder "W" text.
   Coordinates match LOGO_BRICKS in sites/_tools/generate-og-images.py
   (programmatic recreation of wall_logo_light.svg) so the HTML brand
   mark and OG share-preview brand mark are pixel-identical at proportion.
   Color: var(--indigo) #6366F1 — wall-app per-host accent (the launcher's
   indigo identity, distinct from foundation/support's cyan). */
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  position: relative;
  font-size: 0; /* hide the "W" placeholder text */
  display: inline-block;
}
.brand-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 135'><g fill='%236366F1'><rect x='0' y='0' width='60' height='35' rx='6'/><rect x='75' y='0' width='75' height='35' rx='6'/><rect x='0' y='50' width='30' height='35' rx='6'/><rect x='45' y='50' width='60' height='35' rx='6'/><rect x='120' y='50' width='30' height='35' rx='6'/><rect x='0' y='100' width='75' height='35' rx='6'/><rect x='90' y='100' width='60' height='35' rx='6'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.header-nav a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--text); text-decoration: none; }
.header-nav .nav-open {
  background: var(--indigo-grad);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.header-nav .nav-open:hover { opacity: 0.9; text-decoration: none; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-2);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-2);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
  flex-shrink: 0;
}
.hero h1 {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 20px;
  color: var(--text);
}
.hero h1 .hl {
  background: var(--cyan-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 440px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover {
  text-decoration: none;
  border-color: rgba(79, 195, 247, 0.4);
  color: var(--cyan);
}

/* Right-side hero visual: stats panel */
.hero-panel {
  background: var(--surface-md);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 0%, rgba(79, 195, 247, 0.08), transparent);
  pointer-events: none;
}
.hp-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.hp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.hp-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.hp-stat-n {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
  line-height: 1.1;
}
.hp-stat-n.cyan { color: var(--cyan); }
.hp-stat-l {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  display: block;
}
.hp-tg {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(42, 171, 238, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
}
.hp-tg-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hp-tg-icon svg { width: 18px; height: 18px; fill: #fff; }
.hp-tg-text { flex: 1; }
.hp-tg-name { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.hp-tg-sub { font-size: 11px; color: var(--text-muted); }
.hp-tg-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ─── NO-INSTALL STRIP ──────────────────────────────────────────────────── */
.noinstall {
  background: rgba(79, 195, 247, 0.05);
  border-top: 1px solid rgba(79, 195, 247, 0.12);
  border-bottom: 1px solid rgba(79, 195, 247, 0.12);
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.noinstall strong {
  color: var(--cyan);
  font-weight: 700;
}

/* ─── HOW TO GET WALL — 3 steps ─────────────────────────────────────────── */
.steps-section {
  padding: 64px 0 48px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.steps-section h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--text);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.step {
  background: var(--surface-md);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}
.step-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--indigo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 16px;
  display: block;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.step-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 12px;
}
.step-link:hover { text-decoration: underline; }

/* ─── PLATFORM GRID ─────────────────────────────────────────────────────── */
.platforms-section {
  padding: 0 0 56px;
}
.platforms-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
  text-decoration: none;
  color: var(--text);
  min-height: 170px;
}
.platform.active {
  cursor: pointer;
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
}
.platform.active:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}
.platform.coming { opacity: 0.68; cursor: default; }

.platform-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  flex-shrink: 0;
}
.platform-icon svg { width: 22px; height: 22px; }
.platform.tg  .platform-icon { background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%); }
.platform.ios .platform-icon { background: linear-gradient(135deg, #f0f0f0 0%, #c8c8c8 100%); color: #111; }
.platform.android .platform-icon { background: linear-gradient(135deg, #A4C639 0%, #6faf1f 100%); color: #000; }
.platform.discord .platform-icon { background: linear-gradient(135deg, #5865F2 0%, #404EED 100%); }
.platform.web .platform-icon { background: linear-gradient(135deg, #4FC3F7 0%, #00BCD4 100%); color: var(--bg); }
.platform.more .platform-icon { background: var(--surface-md); }

/* Telegram inline SVG icon */
.platform.tg .platform-icon::before {
  content: "";
  width: 22px; height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/></svg>") center/contain no-repeat;
}

.platform-name { font-size: 16px; font-weight: 700; margin: 0; }
.platform-desc { margin: 0; font-size: 13px; color: var(--text-muted); flex: 1; line-height: 1.5; }
.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.platform.active .platform-status {
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-2);
}
.platform.active .platform-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
.platform.coming .platform-status {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* ─── FEATURES GRID ─────────────────────────────────────────────────────── */
.features-section {
  padding: 0 0 64px;
}
.features-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.features-section .section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.15s;
}
.feature:hover { border-color: var(--border-hi); }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--surface-md);
  display: grid; place-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1;
}
.feature h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.feature p  { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ─── CTA PANEL ─────────────────────────────────────────────────────────── */
.cta-panel {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(79,195,247,0.10) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  margin: 0 0 72px;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -10%, rgba(99,102,241,0.15), transparent);
  pointer-events: none;
}
.cta-panel h2 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.cta-panel p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .container { display: block; }

.ftr-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.ftr-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}
.ftr-col ul { list-style: none; margin: 0; padding: 0; }
.ftr-col li { margin: 0; }
.ftr-col a {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.12s;
}
.ftr-col a:hover { color: var(--cyan); text-decoration: none; }

.ftr-id {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ftr-id-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 4px;
}
.ftr-id-t { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.ftr-id-t a { color: var(--text); }
.ftr-id-t a:hover { color: var(--cyan); }
.ftr-id-s { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.ftr-id-i { font-size: 11px; color: var(--text-dim); line-height: 1.55; margin: 5px 0 0; }
.ftr-id-i strong { color: rgba(255,255,255,0.6); font-weight: 700; }

.ftr-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0 40px;
}
.ftr-bot-c { font-size: 12px; color: var(--text-dim); }
.ftr-bot-c a { color: rgba(255,255,255,0.45); }
.ftr-bot-c a:hover { color: var(--cyan); text-decoration: none; }
.ftr-bot-l { display: flex; gap: 16px; font-size: 12px; }
.ftr-bot-l a { color: var(--text-dim); text-decoration: none; }
.ftr-bot-l a:hover { color: var(--cyan); }

/* ─── FAQ SECTION ───────────────────────────────────────────────────────── */
.faq-section { padding: 80px 0; }
.faq-section h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface-md);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-answer a { color: var(--cyan); }
.faq-answer p { margin: 0; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-panel { display: none; }
  .hero h1 { font-size: 46px; }
  .steps { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .ftr-map { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 15px; }
  .hero-cta { gap: 10px; }
  .btn-primary, .btn-secondary { font-size: 14px; padding: 12px 18px; }
  .steps-section h2, .platforms-section h2, .features-section h2 { font-size: 24px; }
  .platforms { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .ftr-map { grid-template-columns: 1fr; padding: 24px 0; }
  .cta-panel { padding: 36px 24px; }
  .cta-panel h2 { font-size: 26px; }
  .header-nav .nav-help { display: none; }
  .ftr-bot { flex-direction: column; align-items: flex-start; }
}
