/* VelaTV landing pages - shared stylesheet.
 * Same visual language across all locales. Cache-friendly: Firebase Hosting
 * serves this from the CDN with long max-age, so visitors who hop between
 * /ru, /es, /pt-br etc. pay the CSS download cost once. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0e12;
  --surface: #17171d;
  --surface-hover: #1e1e26;
  --border: #2a2a35;
  --text: #d4d4dc;
  --text-dim: #8888a0;
  --accent: #8b7cf6;
  --accent-soft: rgba(139, 124, 246, 0.12);
  --white: #f0f0f5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: 'Inter', 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

/* Layout */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Top bar - language switcher */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar .brand {
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.topbar .langs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.topbar .langs a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.topbar .langs a:hover { color: var(--white); background: var(--accent-soft); }
.topbar .langs a.current { color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.9; }
.hero-cta svg { width: 20px; height: 20px; }
.hero-sub { margin-top: 12px; font-size: 13px; color: var(--text-dim); }

/* Devices */
.devices {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.device { font-size: 13px; color: var(--text-dim); }

/* Section */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--border); }
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
section h2 {
  font-size: 24px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
}
section > p, section > .wrap > p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--accent); }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}
.feature h3 {
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.step { text-align: center; padding: 24px 16px; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 15px; color: var(--white); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-dim); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.faq-a {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: #555; }

/* Responsive */
@media (max-width: 480px) {
  .hero { padding: 40px 0 32px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
