/**
 * ==============================================================================
 * GLOBAL DESIGN SYSTEM (global.css)
 * Fonts: Lexend (Body/UI), Space Grotesk (Headings/Badges), Source Serif 4 (Serif)
 * ==============================================================================
 */

/* 1. FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,600;0,8..60,700;1,8..60,600&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* 2. DESIGN TOKENS (LIGHT THEME DEFAULT) */
:root {
  /* Brand Lime */
  --lime-400: #b2ff2e;
  --lime-500: #a8ff1a;
  --lime-600: #93e80d;
  --lime-glow: rgba(168, 255, 26, 0.25);

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f3f5;

  /* Text Colors */
  --text-primary: #000000;
  --text-secondary: #5f6368;
  --text-tertiary: #8c939d;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #f0f2f5;
  --border-default: #e5e7eb;
  --border-strong: #d1d5db;

  /* Surfaces & Cards */
  --card-bg: #ffffff;
  --card-border: #e6e8eb;
  
  /* Badges & Tags */
  --badge-bg: #ffffff;
  --badge-border: #e5e7eb;
  --tag-bg: #f1f3f5;
  --tag-border: #e9ecef;
  --tag-text: #495057;

  /* Inputs */
  --input-bg: #ffffff;
  --input-border: #e5e7eb;
  --input-focus-border: #94a3b8;

  /* Navbar */
  --nav-bg: #525552;
  --nav-text: #eaeaea;
  --nav-active-bg: #ffffff;
  --nav-active-text: #1a1a1a;

  /* Marquee White Logo Inversion */
  --marquee-filter: invert(1) brightness(0.22) opacity(0.7);
  --marquee-filter-hover: invert(1) brightness(0) opacity(1);

  /* Watermark Gradients */
  --footer-watermark-start: rgba(255, 255, 255, 0.16);
  --footer-watermark-end: rgba(255, 255, 255, 0.01);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.07);

  /* Font Families */
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale */
  --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-32: 128px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* 3. DARK THEME TOKENS */
[data-theme="dark"] {
  --bg-primary: #0d0f12;
  --bg-secondary: #14171c;
  --bg-tertiary: #1b1f26;

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-inverse: #000000;

  --border-subtle: #1e222a;
  --border-default: #2b3038;
  --border-strong: #374151;

  --card-bg: #15181f;
  --card-border: #262c37;

  --badge-bg: #15181d;
  --badge-border: #2b3038;
  --tag-bg: #1b1e24;
  --tag-border: #2b3038;
  --tag-text: #cbd5e1;

  --input-bg: #13161c;
  --input-border: #2b3038;
  --input-focus-border: #475569;

  --nav-bg: #1e2124;
  --nav-text: #d1d5db;
  --nav-active-bg: #2b3038;
  --nav-active-text: #ffffff;

  --marquee-filter: invert(0) brightness(1) opacity(0.75);
  --marquee-filter-hover: invert(0) brightness(1) opacity(1);

  --footer-watermark-start: rgba(255, 255, 255, 0.18);
  --footer-watermark-end: rgba(255, 255, 255, 0.02);

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* 4. BASE RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

/* ================= UNIVERSAL BODY CONTAINER (1360px / 180px Gap Rhythm) ================= */
.main-body-container {
  width: 92%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(90px, 11vw, 180px);       /* Automatic section spacing */
  padding: clamp(60px, 8vw, 120px) 0;  /* Container padding */
  position: relative;
  overflow: visible;
  background-color: var(--bg-primary);
}