/* =====================================================
   EXPAL FINANCE OS — MAIN STYLESHEET
   Fintech SaaS UI — Dark/Light Mode
   Fonts: Syne (headings) + DM Sans (body) + DM Mono (numbers)
   ===================================================== */

/* ─── CSS Variables ────────────────────────────────── */
:root {
  /* Brand */
  --brand-900: #060D1B;
  --brand-800: #0A1628;
  --brand-700: #0D1F3C;
  --brand-600: #112848;
  --brand-500: #1A3C6E;
  --brand-400: #2655A0;
  --brand-300: #2E6FD4;
  --brand-200: #5B9BF8;
  --brand-100: #A8CBFF;
  --brand-50:  #EBF2FC;

  /* Accent */
  --accent-green:   #00D68F;
  --accent-orange:  #FF9500;
  --accent-red:     #FF4757;
  --accent-purple:  #7B61FF;
  --accent-cyan:    #00C2FF;

  /* Dark UI Surface */
  --surface-0: #060D1B;
  --surface-1: #0A1628;
  --surface-2: #0F1E35;
  --surface-3: #152845;
  --surface-4: #1A3356;
  --surface-card: #0F1E35;

  /* Borders */
  --border-subtle:  rgba(46, 111, 212, 0.15);
  --border-default: rgba(46, 111, 212, 0.25);
  --border-strong:  rgba(46, 111, 212, 0.45);

  /* Text */
  --text-primary:   #E8F0FF;
  --text-secondary: #8BA3C7;
  --text-muted:     #4A6285;
  --text-inverse:   #0A1628;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --glow-blue:  0 0 40px rgba(46,111,212,0.2);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Type */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --surface-0: #F0F4FA;
  --surface-1: #F7F9FD;
  --surface-2: #FFFFFF;
  --surface-3: #EBF2FC;
  --surface-4: #DDE9F8;
  --surface-card: #FFFFFF;
  --border-subtle:  rgba(26, 60, 110, 0.08);
  --border-default: rgba(26, 60, 110, 0.15);
  --border-strong:  rgba(26, 60, 110, 0.3);
  --text-primary:   #0A1628;
  --text-secondary: #3D5A80;
  --text-muted:     #6B86A8;
  --text-inverse:   #E8F0FF;
  --shadow-sm:  0 2px 8px rgba(10,22,40,0.08);
  --shadow-md:  0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg:  0 8px 48px rgba(10,22,40,0.16);
  --glow-blue:  0 0 40px rgba(46,111,212,0.1);
}

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-300); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-200); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

code, pre, .mono { font-family: var(--font-mono); }

/* ─── Typography Scale ─────────────────────────────── */
.text-xs   { font-size: 11px; }
.text-sm   { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg   { font-size: 17px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: 24px; }
.text-3xl  { font-size: 32px; }
.text-4xl  { font-size: 48px; }
.text-5xl  { font-size: 64px; }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-brand     { color: var(--brand-300); }
.text-green     { color: var(--accent-green); }
.text-red       { color: var(--accent-red); }
.text-orange    { color: var(--accent-orange); }
.font-mono      { font-family: var(--font-mono); }
.font-display   { font-family: var(--font-display); }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }

/* ─── Layout Utilities ─────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 var(--space-lg); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Cards ────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}
.card-glow:hover {
  border-color: var(--brand-400);
  box-shadow: var(--glow-blue);
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-300);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,111,212,0.35);
}
.btn-primary:hover {
  background: var(--brand-200);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(46,111,212,0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-300);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-3);
  color: var(--brand-200);
  border-color: var(--brand-300);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text-primary); }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-success { background: var(--accent-green); color: #0A1628; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }

/* ─── Form Elements ────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px rgba(46,111,212,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; }

/* ─── Badges / Tags ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-blue    { background: rgba(46,111,212,0.15); color: var(--brand-200); border: 1px solid rgba(46,111,212,0.3); }
.badge-green   { background: rgba(0,214,143,0.12); color: var(--accent-green); border: 1px solid rgba(0,214,143,0.25); }
.badge-orange  { background: rgba(255,149,0,0.12); color: var(--accent-orange); border: 1px solid rgba(255,149,0,0.25); }
.badge-red     { background: rgba(255,71,87,0.12); color: var(--accent-red); border: 1px solid rgba(255,71,87,0.25); }
.badge-purple  { background: rgba(123,97,255,0.12); color: var(--accent-purple); border: 1px solid rgba(123,97,255,0.25); }
.badge-muted   { background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* ─── Tables ───────────────────────────────────────── */
.expal-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.expal-table { width: 100%; border-collapse: collapse; }
.expal-table thead { background: var(--surface-3); }
.expal-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}
.expal-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.expal-table tbody tr:last-child td { border-bottom: none; }
.expal-table tbody tr:hover td { background: var(--surface-3); }
.expal-table .amount { font-family: var(--font-mono); text-align: right; }

/* ─── Section Dividers ─────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-xl) 0;
}

/* ─── Page Header ──────────────────────────────────── */
.page-header {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
}
.page-header h1 { font-size: 28px; font-weight: 800; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-300); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.4; }

/* ─── Alerts ───────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 14px;
  border-left: 3px solid currentColor;
}
.alert-info    { background: rgba(46,111,212,0.1); color: var(--brand-200); }
.alert-success { background: rgba(0,214,143,0.1); color: var(--accent-green); }
.alert-warning { background: rgba(255,149,0,0.1); color: var(--accent-orange); }
.alert-danger  { background: rgba(255,71,87,0.1); color: var(--accent-red); }

/* ─── Loading / Skeleton ───────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-1); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

/* ─── Theme Toggle ─────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--surface-4); color: var(--brand-300); }

/* ─── Marketing / Landing ──────────────────────────── */
.site-header-marketing {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(6, 13, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.site-header-marketing.scrolled {
  background: rgba(6, 13, 27, 0.95);
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.site-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--brand-300);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: white;
}
.site-logo span { color: var(--brand-300); }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.primary-nav a:hover, .primary-nav a.active {
  background: var(--surface-3);
  color: var(--text-primary);
}
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46,111,212,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(123,97,255,0.08) 0%, transparent 70%),
    var(--surface-0);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,111,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,111,212,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(46,111,212,0.12);
  border: 1px solid rgba(46,111,212,0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--brand-300) 0%, var(--brand-100) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-xl);
}
.hero-actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-200);
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Hero Dashboard Preview */
.hero-visual {
  position: relative;
}
.dashboard-preview {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-blue);
  animation: float-card 6s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
.preview-topbar {
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  margin: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.preview-kpi {
  background: var(--surface-2);
  padding: 14px;
}
.preview-kpi-val { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--text-primary); }
.preview-kpi-lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.preview-chart {
  margin: 0 12px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  gap: 6px;
  overflow: hidden;
}
.preview-bar {
  flex: 1;
  background: var(--brand-500);
  border-radius: 3px 3px 0 0;
  transition: background var(--transition);
  min-height: 8px;
}
.preview-bar:nth-child(odd) { background: var(--brand-400); }
.preview-bar.highlight { background: var(--brand-300); }

/* Features Section */
.features-section { padding: var(--space-3xl) 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-2xl); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-300);
  margin-bottom: var(--space-md);
}
.section-title { font-size: 40px; font-weight: 800; line-height: 1.15; }
.section-desc { font-size: 16px; color: var(--text-secondary); margin-top: var(--space-md); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border-default); box-shadow: var(--glow-blue); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(46,111,212,0.12);
  border: 1px solid rgba(46,111,212,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-lg);
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: rgba(46,111,212,0.2);
  transform: scale(1.05);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--space-sm); }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* Pricing Section */
.pricing-section { padding: var(--space-3xl) 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-slow);
}
.pricing-card.featured {
  border-color: var(--brand-300);
  background: var(--surface-2);
  box-shadow: var(--glow-blue);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-300);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-name { font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.plan-price { font-size: 48px; font-weight: 800; font-family: var(--font-display); margin: var(--space-md) 0 var(--space-xs); }
.plan-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-lg); }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin: var(--space-lg) 0; }
.plan-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.plan-feature .check { color: var(--accent-green); font-size: 16px; flex-shrink: 0; }
.plan-feature .cross { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

/* Site Footer */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: var(--space-md); line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--brand-300); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-muted);
}

/* Hamburger / Mobile Menu */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

@media (max-width: 480px) {
  :root { --space-lg: 16px; --space-xl: 28px; }
  .container { padding: 0 var(--space-md); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }
}
