body { min-height: 100%; background: var(--bg); }

/* ============================================================
   EDITORIAL SYSTEM
   ============================================================ */
.ed-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.ed-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-right: 4px;
}

.ed-h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.0;
  color: var(--text);
}

.ed-lead {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 580px;
}

.ed-header {
  margin-bottom: 48px;
}

.compat-hidden { display: none !important; }

/* ============================================================
   NAVIGATION + MEGA-NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 0; height: 64px; padding: 0 28px;
  background: rgba(6,6,8,0.9); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: visible;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.nav-logo-text { font-size: 17px; font-weight: 900; letter-spacing: 0.18em; color: #fff; }
.nav-logo .logo-mark { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.gem-mark { display: flex; align-items: center; justify-content: center; }
.nav-items { display: flex; align-items: center; gap: 2px; margin: 0 12px; }
.nav-item { position: relative; }
.nav-item-btn {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 12px; border: 0;
  background: none; border-radius: 8px; color: rgba(255,255,255,0.5); font-weight: 500; font-size: 14px;
  cursor: pointer; transition: color 0.12s, background 0.12s; white-space: nowrap;
}
.nav-item-btn:hover, .nav-item.open .nav-item-btn { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-chevron { width: 10px; height: 10px; opacity: 0.5; transition: transform 0.2s; }
.nav-item.open .nav-chevron { transform: rotate(180deg); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-hamburger { display: none; width: 36px; height: 36px; background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); flex-direction: column; gap: 4px; padding: 8px; }
.nav-hamburger span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mega panel */
.mega-panels-wrap {
  position: absolute; left: -28px; right: -28px; top: 100%;
  background: rgba(6,6,8,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  pointer-events: none; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 50;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mega-panels-wrap.visible { pointer-events: all; opacity: 1; transform: translateY(0); }
.mega-panel { display: none; }
.mega-panel.open { display: grid; grid-template-columns: 1fr auto; gap: 32px; max-width: 960px; margin: 0 auto; padding: 32px 28px; }
.mega-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.mega-col-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.mega-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-links li a { display: block; padding: 6px 10px; border-radius: 7px; color: rgba(255,255,255,0.45); font-size: 13.5px; transition: color 0.1s, background 0.1s; }
.mega-links li a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mega-feature {
  width: 220px; padding: 20px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; align-self: start;
}
.mega-feature-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.mega-feature-desc { font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.55; margin-bottom: 14px; }
.mega-feature-link { font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 35;
  background: #060608; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 2px; padding: 16px;
  transform: translateX(-100%); transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { display: block; padding: 10px 14px; border-radius: 9px; color: rgba(255,255,255,0.5); font-size: 15px; font-weight: 500; }
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mobile-menu-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ============================================================
   HERO — cinematic full-screen
   ============================================================ */
.hero-film {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-film-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #060608;
}

.hero-film-bg canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.hero-film-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(6,6,8,0.92) 0%, rgba(6,6,8,0.7) 45%, rgba(6,6,8,0.25) 100%),
    linear-gradient(to top, rgba(6,6,8,0.75) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(6,6,8,0.4) 0%, transparent 25%);
}

.hero-film-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.hero-ed-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.hero-film-h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  letter-spacing: -0.05em;
  font-weight: 800;
  line-height: 0.93;
  margin: 0 0 22px;
  color: #ffffff;
}

.hero-h1-dim {
  color: rgba(255,255,255,0.5);
}

.hero-film-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 36px;
  max-width: 460px;
  line-height: 1.6;
}

.hero-film-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn-outline {
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.04);
}

.hero-btn-outline:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.hero-film-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.3;
  animation: heroScrollBounce 2.4s ease-in-out infinite;
  font-size: 20px;
  color: #fff;
  pointer-events: none;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.55; }
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 28px 8px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.section-head .spacer { flex: 1; }
.search { position: relative; min-width: 200px; }
.search .ico { position: absolute; left: 10px; top: 8px; color: var(--faint); }
.search .input { padding-left: 32px; height: 34px; }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.seg button { height: 26px; padding: 0 11px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 13px; }
.seg button[aria-pressed='true'] { background: var(--panel-3); color: var(--text); }

/* ============================================================
   01 ENGINE — split layout: headline left, live demo right
   ============================================================ */
.engine-section {
  background: radial-gradient(ellipse 70% 60% at 65% 40%, rgba(30,80,160,0.07) 0%, transparent 70%), #05060a;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 100px 0 80px;
  overflow: hidden;
}

.engine-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Two-column split */
.engine-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 64px;
}

/* LEFT column */
.engine-left {
  display: flex;
  flex-direction: column;
}

.engine-left .ed-h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.engine-left .ed-lead {
  max-width: 400px;
  margin-bottom: 28px;
}

/* Module chips */
.engine-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engine-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(56,189,248,0.04);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(56,189,248,0.6);
  letter-spacing: 0.01em;
}

/* RIGHT column — live demo */
.engine-right {
  position: relative;
}

.engine-right::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 80% 80% at 55% 50%, rgba(30,100,220,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.engine-demo-wrap {
  position: relative;
  z-index: 1;
  background: #0a0c14;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(30,100,220,0.08);
  margin-bottom: 24px;
}

.demo-tab-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.07); overflow-x: auto; }
.demo-tab {
  height: 42px; padding: 0 18px; background: none; border: 0;
  border-right: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4); font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: color 0.1s, background 0.1s; letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0;
}
.demo-tab:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.03); }
.demo-tab.active { color: #fff; background: rgba(124,108,255,0.07); border-bottom: 2px solid var(--accent); }

.demo-stage { position: relative; background: #030407; }
.demo-stage canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.demo-hint { position: absolute; bottom: 10px; right: 12px; font-size: 11px; color: rgba(255,255,255,0.3); pointer-events: none; font-weight: 500; letter-spacing: 0.03em; }
.demo-controls { display: flex; align-items: center; gap: 20px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07); }
.demo-control-label { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.demo-slider { flex: 1; height: 3px; accent-color: var(--accent); cursor: pointer; }
.demo-control-value { font-size: 11.5px; color: rgba(255,255,255,0.4); font-variant-numeric: tabular-nums; width: 36px; text-align: right; }
.demo-spawn-btn { height: 28px; padding: 0 12px; background: rgba(124,108,255,0.08); border: 1px solid rgba(124,108,255,0.2); border-radius: 6px; color: rgba(124,108,255,0.85); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background 0.1s; white-space: nowrap; }
.demo-spawn-btn:hover { background: rgba(124,108,255,0.15); }

/* Rendering demo */
.render-demo-wrap { position: relative; background: #030407; overflow: hidden; cursor: col-resize; user-select: none; }
.render-demo-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.render-demo-label { position: absolute; top: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,0.6); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); pointer-events: none; z-index: 4; }
.render-demo-label.left { left: 12px; }
.render-demo-label.right { right: 12px; }
.render-divider { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.8); transform: translateX(-50%); pointer-events: none; z-index: 5; }
.render-divider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #000; }

/* Engine spec strip — hidden (legacy compat) */
.engine-spec-strip { display: none; }

/* Engine capability cards — 4-column row below the split */
.engine-caps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.engine-cap-card {
  background: #07090f;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s;
}

.engine-cap-card:hover {
  background: #0c0f1a;
}

.engine-cap-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.engine-cap-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.01em;
}

.engine-cap-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  flex: 1;
}

.engine-cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.engine-cap-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

/* keep legacy reference */
.engine-spec-strip li::before {
  content: '—';
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   02 STUDIO — split layout: headline left, floating mockup right
   ============================================================ */
.studio-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(90,70,180,0.07) 0%, transparent 70%), var(--bg);
  padding: 100px 0 100px;
  overflow: hidden;
}

.studio-cin-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Two-column split */
.studio-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

/* LEFT column */
.studio-cin-header {
  text-align: left;
}

.studio-cin-header .ed-h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.studio-cin-header .ed-lead {
  max-width: 400px;
  margin-bottom: 28px;
}

/* Feature chips */
.studio-feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.studio-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
}

/* Download button + platform pills */
.studio-download-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.studio-platform-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.studio-pill { letter-spacing: 0.03em; }
.studio-pill-sep { color: rgba(255,255,255,0.15); }
.studio-pill-soon { opacity: 0.4; }

/* Coming Soon button (not a real download link) */
.studio-coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  cursor: default;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.studio-soon-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  color: var(--warn);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-browser-link {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
  transition: color 0.15s;
}

.studio-browser-link:hover { color: rgba(255,255,255,0.6); }

/* RIGHT column — floating mockup */
.studio-mockup-wrap {
  position: relative;
}

.studio-mockup-wrap::before {
  content: '';
  position: absolute;
  inset: -40px -40px -40px -40px;
  background: radial-gradient(ellipse 80% 70% at 55% 50%, rgba(100,80,220,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Editor mockup chrome */
.studio-mockup {
  position: relative;
  z-index: 1;
  background: #0d0e14;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px rgba(80,60,180,0.12);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Titlebar */
.sm-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: #17181f;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.sm-dots {
  display: flex;
  gap: 6px;
}

.sm-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.sm-dots span:nth-child(1) { background: #ff5f57; }
.sm-dots span:nth-child(2) { background: #febc2e; }
.sm-dots span:nth-child(3) { background: #28c840; }

.sm-title {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sm-titlebar-menu {
  display: flex;
  gap: 2px;
}

.sm-titlebar-menu span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  padding: 0 8px;
  cursor: default;
}

.sm-titlebar-menu span:hover {
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

/* Main 3-column layout */
.sm-body {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  flex: 1;
  overflow: hidden;
}

/* Left sidebar */
.sm-sidebar-left,
.sm-sidebar-right {
  background: #0f1018;
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sm-sidebar-right {
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.sm-panel-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sm-mt { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); }

.sm-tree {
  padding: 4px 0;
}

.sm-tree-item {
  font-size: 11.5px;
  padding: 5px 12px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.sm-tree-item.sm-selected {
  background: rgba(124,108,255,0.12);
  color: rgba(255,255,255,0.75);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.sm-tree-item.sm-dim { color: rgba(255,255,255,0.22); }

/* Center scene view */
.sm-center {
  display: flex;
  flex-direction: column;
  background: #030407;
}

.sm-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #0f1018;
  flex-shrink: 0;
}

.sm-tool {
  height: 26px;
  padding: 0 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgba(255,255,255,0.35);
  font-size: 11.5px;
  font-weight: 500;
  cursor: default;
}

.sm-tool.sm-active {
  background: rgba(124,108,255,0.12);
  border-color: rgba(124,108,255,0.3);
  color: rgba(255,255,255,0.8);
}

.sm-toolbar-sep {
  flex: 1;
}

.sm-play-btn {
  height: 26px;
  padding: 0 14px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 5px;
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  letter-spacing: 0.03em;
}

.sm-ai-btn {
  height: 26px;
  padding: 0 10px;
  background: rgba(124,108,255,0.08);
  border: 1px solid rgba(124,108,255,0.2);
  border-radius: 5px;
  color: rgba(167,139,250,0.8);
  font-size: 11px;
  font-weight: 700;
  cursor: default;
}

.sm-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.sm-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #040712;
}

.sm-viewport-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Transform gizmo overlays */
.sm-gizmo-h, .sm-gizmo-v {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.sm-gizmo-h {
  top: calc(50% - 1px);
  left: 25%;
  width: 44px;
  height: 2px;
  background: rgba(239,68,68,0.9);
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}

.sm-gizmo-h::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(239,68,68,0.9);
}

.sm-gizmo-v {
  left: calc(25% + 20px);
  top: calc(50% - 44px);
  width: 2px;
  height: 44px;
  background: rgba(74,222,128,0.9);
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
}

.sm-gizmo-v::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  border: 4px solid transparent;
  border-bottom-color: rgba(74,222,128,0.9);
}

/* Right sidebar — inspector */
.sm-entity-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: -0.01em;
}

.sm-inspector {
  padding: 4px 0;
  overflow: hidden;
  flex: 1;
}

.sm-field-group {
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2px;
}

.sm-fg-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 6px 12px 4px;
}

.sm-field {
  display: flex;
  align-items: center;
  padding: 3px 12px;
}

.sm-fl {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  width: 44px;
  flex-shrink: 0;
  font-weight: 500;
}

.sm-fv {
  flex: 1;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 2px 6px;
  font-variant-numeric: tabular-nums;
}

.sm-script-pill {
  margin: 3px 10px;
  padding: 5px 10px;
  background: rgba(124,108,255,0.08);
  border: 1px solid rgba(124,108,255,0.18);
  border-radius: 5px;
  font-size: 10.5px;
  color: rgba(167,139,250,0.8);
  cursor: default;
}

/* Visual scripting nodes in inspector */
.sm-vs-node {
  margin: 6px 10px 0;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.sm-vs-trigger {
  background: rgba(124,108,255,0.12);
  border: 1px solid rgba(124,108,255,0.3);
  color: rgba(167,139,250,0.9);
}

.sm-vs-action {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: rgba(147,197,253,0.9);
}

.sm-vs-arrow {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  padding: 2px 0;
}

/* Status bar */
.sm-statusbar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 28px;
  padding: 0 16px;
  background: #17181f;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.sm-status-ok {
  font-size: 11px;
  color: rgba(74,222,128,0.7);
  font-weight: 600;
}

.sm-status-item {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
}

.sm-status-ai {
  font-size: 11px;
  color: rgba(167,139,250,0.6);
  font-weight: 600;
  margin-left: auto;
}

/* Inspector editable inputs */
.sm-fv-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  width: 60px;
  padding: 2px 6px;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s;
}
.sm-fv-input:focus { border-color: rgba(79,134,247,0.6); background: rgba(79,134,247,0.08); }
.sm-fv-color {
  width: 32px; height: 20px; padding: 0 2px;
  background: none; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px; cursor: pointer;
}

/* Score + hint overlays */
.sm-score-overlay {
  position: absolute; top: 10px; right: 12px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  color: #fbbf24; font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  pointer-events: none;
}
.sm-play-hint {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.5);
  font-size: 11px; padding: 3px 10px; border-radius: 4px;
  pointer-events: none; white-space: nowrap;
}

/* Play mode active state */
.sm-play-btn.sm-playing { background: rgba(239,68,68,0.2); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.sm-viewport.sm-play-active { cursor: none; }
.sm-viewport.sm-play-active .sm-score-overlay,
.sm-viewport.sm-play-active .sm-play-hint { display: flex !important; }

/* Hierarchy item hover & selection */
.sm-tree-item { cursor: pointer; border-radius: 3px; transition: background 0.1s; }
.sm-tree-item:hover { background: rgba(255,255,255,0.05); }
.sm-tree-item.sm-selected { background: rgba(79,134,247,0.15) !important; color: #fff !important; }

/* AI Panel in inspector sidebar */
.sm-ai-panel {
  margin: 10px 8px 0;
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(10,8,20,0.6);
}
.sm-ai-panel-head {
  padding: 6px 10px;
  font-size: 11px; font-weight: 600; color: rgba(167,139,250,0.9);
  background: rgba(167,139,250,0.08);
  border-bottom: 1px solid rgba(167,139,250,0.15);
}
.sm-ai-chat {
  max-height: 120px; overflow-y: auto;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sm-ai-msg {
  font-size: 11px; line-height: 1.5;
  padding: 4px 8px; border-radius: 4px;
  max-width: 95%;
}
.sm-ai-system { color: rgba(255,255,255,0.4); font-style: italic; }
.sm-ai-user { background: rgba(79,134,247,0.15); color: rgba(255,255,255,0.8); align-self: flex-end; }
.sm-ai-response { background: rgba(167,139,250,0.1); color: rgba(255,255,255,0.75); }
.sm-ai-input-row {
  display: flex; gap: 4px; padding: 6px 8px;
  border-top: 1px solid rgba(167,139,250,0.1);
}
.sm-ai-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  color: rgba(255,255,255,0.8); font-size: 11px; padding: 4px 7px;
  outline: none;
}
.sm-ai-input:focus { border-color: rgba(167,139,250,0.4); }
.sm-ai-send {
  background: rgba(167,139,250,0.2); border: 1px solid rgba(167,139,250,0.3);
  color: rgba(167,139,250,0.9); font-size: 13px; border-radius: 4px;
  padding: 2px 8px; cursor: pointer; transition: background 0.15s;
}
.sm-ai-send:hover { background: rgba(167,139,250,0.35); }

/* Tool button active state */
.sm-tool.sm-active { background: rgba(79,134,247,0.2); color: #4f86f7; border-color: rgba(79,134,247,0.3); }

/* Legacy compat */
.studio-frame-full { display: none; }
.studio-callouts { display: none; }
.studio-feat-strip { display: none; }

/* ============================================================
   NEXUS — high-end interactive 3D engine showcase
   ============================================================ */
.nexus-section {
  position: relative;
  height: 100vh;
  min-height: 580px;
  background: #000208;
  overflow: hidden;
}
.nexus-canvas-wrap {
  position: absolute;
  inset: 0;
  cursor: grab;
}
.nexus-canvas-wrap:active { cursor: grabbing; }

.nexus-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 60px 40px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0,2,8,0.75) 0%,
    rgba(0,2,8,0.3) 50%,
    transparent 100%
  );
}

.nexus-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(79,134,247,0.85);
  margin-bottom: 14px;
}
.nexus-headline {
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 0 60px rgba(79,134,247,0.4), 0 2px 20px rgba(0,0,0,0.6);
}
.nexus-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
  margin: 0;
}

.nexus-hint {
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
}

.nexus-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nexus-tech-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(79,134,247,0.7);
  background: rgba(79,134,247,0.08);
  border: 1px solid rgba(79,134,247,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  .nexus-overlay { padding: 36px 24px 28px; }
  .nexus-hint { gap: 16px; font-size: 11px; }
}

/* ── Nexus scroll-down cue ── */
.nexus-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  pointer-events: auto;
  z-index: 10;
  transition: color 0.2s;
  padding: 8px 16px;
}
.nexus-scroll-cue:hover { color: rgba(255,255,255,0.85); }
.nexus-scroll-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nexus-scroll-arrow {
  animation: nexus-bounce 1.8s ease-in-out infinite;
}
@keyframes nexus-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 1;   }
}

/* ── Forge Proprietary Technologies grid ── */
.forge-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.forge-tech-card {
  background: linear-gradient(145deg, #0c1220, #0a0d18);
  border: 1px solid rgba(79,134,247,0.18);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.forge-tech-card:hover {
  border-color: rgba(79,134,247,0.5);
  transform: translateY(-3px);
}
.ftc-icon {
  font-size: 26px;
  margin-bottom: 14px;
  color: #4f86f7;
}
.ftc-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.ftc-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(79,134,247,0.8);
  margin-bottom: 14px;
}
.ftc-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin: 0 0 16px;
}
.ftc-features {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ftc-features li {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  padding-left: 14px;
  position: relative;
}
.ftc-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4f86f7;
  font-size: 10px;
}

/* ── Open World section ── */
.openworld-section {
  position: relative;
  height: 100vh;
  min-height: 580px;
  background: #060a14;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.openworld-canvas-wrap {
  position: absolute;
  inset: 0;
  cursor: grab;
}
.openworld-canvas-wrap:active { cursor: grabbing; }
.openworld-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 60px 40px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.70) 0%,
    rgba(6,10,20,0.25) 55%,
    transparent 100%
  );
}
/* tech tags at bottom of open-world section use same .nexus-tech-tags styles */

/* ============================================================
   00 FORGE GAMES — first-party game studio
   ============================================================ */
.forge-games-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #060810 0%, #05060a 100%);
  padding: 100px 0 80px;
}

.fg-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.fg-header {
  max-width: 700px;
  margin-bottom: 56px;
}

.fg-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}

.fg-pillar {
  background: #05060a;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fg-pillar-icon {
  font-size: 22px;
  line-height: 1;
}

.fg-pillar-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  margin: 0;
}

.fg-pillar-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}

.fg-coming-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}

.fg-coming-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(124,108,255,0.1);
  border: 1px solid rgba(124,108,255,0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.fg-coming-text {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   FORGE WORLD INTELLIGENCE — flagship AI operating layer
   ============================================================ */
.fwi-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(ellipse 55% 80% at 100% 50%, rgba(20,80,200,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(10,160,180,0.05) 0%, transparent 55%),
    #04050a;
  padding: 120px 0 120px;
  overflow: hidden;
}

.fwi-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.fwi-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* LEFT */
.fwi-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 24px;
}

.fwi-headline {
  margin: 0 0 24px;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
}

.fwi-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 0 36px;
}

.fwi-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fwi-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.2);
  flex-shrink: 0;
}

.fwi-status-text {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* RIGHT — capability list */
.fwi-caps {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.fwi-cap {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

.fwi-cap:last-child { border-bottom: 0; }

.fwi-cap:hover { background: rgba(255,255,255,0.025); }

.fwi-cap-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 7px;
}

.fwi-cap-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  flex-shrink: 0;
}

.fwi-cap-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}

.fwi-cap-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  margin: 0;
  padding-left: 24px;
}

/* ============================================================
   04 FORGE TECHNOLOGIES — B2B SDK products
   ============================================================ */
.technologies-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #05060a;
  padding: 100px 0 80px;
}

.tech-sec-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.tech-compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}

.tech-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
}

.tech-product-card {
  background: #07080c;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s;
}

.tech-product-card:hover {
  background: #0a0b11;
}

.tech-product-name {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.01em;
}

.tech-product-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
  flex: 1;
}

.tech-product-compat {
  font-size: 10.5px;
  color: rgba(124,108,255,0.6);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.tech-sec-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tech-cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

/* ============================================================
   05 MARKETPLACE & PORTAL
   ============================================================ */
.marketplace-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
  padding: 100px 0 80px;
}

.mkt-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.mkt-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

.mkt-left .ed-header { margin-bottom: 28px; }

.mkt-streams {
  display: flex;
  flex-direction: column;
}

.mkt-stream {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mkt-stream:last-child { border-bottom: 0; }

.mkt-stream-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124,108,255,0.1);
  border: 1px solid rgba(124,108,255,0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mkt-stream-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.mkt-stream-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
  margin: 0;
}

.mkt-right {}

.mkt-visual {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.mkt-visual-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.1s;
}

.mkt-visual-row:last-child { border-bottom: 0; }
.mkt-visual-row:hover { background: rgba(255,255,255,0.025); }

.mkt-visual-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.mkt-visual-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  flex: 1;
}

.mkt-visual-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.mkt-coming-tag {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  color: var(--warn);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ============================================================
   03 CLOUD & BACKEND — asymmetric split
   ============================================================ */
.cloud-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
  padding: 100px 0 80px;
}

.cloud-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.cloud-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

.cloud-split .ed-header { margin-bottom: 28px; }

.cloud-coming-soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2);
  color: var(--warn); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 10px;
}

.cloud-feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cloud-feature:last-child { border-bottom: 0; }
.cloud-feature-icon { display: none; }

.cloud-feature strong {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em; margin-bottom: 3px;
}

.cloud-feature p, .cloud-feature > div > :last-child {
  margin: 0; font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.55;
}

.cloud-pipe {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.cloud-pipe-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cloud-pipe-step:last-child { border-bottom: 0; }

.cloud-pipe-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(124,108,255,0.1);
  border: 1px solid rgba(124,108,255,0.3);
  color: var(--accent);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cloud-pipe-step h4 {
  margin: 0 0 4px; font-size: 13.5px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}

.cloud-pipe-step p {
  margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.5;
}

/* ============================================================
   04 ECOSYSTEM / PLATFORM — 2×2 with more content per step
   ============================================================ */
.platform-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #05060a;
  padding: 100px 0 80px;
}

.platform-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.platform-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.platform-step {
  background: #05060a;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s;
}

.platform-step:hover { background: rgba(255,255,255,0.02); }

.platform-step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.platform-step-icon { display: none; }

.platform-step h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.platform-step p {
  margin: 0;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.platform-step-link {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}

.platform-step-badge {
  margin-top: 4px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(251,191,36,0.1);
  color: var(--warn);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
}

/* ============================================================
   04 MADE WITH FORGE (games)
   ============================================================ */
.games-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
  padding: 100px 0 60px;
}

.games-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.games-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; padding-bottom: 36px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
.game-card canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #07080c; }
.game-card .cover-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #07080c; }
.game-card .cover-img.fallback { display: grid; place-items: center; font-size: 54px; font-weight: 800; color: rgba(255,255,255,0.9); }
.game-card .body { display: grid; gap: 9px; padding: 14px 16px 16px; }
.game-card h3 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { display: grid; place-items: center; gap: 12px; text-align: center; padding: 56px 20px; background: var(--panel); border: 1px dashed rgba(255,255,255,0.1); border-radius: 16px; color: var(--muted); }
.empty h3 { margin: 0; color: var(--text); font-size: 18px; }
.rooms { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.room-pill { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; }
.room-pill:hover { border-color: var(--accent); }
.room-pill .rc { font: 700 15px ui-monospace, Consolas, monospace; letter-spacing: 0.12em; }

/* ============================================================
   05 DEVELOPER RESOURCES
   ============================================================ */
.learn-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #05060a;
  padding: 100px 0 80px;
}

.learn-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.learn-col {
  background: #05060a;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.learn-col-icon { display: none; }

.learn-col h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.learn-col p { margin: 0 0 18px; color: rgba(255,255,255,0.4); font-size: 13px; line-height: 1.55; }
.learn-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; flex: 1; }
.learn-links a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: rgba(255,255,255,0.4); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.1s; }
.learn-links a:last-child { border-bottom: 0; }
.learn-links a:hover { color: var(--text); }
.learn-links a::before { content: '→'; font-size: 11px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
}

.cta-band-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.cta-band-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
}

.cta-band-lead {
  margin: 0 0 36px;
  color: rgba(255,255,255,0.4);
  font-size: 17px;
  line-height: 1.6;
  max-width: 500px;
}

.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { padding: 28px; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.18); text-align: center; font-size: 13px; }

/* ============================================================
   PLAY PAGE (unchanged)
   ============================================================ */
.play-layout { max-width: 1320px; margin: 0 auto; padding: 22px 28px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.stage-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #07080c; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.stage-frame canvas { display: block; width: 100%; height: auto; outline: none; }
.stage-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.stage-frame:fullscreen iframe { height: 100vh; aspect-ratio: auto; }
.stage-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.stage-frame:hover .stage-tools, .stage-frame:focus-within .stage-tools { opacity: 1; }
.side { display: grid; gap: 14px; }
.card-panel { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.card-panel h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.card-panel h2 { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .kbd { min-width: 60px; text-align: center; }
.menu-grid { display: grid; gap: 8px; }
.menu-grid .row { margin-top: 0; }
.open-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.not-found { max-width: 520px; margin: 120px auto; text-align: center; padding: 0 20px; }
.not-found h1 { font-size: 30px; letter-spacing: -0.02em; }
.stage-frame canvas { touch-action: none; }
.stage-frame:fullscreen { display: grid; place-items: center; border-radius: 0; background: #000; }
.stage-frame:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
.stage-frame.pseudo-full { position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; display: grid; place-items: center; background: #000; }
.stage-frame.pseudo-full canvas, .stage-frame.pseudo-full iframe { width: 100%; height: 100%; max-height: 100dvh; object-fit: contain; aspect-ratio: auto; }
body.has-pseudo-full { overflow: hidden; }
.rotate-hint { display: none; align-items: center; gap: 8px; margin: 10px 2px 0; color: var(--muted); font-size: 13px; }
@media (orientation: portrait) and (max-width: 700px) { .rotate-hint { display: flex; } }
@media (pointer: coarse) { .stage-tools { opacity: 1; } .stage-tools .btn { width: 40px; height: 40px; } }
@media (orientation: portrait) and (pointer: coarse) {
  .stage-frame > .fx-touch { position: relative; inset: auto; height: 200px; background: #0a0b0f; border-top: 1px solid var(--line); }
  .stage-frame > .fx-touch .fx-stick, .stage-frame > .fx-touch .fx-actions { bottom: 26px; }
}
.stage-frame:fullscreen > .fx-touch, .stage-frame.pseudo-full > .fx-touch { position: absolute; inset: 0; height: auto; background: none; border: 0; }
.stage-frame:fullscreen > .fx-touch .fx-stick, .stage-frame.pseudo-full > .fx-touch .fx-stick, .stage-frame:fullscreen > .fx-touch .fx-actions, .stage-frame.pseudo-full > .fx-touch .fx-actions { bottom: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   06 ROADMAP & COMMUNITY
   ============================================================ */
.roadmap-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #05060a;
  padding: 100px 0 80px;
}

.roadmap-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.roadmap-community-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

/* roadmap JS generates an h3 "Product roadmap" — hide it, ed-header handles that */
#roadmapItems > h3 { display: none; }
#communityLinks > h3 { display: none; }

.roadmap-items {
  display: flex;
  flex-direction: column;
}

.roadmap-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.roadmap-item:last-child { border-bottom: 0; }

.roadmap-item-check {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}

.roadmap-item-check.done {
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #4ade80;
}
.roadmap-item-check.next {
  background: rgba(124,108,255,0.12); border: 1px solid rgba(124,108,255,0.35); color: var(--accent);
}
.roadmap-item-check.planned {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.3);
}

.roadmap-item-text { flex: 1; }
.roadmap-item-text h4 {
  margin: 0 0 2px; font-size: 13.5px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.roadmap-item-text p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.35); }

.roadmap-item-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.roadmap-item-tag.shipped { background: rgba(34,197,94,0.1); color: #4ade80; }
.roadmap-item-tag.wip { background: rgba(124,108,255,0.1); color: var(--accent); }
.roadmap-item-tag.planned { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); }

.community-link-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  transition: opacity 0.1s;
}
.community-link-card:last-child { border-bottom: 0; }
.community-link-card:hover { opacity: 0.7; }
.community-link-icon { display: none; }
.community-link-text h4 {
  margin: 0 0 3px; font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
}
.community-link-text p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-items { display: none; }
  .mega-panels-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .play-layout { grid-template-columns: 1fr; }
  .platform-steps { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .engine-intro-split { grid-template-columns: 1fr; gap: 32px; }
  .studio-asymmetric { grid-template-columns: 1fr; }
  .studio-left-panel { position: static; }
  .cloud-split { grid-template-columns: 1fr; gap: 40px; }
  .roadmap-community-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .studio-split { grid-template-columns: 1fr; gap: 48px; }
  .studio-cin-inner { padding: 0 24px; }
  .studio-cin-header .ed-lead { max-width: none; }
  .engine-split { grid-template-columns: 1fr; gap: 48px; }
  .engine-inner { padding: 0 24px; }
  .engine-left .ed-lead { max-width: none; }
  .engine-caps-row { grid-template-columns: repeat(2, 1fr); }
  .fwi-split { grid-template-columns: 1fr; gap: 48px; }
  .fwi-inner { padding: 0 24px; }
  .fwi-desc { max-width: none; }
}

@media (max-width: 720px) {
  .hero-film-h1 { font-size: clamp(40px, 10vw, 64px); }
  .platform-steps { grid-template-columns: 1fr; }
  .engine-section, .studio-section, .cloud-section, .platform-section,
  .games-section, .learn-section, .roadmap-section { padding: 64px 0 48px; }
  .engine-inner, .studio-inner-new, .cloud-inner, .platform-inner,
  .games-inner, .learn-inner, .roadmap-inner { padding: 0 20px; }
  .studio-iframe-full { height: 320px; }
  .studio-download-row { align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav { padding: 0 14px; gap: 10px; }
  .nav .btn:not(.btn-primary) { display: none; }
  .wrap { padding: 20px 16px 8px; }
  .play-layout { padding: 12px 12px 32px; gap: 14px; }
  .hero-film-content { padding: 0 20px; }
  .cta-band-inner { padding: 64px 20px; }
  .mega-cols { grid-template-columns: 1fr; }
  .games-controls-row { flex-direction: column; align-items: flex-start; }
  .platform-step { padding: 24px 20px 28px; }
  .rl-inner { padding: 60px 20px 40px; }
  .rl-controls-overlay { flex-direction: column; gap: 10px; padding: 12px; }
  .rl-ctrl-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rl-stage-wrap { height: 420px; border-radius: 14px; }
  .audio-keyboard { gap: 2px; }
  .audio-key { width: 32px; }
  .audio-key.black { width: 20px; margin: 0 -11px; }
  .mkt-asset-cards { grid-template-columns: 1fr 1fr; }
}

/* ── Audio demo ─────────────────────────────────────────────────────────────── */
.audio-keyboard {
  display: flex;
  position: relative;
  padding: 10px 12px 8px;
  gap: 3px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.audio-key {
  width: 38px;
  height: 60px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0 0 6px 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.05s;
}
.audio-key:hover { background: rgba(255,255,255,0.14); }
.audio-key.audio-key-active { background: var(--accent); border-color: var(--accent); }
.audio-key.black {
  width: 24px; height: 38px;
  background: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.3);
  border-radius: 0 0 4px 4px;
  margin: 0 -13px;
  z-index: 2;
}
.audio-key.black:hover { background: rgba(255,255,255,0.8); }
.audio-key.black.audio-key-active { background: var(--accent-2); }
.audio-ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
  flex-wrap: wrap;
}
.audio-wave-btn {
  height: 28px; padding: 0 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px; color: var(--text); font-size: 12px; cursor: pointer;
  transition: background 0.1s;
}
.audio-wave-btn:hover { background: rgba(255,255,255,0.12); }
.audio-wave-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); font-family: monospace; }
.audio-hint-text { font-size: 11px; color: var(--faint); margin-left: auto; }

/* ── Cloud pipeline visual ───────────────────────────────────────────────────── */
.cloud-visual-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0 24px 24px;
}
@media (max-width: 900px) {
  .cloud-visual-wrap { padding: 24px 0 0; }
}

/* ── FWI waitlist form ───────────────────────────────────────────────────────── */
.fwi-waitlist-form {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.fwi-waitlist-input {
  flex: 1;
  min-width: 200px;
  height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}
.fwi-waitlist-input:focus { border-color: var(--accent); }
.fwi-waitlist-input::placeholder { color: var(--faint); }
.fwi-waitlist-btn {
  height: 40px; padding: 0 20px;
  background: var(--accent); border: none;
  border-radius: 10px; color: #fff;
  font-weight: 700; font-size: 13px;
  cursor: pointer; transition: filter 0.1s;
  white-space: nowrap;
}
.fwi-waitlist-btn:hover { filter: brightness(1.12); }
.fwi-waitlist-thanks {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 10px;
  color: var(--good);
  font-size: 13.5px; font-weight: 600;
}

/* ── Marketplace interactive cards ──────────────────────────────────────────── */
.mkt-asset-grid { width: 100%; }
.mkt-asset-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.mkt-asset-grid-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mkt-asset-filter-row { display: flex; gap: 6px; }
.mkt-filter-btn {
  height: 26px; padding: 0 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px; color: var(--muted); font-size: 11.5px; cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.mkt-filter-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.mkt-filter-btn.active { background: var(--accent-soft); border-color: rgba(79,134,247,0.4); color: var(--accent); }
.mkt-asset-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mkt-asset-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  cursor: pointer;
}
.mkt-asset-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.mkt-asset-thumb {
  height: 80px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 8px;
}
.mkt-asset-cat-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
}
.mkt-asset-info { padding: 10px 12px 12px; }
.mkt-asset-name { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.mkt-asset-meta { display: flex; gap: 10px; font-size: 11px; color: var(--faint); margin-bottom: 10px; }
.mkt-asset-rating { color: var(--warn); }
.mkt-asset-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mkt-asset-price { font-size: 15px; font-weight: 800; color: var(--text); }
.mkt-asset-buy { font-size: 11px !important; height: 24px !important; padding: 0 10px !important; }

/* ── Forge Reality Lab ──────────────────────────────────────────────────────── */
.reality-lab-section {
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(30, 90, 20, 0.08) 0%, transparent 70%), #060a06;
  padding: 0 0 100px;
}
.rl-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px 60px;
}
.rl-header {
  text-align: center;
  margin-bottom: 56px;
}
.rl-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--good);
  margin-bottom: 20px;
}
.rl-headline {
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 20px;
}
.rl-lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Stage */
.rl-stage-wrap {
  position: relative;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.rl-canvas-container {
  position: absolute;
  inset: 0;
  background: #0a1a0a;
}
.rl-canvas-container canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Controls overlay — top-left */
.rl-controls-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(6, 10, 6, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 220px;
}
.rl-ctrl-group { display: flex; flex-direction: column; gap: 8px; }
.rl-ctrl-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.rl-ctrl-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rl-slider-row { display: flex; align-items: center; gap: 8px; }
.rl-time-icon { font-size: 13px; line-height: 1; }
.rl-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}
.rl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--good);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}
.rl-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border: none; border-radius: 50%;
  background: var(--good);
  cursor: pointer;
}
.rl-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.rl-toggle input[type='checkbox'] { display: none; }
.rl-toggle-track {
  width: 30px; height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s;
}
.rl-toggle-track::after {
  content: '';
  position: absolute;
  left: 2px; top: 1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: left 0.15s, background 0.15s;
}
.rl-toggle input:checked + .rl-toggle-track { background: rgba(52, 211, 153, 0.35); border-color: rgba(52, 211, 153, 0.4); }
.rl-toggle input:checked + .rl-toggle-track::after { left: 15px; background: var(--good); }
.rl-toggle-label { font-size: 12.5px; color: var(--text); }
.rl-select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.rl-select:focus { border-color: var(--good); }

/* Stats bar — top-right */
.rl-stats-bar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 10, 6, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}
.rl-stats-bar strong { color: var(--good); font-weight: 700; }
.rl-stat-sep { opacity: 0.4; }

/* Bottom hint + badge */
.rl-hint-bar {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  white-space: nowrap;
}
.rl-demo-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.6);
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   DOWNLOAD MODAL
   ============================================================ */
.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dlOverlayIn 0.2s ease;
}
.dl-overlay[hidden] { display: none; }
@keyframes dlOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.dl-modal {
  position: relative;
  background: linear-gradient(145deg, #0d1326 0%, #0a0e1f 100%);
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: 20px;
  padding: 36px;
  width: min(600px, calc(100vw - 32px));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: dlModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.dl-modal::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(79,134,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
@keyframes dlModalIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.dl-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.dl-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.dl-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dl-brand-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #1a2744, #0d1326);
  border: 1px solid rgba(79,134,247,0.3);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dl-brand-name { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.dl-brand-ver { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.dl-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dl-features span {
  font-size: 0.72rem;
  color: rgba(79,134,247,0.9);
  background: rgba(79,134,247,0.1);
  border: 1px solid rgba(79,134,247,0.2);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}
.dl-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 4px;
}
.dl-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 7px; border: none;
  background: transparent; color: rgba(255,255,255,0.5);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dl-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }
.dl-tab[aria-selected="true"] {
  background: rgba(79,134,247,0.18); color: #fff;
  border: 1px solid rgba(79,134,247,0.3);
}
.dl-panel[hidden] { display: none; }
.dl-file-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.dl-file-icon { flex-shrink: 0; }
.dl-file-name {
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9);
  margin-bottom: 4px; font-family: 'JetBrains Mono', monospace;
}
.dl-file-meta { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.dl-action-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 1rem; font-weight: 600; border-radius: 12px;
  margin-bottom: 20px; text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s;
}
.dl-action-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,134,247,0.4); }
.dl-action-btn:active { transform: translateY(0); }
.dl-reqs { margin-top: 4px; }
.dl-reqs-title {
  font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.dl-reqs-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.dl-reqs-list li { font-size: 0.8rem; color: rgba(255,255,255,0.45); padding-left: 12px; position: relative; }
.dl-reqs-list li::before { content: '·'; position: absolute; left: 0; color: rgba(79,134,247,0.6); }
.dl-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap;
}
.dl-footer-sep { color: rgba(255,255,255,0.15); }
.dl-footer-link { color: rgba(79,134,247,0.7); text-decoration: none; }
.dl-footer-link:hover { color: rgba(79,134,247,1); }
.studio-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 10px;
}
.dl-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #0d1326; border: 1px solid rgba(79,134,247,0.4);
  color: rgba(255,255,255,0.9); font-size: 0.88rem;
  padding: 10px 20px; border-radius: 999px; z-index: 10000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: toastIn 0.2s ease, toastOut 0.3s ease 2.5s forwards;
  white-space: nowrap; pointer-events: none;
}
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(12px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* download modal — extended specs/steps */
.dl-version-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4f86f7;
  background: rgba(79,134,247,0.12);
  border: 1px solid rgba(79,134,247,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-top: 4px;
}
.dl-two-ver-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(79,134,247,0.07);
  border: 1px solid rgba(79,134,247,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.dl-two-ver-note svg { flex-shrink: 0; margin-top: 2px; }
.dl-two-ver-note strong { color: rgba(255,255,255,0.85); }
.dl-tab-soon {
  flex: 0.6;
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
  pointer-events: none;
}
.dl-soon-pill {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255,200,80,0.15);
  color: rgba(255,200,80,0.8);
  border: 1px solid rgba(255,200,80,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}
.dl-file-ext {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(79,134,247,0.2), rgba(79,134,247,0.08));
  border: 1px solid rgba(79,134,247,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #4f86f7;
  font-family: 'JetBrains Mono', monospace;
}
.dl-setup-steps {
  margin-bottom: 20px;
}
.dl-setup-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.dl-steps { display: flex; flex-direction: column; gap: 10px; }
.dl-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dl-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(79,134,247,0.15);
  border: 1px solid rgba(79,134,247,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f86f7;
  margin-top: 1px;
}
.dl-step div { display: flex; flex-direction: column; gap: 2px; }
.dl-step strong { font-size: 0.85rem; color: rgba(255,255,255,0.85); font-weight: 600; }
.dl-step span { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.4; }
.dl-step code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(79,134,247,0.1);
  color: rgba(79,134,247,0.9);
  padding: 1px 4px;
  border-radius: 3px;
}
.dl-specs { margin-top: 4px; }
.dl-specs-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.dl-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dl-spec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.8rem;
}
.dl-spec-k {
  flex-shrink: 0;
  width: 72px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}
.dl-spec-v { color: rgba(255,255,255,0.72); }
.dl-spec-v em { color: rgba(255,255,255,0.4); font-style: normal; }
/* scrollable modal on small screens */
@media (max-height: 700px) {
  .dl-modal { max-height: 90vh; overflow-y: auto; }
}


/* ============================================================
   DOWNLOAD MODAL v2 â€” two-column redesign (overrides earlier rules)
   ============================================================ */

.dl-modal {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  max-width: 860px;
  width: min(860px, calc(100vw - 24px));
  max-height: min(90vh, 680px);
  border-radius: 20px;
}
.dl-left {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(170deg, #060d22 0%, #0a1535 60%, #04091a 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dl-left-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79,134,247,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.dl-left-brand {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(4,9,26,0.95) 0%, rgba(4,9,26,0.6) 70%, transparent 100%);
}
.dl-left-logomark {
  width: 42px; height: 42px;
  background: rgba(79,134,247,0.15);
  border: 1px solid rgba(79,134,247,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.dl-left-name {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 2px;
}
.dl-left-ver { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.dl-left-chips { display: flex; flex-direction: column; gap: 4px; }
.dl-left-chips span {
  font-size: 0.68rem; color: rgba(79,134,247,0.8); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 5px;
}
.dl-left-chips span::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(79,134,247,0.6);
  border-radius: 50%; flex-shrink: 0;
}
.dl-right {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 28px 28px 20px;
  overflow-y: auto; min-width: 0;
  position: relative;
  background: #080d1c;
}
.dl-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; z-index: 2;
}
.dl-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.dl-right-head { margin-bottom: 20px; padding-right: 24px; }
.dl-right-title {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; margin: 0 0 4px;
}
.dl-right-sub {
  font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; line-height: 1.4;
}
.dl-tabs {
  display: flex; align-items: center; gap: 2px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 3px;
}
.dl-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 6px; border: none;
  background: transparent; color: rgba(255,255,255,0.45);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dl-tab:hover { color: rgba(255,255,255,0.8); }
.dl-tab[aria-selected="true"] {
  background: rgba(79,134,247,0.16); color: #fff;
  box-shadow: 0 0 0 1px rgba(79,134,247,0.3);
}
.dl-tab-linux {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.22); border-radius: 6px;
  cursor: not-allowed; user-select: none;
}
.dl-soon-pill {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(255,185,60,0.12); color: rgba(255,185,60,0.7);
  border: 1px solid rgba(255,185,60,0.2);
  border-radius: 3px; padding: 1px 5px;
}
.dl-panel[hidden] { display: none; }
.dl-file-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.dl-file-badge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em;
  font-family: "JetBrains Mono", monospace;
}
.dl-file-badge.win {
  background: linear-gradient(135deg, rgba(79,134,247,0.2), rgba(79,134,247,0.08));
  border: 1px solid rgba(79,134,247,0.3); color: #4f86f7;
}
.dl-file-badge.mac {
  background: linear-gradient(135deg, rgba(130,100,255,0.2), rgba(130,100,255,0.08));
  border: 1px solid rgba(130,100,255,0.3); color: #9b7eff;
}
.dl-file-name {
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85);
  font-family: "JetBrains Mono", monospace; margin-bottom: 3px;
}
.dl-file-meta { font-size: 0.72rem; color: rgba(255,255,255,0.35); }
.dl-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  background: linear-gradient(135deg, #2d5fd6, #1a46c8);
  color: #fff; font-size: 0.9rem; font-weight: 600;
  border-radius: 10px; text-decoration: none;
  border: 1px solid rgba(79,134,247,0.4);
  box-shadow: 0 4px 16px rgba(79,134,247,0.2), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  margin-bottom: 16px;
}
.dl-action-btn:hover {
  background: linear-gradient(135deg, #3a6be0, #2252d4);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(79,134,247,0.35), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.dl-action-btn:active { transform: translateY(0); }
.dl-accordion {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; overflow: hidden; margin-bottom: 8px;
}
.dl-accordion-head {
  list-style: none; padding: 10px 14px;
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.55);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  user-select: none; background: rgba(255,255,255,0.025);
  transition: color 0.15s, background 0.15s;
}
.dl-accordion-head::-webkit-details-marker { display: none; }
.dl-accordion-head::after {
  content: "+"; font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,0.3);
}
.dl-accordion[open] .dl-accordion-head { color: rgba(255,255,255,0.75); background: rgba(79,134,247,0.06); }
.dl-accordion[open] .dl-accordion-head::after { content: "-"; }
.dl-accordion-head:hover { color: rgba(255,255,255,0.75); }
.dl-steps { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.dl-step { display: flex; gap: 10px; align-items: flex-start; }
.dl-step-num {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  background: rgba(79,134,247,0.14); border: 1px solid rgba(79,134,247,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #4f86f7;
}
.dl-step div { display: flex; flex-direction: column; gap: 2px; }
.dl-step strong { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.dl-step p { margin: 0; font-size: 0.74rem; color: rgba(255,255,255,0.4); line-height: 1.45; }
.dl-step code {
  font-family: "JetBrains Mono", monospace; font-size: 0.7rem;
  background: rgba(79,134,247,0.1); color: rgba(79,134,247,0.9);
  padding: 1px 4px; border-radius: 3px;
}
.dl-spec-table { width: 100%; border-collapse: collapse; display: table; }
.dl-spec-table td { padding: 5px 14px; font-size: 0.75rem; vertical-align: top; }
.dl-spec-table tr:nth-child(odd) td { background: rgba(255,255,255,0.015); }
.dl-spec-table td:first-child {
  width: 72px; color: rgba(255,255,255,0.3);
  font-family: "JetBrains Mono", monospace; font-size: 0.68rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding-right: 8px; white-space: nowrap;
}
.dl-spec-table td:last-child { color: rgba(255,255,255,0.65); }
.dl-rec { color: rgba(255,255,255,0.3); font-size: 0.7rem; }
.dl-footer {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; color: rgba(255,255,255,0.25); flex-wrap: wrap;
}
.dl-footer-sep { color: rgba(255,255,255,0.12); }
.dl-footer-link { color: rgba(79,134,247,0.6); text-decoration: none; }
.dl-footer-link:hover { color: rgba(79,134,247,1); }
@media (max-width: 600px) {
  .dl-modal { flex-direction: column; max-height: 95vh; }
  .dl-left { width: 100%; height: 160px; }
  .dl-right { padding: 20px 18px 16px; }
}


.skeletal-section {
  position: relative;
  height: 100vh;
  min-height: 580px;
  background: #020609;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.skeletal-canvas-wrap {
  position: absolute;
  inset: 0;
}
.skeletal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 60px 40px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(2,6,9,0.72) 0%,
    rgba(2,6,9,0.22) 55%,
    transparent 100%
  );
}

/* ============================================================
   GAMES SHOWCASE — in-browser play section
   ============================================================ */
.games-showcase-section {
  background: #02040a;
  padding: 100px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.gs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.gs-header {
  margin-bottom: 48px;
}
.gs-h2 { margin-bottom: 16px; }
.gs-lead { max-width: 540px; }

/* ── Main city canvas ── */
.gs-city-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.07);
  background: #000;
}
.gs-city-canvas {
  width: 100%;
  height: 100%;
}
.gs-city-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.2) 40%,
    transparent 70%
  );
  pointer-events: none;
}
.gs-city-info { margin-bottom: 16px; }
.gs-city-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.gs-city-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.gs-city-actions {
  display: flex;
  gap: 10px;
  pointer-events: all;
}
.gs-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #4f86f7;
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.gs-play-btn:hover { background: #6a9af8; transform: translateY(-1px); }
.gs-share-btn {
  padding: 11px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.gs-share-btn:hover { background: rgba(255,255,255,0.16); }

/* ── Game cards row ── */
.gs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.gs-card {
  background: #060810;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.gs-card:hover { border-color: rgba(79,134,247,0.35); transform: translateY(-2px); }
.gs-card-soon { opacity: 0.6; }
.gs-card-preview {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-preview-nexus {
  background: radial-gradient(ellipse at 60% 40%, #2a1a4a 0%, #0a0510 50%, #02020a 100%);
}
.gs-preview-action {
  background: radial-gradient(ellipse at 50% 60%, #1a0a04 0%, #060208 100%);
}
.gs-preview-rpg {
  background: radial-gradient(ellipse at 40% 40%, #041a0a 0%, #020608 100%);
}
.gs-card-live-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  position: absolute;
  top: 12px;
  right: 12px;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.gs-coming-soon {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.gs-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gs-card-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.gs-card-genre {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.gs-card-play {
  display: inline-block;
  font-size: 13px;
  color: #4f86f7;
  text-decoration: none;
  font-weight: 600;
}
.gs-card-play:hover { text-decoration: underline; }
.gs-card-wip {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── CTA row ── */
.gs-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(79,134,247,0.06);
  border: 1px solid rgba(79,134,247,0.15);
  border-radius: 14px;
}
.gs-cta-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.6;
}
@media (max-width: 680px) {
  .gs-cta-row { flex-direction: column; align-items: flex-start; }
  .gs-city-wrap { height: 320px; }
}

/* ── DIFFERENTIATORS SECTION ── */
.diff-section {
  padding: 100px 0 80px;
  background: #060810;
}
.diff-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  background: linear-gradient(160deg, #0d1120 0%, #0a0e1a 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.diff-card:hover { border-color: var(--line-2); }
.diff-icon {
  font-size: 28px;
  line-height: 1;
}
.diff-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.diff-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.diff-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-section { padding: 60px 0; }
}
