/* ============================================================
   BASE.CSS — Variables, Reset, Typography
   Valion Technologies
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,600;12..96,800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Geist+Mono:wght@400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --green:        #00e639;
  --green-dark:   #00b82d;
  --green-deep:   #006e1a;
  --green-pale:   #edfff3;
  --green-mid:    #b3f5c8;

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f8faf8;
  --surface:      #f2f5f2;
  --border:       #e2e8e2;
  --border-mid:   #c8d4c8;

  /* Text */
  --text:         #0b180b;
  --text-muted:   #4a5e4a;
  --text-dim:     #8a9e8a;
  --text-faint:   #b8c8b8;

  /* Alerts */
  --red:          #cc1f00;
  --red-pale:     #fff0ee;
  --red-mid:      #ffd0c8;

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

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,60,20,0.06);
  --shadow-sm: 0 2px 8px rgba(0,60,20,0.08);
  --shadow-md: 0 6px 24px rgba(0,60,20,0.10);
  --shadow-lg: 0 16px 56px rgba(0,60,20,0.13);
  --shadow-xl: 0 32px 96px rgba(0,60,20,0.16);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
  --font-mono:    'Geist Mono', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 400ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --topbar-height: 40px;
}

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

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

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(28px, 6.5vw, 80px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.5vw, 30px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; font-weight: 600; }

p { color: var(--text-muted); line-height: 1.75; }

/* ── UTILITY CLASSES ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-5); }
}

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

.section--alt {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--space-5);
}

.section-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

.section-header {
  max-width: 700px;
  margin-bottom: var(--space-8);
}

.section-header h2 { margin-bottom: var(--space-3); }
.section-header p   { font-size: 17px; max-width: 580px; }

/* ── GRADIENT TEXT ── */
.grad-text {
  background: linear-gradient(135deg, #009922 0%, #00e639 55%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
