:root {
  --bg: #0a0612;
  --bg-2: #120a1f;
  --panel: rgba(28, 16, 48, 0.6);
  --border: rgba(140, 90, 220, 0.18);
  --border-hi: rgba(160, 110, 240, 0.45);
  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --purple-3: #c084fc;
  --purple-deep: #4c1d95;
  --text: #ece7f7;
  --text-dim: #a99cc4;
  --text-dimmer: #6e5f8f;
  --glow: 0 0 60px rgba(139, 92, 246, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; line-height: 1.55;
}
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
  transform: translate3d(0, calc(var(--sy, 0px) * var(--spd, 0.15)), 0); }
.orb-1 { width: 620px; height: 620px; background: #7c3aed; top: -220px; left: -180px; animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; background: #a855f7; bottom: -200px; right: -140px; animation: float2 22s ease-in-out infinite; opacity: 0.35; }
.orb-3 { width: 380px; height: 380px; background: #6d28d9; top: 40%; left: 55%; animation: float3 26s ease-in-out infinite; opacity: 0.3; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 80px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-70px, -60px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 50px); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
nav { padding: 28px 0; display: flex; align-items: center; justify-content: space-between;
  opacity: 0; animation: fade 0.8s ease 0.1s forwards; }
@keyframes fade { to { opacity: 1; } }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; text-decoration: none; color: inherit; }
.logo { width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple-2), var(--purple-deep));
  display: grid; place-items: center; box-shadow: var(--glow); position: relative; }
.logo::after { content: ""; position: absolute; inset: 2px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.15); }
.logo::before { content: ""; position: absolute; inset: -3px; border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #6d28d9); opacity: 0; filter: blur(8px); z-index: -1;
  animation: logo-glow 3.5s ease-in-out infinite; }
@keyframes logo-glow { 0%,100% { opacity: 0.0; transform: scale(0.95); } 50% { opacity: 0.7; transform: scale(1.05); } }
.logo svg { width: 18px; height: 18px; }
.brand-sub { color: var(--text-dimmer); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; margin-left: 2px; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.nav-links a { color: inherit; text-decoration: none; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--purple-2), var(--purple));
  border-radius: 2px; box-shadow: 0 0 12px var(--purple-2); }
@media (max-width: 720px) { .nav-links { display: none; } }
.page-head > * { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.page-head .pill { animation-delay: 0.05s; }
.page-head h1   { animation-delay: 0.15s; }
.page-head .sub { animation-delay: 0.28s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.pill { display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
  font-size: 12.5px; color: var(--text-dim); font-weight: 500;
  backdrop-filter: blur(10px); margin-bottom: 30px; letter-spacing: 0.01em; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-2); box-shadow: 0 0 10px var(--purple-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
h1 { font-size: clamp(40px, 6.5vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #d8c9ff 60%, #a889e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .grad { background: linear-gradient(135deg, var(--purple-3), var(--purple-2) 50%, var(--purple));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
  animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.sub { font-size: clamp(15px, 1.8vw, 18px); color: var(--text-dim); max-width: 620px; line-height: 1.65; font-weight: 400; }
.btn { font-family: inherit; font-size: 14.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--purple-2), var(--purple));
  color: #fff; box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(139, 92, 246, 0.55); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg); transition: left 0.7s cubic-bezier(0.22,1,0.36,1); }
.btn-primary:hover::after { left: 140%; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--border-hi); background: rgba(40, 22, 68, 0.7); }
.reveal { opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
footer { margin-top: 100px; padding: 40px 0 60px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13.5px; color: var(--text-dimmer); }
footer .brand { font-size: 15px; }
footer .brand .logo { width: 26px; height: 26px; border-radius: 7px; }
footer .brand .logo svg { width: 14px; height: 14px; }
footer .links { display: flex; gap: 24px; }
footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--purple-3); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .page-head > *, .reveal, .card { opacity: 1 !important; transform: none !important; }
}
