/* XALEN Design System — Editorial Premium
   Palette: pearl · ink · saffron · temple · rule · muted
   Fonts: Newsreader (serif headlines) · Inter (sans body) · JetBrains Mono (mono labels)
   Source of truth: approved YC video at ~/Desktop/yc/FINAL/video-build/demo.html */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  /* Mistral-inspired orange theme — founder approved */
  --primary: #F97316;
  --primary-hover: #EA580C;
  --primary-light: #FFF7ED;
  --primary-lighter: #FFFBF5;
  --primary-100: #FFEDD5;
  --primary-200: #FED7AA;
  --primary-glow: rgba(249, 115, 22, 0.12);

  --secondary: #6366F1;
  --secondary-light: #EEF2FF;

  --ink: #111827;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --gray-950: #030712;

  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-tertiary: var(--gray-400);
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --border: var(--gray-200);
  --border-light: var(--gray-100);

  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Spacing (used by all pages) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;

  /* Typography sizes */
  --text-xs: 12px; --text-sm: 14px; --text-base: 16px; --text-lg: 18px;
  --text-xl: 20px; --text-2xl: 24px; --text-3xl: 30px; --text-4xl: 36px;

  /* Font weights */
  --font-regular: 400; --font-medium: 500; --font-semibold: 600; --font-bold: 700; --font-extrabold: 800;

  /* Radii */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px;

  /* Z-index */
  --z-dropdown: 50; --z-sticky: 100; --z-modal: 200; --z-toast: 300;

  /* Transitions */
  --transition-fast: 150ms ease; --transition-base: 200ms ease; --transition-slow: 300ms ease;

  /* Aliases — map editorial names to Mistral orange theme */
  --pearl: var(--white);
  --saffron: var(--primary);
  --saffron-light: var(--primary-hover);
  --saffron-glow: var(--primary-glow);
  --saffron-bg: rgba(249, 115, 22, 0.04);
  --temple: #DC2626;
  --temple-light: #EF4444;
  --temple-glow: rgba(220, 38, 38, 0.08);
  --rule: var(--gray-200);
  --rule-light: var(--gray-100);
  --muted: var(--gray-500);
  --muted-light: var(--gray-400);

  --serif: 'Newsreader', 'Iowan Old Style', Charter, Palatino, Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);

  --nav-height: 64px;
  --container: 1200px;
  --container-sm: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--white);
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(184, 120, 10, 0.15);
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */

h1, h2, h3 {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(48px, 7vw, 80px) !important; }
h2 { font-size: clamp(32px, 4.5vw, 52px) !important; }
h3 { font-size: clamp(24px, 3vw, 32px) !important; }

h4, h5, h6 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h4 { font-size: 18px !important; }

.serif { font-family: var(--serif); }
.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.meta {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-saffron { color: var(--saffron); }
.text-temple { color: var(--temple); }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

section.section-alt {
  background: rgba(216, 212, 203, 0.12);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 16px;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 300ms var(--ease);
}

nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-logo { color: var(--ink) !important; }
.nav-links a { color: var(--text-secondary) !important; }
.nav-links a:hover { color: var(--ink) !important; }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 200ms var(--ease);
  letter-spacing: -0.01em;
}

.nav-links a:hover { color: var(--ink); }

/* Mega dropdown navigation */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  cursor: pointer;
}

.nav-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  min-width: 560px;
  padding: 8px;
  padding-top: 16px;
  z-index: 1001;
  animation: megaFade 200ms var(--ease);
}

/* Invisible bridge so cursor can travel from trigger to dropdown */
.nav-mega::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

@keyframes megaFade {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown:hover .nav-mega { display: block; }

.nav-dropdown:last-of-type .nav-mega {
  left: auto;
  right: 0;
  transform: none;
  min-width: 280px;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.nav-mega-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 12px 4px;
}

.nav-mega-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 150ms ease;
}

.nav-mega-item:hover {
  background: var(--gray-50);
}

.nav-mega-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.nav-mega-item span {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

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

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-mobile-toggle span,
.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 6px;
  transition: all 200ms var(--ease);
}

.nav-mobile-toggle span { top: 15px; }
.nav-mobile-toggle span::before { content: ''; top: -6px; }
.nav-mobile-toggle span::after { content: ''; top: 6px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--pearl);
  border-bottom: 1px solid var(--rule);
  padding: 16px 24px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-light);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 200ms var(--ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--pearl);
}
.btn-primary:hover {
  background: #1a1a20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,11,15,0.15);
}

.btn-saffron {
  background: var(--saffron);
  color: #fff;
}
.btn-saffron:hover {
  background: var(--saffron-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,120,10,0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(11,11,15,0.02);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ═══════════════════════════════════════
   BADGES / LABELS
   ═══════════════════════════════════════ */

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  display: inline-block;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--saffron-glow);
  color: var(--saffron);
}

.badge-temple {
  background: var(--temple-glow);
  color: var(--temple);
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
  transition: all 300ms var(--ease);
}

.card:hover {
  border-color: var(--saffron);
  box-shadow: 0 8px 32px rgba(184,120,10,0.06);
  transform: translateY(-2px);
}

.card h4 {
  margin-bottom: 8px;
}

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

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--saffron-glow);
  color: var(--saffron);
}

/* Model cards */
.model-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
  transition: all 200ms var(--ease);
}

.model-card:hover {
  border-color: var(--saffron);
  box-shadow: 0 4px 20px rgba(184,120,10,0.06);
}

.model-card.featured {
  border-color: var(--saffron);
  background: linear-gradient(135deg, #fff 0%, rgba(184,120,10,0.02) 100%);
}

.model-card-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.model-card-provider {
  font-size: 12px;
  color: var(--muted);
}

.model-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.model-stat {
  font-size: 11px;
  color: var(--muted);
  background: var(--pearl);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--rule-light);
}

.model-stat strong {
  color: var(--ink);
  font-weight: 600;
}

/* Pricing cards */
.pricing-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 200ms var(--ease);
}

.pricing-card:hover {
  border-color: var(--saffron);
  box-shadow: 0 8px 32px rgba(184,120,10,0.06);
}

.pricing-card.popular {
  border-color: var(--saffron);
  box-shadow: 0 0 0 1px var(--saffron);
  position: relative;
}

.pricing-card.popular::before {
  content: 'POPULAR';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--saffron);
  color: #fff;
  padding: 2px 12px;
  border-radius: 4px;
}

.pricing-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.pricing-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.pricing-amount {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.pricing-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.pricing-currency {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--muted);
  vertical-align: top;
}

.pricing-period {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  padding: 6px 0;
}

.pricing-feature .check::before {
  content: '✓';
  color: var(--saffron);
  font-weight: 700;
  font-size: 14px;
}

/* ═══════════════════════════════════════
   BENCHMARKS
   ═══════════════════════════════════════ */

.benchmark-row {
  margin-bottom: 14px;
}

.benchmark-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.benchmark-bar-track {
  width: 100%;
  height: 28px;
  background: var(--rule-light);
  border-radius: 6px;
  overflow: hidden;
}

.benchmark-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: width 1200ms var(--ease);
}

.benchmark-bar-fill.xalen {
  background: linear-gradient(90deg, var(--saffron), var(--saffron-light));
}

/* ═══════════════════════════════════════
   CODE BLOCK
   ═══════════════════════════════════════ */

.code-block {
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dots {
  display: flex;
  gap: 6px;
}
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.code-dots span:first-child { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-lang {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-body {
  padding: 20px;
  overflow-x: auto;
  color: #a6adc8;
}

.code-body pre { white-space: pre; }
.code-body .keyword { color: #cba6f7; }
.code-body .string { color: #a6e3a1; }
.code-body .function { color: #89b4fa; }
.code-body .variable { color: #f9e2af; }
.code-body .comment { color: #585b70; font-style: italic; }
.code-body .number { color: #fab387; }

/* Device mockups (macbook, phone, chat) moved to graphics.css */

/* ═══════════════════════════════════════
   VOICE WAVEFORM
   ═══════════════════════════════════════ */

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
}

.voice-wave span {
  width: 3px;
  background: var(--saffron);
  border-radius: 2px;
  animation: waveform 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.voice-wave span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.voice-wave span:nth-child(7) { height: 10px; animation-delay: 0.6s; }
.voice-wave span:nth-child(8) { height: 16px; animation-delay: 0.7s; }
.voice-wave span:nth-child(9) { height: 6px; animation-delay: 0.8s; }

@keyframes waveform {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* XALEN logo floating animation over Spline */
.xalen-logo-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: logoFloat 4s ease-in-out infinite, logoPulse 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(249,115,22,0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(249,115,22,0.6)) drop-shadow(0 0 80px rgba(249,115,22,0.2)); }
}

/* Spline viewer blend with sections above/below */
spline-viewer {
  display: block;
}

/* ═══════════════════════════════════════
   STEPS
   ═══════════════════════════════════════ */

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--saffron-glow);
  color: var(--saffron);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h4 { margin-bottom: 4px; }
.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  width: 1px;
  height: 32px;
  background: var(--rule);
  margin-left: 20px;
}

/* ═══════════════════════════════════════
   STATS ROW
   ═══════════════════════════════════════ */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   LOGO STRIP
   ═══════════════════════════════════════ */

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-strip span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--rule);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 200ms var(--ease);
}

.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  font-size: 13px;
  color: var(--muted-light);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--muted);
  transition: color 200ms var(--ease);
}
.footer-social a:hover { color: var(--ink); }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 150ms; }
.fade-in-delay-2 { transition-delay: 300ms; }
.fade-in-delay-3 { transition-delay: 450ms; }
.fade-in-delay-4 { transition-delay: 600ms; }

/* Staggered children */
.js-ready .stagger-children > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js-ready .stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.js-ready .stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; }
.js-ready .stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; }
.js-ready .stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; }
.js-ready .stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; }
.js-ready .stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; }
.js-ready .stagger-children.visible > *:nth-child(7) { transition-delay: 480ms; }
.js-ready .stagger-children.visible > *:nth-child(8) { transition-delay: 560ms; }

.js-ready .stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   SECTION BACKGROUNDS (AI-generated)
   ═══════════════════════════════════════ */

.section-bg {
  position: relative;
  overflow: hidden;
  background-color: #0a0a1a;
  color: #fff;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,26,0.6) 0%, rgba(10,10,26,0.8) 100%);
  z-index: 0;
}

.section-bg > * { position: relative; z-index: 1; }

.section-bg h1, .section-bg h2, .section-bg h3, .section-bg h4,
.section-bg strong { color: #fff !important; }
.section-bg p, .section-bg .text-muted,
.section-bg .stat-label, .section-bg .model-card-provider { color: rgba(255,255,255,0.7) !important; }
.section-bg .label, .section-bg .meta { color: var(--primary) !important; }
.section-bg .stat-value { color: #fff !important; }

.section-bg .card, .section-bg .model-card, .section-bg .pricing-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-bg .card:hover, .section-bg .model-card:hover {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}
.section-bg .card p { color: rgba(255,255,255,0.6) !important; }
.section-bg .model-stat {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

/* Light section with subtle bg overlay */
.section-bg-light {
  position: relative;
  overflow: hidden;
}
.section-bg-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}
.section-bg-light > * { position: relative; z-index: 1; }

/* Per-section bg images (only classes actually used in HTML) */
.bg-models::before { background-image: url('../img/bg/models.jpg'); }
.bg-voice::before { background-image: url('../img/bg/voice.jpg'); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

/* Light hero with Spline blended on right */
.hero-light {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 0;
  background: var(--white);
  overflow: visible;
  z-index: 10;
}

.hero-grid {
  display: flex;
  align-items: center;
  min-height: auto;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 560px;
  margin-top: -48px;
}

.hero-spline {
  position: absolute;
  top: 0;
  right: -200px;
  width: 80%;
  height: 100%;
  overflow: visible;
  z-index: 2;
}

.hero-spline spline-viewer {
  width: 100%;
  height: calc(100% + 50px);
  display: block;
}

/* Blend Spline into page — fade left edge into white */
.hero-spline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 8%, transparent 25%);
  pointer-events: none;
  z-index: 3;
}

/* Fade top/bottom edges + hide watermark corner */
.hero-spline::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 8%, transparent 82%, rgba(255,255,255,1) 100%),
    radial-gradient(ellipse at 100% 100%, rgba(255,255,255,1) 0%, rgba(255,255,255,1.0) 8%, transparent 31%);
  pointer-events: none;
  z-index: 3;
}

.hero-logo-overlay {
  position: absolute;
  top: calc(50% + 60px);
  left: 48%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 5;
  cursor: pointer;
}

.xalen-hero-logo {
  animation: logoFloat 4s ease-in-out infinite, logoPulseGlow 3s ease-in-out infinite;
}

@keyframes logoPulseGlow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(249,115,22,0.4)); }
  50% { filter: drop-shadow(0 0 48px rgba(249,115,22,0.6)) drop-shadow(0 0 96px rgba(249,115,22,0.2)); }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-spline { height: 400px; }
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */

.cta-section {
  text-align: center;
  padding: 80px 64px;
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: #0a0a1a;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg/cta.jpg') center/cover;
  opacity: 0.2;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,26,0.5) 0%, rgba(10,10,26,0.85) 70%);
}

.cta-section > * { position: relative; z-index: 1; }

.cta-section h2 { color: #fff !important; }

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  max-width: 520px;
  margin: 16px auto 32px;
}

.cta-section .btn-primary {
  background: var(--primary);
  color: #fff;
}
.cta-section .btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(249,115,22,0.3);
}

.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.cta-section .btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: block; }

  /* Core layout */
  section { padding: 64px 0; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .stats-row { gap: 24px; }
  .stat-value { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Grids to single column */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 32px; }
}

/* ═══════════════════════════════════════
   AUTH PAGES (login / signup)
   ═══════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--white);
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-10) var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-header h1 {
  font-size: var(--text-2xl) !important;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.auth-header p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: var(--font-semibold);
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: none;
}

.auth-error.visible {
  display: block;
}

/* Social / OAuth buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.social-btn:active {
  transform: scale(0.99);
}

.social-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.social-btn svg {
  flex-shrink: 0;
}

/* Form elements */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Full-width button */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* Secondary button style */
.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

/* Spinner for loading states */
.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dashboard auth-specific overrides */
.dash-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.dash-stat-value {
  font-family: var(--serif);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: var(--space-1) 0;
}

.dash-stat-change {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.dash-stat-change.positive {
  color: var(--success);
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.dash-nav-item:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.dash-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: var(--font-semibold);
}

/* Dashboard layout */
.dash-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  padding: var(--space-6);
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.dash-main {
  margin-left: 260px;
  padding: var(--space-8) var(--space-10);
  min-height: 100vh;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.dash-table, table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th, .dash-table td,
table th, table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light);
}

.dash-table th, table th {
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
}

/* Tabs */
.tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--gray-100);
  padding: 3px;
  border-radius: var(--radius-md);
}

.tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Utility spacing */
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-6 { margin-top: var(--space-6); }

/* ═══════════════════════════════════════
   COMPAT — classes used by sub-pages
   (grid, buttons, cards, text, utilities)
   Added to fix pages broken by CSS rewrite
   ═══════════════════════════════════════ */

/* --- 1. Grid layouts --- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* --- Tailwind-style grid utilities (used by index.html) --- */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 769px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- 2. Button: btn-dark (ink bg, used by agents/pricing) --- */
.btn-dark {
  background: var(--ink);
  color: var(--pearl);
}
.btn-dark:hover {
  background: #1a1a20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,11,15,0.15);
}

/* --- 3. Card: card-elevated (alias to .card styling) --- */
.card-elevated {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
  transition: all 300ms var(--ease);
}
.card-elevated:hover {
  border-color: var(--saffron);
  box-shadow: 0 8px 32px rgba(184,120,10,0.06);
  transform: translateY(-2px);
}

/* --- 4. Card icon: card-icon-primary --- */
.card-icon-primary {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--primary-glow);
  color: var(--primary);
}

/* --- 5. Text gradient (orange gradient text) --- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #EA580C 50%, #DC2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 6. Section / section-sm --- */
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 60px 0;
}

/* --- 7. Container: container-md (960px) --- */
.container-md {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 8. Text sizes: large / small --- */
.large {
  font-size: 18px;
  line-height: 1.7;
}
.small {
  font-size: 14px;
  line-height: 1.6;
}

/* --- 9. Logo mark (legacy compat for dashboard etc.) --- */
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

/* --- 10. Nav-link (padding + radius for active highlight) --- */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 200ms var(--ease), background 200ms var(--ease);
  letter-spacing: -0.01em;
  padding: 4px 10px;
  border-radius: var(--radius-md);
}
.nav-link:hover {
  color: var(--ink);
}

/* --- 11. Checkmark (pseudo-element for empty spans, inline for filled) --- */
.check {
  color: var(--saffron);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
/* Pseudo-element for empty .check spans (index.html pattern) */
.check:empty::before {
  content: '\2713';
}

/* --- 12. Text utilities --- */
.text-center { text-align: center; }
.text-muted-light { color: var(--muted-light); }

/* --- 13. Flexbox utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-12 { gap: 48px; }

/* --- 14. Additional spacing utilities --- */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 48px; }
.pt-0 { padding-top: 0; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

/* --- 15. Additional text size utilities (used by index.html) --- */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-5xl { font-size: 48px; letter-spacing: -0.04em; }
.tracking-tighter { letter-spacing: -0.04em; }
.rounded-lg { border-radius: var(--radius-lg); }

/* --- 16. Badge variants --- */
.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.badge-primary {
  background: var(--primary-glow);
  color: var(--primary);
}

/* --- 17. Docs sidebar fix --- */
.docs-sidebar {
  width: 260px;
  max-width: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE — ALL PAGES
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  
  h1 { font-size: clamp(28px, 6vw, 48px) !important; }
  h2 { font-size: clamp(22px, 5vw, 36px) !important; }
  
  .hero-content h1 { font-size: clamp(32px, 8vw, 56px) !important; }
  
  /* Grid to single column */
  .grid-cols-2, .grid-cols-3, .grid-cols-4,
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  
  .lg\:grid-cols-2 { grid-template-columns: 1fr !important; }
  
  /* Nav mobile */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  #mobileMenuBtn { display: flex !important; }
  
  /* Hero Spline — stack vertically */
  .hero-inner { flex-direction: column !important; gap: 24px !important; }
  .hero-spline { height: 300px !important; min-height: 300px !important; }
  
  /* Stat bars */
  .numbers-bar-inner { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .num-item { min-width: 100px; }
  
  /* Phone mockup */
  .phone { max-width: 240px !important; margin: 0 auto; }
  
  /* Code blocks */
  .code-body { font-size: 11px !important; }
  .code-body pre { white-space: pre-wrap; word-break: break-all; }
  
  /* Cards stack */
  .card { padding: 20px !important; }
  
  /* Dashboard mobile */
  .dash-topbar-tabs { display: none !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .dash-table { font-size: 11px; }
  .key-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  
  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr !important; }
  
  /* Integration diagram SVG */
  #integration svg { display: none; }
  #integration .fade-in:last-child { display: grid !important; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  h1 { font-size: 26px !important; }
  
  /* Hide complex elements */
  .macbook, .phone { transform: none !important; }
}

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */

/* Skip-to-content link */
.skip-link { position:absolute; top:-40px; left:0; background:#F97316; color:#fff; padding:8px 16px; z-index:10000; font-size:14px; font-weight:600; border-radius:0 0 8px 0; transition:top 200ms; }
.skip-link:focus { top:0; }

/* Focus indicators */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid #F97316; outline-offset:2px; }

/* Contrast fix — darken orange text on white backgrounds */
.text-saffron, .label, .badge, .check { color:#C2410C; }
.section-bg .text-saffron, .section-bg .label, .section-bg .badge { color:#F97316; }

/* ── MOBILE HERO FIX ── */
@media (max-width: 768px) {
  .hero-spline { display: none !important; }
  .hero-light { min-height: auto; padding-bottom: 40px; }
  .hero-grid { min-height: auto; }
  .hero-content { max-width: 100%; }
  
  /* Green MIT section - stack blocks */
  .vedika-block { min-width: 45% !important; margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .vedika-block { min-width: 100% !important; }
}



/* Spline viewer — hide watermark + force light background */
spline-viewer {
  position: relative;
}
spline-viewer #logo,
spline-viewer [id*="logo"],
spline-viewer a[href*="spline.design"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
