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

:root {
  /* Photon Studio Colors & Palette */
  --ph-black-0: #000000;
  --ph-black-1: #050505;
  --ph-black-2: #090909;
  --ph-black-3: #0d0d0d;
  --ph-black-4: #111111;
  --ph-black-5: #151515;
  --ph-black-6: #1b1b1b;
  --ph-bg: var(--ph-black-0);
  --ph-text: #f7f7f7;
  --ph-muted: #a4a4a4;
  --ph-soft: #6b6b6b;
  --ph-dim: #444444;

  /* Accent & Glow */
  --ph-accent: #b399ff;
  --ph-accent-bright: #cbb9ff;
  --ph-accent-deep: #8f6dff;
  --ph-accent-glow: #b399ff57;
  --site-glow-purple: 179, 153, 255;
  --site-glow-pink: 255, 138, 206;

  /* Glassmorphism & Borders */
  --ph-stroke: #ffffff12;
  --ph-stroke-strong: #ffffff1f;
  --ph-stroke-glass: #ffffff24;
  --ph-stroke-glass-top: #ffffff38;
  --ph-hairline: inset 0 0 0 1px var(--ph-stroke);
  --ph-glass-edge: inset 0 1px 0 var(--ph-stroke-glass-top), inset 0 0 0 1px var(--ph-stroke-glass);

  --ph-glass-blur: blur(30px) saturate(180%) brightness(1.1);
  --ph-glass-plate: #0d0d0dc7;
  --ph-glass-plate-strong: #0a0a0adb;

  /* Shadows & Depth */
  --ph-glow-card: 0 0 44px #b399ff29;
  --ph-glow-card-strong: 0 0 60px #b399ff3d;
  --ph-glow-ambient: 0 0 80px #b399ff17;
  --ph-depth-window: 0 40px 120px #000000d9, 0 10px 30px #000000b3;
  --ph-depth-raised: 0 12px 34px #000000bf;

  /* Typography & Layout */
  --ph-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --ph-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1240px;

  /* Transitions */
  --ph-duration-hover: 0.135s;
  --ph-duration-shadow: 0.24s;
  --ph-duration-press: 90ms;
  --ph-ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ph-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  font-family: var(--ph-font);
  color: var(--ph-text);
  background: var(--ph-bg);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ph-bg);
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere Glow Blobs */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
body::before {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  top: -150px;
  left: -100px;
  background: radial-gradient(ellipse, rgba(179, 153, 255, 0.12), transparent 70%);
  animation: photon-travel-a 22s infinite ease-in-out;
}
body::after {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  top: 30%;
  right: -100px;
  background: radial-gradient(ellipse, rgba(255, 138, 206, 0.08), transparent 70%);
  animation: photon-travel-b 28s infinite ease-in-out;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* Skip Link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #111;
  padding: .7rem 1rem;
  z-index: 50;
  transition: top var(--ph-duration-hover) var(--ph-ease-out);
}
.skip-link:focus { top: 1rem; }

/* Header Glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem));
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--ph-stroke);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  animation: entrance 0.7s var(--ph-ease-out) both;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 8, 10, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(179, 153, 255, 0.25);
}

.site-header nav {
  display: flex;
  gap: 1.8rem;
  color: var(--ph-muted);
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
}
.site-header nav a {
  transition: color var(--ph-duration-hover) var(--ph-ease-out);
}
.site-header nav a:hover,
.site-header nav a:focus,
.site-header nav a[aria-current="page"] {
  color: var(--ph-text);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--ph-stroke-strong);
  background: var(--ph-glass-plate);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: var(--ph-hairline);
  transition: all var(--ph-duration-hover) var(--ph-ease-out);
}
.header-cta:hover {
  border-color: var(--ph-accent);
  box-shadow: 0 0 20px rgba(179, 153, 255, 0.25);
  transform: translateY(-1px);
}

.section-shell {
  max-width: var(--max);
  margin: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Hero Section - Centered Photon Style */
.hero {
  min-height: 500px;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  animation: entrance 1s var(--ph-ease-out) both;
}

/* Photon Glowing App Icon */
.hero-app-icon {
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.hero-app-icon::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(179, 153, 255, 0.4), rgba(143, 109, 255, 0.15) 50%, transparent 75%);
  filter: blur(16px);
  border-radius: 30%;
  z-index: -1;
  animation: photon-travel-a 8s infinite ease-in-out;
}
.hero-app-icon img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 18px 50px rgba(125, 84, 224, 0.4), 0 2px 8px #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1 {
  letter-spacing: -0.06em;
  margin: 0;
  font-size: clamp(3.4rem, 6.8vw, 5.8rem);
  font-weight: 750;
  line-height: 1.02;
  color: #ffffff;
}

/* Script Cursive Sub-headline */
.hero-cursive-title {
  font-family: "Playwrite AU VIC", cursive, "Brush Script MT", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 400;
  margin: 0.25rem 0 0;
  color: #cfc6db;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(179, 153, 255, 0.2);
}

.lede {
  max-width: 580px;
  color: var(--ph-muted);
  font-size: 1.12rem;
  margin: 1.6rem auto 2.2rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.button-primary {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.button-primary:hover:not(:disabled) {
  background: #f0f0f5;
  filter: brightness(1.05);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.button-quiet {
  background: var(--ph-glass-plate);
  border: 1px solid var(--ph-stroke-strong);
  color: var(--ph-text);
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  backdrop-filter: var(--ph-glass-blur);
  box-shadow: var(--ph-hairline);
}
.button-quiet:hover {
  border-color: var(--ph-stroke-glass-top);
  background: var(--ph-glass-hover);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-platforms {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--ph-soft);
  font-family: var(--ph-font);
  letter-spacing: 0.01em;
}

/* Photon Showcase Stage & Mac App Window */
.hero-stage-container {
  width: 100%;
  max-width: 1060px;
  margin: 2rem auto 0;
  position: relative;
  isolation: isolate;
  animation: studio-arrive 1.2s var(--ph-ease-out) both;
}

.hero-stage-atmosphere {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(ellipse at 50% 30%, rgba(179, 153, 255, 0.2), transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(255, 138, 206, 0.12), transparent 50%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  animation: photon-travel-a 16s infinite ease-in-out;
}

.hero-window-frame {
  background: #0a0a0c;
  border-radius: 16px;
  border: 1px solid var(--ph-stroke-glass);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
              0 30px 90px rgba(0, 0, 0, 0.9),
              0 0 50px rgba(179, 153, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.hero-window-frame .window-chrome {
  height: 42px;
  background: #111114;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 1.2rem;
  color: var(--ph-soft);
  font-size: 0.68rem;
  font-family: var(--ph-font-mono);
  letter-spacing: 0.12em;
}

.hero-window-frame .window-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333338;
}
.hero-window-frame .window-chrome i:first-child { background: #f5566f; }
.hero-window-frame .window-chrome i:nth-child(2) { background: #f5a623; }
.hero-window-frame .window-chrome i:nth-child(3) { background: #7ed321; }

.video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
}
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Interactive Showcase Stage (Photon Tabs Section)
   ========================================================================== */
.showcase-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.showcase-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.showcase-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.interactive-stage-card {
  background: #08080a;
  border: 1px solid var(--ph-stroke-strong);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
              0 30px 100px rgba(0, 0, 0, 0.9),
              0 0 70px rgba(179, 153, 255, 0.12);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Dynamic Animated Gradient Atmosphere (from gradient.mov) */
.stage-gradient-atmosphere {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  filter: blur(75px);
  opacity: 0.65;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.blob-purple {
  width: 550px;
  height: 480px;
  top: 10%;
  left: 15%;
  background: radial-gradient(circle, rgba(168, 140, 255, 0.45) 0%, rgba(138, 92, 246, 0.25) 50%, transparent 75%);
  animation: photon-travel-a 18s infinite ease-in-out alternate;
}

.blob-violet {
  width: 650px;
  height: 520px;
  bottom: 5%;
  right: 10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(91, 33, 182, 0.2) 50%, transparent 75%);
  animation: photon-travel-b 22s infinite ease-in-out alternate;
}

.blob-magenta {
  width: 480px;
  height: 420px;
  top: 35%;
  right: 25%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.28) 0%, rgba(168, 85, 247, 0.15) 55%, transparent 75%);
  animation: photon-travel-c 20s infinite ease-in-out alternate;
}

.blob-cyan {
  width: 520px;
  height: 440px;
  bottom: 20%;
  left: 20%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 75%);
  animation: photon-rise 24s infinite ease-in-out alternate;
}

/* Ensure content sits cleanly above gradient */
.stage-tabs-header,
.stage-body {
  position: relative;
  z-index: 1;
}

/* Top Tabs */
.stage-tabs-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--ph-stroke);
  padding-bottom: 1.2rem;
  overflow-x: auto;
}

.stage-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ph-stroke);
  color: var(--ph-muted);
  font-family: var(--ph-font);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--ph-duration-hover) var(--ph-ease-out);
}
.stage-tab-btn:hover {
  color: var(--ph-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ph-stroke-strong);
}
.stage-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(179, 153, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stage-tab-btn svg,
.stage-tab-btn span {
  position: relative;
  z-index: 2;
}

/* Tab Progress Running Bar Directly Inside Tab Button */
.tab-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.stage-tab-btn.active .tab-progress-track {
  opacity: 1;
}

.tab-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #9f7aea, var(--ph-accent), #ffffff);
  box-shadow: 0 0 10px var(--ph-accent), 0 0 4px #ffffff;
  transition: width 0.05s linear;
}

/* Stage Body Layout (Left Copy + Right Window) */
.stage-body {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.stage-copy-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-tab-content {
  display: none;
  animation: entrance 0.4s var(--ph-ease-out) both;
}
.stage-tab-content.active {
  display: block;
}

.stage-tab-content h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: #ffffff;
}

.stage-tab-content p {
  color: var(--ph-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

/* Player Controls (Prev / Pause / Next) */
.stage-player-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.player-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ph-black-4);
  border: 1px solid var(--ph-stroke);
  color: var(--ph-text);
  cursor: pointer;
  transition: all var(--ph-duration-hover) var(--ph-ease-out);
}
.player-btn:hover {
  background: var(--ph-black-6);
  border-color: var(--ph-accent);
  box-shadow: 0 0 12px rgba(179, 153, 255, 0.25);
  transform: translateY(-1px);
}
.player-btn svg {
  display: block;
}
.player-btn svg[hidden] {
  display: none !important;
}

/* Right Media Window */
.stage-view-pane {
  position: relative;
}

.stage-window-frame {
  background: #000;
  border: 1px solid var(--ph-stroke-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(179, 153, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.stage-window-chrome {
  height: 38px;
  background: #111114;
  border-bottom: 1px solid var(--ph-stroke);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 1rem;
  color: var(--ph-soft);
  font-size: 0.65rem;
  font-family: var(--ph-font-mono);
  letter-spacing: 0.12em;
}
.stage-window-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #333338;
}
.stage-window-chrome i:first-child { background: #f5566f; }
.stage-window-chrome i:nth-child(2) { background: #f5a623; }
.stage-window-chrome i:nth-child(3) { background: #7ed321; }

.stage-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #020204;
  display: flex;
  overflow: hidden;
}
.stage-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controller Visual Graphic Mockup */
.controller-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(179, 153, 255, 0.1), #050508 80%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: entrance 0.4s var(--ph-ease-out) both;
}

.controller-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.gamepad-body {
  width: 320px;
  height: 180px;
  background: linear-gradient(180deg, #1e1e24 0%, #0d0d10 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px 50px 70px 70px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(179, 153, 255, 0.25);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.dpad {
  width: 44px;
  height: 44px;
  position: relative;
}
.dpad i {
  position: absolute;
  background: #33333d;
  border-radius: 3px;
}
.dpad i:first-child { width: 14px; height: 44px; left: 15px; top: 0; }
.dpad i:nth-child(2) { width: 44px; height: 14px; left: 0; top: 15px; }

.brand-badge {
  font-size: 1.8rem;
  text-shadow: 0 0 15px rgba(179, 153, 255, 0.6);
}

.action-buttons {
  width: 50px;
  height: 50px;
  position: relative;
  margin-left: auto;
}
.action-buttons span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #25252d;
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.action-buttons .btn-y { top: 0; left: 16px; color: #f5a623; }
.action-buttons .btn-a { bottom: 0; left: 16px; color: #7ed321; }
.action-buttons .btn-x { top: 16px; left: 0; color: #2f80ed; }
.action-buttons .btn-b { top: 16px; right: 0; color: #f5566f; }

.gamepad-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ph-stroke-strong);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--ph-font-mono);
  color: #cfc6db;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ed321;
  box-shadow: 0 0 10px #7ed321;
}
  margin-bottom: 1.8rem;
}
.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--ph-stroke);
  padding: 1.1rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--ph-font-mono);
}
.preview-row small {
  color: var(--ph-accent-bright);
  font-size: 0.68rem;
}
.preview-row.faded { opacity: 0.45; }

/* Intro & Grids */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 6rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--ph-stroke);
}
h1, h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.section-note {
  color: var(--ph-muted);
  max-width: 440px;
  margin: 0;
  align-self: end;
  font-size: 1.05rem;
}

/* Feature Grid */
.feature-grid, .game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.feature-card, .game-card {
  background: var(--ph-glass-plate);
  border: 1px solid var(--ph-stroke);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: var(--ph-hairline), var(--ph-depth-flat);
  backdrop-filter: var(--ph-glass-blur);
  transition: transform var(--ph-duration-shadow) var(--ph-ease-out),
              box-shadow var(--ph-duration-shadow) var(--ph-ease-out),
              border-color var(--ph-duration-hover) var(--ph-ease-out);
}
.feature-card:hover, .game-card:hover {
  border-color: var(--ph-stroke-strong);
  box-shadow: var(--ph-glass-edge), var(--ph-glow-card);
  transform: translateY(-3px);
}
.feature-card { min-height: 220px; }
.number {
  color: var(--ph-accent-bright);
  display: block;
}
h3 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  margin: 1.8rem 0 0.8rem;
}
.feature-card p, .card-body p, .guide-card p, .download-panel p, .timeline p, .donate-panel p {
  color: var(--ph-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Games Section */
.games-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.upcoming-games-section {
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.text-link {
  font-size: 0.86rem;
  color: var(--ph-accent-bright);
  font-weight: 500;
  transition: color var(--ph-duration-hover) var(--ph-ease-out);
}
.text-link:hover { color: #fff; text-shadow: 0 0 12px var(--ph-accent-glow); }

.game-art {
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--ph-stroke);
  background: #0d0d0d;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.game-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform var(--ph-duration-shadow) var(--ph-ease-out), filter var(--ph-duration-shadow) var(--ph-ease-out);
}
.game-card:hover .game-art img {
  transform: scale(1.04);
  filter: saturate(1.08) brightness(1.08);
}
.card-body h3 { margin: 0.4rem 0; }
.card-body a {
  display: inline-block;
  font-size: 0.85rem;
  margin-top: 1.2rem;
  color: var(--ph-accent-bright);
  font-weight: 600;
}
.status {
  display: inline-block;
  color: var(--ph-accent-bright);
}
.status.playable {
  color: #52e396;
  font-weight: 500;
}
.status.testing { color: var(--ph-accent-bright); }
.status.planned { color: var(--ph-soft); }

/* Page Sections & Guide Details */
.page-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--ph-stroke);
}
.search input {
  width: 240px;
  background: var(--ph-black-4);
  border: 1px solid var(--ph-stroke);
  color: var(--ph-text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: 0;
  transition: border-color var(--ph-duration-hover) var(--ph-ease-out),
              box-shadow var(--ph-duration-shadow) var(--ph-ease-out);
}
.search input:focus {
  border-color: var(--ph-accent);
  box-shadow: 0 0 16px rgba(179, 153, 255, 0.25);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.guide-card {
  background: var(--ph-glass-plate);
  border: 1px solid var(--ph-stroke);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--ph-hairline);
  backdrop-filter: var(--ph-glass-blur);
  transition: border-color var(--ph-duration-hover) var(--ph-ease-out),
              box-shadow var(--ph-duration-shadow) var(--ph-ease-out);
}
.guide-card:hover {
  border-color: var(--ph-stroke-strong);
  box-shadow: var(--ph-glass-edge), var(--ph-glow-card);
}
.guide-card summary {
  cursor: pointer;
  list-style: none;
}
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary::after {
  content: "+";
  float: right;
  color: var(--ph-accent-bright);
  font-size: 1.3rem;
}
.guide-card[open] summary::after { content: "−"; }
.guide-card summary span {
  display: block;
  color: var(--ph-accent-bright);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-family: var(--ph-font-mono);
  margin-bottom: 0.5rem;
}
.guide-card summary strong { font-size: 1.15rem; }
.guide-card p { padding-top: 1.2rem; }
.guide-card code {
  color: var(--ph-accent-bright);
  background: rgba(179, 153, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--ph-font-mono);
}
.empty-state { color: var(--ph-muted); }

/* Guide Page (Documentation layout) */
.guide-page {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 5rem;
  padding: 4rem 1.5rem 8rem;
}
.guide-sidebar {
  position: sticky;
  top: 2rem;
  height: max-content;
  border-right: 1px solid var(--ph-stroke);
  padding-right: 2rem;
}
.sidebar-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 0 0 1.5rem;
}
.guide-sidebar .search input { width: 100%; margin-bottom: 1.8rem; }
.guide-menu { display: grid; gap: 0.35rem; }
.guide-menu a {
  color: var(--ph-muted);
  font-size: 0.88rem;
  padding: 0.4rem 0;
  transition: color var(--ph-duration-hover) var(--ph-ease-out);
}
.guide-menu a:hover, .guide-menu a:focus { color: var(--ph-text); }
.guide-menu .menu-heading {
  color: var(--ph-text);
  font-weight: 700;
  margin-top: 0.9rem;
}
.sidebar-note {
  font-size: 0.74rem;
  color: var(--ph-soft);
  margin-top: 2.5rem;
  line-height: 1.6;
}

.guide-article { max-width: 850px; }
.breadcrumbs { color: var(--ph-soft); font-size: 0.78rem; margin: 0 0 3rem; }
.breadcrumbs a { color: var(--ph-muted); }
.article-lede { color: var(--ph-muted); font-size: 1.15rem; max-width: 620px; margin: 1.2rem 0 3.5rem; }
.guide-article hr { border: 0; border-top: 1px solid var(--ph-stroke); margin-bottom: 3.5rem; }
.guide-callout {
  border-left: 3px solid var(--ph-accent);
  background: var(--ph-glass-plate);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0 4rem;
  border-top: 1px solid var(--ph-stroke);
  border-right: 1px solid var(--ph-stroke);
  border-bottom: 1px solid var(--ph-stroke);
}
.guide-entry {
  border-top: 1px solid var(--ph-stroke);
  padding-top: 3.5rem;
  margin-top: 3.5rem;
  scroll-margin-top: 2rem;
}
.guide-entry ol { color: var(--ph-muted); padding-left: 1.3rem; max-width: 700px; }
.guide-entry li { padding: 0.5rem 0; }
.guide-list { display: grid; gap: 1rem; margin-top: 1.5rem; }

/* Donate Section */
.donate-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.donate-panel {
  max-width: 430px;
  background: var(--ph-glass-plate);
  border: 1px solid var(--ph-stroke);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: var(--ph-hairline), var(--ph-glow-card);
}
.donate-panel .button { margin: 1.8rem 0 1rem; }
.donate-panel small { display: block; color: var(--ph-soft); font-size: 0.78rem; line-height: 1.5; }

/* Process / Download Section (Photon Style) */
.download-section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  gap: 4rem;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(179, 153, 255, 0.08), transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(100, 140, 255, 0.06), transparent 50%),
              #0c0c0e;
  border: 1px solid var(--ph-stroke-strong);
  border-radius: 20px;
  padding: 4.5rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), var(--ph-glass-edge);
  position: relative;
  overflow: hidden;
}

.download-copy {
  max-width: 480px;
}

.download-eyebrow {
  color: var(--ph-muted);
  font-size: 0.85rem;
  font-family: var(--ph-font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.download-copy h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1.2rem;
}

.download-sub {
  color: var(--ph-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Right Form Card */
.download-form {
  background: rgba(18, 18, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2.2rem;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-form-header {
  color: var(--ph-muted);
  font-size: 0.82rem;
  font-family: var(--ph-font-mono);
  letter-spacing: 0.04em;
}

.platforms-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.group-label, .email-field-group label {
  color: var(--ph-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.platform-option {
  cursor: pointer;
  position: relative;
  display: block;
}

.platform-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  transition: all var(--ph-duration-hover) var(--ph-ease-out);
}

.platform-option:hover .platform-box {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.platform-option input[type="radio"]:checked + .platform-box {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.platform-box svg:first-child {
  flex-shrink: 0;
  color: #ffffff;
}

.platform-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.platform-meta strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.platform-meta span {
  font-size: 0.72rem;
  color: var(--ph-muted);
  margin-top: 0.2rem;
}

.check-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.platform-option input[type="radio"]:checked + .platform-box .check-icon {
  opacity: 1;
}

.email-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.email-field-group input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: all var(--ph-duration-hover) var(--ph-ease-out);
}

.email-field-group input:focus {
  border-color: var(--ph-accent);
  box-shadow: 0 0 16px rgba(179, 153, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.download-submit-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 9999px;
  padding: 0.95rem 1.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: all var(--ph-duration-hover) var(--ph-ease-out);
}

.download-submit-btn:hover {
  background: #f0f0f4;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.download-submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .download-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.8rem;
    gap: 2.5rem;
  }
  .download-copy {
    text-align: center;
    max-width: 100%;
  }
}

/* Footer */
.site-footer {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: var(--ph-soft);
  font-size: 0.78rem;
  border-top: 1px solid var(--ph-stroke);
}
.site-footer .brand { color: var(--ph-text); }
.site-footer p { margin: 0; max-width: 280px; }
.site-footer small { text-align: right; font-family: var(--ph-font-mono); }

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 22, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: rgba(36, 36, 42, 0.95);
  border-color: var(--ph-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(179, 153, 255, 0.35);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Utilities & Focus */
.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;
}
:focus-visible {
  outline: 2px solid var(--ph-accent-bright);
  outline-offset: 4px;
}

/* Keyframe Animations */
@keyframes entrance {
  0% { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes studio-arrive {
  0% { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes photon-travel-a {
  0% { opacity: 0.4; transform: translate(-18%, -10%) scale(1); }
  30% { opacity: 0.95; transform: translate(4%, 6%) scale(1.2); }
  60% { opacity: 0.6; transform: translate(22%, -4%) scale(1.05); }
  to { opacity: 0.4; transform: translate(-18%, -10%) scale(1); }
}

@keyframes photon-travel-b {
  0% { opacity: 0.3; transform: translate(16%, 14%) scale(1.1); }
  40% { opacity: 0.8; transform: translate(-10%, -2%) scale(0.9); }
  70% { opacity: 0.5; transform: translate(-22%, 10%) scale(1.15); }
  to { opacity: 0.3; transform: translate(16%, 14%) scale(1.1); }
}

/* Responsive Media Queries */
@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    gap: 1.2rem;
    padding-bottom: 0.2rem;
  }
  .header-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; }
  .hero-art { min-height: 300px; }
  .intro-grid, .donate-section, .release-layout { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid, .game-grid, .guide-grid { grid-template-columns: 1fr; }
  .games-section { padding-top: 5rem; padding-bottom: 5rem; }
  .page-section { padding-top: 4rem; padding-bottom: 4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search, .search input { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer small { text-align: left; }
  .guide-page { grid-template-columns: 1fr; gap: 3rem; padding-top: 2.5rem; }
  .guide-sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--ph-stroke); padding: 0 0 2rem; }
  .guide-menu { grid-template-columns: repeat(2, 1fr); }
  .guide-article { width: 100%; }
  .section-shell { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after { animation: none; }
  .hero-art, .hero-copy, .site-header { animation: none; }
}
