/* ============================================
   BASE — CSS Variables, Reset, Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  /* Brand Colors */
  --black: #080c0a;
  --surface-0: #0b100d;
  --surface-1: #111916;
  --surface-2: #182219;
  --surface-3: #1f2e20;
  --surface-4: #263626;

  --green-900: #0d2b14;
  --green-800: #1a4a24;
  --green-700: #236b30;
  --green-600: #2d8f3e;
  --green-500: #38b34a;
  --green-400: #52cc60;
  --green-300: #7ddb88;
  --green-200: #a8e8b0;
  --green-100: #d4f3d8;

  --gold-500: #c9a84c;
  --gold-400: #d4b464;
  --gold-300: #e0cc90;
  --gold-200: #eeddbb;
  --gold-100: #f5f0dd;

  --white: #ffffff;
  --gray-100: #f4f4f2;
  --gray-200: #d8d8d4;
  --gray-300: #b0b0aa;
  --gray-400: #888882;
  --gray-500: #606058;
  --gray-600: #404040;

  /* Semantic */
  --text-primary: #f0f4f1;
  --text-secondary: #8fa890;
  --text-muted: #556655;
  --text-gold: var(--gold-400);

  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --border-green: rgba(56,179,74,0.25);

  /* Glass */
  --glass-bg: rgba(17,25,22,0.72);
  --glass-bg-light: rgba(26,42,28,0.55);
  --glass-border: rgba(56,179,74,0.15);

  /* Glows */
  --glow-green: 0 0 60px rgba(56,179,74,0.12), 0 0 120px rgba(56,179,74,0.06);
  --glow-gold: 0 0 40px rgba(201,168,76,0.15);
  --glow-card: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04);

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: 120px 0;
  --section-pad-sm: 80px 0;
  --container-max: 1180px;
  --container-pad: 0 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-mid: 300ms;
  --dur-slow: 500ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

/* Typography Scale */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.text-h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}
.text-body-lg { font-size: 18px; line-height: 1.7; }
.text-body    { font-size: 16px; line-height: 1.7; }
.text-sm      { font-size: 14px; line-height: 1.6; }
.text-xs      { font-size: 12px; line-height: 1.5; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-green     { color: var(--green-400); }
.text-gold      { color: var(--gold-400); }

/* Section label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--green-400);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Utility */
.text-center { text-align: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; }

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

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(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; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--green-300) 0%, var(--green-400) 50%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
