/* ==========================================================================
   Slyce PRO — Official Commercial Design System
   Dark Obsidian Palette · Sky-Blue Accent (#38BDF8) · Precision CAD/CAM UI
   ========================================================================== */

:root {
  --bg: #040507;
  --bg-elev-1: #0b0d13;
  --bg-elev-2: #12151f;
  --bg-card: rgba(16, 19, 28, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --text-muted: #98a2b8;
  --text-dim: #667085;
  --accent: #38BDF8;
  --accent-hover: #67d3ff;
  --accent-strong: #0EA5E9;
  --accent-ink: #051018;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-glow: rgba(56, 189, 248, 0.28);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.14);
  --rose: #fb7185;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 74px;
  --container-w: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 45% at 50% -10%, rgba(56, 189, 248, 0.10), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

img, svg, canvas {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.container {
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
}

.section-shell {
  padding: 108px 0;
  position: relative;
}

.section-header {
  max-width: 780px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}

.section-title .muted-line {
  color: var(--text-muted);
  font-weight: 500;
}

.section-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 650px;
}

/* Line-by-line Reveal */
[data-reveal], [data-lines-split] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible, [data-lines-split].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

[data-lines-split].is-visible .reveal-line {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Custom Precision Cursor (Desktop)
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease, opacity 0.2s ease, border-radius 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: normal;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.custom-cursor-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.custom-cursor.has-label {
  width: auto;
  min-width: 78px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
}

.custom-cursor.has-label .custom-cursor-label {
  opacity: 1;
}

.custom-cursor.is-pressed {
  transform: scale(0.86);
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   Fixed Glass Header & Language Switcher
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.header-inner {
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.header-right-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.mode-switch-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.mode-switch-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
}

/* Language Switcher Button [EN | ES] */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lang-switch-btn:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.10);
}

.lang-switch-btn .lang-code {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.lang-switch-btn .lang-code.is-current {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.32);
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle-btn:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.menu-dots {
  display: inline-flex;
  gap: 3px;
}

.menu-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Fullscreen Navigation Curtain */
.nav-curtain {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(4, 6, 10, 0.96);
  backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-curtain.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-curtain-inner {
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.curtain-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curtain-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  font-weight: 700;
  color: #e4e8f4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.curtain-link span.num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.curtain-link:hover {
  color: var(--accent);
  padding-left: 12px;
}

.curtain-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

/* Pill buttons (magnetic) */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.btn-pill:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

.btn-pill-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.btn-pill-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.36);
}

/* ==========================================================================
   Hero Section + WebGL2 Bed + Live Preview Card
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#heroGlCanvas {
  z-index: 0;
}

#heroVectorCanvas {
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(4, 5, 7, 0.88) 0%, rgba(4, 5, 7, 0.45) 56%, rgba(4, 5, 7, 0.18) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero-headline {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.6vw, 4.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-headline .accent-phrase {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
  color: #c7d0e2;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.hero-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-mini-card {
  justify-self: end;
  width: 100%;
  max-width: 470px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(11, 13, 20, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(56, 189, 248, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mini-card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.mini-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mini-card-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #06080d;
  aspect-ratio: 16 / 10;
}

.mini-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.mini-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.mini-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.mini-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.mini-card-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   1:1 Desktop Worktable Simulator (.app-sim-shell) — Slyce PRO Sky-Blue Theme
   ========================================================================== */
.app-sim-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 268px;
  gap: 10px;
  min-height: 580px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 19, 29, 0.94), rgba(9, 11, 17, 0.98));
  border: 1px solid var(--border-strong);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.72);
  align-items: stretch;
}

.app-left-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.app-mod-item {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.app-mod-circle {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8f92a8;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-mod-label {
  font-size: 10px;
  font-weight: 700;
  color: #8f92a8;
}

.app-mod-item.is-active .app-mod-circle {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.18);
}

.app-mod-item.is-active .app-mod-label {
  color: var(--accent);
}

.app-center-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.app-vehicle-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
}

.app-selectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.app-sel-label {
  color: #8f92a8;
  font-weight: 500;
}

.app-sel-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e4f0;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.app-sel-pill.is-accent {
  border-color: rgba(56, 189, 248, 0.38);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.10);
}

.app-kit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e4f0;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.app-kit-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
}

.app-cam-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
}

.app-cam-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cam-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

.app-nest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.app-nest-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cam-circle {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c5c7d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cam-circle:hover,
.cam-circle.is-active,
.cam-circle.active {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.45);
}

.cam-circle.is-danger {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.22);
}

.cam-circle:disabled {
  opacity: 0.28;
  pointer-events: none;
}

.cam-pill-rot {
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f92a8;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.cam-pill-rot:hover,
.cam-pill-rot.is-active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}

.cam-trajectory-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c5c7d8;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.traj-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.cam-trajectory-pill.is-running,
.cam-trajectory-pill.is-active,
.cam-trajectory-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cam-trajectory-pill.is-running .traj-dot,
.cam-trajectory-pill.is-active .traj-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.roll-dropdown-group {
  display: inline-flex;
  gap: 4px;
}

.unit-badge-cm {
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e4f0;
  font-size: 11px;
  font-weight: 600;
}

.app-canvas-frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  border-radius: 16px;
  background: #0c0e14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.app-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 410px;
  background: #0c0e14;
  overflow: hidden;
  user-select: none;
}

.app-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.app-canvas-dock {
  position: absolute;
  left: 72px;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.piece-inspector-floating {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(12, 14, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  max-width: calc(100% - 140px);
}

.insp-controls-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.piece-inspector-floating.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.piece-inspector-floating strong {
  color: var(--accent);
  font-weight: 700;
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insp-input-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8f92a8;
}

.insp-input-group input {
  width: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 2px 5px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.insp-input-group input:focus {
  border-color: var(--accent);
}

.insp-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.floating-zoom-hud {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 9999px;
  background: rgba(12, 14, 23, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.zoom-fit {
  border: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c5c7d8;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.18s;
}

.zoom-fit:hover {
  color: var(--accent);
}

.app-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px;
}

.app-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: #8f92a8;
  font-variant-numeric: tabular-nums;
}

.app-stats-row strong {
  color: var(--text);
}

.app-stats-row strong.val-accent {
  color: var(--accent);
}

.app-stats-row strong.val-ok,
.fit-ok {
  color: var(--emerald);
  font-weight: 600;
}

.fit-warn {
  color: #fb7185;
  font-weight: 600;
}

.fit-sim {
  color: var(--accent);
  font-weight: 700;
}

.app-cut-cta {
  border: 0;
  padding: 10px 22px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.24);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
}

.app-cut-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
}

.app-cut-cta.is-cutting {
  background: var(--emerald);
  color: var(--accent-ink);
}

.app-pieces-aside {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 24, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 580px;
}

.pieces-aside-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.pieces-aside-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.pieces-aside-list::-webkit-scrollbar {
  width: 6px;
}

.pieces-aside-list::-webkit-scrollbar-track {
  background: transparent;
}

.pieces-aside-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.pieces-aside-list::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

.aside-cat-group.has-border {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aside-cat-hdr {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #c5c7d8;
}

.aside-cat-hdr:hover {
  color: #ffffff;
}

.cat-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-chev {
  color: #8f92a8;
  transition: transform 0.2s;
}

.cat-chev.is-open {
  transform: rotate(90deg);
}

.cat-count {
  font-size: 10px;
  color: #8f92a8;
  font-weight: 500;
}

.aside-cat-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-cat-items.is-collapsed {
  display: none;
}

.aside-piece-card {
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.aside-piece-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.aside-piece-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.aside-piece-thumb {
  width: 46px;
  height: 40px;
  background: #13151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.aside-piece-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.aside-piece-meta {
  min-width: 0;
  flex: 1;
}

.aside-piece-meta strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e4f0;
  line-height: 1.25;
}

.aside-piece-meta span {
  display: block;
  font-size: 10px;
  color: #8f92a8;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.aside-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.aside-add-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.pieces-aside-foot {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #8f92a8;
  text-align: center;
}

.sim-bottom-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.sim-bottom-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   WebGL2 Architecture Gallery
   ========================================================================== */
.gallery-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.gallery-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #06080c;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gallery-fallback-img,
.gallery-gl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.gallery-meta {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gallery-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.gallery-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Workflow 4-Step Track & Cards
   ========================================================================== */
.workflow-svg-box {
  margin-bottom: 24px;
  opacity: 0.92;
}

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

.workflow-card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}

.workflow-step {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.workflow-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: #fff;
}

.workflow-metric {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.workflow-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Plans Section (Slyce PRO USD 1m / 6m / 12m)
   ========================================================================== */
.plans-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.cycle-switcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  min-width: 340px;
}

.cycle-slider-glider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.cycle-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease;
  text-align: center;
}

.cycle-btn.is-active {
  color: var(--accent-ink);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.plan-card.plan-featured,
.plan-card.is-cycle-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(13, 16, 25, 0.94));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 38px rgba(56, 189, 248, 0.14);
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 14px;
}

.plan-card.plan-featured .plan-badge {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.plan-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: #fff;
}

.plan-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price-num {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.plan-price-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.plan-subnote {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald);
}

.plan-features {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #d6deee;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-cta {
  width: 100%;
  justify-content: center;
}

.trial-banner {
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(14, 165, 233, 0.04));
  border: 1px solid rgba(56, 189, 248, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trial-banner h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.trial-banner p {
  margin: 0;
  font-size: 14px;
  color: #c5d0e4;
  max-width: 680px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(56, 189, 248, 0.45);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 24px;
  text-align: left;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s ease;
}

.faq-item.is-open .faq-panel {
  max-height: 280px;
}

.faq-answer {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer & Giant Wordmark
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
  background: #030406;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 52px;
}

.footer-tagline {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent);
}

.footer-link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 17vw, 13.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.22);
  user-select: none;
  margin-bottom: 24px;
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

/* ==========================================================================
   Modals (Trial / Subscription / Lightbox / Legal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 5, 8, 0.84);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: min(100%, 560px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #0b0e16;
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8);
  padding: 28px;
}

.modal-card-wide {
  width: min(100%, 820px);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.terms-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms-check-wrap input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.terms-check-wrap button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  font-size: inherit;
}

.modal-feedback {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.modal-feedback.is-error {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.36);
  color: #fecdd3;
}

.modal-feedback.is-success {
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #e0f2fe;
}

.legal-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
}

.legal-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.legal-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.legal-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-section h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--accent);
}

.legal-section p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #cbd5e1;
}

.lightbox-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-mini-card {
    justify-self: start;
    max-width: 560px;
  }
  .app-sim-shell {
    grid-template-columns: 1fr;
  }
  .app-left-rail {
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 0;
  }
  .app-mod-item {
    width: auto;
    flex-direction: row;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .app-pieces-aside {
    max-height: 310px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hide-sm {
    display: none;
  }
  .app-canvas-frame {
    min-height: 0;
  }
  .app-canvas-wrap {
    flex: none;
    height: 270px;
    min-height: 250px;
  }
  .app-canvas-dock {
    position: static;
    pointer-events: auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .piece-inspector-floating {
    position: static;
    flex: 1 1 240px;
    max-width: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    flex-wrap: wrap;
    white-space: normal;
  }
  .piece-inspector-floating.is-hidden {
    display: none;
  }
  .floating-zoom-hud {
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .section-shell {
    padding: 72px 0;
  }
  .mode-switch,
  .header-cta {
    display: none;
  }
  .hide-xs {
    display: none !important;
  }
  .app-left-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .app-mod-item {
    width: 100%;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 12px;
  }
  .app-mod-circle {
    width: 32px;
    height: 32px;
  }
  .app-vehicle-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .app-selectors {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 5px;
    font-size: 11px;
  }
  .app-sel-label {
    display: none;
  }
  .app-sel-pill,
  .app-kit-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .app-cam-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 8px;
  }
  .app-cam-group:first-child {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .app-cam-group > * {
    flex-shrink: 0;
  }
  .app-cam-roll-group {
    width: 100%;
  }
  .roll-dropdown-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .app-canvas-wrap {
    height: 245px;
    min-height: 240px;
  }
  .app-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;
  }
  .app-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .app-stats-row #statFitAlert {
    grid-column: 1 / -1;
  }
  .app-cut-cta {
    width: 100%;
    justify-content: center;
  }
  .nav-curtain-inner {
    grid-template-columns: 1fr;
  }
  .gallery-stage,
  .workflow-grid,
  .footer-top,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .cycle-switcher {
    width: 100%;
    min-width: 0;
  }
}
