/* ── tokens.css — Design Tokens & Reset ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* colors */
  --color-bg:        #03080f;
  --color-surface:   #07111e;
  --color-surface-2: #0b1929;
  --color-border:    rgba(0, 198, 255, 0.1);
  --color-cyan:      #00c6ff;
  --color-cyan-deep: #0057d9;
  --color-orange:    #ff6a00;
  --color-white:     #eaf2ff;
  --color-muted:     #4a6580;
  --color-muted-2:   #2a3d54;
  --color-success:   #00e5a0;
  --color-grid:      rgba(0, 198, 255, 0.045);

  /* gradients */
  --gradient-cyan:   linear-gradient(135deg, var(--color-cyan), var(--color-cyan-deep));
  --gradient-strava: linear-gradient(135deg, #fc4c02, #e63900);
  --gradient-text:   linear-gradient(160deg, var(--color-white) 50%, var(--color-muted));

  /* typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', 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;

  /* radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 100px;

  /* shadows */
  --shadow-card:  0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --shadow-btn:   0 0 30px rgba(0, 198, 255, 0.28);
  --shadow-strava: 0 0 30px rgba(252, 76, 2, 0.28);

  /* transitions */
  --transition-fast: 0.2s ease;
  --transition-med:  0.3s ease;

  /* z-index layers */
  --z-background: 0;
  --z-content:    1;
  --z-overlay:    10;
  --z-nav:        100;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   BACKGROUND EFFECTS
───────────────────────────────────────── */

/* ambient grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: var(--z-background);
}

/* ambient glow blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-background);
}

.blob--cyan-hero {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 87, 217, 0.22) 0%, transparent 70%);
  top: -200px; left: -200px;
}

.blob--orange {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.14) 0%, transparent 70%);
  bottom: 0; right: -100px;
}

.blob--cyan-mid {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.1) 0%, transparent 70%);
  top: 60vh; left: 40%;
}

/* small decorative pulse nodes */
.node {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  pointer-events: none;
  z-index: var(--z-background);
  animation: blink 2.8s ease-in-out infinite;
}

.node:nth-child(1) { top: 15%;    left: 7%;   animation-delay: 0s;   }
.node:nth-child(2) { top: 30%;    right: 6%;  animation-delay: 0.9s; }
.node:nth-child(3) { bottom: 20%; left: 12%;  animation-delay: 1.6s; }
.node:nth-child(4) { bottom: 35%; right: 10%; animation-delay: 0.4s; }

/* ─────────────────────────────────────────
   KEYFRAME ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

@keyframes blink {
  0%, 100% { opacity: 0.2; transform: scale(1);   }
  50%       { opacity: 1;   transform: scale(1.7); }
}

@keyframes drift {
  from { transform: translate(0, 0)   scale(1);   }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

/* scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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