:root {
  --color-bg: #0b1020;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-muted: #475569;
  --color-primary: #4f46e5;
  --color-primary-600: #4338ca;
  --color-accent: #ec4899;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--color-ink);
  background: #f8fafc;
}

.nav-link {
  position: relative;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero-gradient {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 70, 229, 0.45), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(236, 72, 153, 0.35), transparent 65%),
    radial-gradient(700px 500px at 50% 110%, rgba(14, 165, 233, 0.35), transparent 60%),
    linear-gradient(135deg, #0b1020 0%, #111827 100%);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 35px -10px rgba(236, 72, 153, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px -20px rgba(15, 23, 42, 0.25);
}

.timeline-rail {
  background: linear-gradient(180deg, #6366f1 0%, #ec4899 50%, #0ea5e9 100%);
}

.timeline-dot {
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(99, 102, 241, 0.25);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-hover:hover { transform: none; }
}
