:root {
  --bg: #060812;
  --card-bg: rgba(14, 18, 36, 0.78);
  --card-border: rgba(99, 102, 241, 0.16);
  --card-hover: rgba(99, 102, 241, 0.32);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --purple: #a855f7;
  --success: #10b981;
  --danger: #ef4444;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient background mesh */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header Navigation */
header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(14, 18, 36, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand span {
  background: linear-gradient(135deg, #fff 40%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 10px 25px -5px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.6);
  color: #fff;
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.5);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  color: #fff;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.btn-google:hover {
  background: #f3f4f6;
  color: #111827;
}

.btn-microsoft {
  background: #2f2f2f;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-microsoft:hover {
  background: #3b3b3b;
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0 50px;
  position: relative;
}

.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 75%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Live Dashboard Preview Card */
.dashboard-preview {
  max-width: 980px;
  margin: 30px auto 90px;
  background: rgba(14, 18, 36, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 
    0 40px 100px -20px rgba(0,0,0,0.8),
    0 0 60px -10px var(--accent-glow);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.mac-dots {
  display: flex;
  gap: 8px;
}
.mac-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mac-dots span:nth-child(1) { background: #ef4444; }
.mac-dots span:nth-child(2) { background: #f59e0b; }
.mac-dots span:nth-child(3) { background: #10b981; }

.preview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  text-align: left;
}

.preview-card {
  background: rgba(10, 14, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.code-block {
  background: #090d1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #94a3b8;
  overflow-x: auto;
}
.code-sec { color: var(--accent); font-weight: 700; }
.code-key { color: var(--cyan); }
.code-val { color: #f1f5f9; }

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.fake-qr {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%), #0c1022;
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Feature Grid */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 100px;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feat-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feat-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  max-width: 1060px;
  margin: 0 auto 100px;
  gap: 24px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 38px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px var(--cyan-glow);
}

.featured-tag {
  position: absolute;
  top: -12px;
  right: 28px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-num {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 20px 0;
}
.price-num span { font-size: 15px; color: var(--text-muted); font-weight: 500; }

.price-list {
  list-style: none;
  margin-bottom: 32px;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 12px;
}
.price-list li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 800;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #0e1222;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px -10px var(--accent-glow);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(6, 9, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-divider span {
  padding: 0 12px;
}

.auth-aux-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-aux-links a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-aux-links a:hover {
  text-decoration: underline;
  color: #fff;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0 36px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 820px) {
  .preview-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  header { top: 8px; margin-bottom: 24px; }
  .navbar { padding: 10px 14px; border-radius: var(--radius); }
  .brand { font-size: 16px; gap: 8px; }
  .brand-icon { width: 32px; height: 32px; font-size: 16px; }
  .brand-pill { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .hero { padding: 36px 0 24px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 14px; flex-direction: column; }
  .dashboard-preview { padding: 18px; margin: 20px auto 50px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .modal-dialog { padding: 24px 18px; }
}
