/* ============================================
   Dedus VPN — Design System
   ============================================ */

:root {
  /* Accent */
  --color-accent: #fab005;

  /* Dark theme (default) */
  --color-bg: #0d0d0d;
  --color-surface: #1c1c1c;
  --color-text: #ffffff;
  --color-text-secondary: #94a3b8;

  /* Status */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

[data-theme="light"] {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #1F1A12;
  --color-text-secondary: #424242;
}

/* Meteors background (bedolaga-cabinet style) */
.meteors {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
  filter: blur(3px);
  contain: strict;
}

.meteor {
  position: absolute;
  width: 4px;
  height: 280px;
  /* to top: голова (белая) снизу элемента → при rotate(315deg) уходит в нижний левый угол */
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  transform-origin: center center;
  animation: meteor-fall 8s ease-in-out infinite;
}

/* rotate(315deg): низ элемента → нижний левый угол (голова впереди), translateX(-500px): падение вниз-влево */
@keyframes meteor-fall {
  0% {
    transform: rotate(315deg) translateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(315deg) translateX(-500px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meteors {
    display: none;
  }
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body > .header,
body > main,
body > .footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  opacity: 0.9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .header {
  background: rgba(245, 245, 245, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-lg);
}

.logo:hover {
  color: var(--color-text);
  opacity: 0.9;
}

.logo__img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link--cta {
  color: var(--color-accent);
}

.nav__link--cta:hover {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

[data-theme="light"] .header__btn--secondary {
  color: var(--color-text-secondary);
  border-color: rgba(0, 0, 0, 0.2);
}

.header__btn--secondary:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .header__btn--secondary:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.header__btn--primary {
  color: #0d0d0d;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.header__btn--primary:hover {
  background: #e5a004;
  border-color: #e5a004;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.theme-toggle__icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.theme-toggle__svg {
  width: 20px;
  height: 20px;
}

.theme-toggle__icon--sun {
  opacity: 0;
}

.theme-toggle__icon--moon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-3xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__decoration {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 176, 5, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #0d0d0d;
}

.btn--primary:hover {
  background: #e5a004;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(250, 176, 5, 0.3);
}

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

[data-theme="light"] .btn--secondary {
  border-color: rgba(0, 0, 0, 0.12);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
}

[data-theme="light"] .btn--secondary:hover {
  background: rgba(250, 176, 5, 0.08);
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

/* Sections */
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--color-text);
}

/* Stats */
.stats {
  padding: var(--space-3xl) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

[data-theme="light"] .stat-card {
  border-color: rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-card__number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.stat-card__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat-card__suffix {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
}

.stat-card__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

/* Features */
.features {
  padding: var(--space-3xl) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .feature-card {
  border-color: rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 176, 5, 0.3);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 176, 5, 0.12);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* CTA */
.cta {
  padding: var(--space-3xl) 0;
}

.cta__inner {
  background: var(--color-surface);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .cta__inner {
  border-color: rgba(0, 0, 0, 0.06);
}

.cta__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.cta__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Footer */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .footer__bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer__section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.footer__documents .footer__link,
.footer__support .footer__link {
  display: block;
}

.footer__legal {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  font-weight: 600;
}

.footer__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer__documents,
.footer__support {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 60vh;
    padding: var(--space-2xl) 0;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .header__actions {
    gap: var(--space-sm);
  }

  .header__btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
  }

  .footer__documents,
  .footer__support {
    align-items: center;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title,
.hero__subtitle,
.hero__actions {
  animation: fadeInUp 0.6s ease backwards;
}

.hero__subtitle {
  animation-delay: 0.1s;
}

.hero__actions {
  animation-delay: 0.2s;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-2xl));
  max-width: 680px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-lg);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-banner__btn:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    bottom: var(--space-md);
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* Footer inn */
.footer__inn {
  font-style: normal;
}
