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

/* ── Variables — Terminal + Cosmos palette ──────────────────────────────── */
:root {
  --bg:          #000000;
  --surface:     #080808;
  --surface2:    #0f0f0f;
  --green:       #00ff41;        /* terminal / UI chrome  */
  --green-dim:   #00cc33;
  --cyan:        #00e5ff;        /* XR energy / cosmos    */
  --purple:      #bf5af2;        /* XR energy / cosmos    */
  --text:        #f0f0f0;
  --text-sec:    rgba(240,240,240,0.55);
  --text-muted:  rgba(0,255,65,0.40);
  --border:      rgba(0,255,65,0.12);
  --border-xr:   rgba(0,229,255,0.15);
  --glow-c:      0 0 28px rgba(0,255,65,0.28);
  --glow-xr:     0 0 40px rgba(0,229,255,0.30);
  --glow-p:      0 0 40px rgba(191,90,242,0.30);
  --radius:      6px;
  --radius-lg:   12px;
  --mono:        'JetBrains Mono', monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Game overlay ───────────────────────────────────────────────────────── */
#game-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000000;
}
#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Site wrapper ───────────────────────────────────────────────────────── */
#site { min-height: 100vh; }
#site.hidden { display: none; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--green);
  text-shadow: var(--glow-c);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  text-shadow: var(--glow-c);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 9px 20px;
  border: 1px solid var(--green);
  border-radius: 2px;
  color: var(--green);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: rgba(0,255,65,0.08);
  box-shadow: var(--glow-c);
}

/* ── Hero section ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  width: clamp(420px, 55vw, 800px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -52%) scale(1); }
  50%       { transform: translate(-50%, -55%) scale(1.04); }
}
.hero > *:not(.hero-bg):not(.hero-orb) { position: relative; z-index: 1; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 35%, rgba(0,255,65,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 15% 85%, rgba(0,229,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
/* Scanline overlay — Matrix feel */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,65,0.015) 2px,
    rgba(0,255,65,0.015) 4px
  );
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  opacity: 0;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .word { display: inline-block; }
.grad-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-sec);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 44px;
  opacity: 0;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--green);
  border-radius: 2px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #000000;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(0,255,65,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,255,65,0.4); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-sec);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,0.05);
}
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── Horizontal scroll track ────────────────────────────────────────────── */
.h-scroll-section {
  position: relative;
  height: 300vh;
}
.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.h-scroll-track {
  display: flex;
  gap: 32px;
  padding: 0 80px;
  will-change: transform;
}
.h-card {
  flex-shrink: 0;
  width: clamp(260px, 30vw, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.h-card:hover {
  border-color: rgba(0,245,255,0.3);
  box-shadow: var(--glow-c);
}
.h-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.h-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.h-card p {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.6;
}
.h-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── About section ──────────────────────────────────────────────────────── */
.about-section {
  padding: 120px 48px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.about-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about-section p {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-c);
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ── Meta badge ─────────────────────────────────────────────────────────── */
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-top: 8px;
  margin-bottom: 24px;
}
.meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* ── Featured build ─────────────────────────────────────────────────────── */
.featured-section {
  padding: 80px 48px 120px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.see-all {
  font-size: 0.85rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.see-all:hover { gap: 10px; }

.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
  transition: box-shadow 0.3s;
}
.featured-card:hover { box-shadow: 0 0 60px rgba(0,245,255,0.12); }
.featured-media {
  background: linear-gradient(135deg, #0a0a1a, #111128);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-right: 1px solid var(--border);
  min-height: 300px;
}
.featured-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.featured-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.featured-content p {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Press cards ────────────────────────────────────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.press-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.press-card:hover {
  border-color: rgba(0,255,65,0.35);
  transform: translateY(-4px);
}
.press-outlet {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}
.press-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.press-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.press-link {
  font-size: 0.8rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  transition: gap 0.2s;
}
.press-link:hover { gap: 9px; }

/* ── Projects grid ──────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.project-card:hover {
  border-color: rgba(0,245,255,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-c);
}
.project-thumb {
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}
.project-body { padding: 24px; }
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag.cyan { border-color: rgba(0,245,255,0.3); color: var(--cyan); }
.tag.purple { border-color: rgba(191,90,242,0.3); color: var(--purple); }
.project-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.project-body p {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  padding: 160px 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Contact form ───────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 120px;
  align-items: start;
}
.contact-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.contact-info p {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-sec);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); }
.social-icon { font-size: 1.1rem; width: 20px; text-align: center; }
form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sec);
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08);
}
.form-group textarea { min-height: 140px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Divider ────────────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.section-pad { padding: 100px 0; }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 48px; padding: 80px 24px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { display: none; }
  .contact-layout { grid-template-columns: 1fr; padding: 0 24px 80px; gap: 48px; }
  .page-hero { padding: 120px 24px 60px; }
  .featured-section, .container { padding-left: 24px; padding-right: 24px; }
  footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .h-scroll-track { padding: 0 24px; }
}
