@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-0: #06070b;
  --bg-1: #0b0d13;
  --bg-2: #11141c;
  --bg-3: #181c27;
  --bg-4: #212634;
  --text-0: #ffffff;
  --text-1: #cdd3e3;
  --text-2: #8b92a8;
  --text-3: #575e74;
  --amber: #ffb000;
  --amber-hi: #ffc636;
  --amber-dim: #c98a00;
  --amber-glow: rgba(255,176,0,0.15);
  --amber-glow-strong: rgba(255,176,0,0.35);
  --violet: #a78bfa;
  --violet-glow: rgba(167,139,250,0.2);
  --cyan: #22d3ee;
  --cyan-glow: rgba(34,211,238,0.2);
  --pink: #f472b6;
  --pink-glow: rgba(244,114,182,0.2);
  --green: #4ade80;
  --green-glow: rgba(74,222,128,0.2);
  --red: #f43f5e;
  --red-glow: rgba(244,63,94,0.2);
  --yellow: #fbbf24;
  --line: rgba(255,255,255,0.06);
  --line-hi: rgba(255,255,255,0.12);
  --line-amber: rgba(255,176,0,0.2);
  --line-amber-hi: rgba(255,176,0,0.45);
  --r-xs: 10px;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-xl: 42px;
  --r-2xl: 54px;
  --r-full: 999px;
  --pad: 1.5rem;
  --gap: 1.25rem;
  --max-w: 1200px;
  --nav-h: 5rem;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s;
  --t-mid: 0.35s;
  --t-slow: 0.65s;

  --clay-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 100px rgba(167,139,250,0.08),
    inset 0 2px 0 rgba(255,255,255,0.1),
    inset 0 -10px 28px rgba(0,0,0,0.25);

  --clay-shadow-sm:
    0 12px 32px rgba(0,0,0,0.4),
    0 0 50px rgba(167,139,250,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -6px 16px rgba(0,0,0,0.2);

  --clay-shadow-hover:
    0 36px 90px rgba(0,0,0,0.65),
    0 0 120px rgba(167,139,250,0.14),
    0 0 80px rgba(255,176,0,0.1),
    inset 0 2px 0 rgba(255,255,255,0.14),
    inset 0 -10px 28px rgba(0,0,0,0.3);

  --neo-out:
    0 14px 36px rgba(0,0,0,0.5),
    0 0 60px rgba(255,176,0,0.06),
    inset 0 2px 0 rgba(255,255,255,0.12),
    inset 0 -6px 16px rgba(0,0,0,0.2);

  --neo-in:
    inset 8px 8px 20px rgba(0,0,0,0.45),
    inset -8px -8px 20px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(0,0,0,0.2);

  --neo-in-accent:
    inset 6px 6px 16px rgba(0,0,0,0.5),
    inset -4px -4px 12px rgba(255,176,0,0.12),
    inset 0 0 0 1px rgba(255,176,0,0.15);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.7;
  font-size: 15.5px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.2rem, 6.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.65rem, 4.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.85em; }

code {
  color: var(--amber);
  background: rgba(255,176,0,0.1);
  padding: 0.2em 0.55em;
  border-radius: var(--r-xs);
  border: 1px solid rgba(255,176,0,0.2);
}

::selection { background: rgba(255,176,0,0.35); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,176,0,0.3), rgba(244,114,182,0.3));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,176,0,0.5), rgba(244,114,182,0.5));
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.6;
}

.aurora-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.7;
  will-change: transform;
  transform: translateZ(0);
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,0.9) 0%, rgba(124,58,237,0.6) 40%, transparent 70%);
  top: -20%;
  left: -15%;
  animation: aurora-drift-1 28s ease-in-out infinite;
}

.aurora-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(34,211,238,0.8) 0%, rgba(8,145,178,0.5) 40%, transparent 70%);
  top: 25%;
  right: -20%;
  animation: aurora-drift-2 32s ease-in-out infinite;
}

.aurora-3 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(244,114,182,0.85) 0%, rgba(219,39,119,0.5) 40%, transparent 70%);
  bottom: -25%;
  left: 10%;
  animation: aurora-drift-3 36s ease-in-out infinite;
}

.aurora-4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,176,0,0.7) 0%, rgba(217,119,6,0.4) 40%, transparent 70%);
  top: 50%;
  left: 35%;
  opacity: 0.45;
  animation: aurora-drift-4 40s ease-in-out infinite;
}

.aurora-5 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(74,222,128,0.6) 0%, rgba(22,163,74,0.35) 40%, transparent 70%);
  bottom: 5%;
  right: 15%;
  opacity: 0.4;
  animation: aurora-drift-5 34s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(120px, 90px) scale(1.18); }
  66% { transform: translate(-50px, 140px) scale(0.92); }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-140px, 120px) scale(1.22); }
}

@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -130px) scale(1.12); }
}

@keyframes aurora-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-110px, -75px) scale(1.18); }
}

@keyframes aurora-drift-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(130px, -95px) scale(1.1); }
}

.gradient-text {
  background: linear-gradient(120deg, var(--amber) 0%, var(--amber-hi) 25%, var(--pink) 55%, var(--violet) 80%, var(--cyan) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-shift 10s linear infinite;
}

@keyframes grad-shift {
  0% { background-position: 0% center; }
  100% { background-position: 250% center; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(300%) skewX(-20deg); }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 28px 70px rgba(0,0,0,0.55),
      0 0 100px rgba(255,176,0,0.18),
      0 0 140px rgba(167,139,250,0.12);
  }
  50% {
    box-shadow:
      0 32px 80px rgba(0,0,0,0.65),
      0 0 140px rgba(255,176,0,0.35),
      0 0 180px rgba(167,139,250,0.2);
  }
}

@keyframes toast-in {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-up { animation: fade-up 0.75s var(--ease-out) both; }
.anim-in { animation: fade-in 0.55s var(--ease-out) both; }
.anim-right { animation: slide-right 0.65s var(--ease-out) both; }
.anim-left { animation: slide-left 0.65s var(--ease-out) both; }

.d-1 { animation-delay: 0.06s; }
.d-2 { animation-delay: 0.14s; }
.d-3 { animation-delay: 0.22s; }
.d-4 { animation-delay: 0.3s; }
.d-5 { animation-delay: 0.38s; }
.d-6 { animation-delay: 0.46s; }
.d-7 { animation-delay: 0.54s; }
.d-8 { animation-delay: 0.62s; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.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;
}

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