/* ============================================================
   Balloon Game — multilanding theme
   balloon-games.org
   ============================================================ */

:root {
  --bg: #0d1021;
  --bg-soft: #141833;
  --bg-card: #1a1f3d;
  --bg-card-hover: #212752;
  --border: #2c3260;
  --text: #eef0ff;
  --text-soft: #b9bee0;
  --muted: #8b91bd;
  --accent: #ff4d6d;
  --accent-2: #ff8f3d;
  --accent-grad: linear-gradient(135deg, #ff4d6d 0%, #ff8f3d 100%);
  --gold: #ffd166;
  --green: #3ddc97;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(4, 6, 20, 0.45);
  --container: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 33, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span b { color: var(--accent); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.main-nav a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }

/* language dropdown */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  user-select: none;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after { content: "▾"; font-size: 11px; color: var(--muted); }
.lang-switch[open] > summary { color: var(--text); border-color: var(--accent); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 120;
}
.lang-menu a {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 7px;
}
.lang-menu a:hover { background: var(--bg-card-hover); color: var(--text); text-decoration: none; }
.lang-menu a.active { color: var(--gold); font-weight: 700; }
.lang-menu a .code { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(255, 77, 109, 0.28), transparent 60%),
    radial-gradient(600px 380px at 5% 110%, rgba(255, 143, 61, 0.18), transparent 60%),
    linear-gradient(180deg, #12152e 0%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
[data-go] { cursor: pointer; }
.btn-primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 10px 26px rgba(255, 77, 109, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(255, 77, 109, 0.5); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
}
.stat-card {
  background: rgba(26, 31, 61, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-card .num { display: block; font-size: 22px; font-weight: 800; color: var(--gold); }
.stat-card .lbl { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }

/* floating balloons decoration */
.balloon-deco {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
  opacity: 0.5;
  filter: blur(1px);
  animation: float 7s ease-in-out infinite;
  z-index: 1;
}
.balloon-deco::after {
  content: "";
  position: absolute;
  bottom: -9px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: inherit;
}
.b1 { width: 120px; height: 150px; background: radial-gradient(circle at 32% 28%, #ff8aa5, #ff4d6d 70%); top: 12%; inset-inline-end: 12%; animation-delay: 0s; }
.b2 { width: 74px; height: 92px; background: radial-gradient(circle at 32% 28%, #ffc39a, #ff8f3d 70%); top: 46%; inset-inline-end: 26%; animation-delay: 1.6s; }
.b3 { width: 52px; height: 64px; background: radial-gradient(circle at 32% 28%, #ffe29a, #ffd166 70%); top: 70%; inset-inline-end: 9%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-26px) rotate(2deg); }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.section h2 .hl { color: var(--accent); }
.section h3 { font-size: 21px; font-weight: 700; margin: 26px 0 10px; }
.section p { color: var(--text-soft); margin-bottom: 16px; max-width: 860px; }
.section ul, .section ol { color: var(--text-soft); margin: 0 0 16px 0; padding-inline-start: 24px; max-width: 860px; }
.section li { margin-bottom: 8px; }
.section li b, .section p b { color: var(--text); }

.lead-h2 {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

/* feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--bg-card-hover); }
.card .icon { display: block; margin-bottom: 12px; }
.card .icon svg { width: 34px; height: 34px; display: block; }
.card:nth-child(1) .icon { color: #ff4d6d; }
.card:nth-child(2) .icon { color: #ffd166; }
.card:nth-child(3) .icon { color: #3ddc97; }
.card:nth-child(4) .icon { color: #6ea8fe; }
.card:nth-child(5) .icon { color: #b892ff; }
.card:nth-child(6) .icon { color: #ff8f3d; }

/* inline svg icons */
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.btn .ic { width: 20px; height: 20px; }
.lang-switch > summary .ic { width: 17px; height: 17px; }
.burger .ic { width: 20px; height: 20px; display: block; }
.pc-box.pros h3 .ic { color: var(--green); }
.pc-box.cons h3 .ic { color: var(--accent); }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { font-size: 15px; color: var(--text-soft); margin: 0; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 26px; max-width: 860px; padding-inline-start: 0 !important; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px 18px 72px;
  color: var(--text-soft);
}
[dir="rtl"] .steps li { padding: 18px 72px 18px 20px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  inset-inline-start: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--accent-grad);
  border-radius: 50%;
}

/* tables */
.table-wrap { overflow-x: auto; margin: 24px 0; max-width: 860px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 15.5px;
}
th, td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--border); }
th { background: var(--bg-card-hover); color: var(--gold); font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase; }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 600; }

/* pros/cons */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; max-width: 900px; }
.pc-box {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.pc-box.pros { border-top: 4px solid var(--green); }
.pc-box.cons { border-top: 4px solid var(--accent); }
.pc-box h3 { margin-top: 0; }
.pc-box ul { margin: 0; }

/* demo box */
.demo-box {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.12), rgba(255, 143, 61, 0.08));
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: var(--radius);
  padding: 34px;
  margin-top: 26px;
}
.demo-screen {
  flex: 0 0 260px;
  height: 200px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 120%, #232a55, #12152e 75%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.demo-balloon {
  width: 84px;
  height: 104px;
  border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
  background: radial-gradient(circle at 32% 28%, #ff8aa5, #ff4d6d 70%);
  position: relative;
  animation: inflate 3.4s ease-in-out infinite;
}
.demo-balloon::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #ff4d6d;
}
.demo-multi {
  position: absolute;
  top: 14px;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
@keyframes inflate {
  0%, 100% { transform: scale(0.82); }
  55% { transform: scale(1.12); }
  70% { transform: scale(1.05); }
}
.demo-text { flex: 1 1 320px; }

/* faq */
.faq { max-width: 860px; margin-top: 24px; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
  font-size: 16.5px;
  padding: 18px 20px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-card-hover);
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-soft); font-size: 15.5px; }

/* note */
.note {
  border-inline-start: 4px solid var(--gold);
  background: rgba(255, 209, 102, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 860px;
  margin-top: 22px;
}
[dir="rtl"] .note { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.note b { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0d1c;
  padding: 54px 0 30px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 34px;
  margin-bottom: 34px;
}
.footer-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; letter-spacing: 0.4px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-langs a {
  font-size: 12.5px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--bg-soft);
}
.footer-langs a:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.footer-langs a.active { color: var(--gold); border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.responsible { display: flex; align-items: center; gap: 14px; max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .burger { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 11px 12px; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .pc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .balloon-deco { display: none; }
}

/* RTL tweaks */
[dir="rtl"] .hero-inner { margin-inline-start: auto; }
[dir="rtl"] .logo { letter-spacing: 0; }
