/* ============================================================
   BASE.CSS — Variables, Reset, Typography, Utilities
   Evolaxis Technology · Light Theme
   ============================================================ */

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

/* ── CSS VARIABLES ── */
:root {
  /* Core Palette */
  --white:        #ffffff;
  --bg:           #f4f8ff;
  --bg2:          #eaf1ff;
  --surface:      #ffffff;
  --surface2:     #f0f6ff;
  --surface3:     #e3eeff;

  /* Blue Scale */
  --blue-50:      #eff6ff;
  --blue-100:     #dbeafe;
  --blue-200:     #bfdbfe;
  --blue-300:     #93c5fd;
  --blue-400:     #60a5fa;
  --blue-500:     #3b82f6;
  --blue-600:     #2563eb;
  --blue-700:     #1d4ed8;
  --blue-800:     #1e40af;
  --blue-900:     #1e3a8a;

  /* Primary Brand Blue */
  --primary:      #1a56db;
  --primary-dark: #1340b5;
  --primary-light:#3b82f6;
  --primary-pale: #eff6ff;

  /* Accent */
  --accent:       #0ea5e9;
  --accent2:      #6366f1;
  --accent3:      #06b6d4;
  --success:      #10b981;

  /* Text */
  --text:         #0f172a;
  --text-secondary:#334155;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;

  /* Borders */
  --border:       #dde8f8;
  --border-strong:#bfd1f0;

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(30,64,175,0.06);
  --shadow-sm:    0 2px 8px rgba(30,64,175,0.08);
  --shadow-md:    0 4px 20px rgba(30,64,175,0.12);
  --shadow-lg:    0 8px 40px rgba(30,64,175,0.16);
  --shadow-xl:    0 16px 60px rgba(30,64,175,0.2);
  --shadow-blue:  0 4px 24px rgba(26,86,219,0.22);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Radii */
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:150ms;
  --duration:     250ms;
  --duration-slow:400ms;

  /* Z-index scale */
  --z-nav:        100;
  --z-dropdown:   200;
  --z-overlay:    300;
  --z-modal:      400;
}

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

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

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
}

ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -2px; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); font-weight: 800; letter-spacing: -1.5px; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
h4 { font-size: 1rem; font-weight: 700; }

p { color: var(--text-secondary); }

/* ── LAYOUT UTILITIES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── LABEL TAG ── */
.label-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--blue-200);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 5%;
}

/* ── FADE IN ANIMATION ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── SCROLL REVEAL (JS adds .revealed) ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE BASE ── */
@media (max-width: 768px) {
  h1 { letter-spacing: -1px; }
  h2 { letter-spacing: -1px; }
  .section-header { margin-bottom: 44px; }
}
