:root {
  --bg: #040507;
  --bg-elevated: #0b0d13;
  --bed-bg: #131422;
  --fg: #f4f6fb;
  --muted: #94a3b8;
  --subtle: #6b6e82;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffe600;
  --accent-ink: #050608;
  --cyan: #38bdf8;
  --ok: #34d399;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--font-sans);
}

html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: rgb(4, 5, 7);
  background-image: radial-gradient(circle at 50% -10%, rgb(20, 21, 27) 0%, rgb(14, 15, 20) 35%, rgb(8, 9, 12) 65%, rgb(4, 5, 7) 100%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

@media (hover: hover) and (pointer: fine) {
  html:not(.native-cursor) body,
  html:not(.native-cursor) a,
  html:not(.native-cursor) button,
  html:not(.native-cursor) [role="button"],
  html:not(.native-cursor) [data-cursor] {
    cursor: none;
  }
}

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

button {
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

/* Custom Contextual Cursor */
#sc-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.25s var(--ease-out);
}

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

.sc-cursor-ring {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.28s var(--ease-out), border-color 0.2s, background-color 0.2s;
}

.sc-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 235, 110, 0.85);
  transform: translate(-50%, -50%);
}

.sc-cursor-label {
  position: fixed;
  top: 0;
  left: 22px;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.92);
  background: rgba(12, 14, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 4px 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s var(--ease-out);
}

#sc-cursor.has-label .sc-cursor-label {
  opacity: 1;
}

#sc-cursor.flip-left .sc-cursor-label {
  left: auto;
  right: 22px;
}

#sc-cursor.has-label .sc-cursor-ring {
  transform: translate(-50%, -50%) scale(1.38);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.72);
}

#sc-cursor.is-pressed .sc-cursor-ring {
  transform: translate(-50%, -50%) scale(0.75);
  background: rgba(255, 255, 255, 0.14);
}

.mag-pill {
  transition: transform 0.36s var(--ease-out), background-color 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.25s;
}

/* CORTINA CURVA DE TRANSICIÓN AL SELECCIONAR MENÚ */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #07080d;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, -122%, 0);
  will-change: transform;
}

.page-curtain.is-entering {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-curtain.is-holding {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: none;
}

.page-curtain.is-lifting {
  transform: translate3d(0, -122%, 0);
  transition: transform 0.76s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-curtain-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.32s var(--ease-out), transform 0.36s var(--ease-out);
}

.page-curtain.is-entering .page-curtain-inner,
.page-curtain.is-holding .page-curtain-inner,
.page-curtain.is-lifting .page-curtain-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.curtain-logo {
  height: clamp(92px, 12vw, 148px);
  width: auto;
}

.curtain-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.curtain-arch {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  width: 100%;
  height: 110px;
  display: block;
}

/* HEADER FROSTED + BOTÓN MENÚ MOWA */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 3.6vw, 48px);
  background: linear-gradient(to bottom, rgba(4, 5, 7, 0.85), rgba(4, 5, 7, 0));
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), padding 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(4, 5, 7, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Segmented Hero Mode Pill Switch (como Mowa top-center switch) */
.hero-mode-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  align-items: center;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
}

.hero-mode-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.mode-seg {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 9999px;
  white-space: nowrap;
  transition: color 0.25s;
}

.mode-seg.is-active {
  color: #050608;
}

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

.menu-anchor-wrap {
  position: relative;
}

.mowa-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.mowa-menu-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 230, 0, 0.45);
}

.mowa-menu-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mowa-menu-icon-circle svg {
  position: absolute;
  transition: transform 0.28s var(--ease-out), opacity 0.22s;
}

.mowa-menu-icon-circle .ico-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.menu-anchor-wrap.is-open .mowa-menu-icon-circle .ico-arrow {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.menu-anchor-wrap.is-open .mowa-menu-icon-circle .ico-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* PANEL DESPLEGABLE FROSTED GLASS MOWA */
.site-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(18, 20, 28, 0.84);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.32s var(--ease-out);
  z-index: 200;
}

.menu-anchor-wrap.is-open .site-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-panel-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.menu-item-arrow {
  opacity: 0;
  transform: translate(-4px, 3px);
  color: var(--accent);
  transition: opacity 0.2s, transform 0.2s;
}

.menu-panel-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.menu-panel-item:hover .menu-item-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  white-space: nowrap;
}

.pill-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 28px rgba(255, 230, 0, 0.16);
}

.pill-accent:hover {
  box-shadow: 0 0 36px rgba(255, 230, 0, 0.34);
}

.pill-ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.pill-ghost:hover {
  border-color: rgba(255, 230, 0, 0.55);
  color: var(--accent);
}

/* HERO CENTRADO ESTILO MOWA + LIENZO VECTORIAL */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px clamp(18px, 3.6vw, 48px) 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-gl-canvas,
.hero-vec-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-gl-canvas {
  z-index: 1;
  pointer-events: none;
}

.hero-vec-canvas {
  z-index: 2;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  padding: 0 clamp(18px, 3.6vw, 48px);
}

.hero-grid-lines span {
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  height: 100%;
}

/* Logo SUPER CUT en el centro exacto del Hero */
.hero-center-brand {
  position: relative;
  z-index: 4;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  pointer-events: none;
  padding-top: 24px;
}

.hero-center-logo-wrap {
  padding: 18px 34px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(4, 5, 7, 0.65) 0%, rgba(4, 5, 7, 0) 74%);
}

.hero-center-logo {
  height: clamp(118px, 16.5vw, 210px);
  width: auto;
  display: block;
  filter: drop-shadow(0 20px 54px rgba(0, 0, 0, 0.9));
}

.hero-center-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* Columnas flotantes intermedias estilo Mowa */
.hero-mid-columns {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 12px;
  margin: 12px 0 24px;
  pointer-events: none;
}

.mid-col-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.mid-col-list.right-pad {
  padding-left: 12px;
}

.mid-col-cta {
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
}

/* HUD Inferior del Hero */
.hero-bottom-hud {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  pointer-events: none;
}

.hero-bottom-left {
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}

.hero-sublead-title {
  margin: 0;
  font-size: clamp(1.95rem, 3.25vw, 2.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.accent-text {
  color: var(--accent);
}

.hero-lead-compact {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.52;
  color: rgba(244, 246, 251, 0.86);
}

.hero-bottom-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mini Card Inferior Derecha (Mowa Project Preview) */
.hero-mini-card {
  width: 248px;
  flex-shrink: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(16, 18, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  transition: transform 0.3s var(--ease-out), border-color 0.25s;
}

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

.mini-card-head,
.mini-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.mini-card-foot strong {
  font-size: 12px;
  color: #ffffff;
}

.mini-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0d13;
}

.mini-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s var(--ease-out);
}

/* REVELACIÓN SUAVE AL SCROLLEAR (MASKED LINE SLIDE-UP + UP/SCALE) */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.reveal-line-inner {
  display: block;
  transform: translate3d(0, 115%, 0);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) var(--line-delay, 0ms);
}

[data-reveal="lines"].is-revealed .reveal-line-inner {
  transform: translate3d(0, 0, 0);
}

[data-reveal="up"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.85s var(--ease-out) var(--reveal-delay, 0ms), transform 0.85s var(--ease-out) var(--reveal-delay, 0ms);
}

[data-reveal="scale"] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.96);
  transition: opacity 0.9s var(--ease-out) var(--reveal-delay, 0ms), transform 0.9s var(--ease-out) var(--reveal-delay, 0ms);
}

[data-reveal="up"].is-revealed,
[data-reveal="scale"].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-line-inner,
  [data-reveal="up"],
  [data-reveal="scale"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* SHARED SECTIONS */
.section {
  padding: clamp(88px, 10vh, 128px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section-intro {
  margin: 0;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.section-header-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 44px;
  margin-bottom: 32px;
}

/* SIMULADOR IDÉNTICO AL SOFTWARE REAL */
.app-sim-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 268px;
  gap: 10px;
  min-height: 580px;
  align-items: stretch;
}

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

.app-mod-item {
  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 var(--ease-out);
}

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

.app-mod-item.is-active .app-mod-circle {
  background: rgba(255, 230, 0, 0.15);
  border-color: rgba(255, 230, 0, 0.45);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 230, 0, 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(255, 230, 0, 0.35);
  color: var(--accent);
  background: rgba(255, 230, 0, 0.08);
}

.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(255, 230, 0, 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(255, 230, 0, 0.16);
  color: var(--accent);
  border-color: rgba(255, 230, 0, 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(255, 230, 0, 0.45);
  background: rgba(255, 230, 0, 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;
}

/* Lienzo exacto de studio_corte (#workCanvas dentro de #canvasContainer) */
/* Marco contenedor para Canvas + HUD (flotante en desktop, dock ordenado en móvil) */
.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-circle {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c5c7d8;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

.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(--fg);
}

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

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

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

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

.app-cut-cta {
  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(255, 230, 0, 0.22);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}

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

.app-cut-cta.is-cutting {
  background: #34d399;
  color: #050608;
}

/* Panel Derecho Categorizado idéntico a app.js */
.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;
}

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

.aside-cat-hdr {
  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: #050608;
  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;
}

/* ARCHITECTURE + WEBGL2 SCROLL GALLERY WITH REAL SCREENSHOTS */
.sticky-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.sticky-left {
  position: sticky;
  top: 108px;
}

.arch-pillars {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.pillar-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pillar-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}

.pillar-row h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.pillar-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.webgl-gallery-wrap {
  position: relative;
}

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

.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.gl-card {
  margin: 0;
  position: relative;
}

.gl-media-slot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b0d13;
  overflow: hidden;
  position: relative;
}

.gl-card[data-gfx="on"] .gl-media-slot {
  border-color: transparent;
  background: transparent;
}

.gl-card figcaption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gl-card figcaption span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.gl-card figcaption strong {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

/* WORKFLOW */
.workflow-interactive {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.workflow-nodes {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.wf-node {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.25s, border-color 0.25s, padding-left 0.25s var(--ease-out);
}

.wf-node:hover,
.wf-node.is-active {
  padding-left: 22px;
  border-bottom-color: var(--accent);
  background: rgba(255, 230, 0, 0.04);
}

.wf-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 12px;
}

.wf-title {
  font-size: 16px;
  font-weight: 700;
}

.wf-metric {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  padding: 4px 10px;
}

.workflow-visual {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: rgba(11, 13, 19, 0.55);
}

.workflow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.workflow-readout {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
}

/* PRICING (mismo diseño pill slider + precio mensual equivalente compacto de la app) */
.app-cycle-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  width: min(100%, 490px);
}

.app-cycle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(255, 230, 0, 0.28);
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.cycle-btn {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #8f92a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.25s;
}

.cycle-btn.is-active {
  color: #050608;
  font-weight: 700;
}

.cycle-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
}

.cycle-tag.is-green {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.cycle-tag.is-gold {
  background: rgba(255, 230, 0, 0.16);
  color: var(--accent);
}

.cycle-btn.is-active .cycle-tag {
  background: rgba(0, 0, 0, 0.14);
  color: #050608;
}

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

.plan-card-app {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(19, 21, 29, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.25s;
}

.plan-card-app:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.plan-card-app.is-featured {
  border-color: rgba(255, 230, 0, 0.42);
  background: linear-gradient(to bottom, rgba(255, 230, 0, 0.08), rgba(19, 21, 29, 0.94));
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e4f0;
}

.plan-card-app.is-featured .plan-kicker {
  color: var(--accent);
}

.plan-chip {
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e4f0;
}

.plan-card-app.is-featured .plan-chip {
  background: var(--accent);
  color: #050608;
}

.plan-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

.plan-price-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.plan-price-unit {
  font-size: 12px;
  color: #8f92a8;
}

.plan-save-text {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
}

.plan-bill-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: #8f92a8;
}

.plan-divider-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
  margin-top: 12px;
}

.plan-sub-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.plan-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.plan-cta-full {
  width: 100%;
  padding: 11px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s, border-color 0.2s;
}

.plan-cta-full:hover {
  background: rgba(255, 255, 255, 0.18);
}

.plan-card-app.is-featured .plan-cta-full {
  background: var(--accent);
  color: #050608;
  border-color: var(--accent);
}

.demo-strip {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-strip strong {
  display: block;
  font-size: 14px;
}

.demo-strip span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* FAQ */
.faq-accordion {
  border-top: 1px solid var(--line);
  max-width: 880px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 6px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq-a p {
  margin: 0 6px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* FOOTER */
.site-footer {
  padding: 48px clamp(20px, 4vw, 56px) 20px;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-logo {
  height: 32px;
  margin-bottom: 8px;
}

.footer-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

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

.footer-wordmark {
  font-size: clamp(3.6rem, 15vw, 14rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.045);
  user-select: none;
  text-align: center;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 5, 7, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 500px;
  background: #0b0d13;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form-field input {
  background: #040507;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--fg);
  font-size: 13px;
  outline: none;
}

.form-field input:focus {
  border-color: var(--accent);
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
  line-height: 1.45;
}

.form-msg {
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 10px;
  color: #f87171;
}

.form-msg.ok {
  color: var(--ok);
}

.demo-dl-box {
  margin-top: 10px;
}

.demo-dl-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.demo-dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

@media (max-width: 1080px) {
  .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: 290px;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 14px 18px;
  }

  .hide-mobile,
  .hide-sm {
    display: none;
  }

  .hero-mini-card {
    display: none;
  }

  .sticky-split,
  .workflow-interactive,
  .plans-grid-app {
    grid-template-columns: 1fr;
  }

  .sticky-left {
    position: static;
  }

  .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: 680px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px 14px;
  }

  .brand-logo {
    height: 32px;
  }

  .hero-mode-toggle {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    padding: 3px;
    justify-self: center;
  }

  .mode-seg {
    padding: 5px 8px;
    font-size: 10px;
  }

  .mowa-menu-btn {
    padding: 4px 4px 4px 12px;
    gap: 6px;
    font-size: 12px;
  }

  .mowa-menu-icon-circle {
    width: 26px;
    height: 26px;
  }

  .hero-section {
    padding: 76px 16px 24px;
    min-height: 100svh;
  }

  .hero-center-brand {
    margin: auto;
    padding-top: clamp(72px, 12svh, 104px);
    padding-bottom: 10px;
    gap: 10px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .hero-center-logo-wrap {
    padding: 12px 22px;
    display: flex;
    justify-content: center;
  }

  .hero-center-logo {
    height: clamp(114px, 31vw, 152px);
    margin: 0 auto;
  }

  .hero-center-sub {
    font-size: 11px;
    letter-spacing: 0.13em;
  }

  .hero-bottom-hud {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-sublead-title {
    font-size: clamp(1.55rem, 6.8vw, 2.05rem);
    line-height: 1.06;
  }

  .hero-lead-compact {
    font-size: 13px;
    line-height: 1.48;
  }

  .hero-bottom-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-bottom-pills .pill-btn {
    width: 100%;
    padding: 10px 10px;
    font-size: 12px;
  }

  .section {
    padding: 56px 16px;
    scroll-margin-top: 64px;
  }

  .section-header-split {
    margin-bottom: 22px;
    gap: 14px;
  }

  .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-selectors::-webkit-scrollbar {
    display: none;
  }

  .app-sel-label {
    display: none;
  }

  .app-sel-pill {
    flex-shrink: 0;
    padding: 4px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .app-kit-btn {
    flex-shrink: 0;
    padding: 6px 11px;
    font-size: 11.5px;
    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:first-child::-webkit-scrollbar {
    display: none;
  }

  .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%;
  }

  .roll-dropdown-group .cam-pill-rot {
    padding: 7px 4px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
  }

  .app-canvas-wrap {
    height: 245px;
    min-height: 240px;
  }

  #workCanvas {
    touch-action: pan-y;
  }

  .app-canvas-dock {
    padding: 9px 10px;
    gap: 8px;
  }

  .piece-inspector-floating {
    flex: 1 1 100%;
    gap: 6px;
  }

  .piece-inspector-floating .insp-sep {
    display: none;
  }

  .piece-inspector-floating strong {
    width: 100%;
    max-width: none;
    font-size: 12px;
  }

  .insp-controls-inline {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .insp-input-group input {
    font-size: 16px;
    width: 56px;
    min-height: 32px;
  }

  .floating-zoom-hud {
    width: 100%;
    justify-content: flex-end;
  }

  .zoom-fit {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
  }

  .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;
    padding: 13px 18px;
  }

  .app-pieces-aside {
    max-height: 340px;
  }

  .gallery-stack {
    gap: 28px;
  }

  .workflow-visual {
    padding: 14px;
  }

  .wf-node {
    padding: 14px 10px;
    gap: 10px;
  }

  .wf-title {
    font-size: 14px;
  }

  .app-cycle-tabs {
    width: 100%;
  }

  .cycle-btn {
    flex-direction: column;
    gap: 2px;
    padding: 6px 4px;
    font-size: 11px;
  }

  .plan-card-app {
    padding: 18px 16px;
  }

  .demo-strip {
    padding: 16px;
  }

  .demo-strip .pill-btn {
    width: 100%;
  }

  .site-footer {
    padding: 36px 16px 16px;
  }

  .footer-links {
    gap: 14px;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-panel {
    padding: 22px 18px;
    border-radius: 18px;
    max-height: 90svh;
    overflow-y: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
