/* ============================================================
   base.css — Reset + Design Tokens + Typography
   EGLOBE Visual
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-2: #1a1a1a;
  --color-surface-3: #222222;
  --color-text-primary: #fafafa;
  --color-text-secondary: rgba(250,250,250,.70);
  --color-text-muted: rgba(250,250,250,.42);
  --color-text-disabled: rgba(250,250,250,.22);
  --color-accent: #c8f135;
  --color-accent-hover: #e8ff6e;
  --color-accent-dim: rgba(200,241,53,.09);
  --color-accent-border: rgba(200,241,53,.22);
  --color-accent-glow: rgba(200,241,53,.11);
  --color-border: rgba(255,255,255,.08);
  --color-border-mid: rgba(255,255,255,.14);
  --color-border-strong: rgba(255,255,255,.24);
  --color-success-bg: rgba(200,241,53,.12);
  --color-error: #ff5050;
  --color-error-bg: rgba(255,80,80,.10);
  --color-overlay: rgba(10,10,10,.80);

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

  /* Spacing (4px grid) */
  --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-20: 80px;
  --space-24: 96px;

  /* Layout */
  --padding-page: clamp(20px, 5vw, 80px);
  --max-width: 1280px;
  --nav-height: 72px;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-md: 8px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.20s ease;
  --transition-slow: 0.30s ease;

  /* Fluid font sizes */
  --text-xs: clamp(11px, 1vw, 12px);
  --text-sm: clamp(13px, 1.2vw, 14px);
  --text-base: clamp(15px, 1.4vw, 16px);
  --text-md: clamp(16px, 1.6vw, 18px);
  --text-lg: clamp(18px, 2vw, 20px);
  --text-xl: clamp(20px, 2.5vw, 24px);
  --text-2xl: clamp(24px, 3vw, 32px);
  --text-3xl: clamp(28px, 4vw, 42px);
  --text-4xl: clamp(32px, 5vw, 56px);
  --text-hero: clamp(38px, 6.5vw, 80px);
}

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Base Body ── */
body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography Base ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-hover); }

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ── Utility Classes ── */

/* Section tag / eyebrow */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-accent-border);
  border-radius: 100px;
  background: var(--color-accent-dim);
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Accent text */
.text-accent { color: var(--color-accent); }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Selection */
::selection {
  background: rgba(200,241,53,.25);
  color: var(--color-text-primary);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
