/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Aurorix-inspired — deep navy on warm near-white */
  --color-bg:           #f9f9f7;
  --color-surface:      #ffffff;
  --color-surface-2:    #f3f3f0;
  --color-border:       #e5e0d6;
  --color-border-dark:  #cec8bb;
  --color-text:         rgb(30, 75, 154);
  --color-text-muted:   rgba(30, 75, 154, 0.65);
  --color-text-dim:     rgba(30, 75, 154, 0.38);
  --color-accent:       #c0392b;
  --color-accent-dark:  #9b2c2c;
  --color-accent-light: #e05252;
  --color-accent-dim:   rgba(192, 57, 43, 0.07);
  --color-green:        #16a34a;

  /* Typography */
  --font-display: 'Domine', Georgia, serif;
  --font-ui:      'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --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:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --sidebar-w:     300px;
  --container-max: 860px;
  --container-pad: var(--space-5);

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;
  --radius-btn:  12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   LAYOUT
   ============================================================ */

/* Mobile: standard page */
.main-content {
  min-height: 100vh;
}

/* Desktop: sidebar layout */
@media (min-width: 1024px) {
  .main-content,
  .footer,
  .footer-bar {
    margin-left: var(--sidebar-w);
  }
}

.section {
  padding-block: var(--space-16);
  padding-inline: var(--container-pad);
}

.section-inner {
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
}

@media (min-width: 768px) {
  :root { --container-pad: var(--space-10); }
  .section { padding-block: var(--space-24); }
}

/* ============================================================
   BRACKET LABELS
   ============================================================ */
.b-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.b-label--accent {
  color: var(--color-accent);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 54ch;
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.stagger-1 { transition-delay: 60ms; }
.stagger-2 { transition-delay: 120ms; }
.stagger-3 { transition-delay: 180ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__cursor,
  .hero__avail-dot,
  .chatbot-bubble__dot {
    animation: none;
  }
}
