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

:root {
  --bg: #0a0c10;
  --bg2: #0f1117;
  --bg3: #161b24;
  --border: #1e2533;
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent-glow: rgba(99,102,241,0.18);
  --text: #e8eaf0;
  --muted: #8891a8;
  --white: #ffffff;
  --green: #10b981;
  --radius: 12px;
  --max: 1120px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,12,16,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo { font-size: 1.2rem; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.logo span { color: var(--accent2); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white);
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── SHARED SECTION ──────────────────────────────── */
section { padding: 96px 24px; }
.container { max-width: var(--max); margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent2); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -1.5px;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--white);
  line-height: 1.2; letter-spacing: -0.8px;
}
.section-sub {
  color: var(--muted); font-size: 1.05rem;
  margin-top: 12px; max-width: 520px; line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: var(--white);
  padding: 14px 30px; border-radius: 9px;
  font-size: 1rem; font-weight: 600; display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  padding: 14px 30px; border-radius: 9px;
  font-size: 1rem; font-weight: 500; display: inline-block;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  padding: 140px 24px 80px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .section-tag { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 760px; margin: 0 auto 16px; }
.page-hero p {
  color: var(--muted); font-size: 1.1rem;
  max-width: 580px; margin: 0 auto; line-height: 1.75;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--accent2); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.87rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.82rem; color: var(--muted); }

/* ── LIGHT THEME ─────────────────────────────────── */
[data-theme="light"] {
  --bg: #f5f7fc;
  --bg2: #eceef8;
  --bg3: #ffffff;
  --border: #d8dced;
  --text: #2d3452;
  --muted: #6672a0;
  --white: #0f1629;
  --accent-glow: rgba(99,102,241,0.08);
}
[data-theme="light"] nav {
  background: rgba(245,247,252,0.94);
  border-bottom-color: #d8dced;
}
[data-theme="light"] .nav-links a { color: var(--muted); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: var(--white); }
[data-theme="light"] .btn-outline {
  border-color: #c9ceea;
  color: var(--text);
}
[data-theme="light"] .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="light"] .page-hero {
  background: linear-gradient(180deg, #eceef8 0%, #f5f7fc 100%);
  border-bottom-color: #d8dced;
}
[data-theme="light"] footer { background: #eceef8; }
[data-theme="light"] select option { background: #ffffff; color: #2d3452; }

/* ── THEME TOGGLE ─────────────────────────────────── */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center;
  padding: 6px; margin-left: 4px; flex-shrink: 0;
  color: var(--accent2);
  transition: opacity 0.2s;
}
.theme-toggle:hover { opacity: 0.7; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle { color: var(--accent); }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── HERO BACKGROUND GLOW ─────────────────────────── */
.hero-glow {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse at 25% -5%, rgba(99,102,241,0.28) 0%, transparent 52%),
    radial-gradient(ellipse at 75% 5%, rgba(139,92,246,0.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.08s linear;
  will-change: opacity;
}
[data-theme="light"] .hero-glow {
  background:
    radial-gradient(ellipse at 25% -5%, rgba(99,102,241,0.18) 0%, transparent 52%),
    radial-gradient(ellipse at 75% 5%, rgba(139,92,246,0.1) 0%, transparent 50%);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta {
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .logo { font-size: 1rem; }
  .nav-inner { padding: 0 16px; }
}

/* ── THEME SCRIPT ─────────────────────────────────── */
