:root {
  --bg: #0f1216;
  --bg-soft: #141924;
  --surface: #1b2230;
  --surface-2: #222b3b;
  --stroke: #2d3748;
  --text: #f5f7fb;
  --muted: #b7c0cf;
  --primary: #1e88e5;
  --primary-2: #00a5a5;
  --accent: #7cb342;
  --warning: #ffb300;
  --danger: #ef5350;
  --shadow: 0 18px 50px rgba(10, 20, 40, 0.45);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-w: 1200px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, rgba(30, 136, 229, 0.18), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(0, 165, 165, 0.2), transparent 40%),
    linear-gradient(180deg, #0b0f14 0%, #0f141b 50%, #0b0f14 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  top: 10px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
}

.hero {
  padding: 90px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(30, 136, 229, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: linear-gradient(160deg, rgba(34, 43, 59, 0.9), rgba(22, 28, 39, 0.9));
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  border-radius: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 70px 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 12px;
}

.section p.lead {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
  margin: 0 0 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  min-height: 200px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 179, 66, 0.6);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 179, 66, 0.2);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.safety-card {
  background: rgba(22, 29, 41, 0.9);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.download {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(0, 165, 165, 0.12));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: center;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.download-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.footer {
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 20, 26, 0.95), rgba(8, 11, 16, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  padding-right: 20px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand img {
  width: 36px;
  height: 36px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(30, 136, 229, 0.2);
  border-color: rgba(30, 136, 229, 0.4);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-meta {
  margin-top: 8px !important;
  font-size: 12px !important;
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.language-switcher {
  position: relative;
  display: inline-block;
}

.language-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #111826;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  min-width: 360px;
  max-height: 460px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.language-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown-header {
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.language-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.language-option.is-current {
  font-weight: 700;
  color: #fff;
  background: rgba(124, 179, 66, 0.18);
}

@media (max-width: 980px) {
  .hero-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: rgba(12, 16, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 14px;
    min-width: 200px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .language-dropdown {
    min-width: 320px;
    max-width: 92vw;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
  }

  .language-dropdown.is-open {
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .feature-card {
    transition: none;
  }
}
/* Tablet refinement */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }

  .footer-brand .brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Mobile refinement */
@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max-w));
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 64px 0 40px;
  }

  .hero h1 {
    font-size: clamp(30px, 7vw, 40px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .feature-card,
  .step,
  .safety-card,
  .faq-item {
    padding: 18px;
  }

  .download-grid {
    gap: 24px;
  }

  .download-list li {
    align-items: flex-start;
  }

  .footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    padding: 20px 0;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .language-dropdown {
    min-width: 280px;
  }
}
