:root {
  --bg: #06060a;
  --bg-2: #0d0d14;
  --fg: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(22, 22, 30, 0.55);
  --accent-1: #a78bfa;
  --accent-2: #f472b6;
  --accent-3: #60a5fa;
  --tg: #2aabee;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.muted { color: var(--muted); }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%),
              rgba(167, 139, 250, 0.10), transparent 60%);
  transition: background 0.2s;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 10px 14px 10px 22px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  animation: navIn 1s var(--ease) 0.2s both;
  max-width: calc(100% - 32px);
}
.nav-logo { font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
@keyframes navIn { from { opacity: 0; transform: translate(-50%, -20px); } }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- typography ---------- */
section { position: relative; z-index: 1; padding: 140px 24px; }
.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-1); margin-bottom: 14px;
}
h2 {
  font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin-top: 18px; }
.section-head { max-width: 980px; margin: 0 auto 60px; text-align: center; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent-3), var(--accent-1) 40%, var(--accent-2) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.hero-title {
  font-size: clamp(72px, 16vw, 200px); font-weight: 800;
  letter-spacing: -0.06em; line-height: 0.95;
}
.hero-sub { font-size: clamp(19px, 2.4vw, 26px); color: var(--muted); margin-top: 26px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.scroll-hint {
  position: absolute; bottom: 36px; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--fg); animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-size: 17px; font-weight: 600;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(245,245,247,0.25); }
.btn-ghost { background: rgba(255,255,255,0.08); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #f472b6); color: #fff;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); } 50% { box-shadow: 0 0 0 14px rgba(239,68,68,0); } }
.chip {
  font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s;
}
.chip:hover { background: rgba(255,255,255,0.12); }

/* ---------- statement ---------- */
.statement { min-height: 120vh; display: flex; align-items: center; justify-content: center; }
.statement-text {
  max-width: 1000px; text-align: center;
  font-size: clamp(36px, 6vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
}
.statement-text .w { color: rgba(245,245,247,0.15); transition: color 0.3s; }
.statement-text .w.on { color: var(--fg); }

/* ---------- planet ---------- */
.planet-stage {
  position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #12122a 0%, #050508 70%);
  border: 1px solid var(--line);
}
#planet-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#planet-canvas:active { cursor: grabbing; }
.planet-hud { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.planet-name {
  position: absolute; left: 22px; bottom: 18px; font-size: 14px; color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- cards ---------- */
.cards {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.card {
  padding: 36px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  transform-style: preserve-3d; will-change: transform;
}
.card.in { transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 0.15s linear; }
.card-emoji { font-size: 40px; }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.card p { color: var(--muted); flex: 1; }
.card .btn { margin-top: 10px; }
kbd {
  font-family: "Inter", sans-serif; font-size: 13px; padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); white-space: nowrap;
}
.hint { font-size: 14px; color: var(--accent-1); margin-top: 10px; }

/* ---------- contact ---------- */
.contact { text-align: center; padding-bottom: 180px; }
.contact-title { font-size: clamp(48px, 9vw, 110px); margin-bottom: 50px; }
.tg-card {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 26px 18px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.tg-card:hover { border-color: rgba(42,171,238,0.5); box-shadow: 0 20px 60px rgba(42,171,238,0.2); }
.tg-icon { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--tg); color: #fff; }
.tg-text { display: flex; flex-direction: column; text-align: left; }
.tg-label { font-size: 13px; color: var(--muted); }
.tg-handle { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.tg-arrow { font-size: 22px; transition: transform 0.3s var(--ease); }
.tg-card:hover .tg-arrow { transform: translateX(6px); }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px;
  max-width: 1100px; margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid var(--line); font-size: 14px;
}

/* ---------- confetti / konami ---------- */
#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }
body.party .hero-title { animation: wobble 0.6s ease-in-out infinite; }
body.party { animation: hue 3s linear infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-3deg) scale(1.02); } 50% { transform: rotate(3deg) scale(0.98); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  section { padding: 100px 16px; }
  .nav { gap: 10px; padding: 8px 8px 8px 16px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .planet-stage { aspect-ratio: 4 / 5; }
  .tg-handle { font-size: 19px; }
}

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