/* ==========================================================================
   Boloman Prints — Futuristic Next-Gen Landing Experience
   ========================================================================== */

:root {
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --neon-teal: #751922;
  --neon-cyan: #af8c55;
  --neon-amber: #a45b62;
  --obsidian: #321c1e;
  --obsidian-soft: #3a2426;
}

/* Top Scroll Progress Laser */
.scroll-laser {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1095;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #751922 0%, #af8c55 50%, #a45b62 100%);
  box-shadow: 0 0 14px rgba(117, 25, 34, 0.75);
  pointer-events: none;
}

/* ==========================================================================
   1. Aurora Mesh & Cyber-Grid Hero
   ========================================================================== */
.nx-webgl-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.nx-webgl-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.nx-spatial-root { position: relative; z-index: 1; }

.landing-page {
  --landing-gutter: clamp(1rem, 4vw, 1.5rem);
  --landing-grid-gap: clamp(.75rem, 2vw, 1.5rem);
  --landing-section-space: clamp(2rem, 4vw, 3rem);
  --landing-panel-padding: clamp(1rem, 2.5vw, 1.5rem);
  --landing-anchor-offset: 4.75rem;
}
@media (min-width: 576px) {
  .landing-page { --landing-gutter: .75rem; }
}
.landing-page :is(.topbar, .site-header, .nx-spatial-root, .site-footer) .container {
  --bs-gutter-x: calc(2 * var(--landing-gutter));
}
.landing-grid {
  --bs-gutter-x: var(--landing-grid-gap);
  --bs-gutter-y: var(--landing-grid-gap);
}
.landing-page :is(#main, .nx-spatial-root section[id]) {
  scroll-margin-block-start: var(--landing-anchor-offset);
}
.landing-page .topbar .container { flex-wrap: wrap; gap: .25rem 1rem; }
.landing-page :is(.topbar, .site-footer) :is(a, li) { overflow-wrap: anywhere; }
.landing-page .mega-menu { width: min(35rem, calc(100vw - 2 * var(--landing-gutter))); }
.landing-page .mega-item > div:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
.landing-page .site-footer {
  margin-block-start: 0;
  padding-block: var(--landing-section-space) clamp(1.5rem, 3vw, 2rem);
}
.landing-page .site-footer .row {
  --bs-gutter-x: var(--landing-grid-gap);
  --bs-gutter-y: var(--landing-grid-gap);
}

.nx-hero {
  position: relative;
  background:
    radial-gradient(900px 480px at var(--mx) var(--my), rgba(117, 25, 34, 0.07), transparent 48%),
    linear-gradient(180deg, #fcf8f5 0%, #f3e9e4 100%);
  color: #321c1e;
  padding-block: 3.25rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 35%;
}
.nx-hero .landing-grid { --bs-gutter-y: 1.25rem; }
@media (min-width: 992px) {
  .nx-hero .landing-grid { --bs-gutter-x: 4.5rem; }
}
.nx-hero-actions { gap: clamp(.625rem, 1.7vw, 1rem); }
.nx-hero-actions .btn { max-inline-size: 100%; }
.nx-perspective-floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 46%;
  perspective: 700px;
  pointer-events: none;
  z-index: 0;
}
.nx-perspective-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(117, 25, 34, 0.28) 1px, transparent 1px),
    linear-gradient(to top, rgba(175, 140, 85, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(68deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
  animation: floorDrift 18s linear infinite;
}
.nx-horizon-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a45b62, #af8c55, transparent);
  box-shadow: 0 0 24px #a45b62;
}
@keyframes floorDrift {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}
.nx-floating-prism {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
}
.nx-prism-a { top: 12%; left: 6%; animation: prismSpin 16s linear infinite; }
.nx-prism-b { right: 8%; bottom: 18%; animation: prismSpin 22s linear infinite reverse; }
.prism-cube {
  width: 72px;
  height: 72px;
  position: relative;
  transform-style: preserve-3d;
}
.prism-cube i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(164, 91, 98, 0.55);
  background: rgba(117, 25, 34, 0.05);
}
.prism-cube i:nth-child(1) { transform: translateZ(36px); }
.prism-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(36px); }
.prism-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(36px); }
.prism-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(36px); }
.prism-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(36px); }
.prism-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(36px); }
.prism-ring {
  width: 110px;
  height: 110px;
  border: 1px solid rgba(175, 140, 85, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(117, 25, 34, 0.25), inset 0 0 18px rgba(175, 140, 85, 0.2);
}
@keyframes prismSpin {
  to { transform: rotateX(360deg) rotateY(360deg); }
}
.hero-enter-3d {
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}
@keyframes heroRise {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}
.nx-mini-stat {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.35rem 0.15rem;
  transform-style: preserve-3d;
}
.nx-stat-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16), transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.8s ease-in-out infinite;
}
@keyframes sheen {
  20%, 100% { transform: translateX(120%); }
}

/* Interactive cursor aura */
.nx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px circle at var(--mx) var(--my), rgba(117, 25, 34, 0.16), transparent 45%),
    radial-gradient(560px circle at 82% 22%, rgba(117, 25, 34, 0.16), transparent 50%),
    radial-gradient(720px circle at 14% 82%, rgba(175, 140, 85, 0.14), transparent 55%);
  z-index: -2;
  pointer-events: none;
}

/* Perspective architectural grid */
.nx-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, #000 35%, transparent 100%);
  pointer-events: none;
}

/* Floating ambient aurora orbs */
.nx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.48;
  z-index: -2;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.nx-orb-1 {
  width: 380px;
  height: 380px;
  top: -110px;
  left: -80px;
  background: radial-gradient(circle, #751922, transparent 70%);
}
.nx-orb-2 {
  width: 340px;
  height: 340px;
  bottom: -90px;
  right: 6%;
  background: radial-gradient(circle, #751922, transparent 70%);
  animation-delay: -6s;
}
@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(36px, -28px, 0) scale(1.12); }
}

/* Live Telemetry Pill */
.nx-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: #fffaf5;
  border: 1px solid #e6d7d5;
  box-shadow: 0 8px 24px rgba(50, 28, 30, 0.06);
  backdrop-filter: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #751922;
  margin-bottom: 0.85rem;
}
.nx-live-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a45b62;
  box-shadow: 0 0 10px #a45b62;
  animation: liveBlink 1.8s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.nx-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.9vw, 4.15rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #751922;
  margin-bottom: 0.85rem;
}
.nx-gradient-text {
  background: linear-gradient(110deg, #751922 0%, #a45b62 52%, #af8c55 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s linear infinite;
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}

.nx-hero-lead {
  color: #756365;
  font-size: 1.12rem;
  max-width: 54ch;
  line-height: 1.65;
}

/* Magnetic / Luminous CTA Buttons */
.btn-glow-primary {
  background: #751922;
  border: 1px solid #6c101b;
  color: #fff;
  padding: 0.85rem 1.55rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 28px -6px rgba(117, 25, 34, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.btn-glow-primary:hover, .btn-glow-primary:focus {
  color: #fff;
  box-shadow: 0 16px 36px -6px rgba(117, 25, 34, 0.8), 0 0 20px rgba(175, 140, 85, 0.4);
}
.btn-glass {
  background: #fffaf5;
  border: 1px solid #e6d7d5;
  color: #321c1e;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  backdrop-filter: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-glass:hover, .btn-glass:focus {
  background: #faeeee;
  border-color: #751922;
  color: #751922;
}

/* Hero Metrics Chips */
.nx-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 1.75vw, .875rem);
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #e6d7d5;
}
.nx-mini-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #751922;
  line-height: 1.1;
}
.nx-mini-stat span {
  display: block;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  color: #756365;
}

/* ==========================================================================
   2. Interactive 3D Holo-Studio Customizer Card (Hero Right)
   ========================================================================== */
.holo-stage-wrap {
  perspective: 1200px;
  container: studio / inline-size;
}
.holo-orbit-halo {
  position: absolute;
  inset: -18px -28px -28px 0;
  pointer-events: none;
  transform-style: preserve-3d;
}
.halo-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(117, 25, 34, 0.28);
}
.halo-ring-1 { animation: haloSpin 14s linear infinite; }
.halo-ring-2 {
  inset: 0;
  border-color: rgba(175, 140, 85, 0.22);
  animation: haloSpin 20s linear infinite reverse;
}
@keyframes haloSpin { to { transform: rotateX(68deg) rotateZ(360deg); } }
.holo-floor-shadow {
  height: 28px;
  margin: 0.4rem 12% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(117, 25, 34, 0.35), transparent 70%);
  filter: blur(8px);
}
.holo-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}
.holo-mode-switch { display: flex; flex: none; gap: 0.3rem; white-space: nowrap; }
.holo-mode-btn {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
}
.holo-mode-btn.is-active {
  color: #042f2e;
  background: #c4898e;
  border-color: #c4898e;
}
.holo-3d-turntable {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  background: radial-gradient(circle at 50% 42%, rgba(15, 23, 42, 0.2), #050811 72%);
}
.holo-3d-turntable.is-dragging { cursor: grabbing; }
.holo-3d-turntable canvas { width: 100%; height: 100%; display: block; }
.holo-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: #faeeee;
  background: rgba(5, 8, 17, 0.72);
  border: 1px solid rgba(164, 91, 98, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  pointer-events: none;
}
.holo-3d-quick-pill {
  position: absolute;
  left: 0.75rem;
  top: 0.65rem;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 8, 17, 0.78);
  color: #c4898e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem;
}
.holo-viewport.is-mesh .holo-photo,
.holo-viewport.is-mesh .holo-print-projection,
.holo-viewport.is-mesh .holo-3d-quick-pill,
.holo-viewport.is-mesh .holo-method-chip,
.holo-viewport.is-mesh .holo-sku-chip { display: none; }
.holo-studio {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, #4a2428 0%, #321c1e 100%);
  border: 1px solid #e6d7d5;
  box-shadow:
    0 30px 70px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(117, 25, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  padding: 0.85rem;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.holo-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem .75rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.holo-dots { display: flex; flex: none; gap: 6px; }
.holo-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.holo-dots i:nth-child(1) { background: #ef4444; }
.holo-dots i:nth-child(2) { background: #f59e0b; }
.holo-dots i:nth-child(3) { background: #10b981; }
.holo-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #c4898e;
  background: rgba(117, 25, 34, 0.1);
  border: 1px solid rgba(117, 25, 34, 0.28);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

/* Item selector tabs inside studio */
.holo-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.holo-tab {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.55);
  color: #cbd5e1;
  border-radius: 9px;
  padding: 0.42rem 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.holo-tab:hover { border-color: rgba(164, 91, 98, 0.45); color: #fff; }
.holo-tab.is-active {
  background: rgba(117, 25, 34, 0.22);
  border-color: #a45b62;
  color: #c4898e;
  box-shadow: 0 0 16px rgba(117, 25, 34, 0.2);
}

/* Live SVG Preview Viewport with Laser Scanline */
.holo-viewport {
  --holo-tint: #6c101b;
  position: relative;
  border-radius: 16px;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.22);
  height: auto;
  aspect-ratio: 3 / 2;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.holo-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 17, 0.25) 0%, rgba(5, 8, 17, 0.62) 100%),
    radial-gradient(circle at 50% 48%, var(--holo-tint), transparent 72%);
  mix-blend-mode: hard-light;
  opacity: 0.16;
  pointer-events: none;
  transition: background 0.3s ease;
}
.holo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.holo-photo.is-switching { transform: scale(1.06); opacity: 0.72; }
.holo-print-projection {
  position: absolute;
  bottom: 0.7rem;
  max-inline-size: min(14rem, calc(100% - 16rem));
  overflow-wrap: anywhere;
  z-index: 3;
  padding: 0.55rem 1.05rem;
  border-radius: 12px;
  background: rgba(5, 8, 17, 0.68);
  border: 1.5px dashed rgba(164, 91, 98, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(117, 25, 34, 0.22);
  backdrop-filter: blur(8px);
  text-align: center;
  pointer-events: none;
}
.holo-print-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #c4898e;
  margin-bottom: 2px;
}
.holo-print-projection strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.holo-scanline {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #a45b62 50%, transparent 100%);
  box-shadow: 0 0 14px #a45b62;
  opacity: 0.75;
  animation: laserScan 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes laserScan {
  0% { top: 8%; opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { top: 92%; opacity: 0; }
}
.holo-sku-chip {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  background: rgba(5, 8, 17, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.holo-method-chip {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  max-inline-size: calc(52% - 1rem);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(117, 25, 34, 0.2);
  border: 1px solid rgba(175, 140, 85, 0.45);
  color: #fdba74;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

/* Controls inside Holo Studio */
.holo-controls {
  display: grid;
  gap: 0.7rem;
}
.holo-controls > :first-child { flex-wrap: wrap; gap: .5rem .75rem; }
.holo-swatches {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.holo-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.holo-swatch:hover { transform: scale(1.12); }
.holo-swatch.is-active {
  border-color: #c4898e;
  box-shadow: 0 0 0 3px rgba(117, 25, 34, 0.3);
  transform: scale(1.1);
}
.holo-input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #fff;
  border-radius: 9px;
  padding: 0.48rem 0.75rem;
  font-size: 0.84rem;
  width: 100%;
}
.holo-input:focus {
  outline: none;
  border-color: #a45b62;
  box-shadow: 0 0 0 3px rgba(117, 25, 34, 0.18);
}
.holo-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem .75rem;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

/* ==========================================================================
   3. Infinite Kinetic Capability Marquee
   ========================================================================== */
.nx-marquee-3d-wrap {
  perspective: 900px;
  background: #751922;
  overflow: hidden;
  overflow: clip;
}
.nx-marquee-3d-wrap .nx-marquee {
  transform: rotateX(18deg) scale(1.04);
  transform-origin: center center;
}
.nx-marquee {
  background: #751922;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 0.9rem 0;
  overflow: hidden;
  display: flex;
  user-select: none;
}
.nx-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-shrink: 0;
  min-width: 100%;
  padding-right: 2.25rem;
  animation: marqueeScroll 28s linear infinite;
}
.nx-marquee:hover .nx-marquee-track { animation-play-state: paused; }
.nx-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #faeeee;
  color: #cbd5e1;
  white-space: nowrap;
}
.nx-marquee-item i { color: #af8c55; font-size: 0.95rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ==========================================================================
   4. Spotlight Bento Category Cards
   ========================================================================== */
.nx-section { padding-block: var(--landing-section-space); position: relative; }
.nx-spatial-root .section-header { margin-bottom: var(--landing-grid-gap); }
.nx-spatial-root .section-header > div { min-inline-size: 0; }
.nx-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.perspective-col { perspective: 1100px; }
.card-3d-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 20%), rgba(255, 255, 255, 0.28), transparent 46%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease;
}
[data-tilt-3d]:hover .card-3d-glare { opacity: 1; }
.reveal-3d {
  opacity: 0;
  transform: translate3d(0, 36px, -40px) rotateX(8deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-3d.is-visible { opacity: 1; transform: none; }
.pipeline-conduit-wrap { position: relative; }
.pipeline-laser-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 2px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.pipeline-laser-pulse {
  position: absolute;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #a45b62, transparent);
  animation: railPulse 2.8s linear infinite;
}
@keyframes railPulse {
  from { left: -30%; }
  to { left: 110%; }
}
.pipeline-3d-node {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #c4898e;
  background: rgba(117, 25, 34, 0.12);
  border: 1px solid rgba(117, 25, 34, 0.35);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.25);
}
.stage-progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.stage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #751922, #af8c55);
  box-shadow: 0 0 12px #a45b62;
  transition: width 0.35s ease;
}
.iso-stack-scene {
  height: 210px;
  perspective: 700px;
  display: grid;
  place-items: center;
}
.iso-stack {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-32deg);
  transition: transform 0.45s ease;
}
.bento-spec:hover .iso-stack { transform: rotateX(62deg) rotateZ(-18deg) translateY(-8px); }
.iso-plate {
  position: absolute;
  inset: 18px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #042f2e;
  transform-style: preserve-3d;
  animation: plateFloat 3.6s ease-in-out infinite;
}
.iso-plate span { transform: rotateZ(32deg); }
.iso-plate-1 { background: #f3e9e4; animation-delay: 0s; }
.iso-plate-2 { background: #c4898e; transform: translateZ(18px); animation-delay: 0.2s; }
.iso-plate-3 { background: #a45b62; transform: translateZ(36px); animation-delay: 0.4s; }
.iso-plate-4 { background: #af8c55; color: #431407; transform: translateZ(54px); animation-delay: 0.6s; }
@keyframes plateFloat {
  50% { translate: 0 -6px 0; }
}
.nx-featured-3d .product-card,
.contact-card-3d,
.nx-dispatch-console {
  transform-style: preserve-3d;
}
.line-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(.625rem, 1.5vw, .875rem);
  height: 100%;
  padding: clamp(.75rem, 1.6vw, 1rem);
  background: #fff;
  border: 1px solid var(--line-solid);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.line-card:hover {
  border-color: #c9a7a4;
  box-shadow: 0 10px 22px -16px rgba(50, 28, 30, 0.4);
  color: var(--ink);
}
.line-card-mark {
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 3.35rem;
  border-radius: 10px;
  background: #f4efe9;
  border: 1px solid #efe4dc;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.line-card-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.28rem 0.32rem;
}
.line-card-copy { min-width: 0; display: block; overflow-wrap: anywhere; }
.line-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #751922;
}
.line-card h3 {
  margin: 0.12rem 0 0.18rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.line-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-count {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* ==========================================================================
   5. Futuristic Dark Cyber-Pipeline Section (How It Works + Live Tracker Demo)
   ========================================================================== */
.nx-dark-band {
  background:
    radial-gradient(circle at 18% 20%, rgba(117, 25, 34, 0.16), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(175, 140, 85, 0.14), transparent 42%),
    var(--obsidian-soft);
  color: #f8fafc;
  padding-block: var(--landing-section-space);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.nx-dark-band h2, .nx-dark-band h3 { color: #fff; }
.nx-dark-band .eyebrow { color: #c4898e; }

.pipeline-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: var(--landing-panel-padding);
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.pipeline-card:hover {
  border-color: rgba(164, 91, 98, 0.55);
  transform: translateY(-4px);
}
.pipeline-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c4898e;
  background: rgba(117, 25, 34, 0.12);
  border: 1px solid rgba(117, 25, 34, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.9rem;
}

/* Interactive Telemetry Simulator Bar */
.telemetry-demo {
  margin-top: var(--landing-grid-gap);
  background: rgba(5, 8, 17, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: var(--landing-panel-padding);
}
.stage-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.stage-pill {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.48);
  color: #94a3b8;
  border-radius: 12px;
  padding: 0.7rem 0.6rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stage-pill strong { display: block; font-size: 0.82rem; color: #e2e8f0; }
.stage-pill small { font-size: 0.7rem; }
.stage-pill.is-done {
  border-color: rgba(117, 25, 34, 0.4);
  background: rgba(108, 16, 27, 0.22);
  color: #f3e9e4;
}
.stage-pill.is-active {
  border-color: #a45b62;
  background: linear-gradient(135deg, rgba(117, 25, 34, 0.28), rgba(175, 140, 85, 0.2));
  box-shadow: 0 0 24px rgba(117, 25, 34, 0.22);
  color: #fff;
}

/* ==========================================================================
   6. Tech Spec Bento Grid
   ========================================================================== */
.bento-spec {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: var(--landing-panel-padding);
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-spec:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.bento-spec-dark {
  background: linear-gradient(145deg, #0f172a 0%, #321c1e 100%);
  color: #f8fafc;
  border-color: rgba(117, 25, 34, 0.3);
}
.bento-spec-dark h3 { color: #fff; }
.spec-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.spec-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.bento-spec-dark .spec-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #faeeee;
}

/* Staggered scroll reveal choreography */
.reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-stagger.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 767.98px) {
  .stage-pills { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .nx-floating-prism, .halo-ring { display: none; }
}
.work-deck {
  display: flex;
  flex-direction: column;
  gap: clamp(.625rem, 1.6vw, .875rem);
  height: 100%;
  padding: clamp(.75rem, 1.6vw, 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(50, 28, 30, 0.06);
}
.work-deck-head, .work-deck-tools, .work-nav {
  display: flex;
  align-items: center;
}
.work-deck-head { justify-content: space-between; flex-wrap: wrap; gap: .5rem .75rem; }
.work-deck-head > :first-child { min-inline-size: 0; }
.work-deck-tools { flex-shrink: 0; }
.work-deck-tools, .work-nav { gap: 0.45rem; }
.work-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.work-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.work-index span { color: var(--muted, #8a7578); font-weight: 500; }
.work-nav-btn, .work-thumb {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.work-nav-btn {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.work-nav-btn:hover, .work-thumb:hover { border-color: var(--brand); }
.work-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%),
    #f6f1ea;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  overflow: hidden;
}
[data-theme="dark"] .work-stage { background: #1b1416; }
.work-stage .carousel-item img {
  width: 100%;
  height: min(440px, 68vw);
  object-fit: contain;
  display: block;
}
.work-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: .15rem .2rem .25rem;
  scrollbar-width: thin;
}
.work-thumb {
  flex: 0 0 4.6rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 0.55rem;
  overflow: hidden;
  opacity: 0.72;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-thumb.is-active {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent);
}
.work-catalog {
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.work-catalog:hover { text-decoration: underline; }
.work-feature {
  max-inline-size: 62rem;
  margin-top: var(--landing-grid-gap);
  margin-inline: auto;
  padding: clamp(.75rem, 1.6vw, 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(50, 28, 30, 0.06);
}
.work-sheet, .about-poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
}
.work-sheet { background: #eceae6; }
.work-feature .work-deck-head { margin-bottom: .5rem; }
.about-poster {
  max-height: 760px;
  object-fit: contain;
  background: #11161f;
}

.nx-featured-3d .product-footer,
.nx-featured-3d .product-badges { flex-wrap: wrap; }
.nx-featured-3d .product-badges { gap: .25rem; }
.nx-featured-3d .product-body { padding: clamp(.75rem, 2vw, 1.15rem); }
.nx-featured-3d :is(.product-body, .card-swatches) { overflow-wrap: anywhere; }
.nx-featured-3d .card-swatches { flex-wrap: wrap; }

#contact .contact-card-3d > .d-flex > :last-child { min-inline-size: 0; overflow-wrap: anywhere; }
#contact :is(.map-frame, .map-placeholder) { min-block-size: clamp(12rem, 36vw, 14.375rem); }
#contact .map-frame { display: block; }
#contact .map-placeholder { padding: var(--landing-panel-padding); }

@container studio (max-width: 28rem) {
  .holo-print-projection {
    inset-inline-end: .5rem;
    bottom: .5rem;
    max-inline-size: calc(100% - 8.75rem);
    padding: .375rem .625rem;
  }
  .holo-sku-chip { inset-inline-start: .5rem; bottom: .5rem; }
}
@container studio (max-width: 20rem) {
  .holo-print-projection { bottom: 2.5rem; max-inline-size: min(14rem, calc(100% - 1rem)); }
}

@media (max-width: 991.98px) {
  .landing-page .navbar-collapse.show { max-height: 70dvh; overflow-y: auto; }
  .landing-page .navbar-collapse .mega-menu { max-inline-size: 100%; }
  .about-poster { max-inline-size: 34rem; margin-inline: auto; }
}
@media (992px <= width < 1200px) {
  .landing-page .navbar-expand-xl .navbar-collapse.show { max-height: 70dvh; overflow-y: auto; }
  .landing-page .navbar-expand-xl .navbar-collapse .mega-menu { max-inline-size: 100%; }
}
@media (max-width: 575.98px) {
  .landing-page .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .holo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-hero-actions :is(.btn-glow-primary, .btn-glass) { padding-inline: 1rem; }
  .work-thumbs .work-thumb { flex-basis: clamp(3.5rem, 15vw, 4.6rem); }
  .nx-featured-3d .product-badges { inset: .5rem .5rem auto; }
  .nx-featured-3d .product-quick-cta { inset-inline: .5rem; padding-inline: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-orb, .nx-live-dot, .nx-gradient-text, .holo-scanline, .nx-marquee-track,
  .nx-perspective-plane, .prism-cube, .halo-ring, .nx-stat-sheen,
  .hero-enter-3d, .pipeline-laser-pulse, .iso-plate {
    animation: none !important;
  }
  .reveal-stagger, .reveal-3d, .hero-enter-3d { opacity: 1; transform: none; }
}
