:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-footer: rgba(255, 255, 255, 0.65);

  --header-bg: rgba(10, 10, 10, 0.88);
  --header-border: rgba(255, 255, 255, 0.08);

  --section-alt: rgba(255, 255, 255, 0.03);

  --card-border: rgba(34, 211, 238, 0.12);
  --card-bg: linear-gradient(to bottom right, rgba(255,255,255,0.05), rgba(34,211,238,0.05));
  --card-bg-soft: linear-gradient(to bottom right, rgba(255,255,255,0.04), rgba(34,211,238,0.04));
  --card-bg-mini: linear-gradient(to bottom right, rgba(255,255,255,0.04), rgba(34,211,238,0.03));

  --input-bg: rgba(255,255,255,0.08);
  --input-border: rgba(34, 211, 238, 0.15);
  --placeholder: rgba(255, 255, 255, 0.45);

  --badge-text: #a5f3fc;
  --badge-bg: rgba(34, 211, 238, 0.1);
  --badge-border: rgba(34, 211, 238, 0.2);

  --btn-secondary-text: #a5f3fc;
  --btn-secondary-border: rgba(34, 211, 238, 0.3);

  --nav-hover: #67e8f9;
  --theme-toggle-bg: rgba(255,255,255,0.1);
  --theme-toggle-hover: rgba(255,255,255,0.2);
}

body.light-mode {
  --bg: #f8fafc;
  --text: #0f172a;
  --text-soft: rgba(15, 23, 42, 0.78);
  --text-muted: rgba(15, 23, 42, 0.6);
  --text-footer: rgba(15, 23, 42, 0.7);

  --header-bg: rgba(248, 250, 252, 0.9);
  --header-border: rgba(15, 23, 42, 0.08);

  --section-alt: rgba(15, 23, 42, 0.03);

  --card-border: rgba(14, 165, 233, 0.16);
  --card-bg: linear-gradient(to bottom right, rgba(255,255,255,0.95), rgba(14,165,233,0.08));
  --card-bg-soft: linear-gradient(to bottom right, rgba(255,255,255,0.96), rgba(14,165,233,0.07));
  --card-bg-mini: linear-gradient(to bottom right, rgba(255,255,255,0.98), rgba(14,165,233,0.06));

  --input-bg: rgba(15,23,42,0.04);
  --input-border: rgba(14, 165, 233, 0.18);
  --placeholder: rgba(15, 23, 42, 0.45);

  --badge-text: #0891b2;
  --badge-bg: rgba(34, 211, 238, 0.12);
  --badge-border: rgba(14, 165, 233, 0.2);

  --btn-secondary-text: #0f172a;
  --btn-secondary-border: rgba(14, 165, 233, 0.25);

  --nav-hover: #0891b2;
  --theme-toggle-bg: rgba(15,23,42,0.08);
  --theme-toggle-hover: rgba(15,23,42,0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-10px);
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.brand-slogan {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.2;
}

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

.nav a:hover {
  color: var(--nav-hover);
}

.theme-toggle {
  cursor: pointer;
  border: 0;
  background: var(--theme-toggle-bg);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--theme-toggle-hover);
  transform: translateY(-1px);
}

.hero {
  padding: 90px 0;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 28%),
    radial-gradient(circle at left, rgba(6, 182, 212, 0.12), transparent 30%),
    radial-gradient(circle at bottom, rgba(59, 130, 246, 0.1), transparent 34%);
}

.hero-grid,
.about-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hero h1,
.section h2 {
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 18px 0;
}

.hero-text,
.section-text {
  color: var(--text-soft);
}

.badge,
.section-label {
  display: inline-block;
  color: var(--badge-text);
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 14px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--section-alt);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  margin-bottom: 10px;
}

.hero-buttons,
.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, #22d3ee, #0ea5e9, #2563eb);
  color: white;
}

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

.card,
.benefit-card {
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 24px;
}

.hero-card {
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: var(--card-bg-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-card {
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: var(--card-bg-mini);
  padding: 28px 26px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-card {
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: var(--card-bg-mini);
  padding: 22px 24px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-grid,
.stats-grid,
.cards-grid,
.benefits-list {
  display: grid;
  gap: 20px;
}

.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid,
.cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.status-card h3 {
  margin: 10px 0 12px;
  font-size: 2rem;
  line-height: 1.1;
}

.status-card p,
.mini-card p,
.mini-card strong {
  margin: 0;
}

.mini-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 6px 0;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--placeholder);
}

.site-footer {
  border-top: 1px solid var(--header-border);
  padding-top: 24px;
}

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

.address,
.footer-bottom {
  color: var(--text-footer);
}

.footer-bottom {
  text-align: center;
  padding: 18px 0 28px;
  margin-top: 18px;
  border-top: 1px solid var(--header-border);
  font-size: 13px;
}

.legal-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 60px 0;
}

.legal-page .btn-secondary {
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .stats-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand {
    width: 100%;
    gap: 12px;
    margin-left: 0;
  }

  .logo {
    height: 85px;
  }

  .brand-text {
    transform: translateY(-4px);
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero-card {
    padding: 18px;
    gap: 14px;
  }

  .status-card {
    min-height: auto;
    padding: 22px;
  }

  .status-card h3 {
    font-size: 1.6rem;
  }

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

  .mini-card {
    min-height: auto;
    padding: 18px 20px;
  }
}

@media (min-width: 900px) {
  .brand {
    margin-left: 60px;
  }
}