:root {
  --bg: #0d1117;
  --text: #e8edf5;
  --muted: #9aa3b5;
  --accent: #f4c400;
  --accent-strong: #d4a700;
  --card: #161f2a;
  --surface: #111923;
  --border: #243446;
  --hover: rgba(255, 255, 255, 0.06);
  --header-bg: rgba(13, 17, 23, 0.9);
  --pill-bg: rgba(244, 196, 0, 0.18);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --footer-bg: #0a0f16;
  --footer-text: #f6f6f6;
  --lang-bg: #131b26;
  --button-secondary-bg: #111923;
  --button-secondary-border: #243446;
  --radius: 14px;
  --max-width: 1200px;
}

.light-theme {
  --bg: #ffffff;
  --text: #111111;
  --muted: #4a4a4a;
  --card: #ffffff;
  --surface: #f7f7f7;
  --border: #e5e5e5;
  --hover: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(255, 255, 255, 0.95);
  --pill-bg: rgba(244, 196, 0, 0.12);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --footer-bg: #0f0f0f;
  --footer-text: #f6f6f6;
  --lang-bg: #f0f0f0;
  --button-secondary-bg: #ffffff;
  --button-secondary-border: #e5e5e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  animation: logo-rise 0.8s ease forwards;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(0) scale(1.03);
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-main {
  font-size: 15px;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--lang-bg);
}

.theme-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.theme-btn.active {
  background: var(--hover);
  color: var(--text);
}

.nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--hover);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--lang-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn.active {
  color: #000;
  background: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

.section {
  padding: 64px 0;
}

.section.light {
  background: var(--surface);
}

.hero {
  padding-top: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(28px, 5vw, 44px);
  margin: 14px 0 12px;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.btn-secondary {
  background: var(--button-secondary-bg);
  color: var(--text);
  border-color: var(--button-secondary-border);
}

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

.muted {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.shadow {
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 14px;
  font-size: 26px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.checklist,
.bullet-list {
  padding-left: 18px;
  color: var(--muted);
}

.checklist li,
.bullet-list li {
  margin-bottom: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stat {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.store-badge {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--card);
  font-weight: 600;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: center;
}

.footer a,
.footer .footer-placeholder {
  color: var(--footer-text);
  opacity: 0.9;
}

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

.footer-social {
  display: flex;
  gap: 10px;
  font-weight: 700;
}

.footer-logo .logo-icon {
  box-shadow: none;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .lang-switch {
    margin-top: 6px;
  }

  .nav-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .burger {
    display: inline-flex;
  }
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
