/* Global design tokens (colors, spacing, elevation, radii). */
:root {
  --bg: #050912;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7ff;
  --muted: #a7b1c5;
  --primary: #6e7bff;
  --secondary: #1cd6ff;
  --accent: #ff6ec7;
  --gradient-main: linear-gradient(130deg, #6e7bff 0%, #1cd6ff 46%, #7ef4c3 100%);
  --gradient-hero: linear-gradient(160deg, rgba(5, 9, 18, 0.82), rgba(11, 18, 32, 0.58), rgba(110, 123, 255, 0.2));
  --shadow-soft: 0 18px 45px rgba(1, 8, 25, 0.35);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
}

/* Core reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Global typography + base layout */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, rgba(110, 123, 255, 0.18), transparent 35%),
    radial-gradient(circle at 95% 85%, rgba(28, 214, 255, 0.12), transparent 30%),
    var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p { margin: 0 0 var(--space-2); color: var(--muted); }

/* Shared layout primitives */
.container {
  width: min(1150px, calc(100% - 2rem));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }

.eyebrow {
  margin-bottom: var(--space-1);
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-heading {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-heading h2,
.section-heading h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-main { min-height: 100vh; padding-top: 5.4rem; }

/* Reveal animation helpers used with IntersectionObserver */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: 0.75s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Startup loader */
#page-loader {
  position: fixed;
  inset: 0;
  background: #050912;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  z-index: 100;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--secondary);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .container { width: min(1220px, calc(100% - 4rem)); }
}

