/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #07090f;
  color: #e2e8f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --purple: #6366f1;
  --purple-light: #a5b4fc;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #0ea5e9;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-4: #475569;
  --border: rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --surface: rgba(15,20,35,0.85);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-pad { padding-top: 100px; padding-bottom: 100px; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--purple) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 560px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--violet) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  font-family: inherit;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(99,102,241,0.52); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: #cbd5e1;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 20px 0;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(7,9,15,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; margin-right: auto;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  flex-shrink: 0;
}
.logo-text {
  font-size: 19px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--purple-light); }

.nav-cta {
  margin-left: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  font-size: 14px; font-weight: 600;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-glow {
  position: absolute; top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.page-hero-sub {
  font-size: 18px; line-height: 1.7;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-alt {
  background: rgba(255,255,255,0.012);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   CHECK LIST
   ============================================================ */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-2); line-height: 1.55;
}
.check-list li .icon {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  background: rgba(16,185,129,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 220px; }
.footer-col-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 14px; color: var(--text-3); transition: color 0.2s; }
.footer-col-links a:hover { color: var(--text-2); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--text-4); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; padding: 9px 14px; font-size: 13px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }
  .page-hero { padding: 130px 0 64px; }
  .page-hero-title { font-size: 34px; }
  .page-hero-sub { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
