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

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

:root {
  --bg-primary: #0A0C12;
  --bg-secondary: #161B22;
  --bg-tertiary: #21262D;
  --bg-hover: #292F38;
  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted: #484F58;
  --accent: #58A6FF;
  --accent-hover: #79C0FF;
  --accent-success: #3FB950;
  --accent-warning: #D29922;
  --accent-danger: #F85149;
  --border: #30363D;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

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

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

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo img {
  height: 22px; display: block;
}
.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s; border: none; background: none; cursor: pointer;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link--accent {
  background: var(--accent); color: #000; font-weight: 600;
}
.nav-link--accent:hover { background: var(--accent-hover); color: #000; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 140px 48px 80px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 64px;
}
.hero-text {
  flex: 1; min-width: 0;
}
.hero-badge {
  display: inline-block; padding: 6px 14px;
  border-radius: 100px; font-size: 12px; font-weight: 600;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.15);
  color: var(--accent); margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 48px; font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 28px;
  max-width: 420px;
}
.hero-buttons {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-stats {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px; flex-wrap: wrap;
}
.hero-stat {
  font-size: 13px; color: var(--text-muted);
}
.hero-stat strong {
  color: var(--text-primary); font-weight: 700;
}
.hero-stat-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-muted);
}

/* ── Hero Video ────────────────────────────────────────── */
.hero-video {
  flex: 1.15; min-width: 0;
  position: relative;
}
.hero-video-inner {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.hero-video-inner video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.hero-video-placeholder span {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.hero-video-glow {
  position: absolute;
  bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 80px;
  background: radial-gradient(ellipse, rgba(88, 166, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-tertiary); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-muted); }

/* ── Features ──────────────────────────────────────────── */
.features {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--text-muted); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
}
.feature-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Pricing ───────────────────────────────────────────── */
.pricing {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.pricing h2 {
  font-size: 36px; font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.pricing > p {
  color: var(--text-secondary); font-size: 16px;
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: start;
}
.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card--popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.04) 0%, var(--bg-secondary) 100%);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000;
  padding: 4px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
}
.pricing-price {
  font-size: 40px; font-weight: 800;
  margin-bottom: 4px; letter-spacing: -0.03em;
}
.pricing-price span {
  font-size: 16px; font-weight: 500;
  color: var(--text-secondary);
}
.pricing-period {
  font-size: 13px; color: var(--text-muted);
  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);
  padding: 6px 0;
}
.pricing-features li::before {
  content: "✓"; color: var(--accent-success);
  font-weight: 700; font-size: 13px;
}
.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;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-secondary);
  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: 20px;
  font-weight: 700; margin-bottom: 32px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px;
  font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-error {
  display: none; padding: 10px 14px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-danger);
  font-size: 13px; margin-bottom: 16px;
}
.form-error.visible { display: block; }
.auth-link {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--text-secondary);
}

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

/* ── Footer ────────────────────────────────────────────── */
.footer {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column; padding: 110px 20px 48px;
    gap: 40px; text-align: center;
  }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 15px; max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-video { max-width: 500px; width: 100%; }
  .features { grid-template-columns: 1fr; padding: 40px 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing { padding: 60px 20px; }
  .nav-inner { padding: 0 20px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
