:root {
  --bg-0: #05060a;
  --bg-1: #0a0c14;
  --ink-0: #f4f5fb;
  --ink-1: #c5c8d9;
  --ink-2: #7c8099;
  --ink-3: #4a4e63;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #22d3ee;
  --accent-amber: #fbbf24;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;
  --max-w: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

body {
  position: relative;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }

.container {
  width: min(100% - 48px, var(--max-w));
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

section { position: relative; z-index: 5; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bg-aurora {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px) saturate(140%);
  opacity: 0.55;
}
.bg-aurora .blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s var(--ease) infinite alternate;
}
.bg-aurora .b1 { width: 620px; height: 620px; top: -120px; left: -80px; background: radial-gradient(circle at 30% 30%, #8b5cf6 0%, transparent 60%); }
.bg-aurora .b2 { width: 720px; height: 720px; top: 180px; right: -120px; background: radial-gradient(circle at 70% 30%, #ec4899 0%, transparent 60%); animation-delay: -7s; }
.bg-aurora .b3 { width: 540px; height: 540px; bottom: -180px; left: 30%; background: radial-gradient(circle at 50% 50%, #22d3ee 0%, transparent 60%); animation-delay: -14s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.96); }
}

.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, rgba(236,72,153,0.08) 30%, transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  filter: blur(20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
.eyebrow .dot.green { background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }

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

.h-display {
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.gradient-text {
  background: linear-gradient(110deg, #fff 20%, #c4b5fd 40%, #f9a8d4 55%, #67e8f9 70%, #fff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.italic-soft { font-style: italic; color: #d8b4fe; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #fb7185 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 10px 30px rgba(139,92,246,0.45),
    0 4px 14px rgba(236,72,153,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(139,92,246,0.6), 0 6px 18px rgba(236,72,153,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-0);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  margin: 18px 0 18px;
}
.section-head p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-1);
  max-width: 580px;
  margin: 0 auto;
}

.glass-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.12) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.glass-icon::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
}
.glass-icon.violet { background: linear-gradient(135deg, rgba(167,139,250,0.4), rgba(139,92,246,0.15)); border-color: rgba(167,139,250,0.5); color: #f3e8ff; }
.glass-icon.pink { background: linear-gradient(135deg, rgba(244,114,182,0.4), rgba(236,72,153,0.15)); border-color: rgba(244,114,182,0.5); color: #fce7f3; }
.glass-icon.cyan { background: linear-gradient(135deg, rgba(103,232,249,0.4), rgba(34,211,238,0.15)); border-color: rgba(103,232,249,0.5); color: #cffafe; }
.glass-icon.amber { background: linear-gradient(135deg, rgba(252,211,77,0.4), rgba(251,191,36,0.15)); border-color: rgba(252,211,77,0.5); color: #fef3c7; }
.glass-icon.lime { background: linear-gradient(135deg, rgba(190,242,100,0.4), rgba(132,204,22,0.15)); border-color: rgba(190,242,100,0.5); color: #ecfccb; }
.glass-icon.sky { background: linear-gradient(135deg, rgba(125,211,252,0.4), rgba(56,189,248,0.15)); border-color: rgba(125,211,252,0.5); color: #e0f2fe; }
.glass-icon.red { background: linear-gradient(135deg, rgba(252,165,165,0.4), rgba(239,68,68,0.15)); border-color: rgba(252,165,165,0.5); color: #fee2e2; }

.glass-icon svg { width: 26px; height: 26px; stroke-width: 1.6; position: relative; z-index: 1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
