* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #060811;
  color: #f4f7ff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 74px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.view-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #a5f3fc;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #a5b4d4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tab-btn.is-active {
  background: linear-gradient(135deg, #7c5cff, #00e5ff);
  color: #060811;
}

.replay-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.replay-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.stage-shell {
  position: relative;
  flex: 1;
  min-height: 460px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 28, 0.65);
  padding: 40px 36px;
  display: grid;
  align-items: center;
  transition: opacity 0.25s ease;
}

.stage-shell.is-morphing .dom-view {
  opacity: 0 !important;
  pointer-events: none;
}

.dom-view {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dom-view.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #67e8f9;
  margin-bottom: 14px;
}

.dom-view h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 16px;
}

.lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: #a6b4cf;
  max-width: 58ch;
  margin-bottom: 24px;
}

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

.cta-btn {
  appearance: none;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00e5ff, #7c5cff);
  color: #060811;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.cta-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.f-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(20, 27, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.f-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #e2f1ff;
}

.f-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #9ba8c4;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(20, 27, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14.5px;
}

.spec-row span {
  color: #9ba8c4;
}

.spec-row strong {
  color: #a5f3fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
}

/* CSS Fallback Mode */
body.css-fallback #gl-canvas {
  opacity: 0;
}

body.css-fallback .stage-shell.is-morphing .dom-view.is-active {
  opacity: 1 !important;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
