/* =====================================================
   BASE.CSS — Nova Services Design System
   Tokens · Reset · Typography · Utilities
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --nova-blue: #1A3AFF;
  --nova-blue-mid: #2B4BFF;
  --nova-blue-light: #4A68FF;
  --cosmic-purple: #6A4BFF;
  --cosmic-purple-light: #8A6BFF;
  --space-black: #0D0D0D;
  --near-black: #111118;
  --surface: #16161F;
  --surface-2: #1E1E2E;
  --surface-3: #252535;
  --white: #FFFFFF;
  --off-white: #F0F0FF;
  --muted: #8888AA;
  --muted-light: #AAAACC;

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(106, 75, 255, 0.4);

  /* Glows */
  --glow-blue: rgba(26, 58, 255, 0.35);
  --glow-purple: rgba(106, 75, 255, 0.35);
  --glow-blue-sm: rgba(26, 58, 255, 0.2);
  --glow-purple-sm: rgba(106, 75, 255, 0.2);

  /* Typography */
  --font: 'Sora', system-ui, -apple-system, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s var(--ease);
  --t-base: 0.25s var(--ease);
  --t-slow: 0.45s var(--ease-out);
  --t-slower: 0.7s var(--ease-out);
}

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

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

body {
  font-family: var(--font);
  background-color: var(--space-black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--space-32) 0;
  position: relative;
}

.section--sm {
  padding: var(--space-24) 0;
}

.section--lg {
  padding: 140px 0;
}

/* ── Typography ── */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nova-blue-light);
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  background: rgba(26, 58, 255, 0.12);
  border: 1px solid rgba(26, 58, 255, 0.25);
  border-radius: var(--radius-full);
}

.section-label--purple {
  color: var(--cosmic-purple-light);
  background: rgba(106, 75, 255, 0.12);
  border-color: rgba(106, 75, 255, 0.25);
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}

.section-subheadline {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ── Gradient Text ── */
.text-gradient {
  background: linear-gradient(120deg, var(--nova-blue-light) 0%, var(--cosmic-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(120deg, #5B7FFF 0%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Flex/Grid Helpers ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ── Scroll Animation Classes ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--t-slower), transform var(--t-slower);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity var(--t-slower), transform var(--t-slower);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity var(--t-slower), transform var(--t-slower);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Dividers ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--near-black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--nova-blue), var(--cosmic-purple));
  border-radius: var(--radius-full);
}

/* ── Selection ── */
::selection {
  background: rgba(106, 75, 255, 0.35);
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: var(--space-20) 0; }
  .section--lg { padding: var(--space-24) 0; }
}
