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

:root {
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --bg: #0a0a0f;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
}

/* ── Theme transition ── */
body, nav, .card, .cta-card, .btn-secondary {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Light mode ── */
html.light { background-color: #f5f5fa; }
html.light body {
  background-color: #f5f5fa;
  color: #0f0f1a;
  --surface: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.1);
  --text: #0f0f1a;
  --muted: #5a6077;
}
html.light nav {
  background: rgba(245,245,250,0.88);
  border-bottom-color: rgba(0,0,0,0.1);
}
html.light .nav-links a { color: #5a6077; }
html.light .nav-links a:hover { color: #0f0f1a; }
html.light body::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}
html.light .orb { opacity: 0.06; }
html.light .hero-sub { color: #5a6077; }
html.light .section-label { color: #6366f1; }
html.light .section-desc  { color: #5a6077; }
html.light .stat-label    { color: #5a6077; }
html.light .card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
}
html.light .card:hover { background: #fff; border-color: rgba(99,102,241,0.35); }
html.light .card p  { color: #5a6077; }
html.light .btn-secondary {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #0f0f1a;
}
html.light .btn-secondary:hover { background: rgba(0,0,0,0.09); }
html.light .cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(139,92,246,0.07));
  border-color: rgba(99,102,241,0.2);
}
html.light .cta-card p { color: #5a6077; }
html.light footer { border-top-color: rgba(0,0,0,0.1); }
html.light footer p, html.light .footer-links a { color: #5a6077; }
html.light .footer-links a:hover { color: #0f0f1a; }
/* swap button to moon + "Dark" in light mode */
html.light .theme-toggle .icon-sun          { display: none; }
html.light .theme-toggle .icon-moon         { display: block; }
html.light .theme-toggle .theme-label-light { display: none; }
html.light .theme-toggle .theme-label-dark  { display: inline; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated gradient orbs ── */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-1 { width: 700px; height: 700px; background: var(--indigo); top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: var(--violet); top: 40%; right: -100px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: var(--cyan); bottom: -100px; left: 30%; animation-delay: -14s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Grid noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,15,0.6);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.logo-icon svg { width: 18px; height: 18px; fill: white; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { opacity: 0.9; transform: translateY(-1px); }
/* dark mode: show sun icon + "Light" label */
.theme-toggle .icon-moon        { display: none; }
.theme-toggle .icon-sun         { display: block; }
.theme-toggle .theme-label-light { display: inline; }
.theme-toggle .theme-label-dark  { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--indigo);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--indigo);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s ease 0.3s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 40px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(99,102,241,0.45); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }

/* ── Stats bar ── */
.stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  animation: fadeUp 0.6s ease 0.4s both;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Feature cards ── */
.features {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 16px;
}
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  cursor: default;
}
.card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card-icon.indigo { background: rgba(99,102,241,0.15); }
.card-icon.violet { background: rgba(139,92,246,0.15); }
.card-icon.cyan   { background: rgba(6,182,212,0.15); }
.card-icon.rose   { background: rgba(244,63,94,0.15); }
.card-icon.amber  { background: rgba(245,158,11,0.15); }
.card-icon.green  { background: rgba(34,197,94,0.15); }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── CTA section ── */
.cta-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
  text-align: center;
}
.cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 24px;
  padding: 64px 48px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-card p { color: var(--muted); margin-bottom: 36px; line-height: 1.7; }

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer p { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .stats { gap: 32px; }
  footer { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 40px 24px; }
}
