/* ============ SantolanLabs — Design System v2 ============ */
/* Palette : bleu nuit + beige + bleu electrique + orange */

:root {
  /* Hero / Nav / Footer — bleu nuit */
  --dark-0: #0A0E1A;
  --dark-1: #0F1629;
  --dark-2: #141D33;
  --dark-border: rgba(59, 130, 246, 0.12);
  --dark-border-strong: rgba(59, 130, 246, 0.25);

  /* Body — beige */
  --light-0: #F5F0EB;
  --light-1: #EDE8E1;
  --light-2: #FFFFFF;
  --light-border: rgba(26, 26, 46, 0.08);
  --light-border-strong: rgba(26, 26, 46, 0.15);

  /* Accents */
  --blue: #2563EB;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --blue-light: #3B82F6;
  --orange: #FF6B2B;
  --orange-glow: rgba(255, 107, 43, 0.35);
  --beige-gold: #F5E6D3;

  /* Text */
  --text-on-dark: #F5F0EB;
  --text-on-dark-muted: #8B95A8;
  --text-on-dark-dim: #5A6478;
  --text-on-light: #1A1A2E;
  --text-on-light-muted: #6B7280;
  --text-on-light-dim: #9CA3AF;
}

/* ============ Base ============ */
* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  background: var(--light-0);
  color: var(--text-on-light);
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-display {
  font-family: 'Syne', 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* ============ Gradients ============ */
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 40%, #FF6B2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-orange {
  background: linear-gradient(135deg, #FF6B2B 0%, #FFA366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #FF6B2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ Dark sections (hero, nav, footer) ============ */
.section-dark {
  background: var(--dark-0);
  color: var(--text-on-dark);
}

/* ============ Glass — dark variant ============ */
.glass-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-dark-strong {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border-strong);
  backdrop-filter: blur(16px);
}

/* ============ Glass — light variant ============ */
.glass-light {
  background: var(--light-2);
  border: 1px solid var(--light-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}
.glass-light-strong {
  background: var(--light-2);
  border: 1px solid var(--light-border-strong);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ============ Buttons ============ */
.btn-primary {
  background: linear-gradient(135deg, #FF6B2B, #F97316);
  color: white;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px var(--orange-glow);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 48px var(--orange-glow);
}
.btn-secondary {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px var(--blue-glow);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 48px var(--blue-glow);
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border-strong);
  color: var(--text-on-dark);
  transition: all 0.3s ease;
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}
.btn-ghost-light {
  background: transparent;
  border: 1px solid var(--light-border-strong);
  color: var(--text-on-light);
  transition: all 0.3s ease;
}
.btn-ghost-light:hover {
  background: var(--light-1);
  border-color: var(--blue);
  color: var(--blue);
}

/* ============ Backgrounds ============ */
.grid-bg-dark {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}
.mesh-bg-dark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh-bg-dark::before, .mesh-bg-dark::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(140px); opacity: 0.4;
  animation: pulse 12s ease-in-out infinite;
}
.mesh-bg-dark::before { width: 600px; height: 600px; background: radial-gradient(circle, #2563EB 0%, transparent 70%); top: -150px; left: -100px; }
.mesh-bg-dark::after { width: 500px; height: 500px; background: radial-gradient(circle, #FF6B2B 0%, transparent 70%); bottom: -100px; right: -100px; animation-delay: -6s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.15); } }

/* ============ Cards ============ */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-4px); }
.card-hover-dark:hover { border-color: var(--dark-border-strong); background: rgba(255, 255, 255, 0.06); }
.card-hover-light:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08); }

/* ============ Nav ============ */
.nav-scrolled { background: rgba(10, 14, 26, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--dark-border); }

/* ============ Components ============ */
.divider-dark { height: 1px; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent); }
.divider-light { height: 1px; background: linear-gradient(90deg, transparent, rgba(26, 26, 46, 0.12), transparent); }

.pack-featured-dark { box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5), 0 24px 64px rgba(37, 99, 235, 0.15); background: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, rgba(10, 14, 26, 0.8) 100%); }
.pack-featured-light { box-shadow: 0 0 0 2px var(--blue), 0 24px 64px rgba(37, 99, 235, 0.1); background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, var(--light-2) 100%); }

.section-label-dark { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.3); color: #60A5FA; }
.section-label-light { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(37, 99, 235, 0.06); border: 1px solid rgba(37, 99, 235, 0.2); color: var(--blue); }

.icon-box-dark { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(255, 107, 43, 0.1)); border: 1px solid var(--dark-border); display: flex; align-items: center; justify-content: center; }
.icon-box-light { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 107, 43, 0.05)); border: 1px solid var(--light-border); display: flex; align-items: center; justify-content: center; }

/* ============ Logo @pos ============ */
.pos-logo {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.03em; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.pos-logo .at { color: #FF6B2B; font-weight: 400; margin-right: 1px; }
.pos-logo .pos {
  background: linear-gradient(135deg, #2563EB 0%, #FF6B2B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pos-lockup {
  display: inline-flex; flex-direction: column;
  align-items: flex-start; line-height: 1; gap: 3px;
}
.pos-lockup .scope {
  font-family: 'DM Sans', 'Inter', sans-serif; font-size: 9px; font-weight: 500;
  color: var(--text-on-dark-dim); letter-spacing: 0.22em; text-transform: uppercase;
}
.pos-lockup .scope b { color: #FF6B2B; font-weight: 500; }
@media (max-width: 640px) {
  .pos-logo { font-size: 18px; }
  .pos-lockup .scope { font-size: 8px; }
}

/* ============ Pulse ============ */
.dot-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: pulse-dot 2s ease-in-out infinite; }
.dot-pulse-orange { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============ FAQ (details/summary) ============ */
details { transition: all 0.3s ease; }
details[open] summary .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.3s ease; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* ============ Noise texture overlay ============ */
.noise-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Section transitions ============ */
.section-light { background: var(--light-0); color: var(--text-on-light); }
.section-light-alt { background: var(--light-1); color: var(--text-on-light); }
