/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #080c14;
  color: #eef0f8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #080c14;
  --bg-alt:    #0b1120;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.16);
  --text:      #eef0f8;
  --text-2:    #7a8a9e;
  --text-3:    #3e4a5c;
  --accent:    #60a5fa;
  --accent-2:  #a78bfa;
  --accent-3:  #34d399;
  --radius:    16px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (hover: hover) {
  body, a, button { cursor: none; }
}
.cursor {
  position: fixed; inset: auto;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(96,165,250,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, border-color .25s, background .25s;
  will-change: left, top;
}
.cursor.hovered {
  width: 58px; height: 58px;
  border-color: rgba(96,165,250,0.25);
  background: rgba(96,165,250,0.07);
}
.cursor-dot {
  position: fixed; inset: auto;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
}
@media (hover: none) {
  .cursor, .cursor-dot { display: none !important; }
}

/* ============================================================
   GATE
   ============================================================ */
#gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
#gate.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
#gate-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  user-select: none;
}
.gate-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 36px;
}
.gate-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.gate-subtitle {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 32px;
}
.gate-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transition: all .3s;
}
.dot.filled {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(96,165,250,.7);
  transform: scale(1.2);
}
.gate-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .1em;
  min-height: 20px;
}

/* The catch button */
#catch-btn {
  position: fixed;
  z-index: 950;
  transform: translate(-50%, -50%);
  padding: 14px 36px;
  background: rgba(96,165,250,0.1);
  border: 1.5px solid rgba(96,165,250,0.5);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  /* NO transition here — JS sets it for movement, we handle colours separately */
  box-shadow: 0 0 30px rgba(96,165,250,0.15);
}
#catch-btn:hover {
  background: rgba(96,165,250,0.18);
  border-color: rgba(96,165,250,0.8);
  box-shadow: 0 0 40px rgba(96,165,250,0.3);
}
#catch-btn.caught {
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.7);
  color: var(--accent-3);
  box-shadow: 0 0 40px rgba(52,211,153,0.3);
}
#catch-btn.victory {
  background: rgba(52,211,153,0.2);
  border-color: var(--accent-3);
  color: var(--accent-3);
  box-shadow: 0 0 60px rgba(52,211,153,0.5);
}

/* Burst particles */
.burst {
  position: fixed;
  width: 7px; height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  animation: burst .8s var(--ease) forwards;
}
@keyframes burst {
  0%   { opacity: 1; transform: translate(-50%,-50%) translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(var(--bx),var(--by)) scale(0); }
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(1) { transition-delay: .05s; }
.fade-up:nth-child(2) { transition-delay: .15s; }
.fade-up:nth-child(3) { transition-delay: .25s; }
.fade-up:nth-child(4) { transition-delay: .35s; }

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

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  padding: 16px 40px;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .25s;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 600px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 25% 20%, rgba(96,165,250,.09) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 75% 85%, rgba(167,139,250,.07) 0%, transparent 70%);
  pointer-events: none;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #080c14;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96,165,250,.35);
}
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.2); transform-origin: top; }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section {
  padding: 120px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 64px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-left .section-label,
.about-left .section-title {
  margin-bottom: 20px;
}
.about-left .section-title {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.5vw, 52px);
}
@media (max-width: 840px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-text p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 16px;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .about-cards { grid-template-columns: 1fr; }
}
.about-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s, background .25s, transform .25s;
}
.about-card:hover {
  border-color: var(--border-hi);
  background: rgba(255,255,255,.065);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}
.card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================================
   PERSONAL OS
   ============================================================ */
.os-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.os-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .3s;
}
.os-item:first-child { border-top: 1px solid var(--border); }
.os-item:hover { padding-left: 12px; }
.os-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: 4px;
  flex-shrink: 0;
  min-width: 28px;
}
.os-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -.01em;
}

/* ============================================================
   QUESTS
   ============================================================ */
.quest-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.quest-item {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s;
}
.quest-item:hover { border-color: var(--border-hi); }
.quest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.quest-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.01em;
}
.quest-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .05em;
}
.quest-track {
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}
.quest-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.quest-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .08em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap { text-align: center; }
.contact-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
.contact-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  padding: 15px 32px;
  background: var(--accent);
  color: #080c14;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.cta-btn:hover {
  background: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96,165,250,.3);
}
.cta-btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(96,165,250,.4);
}
.cta-btn-ghost:hover {
  background: rgba(96,165,250,.08);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(96,165,250,.15);
}
.contact-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .1em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   KONAMI OVERLAY
   ============================================================ */
#konami-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}
#konami-overlay.show { display: flex; }
.konami-box {
  background: rgba(13,18,32,.95);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 440px;
  margin: 20px;
}
.konami-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 20px;
}
.konami-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.konami-box p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
  font-size: 15px;
}
.konami-seq {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-2);
  font-size: 18px;
  margin: 20px 0;
}
#konami-close {
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
  font-size: 14px;
  transition: all .25s;
}
#konami-close:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

/* ============================================================
   MAIN SITE ENTRANCE
   ============================================================ */
#main-site {
  opacity: 0;
  animation: siteIn .8s var(--ease) forwards;
}
@keyframes siteIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
