/* ============================================================
   DEALS ARE US — Design System
   Brand Guidelines 2026
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --deep-navy: #1B2847;
  --midnight: #0F1B30;
  --slate-navy: #2A3A5C;
  --steel: #3B6ACA;
  --mist: #E6E9F1;
  --warm-white: #F0F0F0;
  --white: #FFFFFF;
  --signal-sky: #5BA0FC;

  /* Semantic Colors */
  --bg-dark: var(--deep-navy);
  --bg-darker: var(--midnight);
  --bg-light: var(--warm-white);
  --bg-surface: var(--mist);
  --text-primary: var(--deep-navy);
  --text-inverse: var(--white);
  --text-muted: var(--slate-navy);
  --text-accent: var(--signal-sky);
  --interactive: var(--signal-sky);
  --interactive-hover: #4A8FEB;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Type Scale */
  --text-display: clamp(3rem, 6vw, 5.5rem);
  --text-h1: clamp(2.25rem, 4vw, 3.5rem);
  --text-h2: clamp(1.75rem, 3vw, 2.375rem);
  --text-h3: clamp(1.25rem, 2vw, 1.625rem);
  --text-body: 1.125rem;
  --text-caption: 0.875rem;
  --text-small: 0.8125rem;

  /* Spacing (8px base) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;       /* 16px */
  --space-3: 1.5rem;     /* 24px */
  --space-4: 2rem;       /* 32px */
  --space-5: 3rem;       /* 48px */
  --space-6: 4rem;       /* 64px */
  --space-7: 6rem;       /* 96px */
  --space-8: 8rem;       /* 128px */

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-full: 50%;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(15, 27, 48, 0.06), 0 1px 2px rgba(15, 27, 48, 0.04);
  --shadow-medium: 0 4px 16px rgba(15, 27, 48, 0.08), 0 2px 4px rgba(15, 27, 48, 0.04);
  --shadow-dramatic: 0 16px 48px rgba(15, 27, 48, 0.12), 0 4px 12px rgba(15, 27, 48, 0.06);
  --shadow-glow: 0 0 40px rgba(91, 160, 252, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-hero: 1000ms;

  /* Glass */
  --glass-bg: rgba(27, 40, 71, 0.72);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: clip;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography Classes ---------- */
.text-display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.text-h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.text-body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
}

.text-caption {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

.section-darker {
  background-color: var(--bg-darker);
  color: var(--text-inverse);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.section-surface {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-hero) var(--ease-out),
              transform var(--duration-hero) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--duration-hero) var(--ease-out),
              transform var(--duration-hero) var(--ease-out);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--duration-hero) var(--ease-out),
              transform var(--duration-hero) var(--ease-out);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-hero) var(--ease-out),
              transform var(--duration-hero) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 500ms; }

/* ---------- Button Styles ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--signal-sky);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(91, 160, 252, 0.3);
}

.btn-primary:hover {
  background: var(--interactive-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 160, 252, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--signal-sky);
  color: var(--signal-sky);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--deep-navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(15, 27, 48, 0.2);
}

.btn-dark:hover {
  background: var(--slate-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 27, 48, 0.3);
}

/* ---------- Eyebrow / Label ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-sky);
  margin-bottom: var(--space-2);
  display: block;
}

.section-dark .eyebrow,
.section-darker .eyebrow {
  color: var(--signal-sky);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-6);
}

.section-header .text-h2 {
  margin-bottom: var(--space-2);
}

.section-header p {
  color: var(--slate-navy);
  font-size: var(--text-body);
  line-height: 1.7;
}

.section-dark .section-header p,
.section-darker .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }
  .section {
    padding: var(--space-7) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .container {
    padding: 0 var(--space-3);
  }
  .section {
    padding: var(--space-6) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}
