@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Baloo+2:wght@700;800&display=swap');

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

:root {
  --bg-deep: #0A0C12;
  --bg-primary: #0F1218;
  --bg-card: #161B22;
  --bg-card-hover: #21262D;
  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted: #484F58;
  --accent: #58A6FF;
  --accent-hover: #79C0FF;
  --accent-secondary: #6CB6FF;
  --accent-success: #3FB950;
  --accent-warning: #D29922;
  --accent-danger: #F85149;
  --border: #30363D;
  --border-hover: #484F58;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* ── Background ────────────────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: var(--bg-deep);
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px; height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo img {
  height: 22px; display: block;
}
.nav-center {
  display: flex; gap: 4px;
}
.nav-auth {
  display: flex; gap: 4px; justify-content: flex-end; align-items: center;
}
.nav-link {
  padding: 8px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: all 0.2s ease; border: none; background: none; cursor: pointer;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link--accent {
  background: var(--accent); color: var(--bg-deep);
  font-weight: 700; border: none;
}
.nav-link--accent:hover {
  color: var(--bg-deep);
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  background: none; border: none; cursor: pointer;
  font-family: inherit; transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn svg { flex-shrink: 0; }
.lang-arrow {
  transition: transform 0.2s ease;
}
.lang-dropdown.open + .lang-btn .lang-arrow,
.lang-dropdown.open ~ .lang-btn .lang-arrow {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 150px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}
.lang-dropdown.open {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-option {
  display: block; width: 100%;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: all 0.1s ease;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero-centered {
  min-height: 60vh;
  padding: 68px 32px 0;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  position: relative; z-index: 1;
}
.hero-centered::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 1px, rgba(88, 166, 255, 0.08) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.hero-centered-text {
  text-align: center;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  background: rgba(88, 166, 255, 0.06);
  border: 1px solid rgba(88, 166, 255, 0.15);
  color: var(--accent); margin-bottom: 24px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-centered h1 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: 64px; font-weight: 800;
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-centered h1 span {
  color: var(--accent);
}
.hero-centered-desc {
  font-size: 19px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 40px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero-centered-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-centered-stats {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; flex-wrap: wrap;
}
.hero-stat {
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.hero-stat strong {
  color: var(--accent); font-weight: 800;
}
.hero-stat-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-muted);
}

/* ── Video Modal ──────────────────────────────────────── */
.video-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.video-modal-backdrop.open {
  opacity: 1; pointer-events: auto;
}
.video-modal {
  position: relative;
  width: 80vw;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.video-modal video {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.video-modal-close {
  position: fixed; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 1;
}
.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 100px;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit; position: relative;
}
.btn-primary {
  background: var(--accent); color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: var(--bg-deep);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.btn-secondary:active { transform: translateY(0); }



/* ── Features ──────────────────────────────────────────── */
.features {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
  position: relative; z-index: 1;
}
.features-header {
  text-align: center; margin-bottom: 48px;
}
.features-header h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 40px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.features-header p {
  color: var(--text-secondary); font-size: 17px; font-weight: 500;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(88, 166, 255, 0.06);
  border: 1px solid rgba(88, 166, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all 0.2s ease;
}
.feature-card:hover .feature-icon {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.18);
}
.feature-card h3 {
  font-size: 18px; font-weight: 800;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.65; font-weight: 500;
}

/* ── Pricing ───────────────────────────────────────────── */
.pricing {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
  position: relative; z-index: 1;
}
.pricing-header {
  text-align: center; margin-bottom: 48px;
}
.pricing-header h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 40px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.pricing-header p {
  color: var(--text-secondary); font-size: 17px; font-weight: 500;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch;
}
.pricing-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.pricing-card {
  position: relative;
  transition: all 0.2s ease;
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card-inner .btn {
  margin-top: auto;
}
.pricing-card:hover .pricing-card-inner {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-float);
}

.pricing-card--popular .pricing-card-inner {
  border-color: rgba(88, 166, 255, 0.3);
  background: var(--bg-card);
}

.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg-deep);
  padding: 5px 20px; border-radius: 100px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}
.pricing-card h3 {
  font-size: 18px; font-weight: 800; margin-bottom: 8px;
}
.pricing-price {
  font-family: 'Baloo 2', sans-serif;
  font-size: 42px; font-weight: 800;
  margin-bottom: 4px; letter-spacing: -0.03em;
  color: var(--text-primary);
}
.pricing-price span {
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text-muted);
}
.pricing-period {
  font-size: 13px; color: var(--text-muted); font-weight: 600;
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none; margin-bottom: 28px;
}
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary); font-weight: 600;
  padding: 7px 0;
}
.pricing-features li.pf-yes::before {
  content: "\2713"; color: var(--accent-success);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(63, 185, 80, 0.08);
  flex-shrink: 0;
}
.pricing-features li.pf-no {
  color: var(--text-muted);
}
.pricing-features li.pf-no::before {
  content: "\2715"; color: var(--text-muted);
  font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── Auth Pages ────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.auth-card .nav-logo {
  display: flex; justify-content: center;
  margin-bottom: 8px;
}
.auth-card .nav-logo img {
  height: 28px;
}
.auth-card h2 {
  text-align: center; font-size: 22px;
  font-weight: 800; margin-bottom: 32px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px;
  font-weight: 700; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 13px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px; font-family: inherit; font-weight: 600;
  outline: none; transition: all 0.2s ease;
}
.form-input:focus {
  border-color: var(--accent);
}
.form-input::placeholder { color: var(--text-muted); }
.form-error {
  display: none; padding: 12px 16px;
  background: rgba(248, 81, 73, 0.06);
  border: 1px solid rgba(248, 81, 73, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-danger);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.form-error.visible { display: block; }
.auth-link {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--text-secondary); font-weight: 600;
}

/* ── Dashboard ─────────────────────────────────────────── */
.dashboard-page {
  min-height: 100vh; padding: 100px 32px 32px;
  max-width: 600px; margin: 0 auto;
  position: relative; z-index: 1;
}
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.dashboard-card h2 {
  font-size: 22px; font-weight: 800; margin-bottom: 24px;
}
.dashboard-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.dashboard-row:last-child { border-bottom: none; }
.dashboard-label { font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.dashboard-value { font-size: 14px; font-weight: 700; }
.status-active { color: var(--accent-success); }
.status-expired { color: var(--accent-danger); }
.status-none { color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────── */
.footer-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 56px 32px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer-logo img {
  height: 20px; display: block;
}
.footer-tagline {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.65; font-weight: 500;
  max-width: 280px;
}
.footer-col {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-centered { padding: 110px 20px 48px; }
  .hero-centered h1 { font-size: 34px; }
  .hero-centered-desc { font-size: 15px; }
  .video-modal-backdrop { padding: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 40px 20px; }
  .features-header h2 { font-size: 30px; }
  .pricing-grid, .pricing-grid--4 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing { padding: 60px 20px; }
  .pricing-header h2 { font-size: 30px; }
  .nav-inner { padding: 0 20px; display: flex; justify-content: space-between; }
  .nav-center { display: none; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column; gap: 8px; text-align: center;
  }
}
