/* ============================================================
   AMIX ENGINEERING — Modern Interactive Website
   ============================================================ */

:root {
  --bg: #f7f7f5;
  --bg-2: #eef0ec;
  --bg-3: #e6e8e2;
  --surface: #ffffff;
  --border: rgba(23, 24, 28, 0.10);
  --text: #1a1b1e;
  --text-2: #565b66;
  --text-3: #8a8f98;
  --primary: #3b4a94;
  --primary-2: #232364;
  --accent: #3b4a94;
  --gradient: linear-gradient(135deg, rgba(59,74,148,.88) 0%, rgba(35,35,100,.85) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59,74,148,.08), rgba(59,74,148,.06));
  --radius: 6px;
  --radius-sm: 6px;
  --shadow: 0 20px 48px rgba(0,0,0,.08);
  --shadow-lg: 0 34px 90px rgba(0,0,0,.12);
  --nav-h: 72px;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-brand: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Sora', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(59,74,148,.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e2a44; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
  }
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: var(--font-brand);
  font-size: clamp(1.3rem, 6vw, 3rem); font-weight: 700;
  letter-spacing: clamp(.14em, 2.2vw, .3em);
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse 1.2s infinite alternate;
  padding: 0 clamp(.14em, 2.2vw, .3em); text-align: center;
  max-width: 92vw; white-space: nowrap; overflow: hidden;
}
.preloader-emblems { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2.4vh, 24px); padding: 0 12px; box-sizing: border-box; max-width: 100vw; }
.preloader-emblems img {
  width: clamp(96px, 30vw, 220px); height: clamp(96px, 30vw, 220px); object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.25));
  animation: pulse 1.2s infinite alternate;
}
.preloader-tag { font-family: var(--font-brand); font-size: clamp(.6rem, 2.4vw, .8rem); letter-spacing: clamp(.2em, 1.6vw, .5em); color: var(--text-3); margin-top: 10px; padding-left: .5em; white-space: nowrap; }
.preloader-bar { width: min(180px, 60vw); height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; margin: clamp(8px, 2vh, 18px) auto 0; overflow: hidden; }
/* Fraction-width phones: keep the wordmark on ONE line, shrink to fit instead of wrapping */
@media (max-width: 340px) {
  .preloader-logo { white-space: nowrap; line-height: 1.25; font-size: clamp(1rem, 5.2vw, 1.3rem); letter-spacing: clamp(.05em, 1.3vw, .14em); padding: 0 .1em; }
  .preloader-tag { white-space: normal; padding-left: 0; }
}
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--gradient); animation: loadbar 1.2s ease-in-out infinite; }
@keyframes loadbar { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }
@keyframes pulse { from{opacity:.6} to{opacity:1} }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gradient); z-index: 999; border-radius: 0 3px 3px 0;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2000; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 8px; height: 8px; background: var(--primary); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(59,74,148,.5); transition: width .25s, height .25s, border-color .25s; }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 750;
  height: var(--nav-h);
  transition: all .4s ease;
}
/* The 360° page: nav background always visible so the hamburger/symbol
   never disappears over the dark stage; the drawer/backdrop slide under it. */
.nav.on-360 {
  background: rgba(7,11,20,.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled {
  background: rgba(7,11,20,.8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
/* When a modal is open, slide the nav away completely so it never
   overlaps/centers under the modal on any screen size. */
body.modal-open .nav {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav-inner { width: 100%; padding: 0 clamp(16px, 2.4vw, 40px); height: 100%; display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; color: #fff;
  background: linear-gradient(145deg, #ffffff, #eef1f7);
  border: 1px solid rgba(0,0,0,.08);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(2,6,23,.35);
}
.brand-mark img, .brand-logo {
  width: 100%; height: 100%; object-fit: contain;
}
.brand-text { display: inline-flex; align-items: baseline; gap: clamp(6px, 1.2vw, 10px); font-family: var(--font-brand); font-size: clamp(.95rem, 2.4vw, 1.25rem); letter-spacing: .16em; text-transform: uppercase; line-height: .95; white-space: nowrap; font-weight: 700; color: var(--accent); }
.brand-text span { font-family: inherit; font-weight: inherit; font-size: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; }
@media (max-width: 520px) {
  .brand-text { font-size: 1.05rem; gap: 6px; }
}

.nav-links { display: flex; gap: 8px; }
.nav-link {
  color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: all .25s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gradient); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

/* 360° nav pill — the star of the menu */
.nav-spin {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff !important;
  padding: 8px 18px 8px 13px !important;
  margin-left: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(59,74,148,.28), rgba(74,88,168,.22));
  border: 1px solid rgba(74,88,168,.55);
  box-shadow: 0 0 0 0 rgba(74,88,168,.45), inset 0 0 12px rgba(74,88,168,.12);
  animation: navSpinGlow 2.8s ease-in-out infinite;
}
.nav-spin::before {
  content: ''; width: 13px; height: 13px; border-radius: 50%; flex: 0 0 13px;
  border: 2px solid rgba(123,135,196,.35); border-top-color: #7b87c4;
  animation: navSpinRotate 1.2s linear infinite;
}
.nav-spin::after { display: none; }
.nav-spin:hover, .nav-spin.active { color: #fff !important; border-color: rgba(123,135,196,.85); }
@keyframes navSpinGlow { 0%,100% { box-shadow: 0 0 6px rgba(74,88,168,.4), inset 0 0 12px rgba(74,88,168,.12); } 50% { box-shadow: 0 0 22px rgba(74,88,168,.6), inset 0 0 16px rgba(74,88,168,.22); } }
@keyframes navSpinRotate { to { transform: rotate(360deg); } }

/* nav_spin flag OFF -> keep the link, drop only the pill glow */
.nav-spin.flag-flat {
  background: none;
  border: none;
  box-shadow: none;
  animation: none;
  gap: 0;
  padding: 8px 14px !important;
  margin-left: 0;
  border-radius: 10px;
  color: var(--text-2) !important;
}
.nav-spin.flag-flat::before { display: none; }
.nav-spin.flag-flat::after {
  display: block; content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gradient); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-spin.flag-flat:hover, .nav-spin.flag-flat.active { color: #fff !important; }
.nav-spin.flag-flat:hover::after, .nav-spin.flag-flat.active::after { transform: scaleX(1); }

/* Floating 360° launcher — visible on every page */
.fab-360 {
  position: fixed; right: 22px; bottom: 24px; z-index: 250;
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(35,35,100,.85), rgba(74,88,168,.88));
  color: #fff; text-decoration: none;
  box-shadow: 0 12px 32px rgba(74,88,168,.5), 0 0 0 0 rgba(74,88,168,.4);
  transform-origin: center;
  transition: transform .3s ease, box-shadow .3s ease, opacity .4s ease;
  animation: fabPulse 2.8s ease-in-out infinite;
}
.fab-360:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(74,88,168,.65), 0 0 0 0 rgba(74,88,168,.4); }
.fab-label {
  position: relative; z-index: 2;
  font-family: var(--font-brand); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.fab-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.34), transparent 46%);
}
.fab-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px dashed rgba(123,135,196,.55);
  animation: navSpinRotate 9s linear infinite;
}
@keyframes fabPulse { 0%,100% { box-shadow: 0 12px 32px rgba(74,88,168,.5), 0 0 0 0 rgba(74,88,168,.5); } 50% { box-shadow: 0 12px 32px rgba(74,88,168,.62), 0 0 0 12px rgba(74,88,168,0); } }
.fab-360.hidden { opacity: 0; pointer-events: none; transform: translateY(16px); }

/* ---------- Scroll-to-top button ---------- */
.fab-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 250;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,24,44,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text-2, #9fb0c8); display: grid; place-items: center; cursor: pointer;
  transition: all .3s ease; opacity: 0; pointer-events: none; transform: translateY(12px);
}
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab-top:hover { background: rgba(74,88,168,.18); border-color: rgba(74,88,168,.5); color: #7b87c4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,88,168,.35); }
.fab-top:active { transform: translateY(0); }
.fab-top:focus-visible { outline: 2px solid #4a58a8; outline-offset: 2px; }
html[data-theme="light"] .fab-top { background: rgba(255,255,255,.85); border-color: rgba(2,6,23,.12); color: #475569; }
html[data-theme="light"] .fab-top:hover { background: rgba(59,74,148,.1); border-color: rgba(59,74,148,.45); color: #232364; }
@media (max-width: 768px) {
  .fab-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------- Services & Support ---------- */
.services { max-width: 1240px; margin: 0 auto; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(59,74,148,.4); }
.svc-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: var(--radius); margin-bottom: 14px; color: #fff;
  background: var(--gradient); box-shadow: 0 10px 26px rgba(59,74,148,.35);
}
.svc-card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.svc-card p { color: var(--text-2); font-size: .96rem; line-height: 1.6; }

.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; }
.svc-step { position: relative; padding-top: 22px; border-top: 2px solid var(--border); }
.svc-step .svc-num {
  display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.svc-step h4 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 8px; }
.svc-step p { color: var(--text-2); font-size: .93rem; line-height: 1.6; }

.svc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-top: 60px; padding: 40px 44px; border-radius: var(--radius);
  background: var(--gradient-soft); border: 1px solid var(--border);
  background-image: linear-gradient(rgba(59,74,148,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(59,74,148,.08) 1px, transparent 1px), var(--gradient-soft);
  background-size: 40px 40px, 40px 40px, cover;
}
.svc-cta h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.svc-cta p { color: var(--text-2); max-width: 520px; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-steps { grid-template-columns: 1fr; }
  .svc-cta { padding: 32px 26px; }
}

/* ---------- Contact quick-actions launcher (WhatsApp / call) ---------- */
.fab-contact { position: fixed; right: 22px; bottom: 104px; z-index: 250; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fabc-menu {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; pointer-events: none; transform: translateY(14px) scale(.96); transform-origin: bottom right;
  transition: opacity .28s ease, transform .28s ease;
}
.fab-contact.open .fabc-menu { opacity: 1; pointer-events: auto; transform: none; }
.fabc-item {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 18px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: #fff;
  text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .2s ease, box-shadow .2s ease;
}
.fabc-item:hover { transform: translateY(-2px); }
.fabc-wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.fabc-call { background: var(--gradient); }
.fabc-item svg { flex: 0 0 auto; }
.fabc-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e); display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(18,140,126,.5); animation: fabcPulse 2.6s infinite;
  position: relative; transition: transform .2s ease;
}
.fabc-btn:hover { transform: translateY(-2px); }
.fabc-btn:focus-visible { outline: 2px solid #25d366; outline-offset: 3px; }
.fabc-chat, .fabc-x { grid-area: 1 / 1; transition: opacity .22s ease, transform .22s ease; }
.fabc-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab-contact.open .fabc-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab-contact.open .fabc-x { opacity: 1; transform: none; }
@keyframes fabcPulse { 0%,100% { box-shadow: 0 12px 30px rgba(18,140,126,.5), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 12px 30px rgba(18,140,126,.6), 0 0 0 12px rgba(37,211,102,0); } }
html[data-theme="light"] .fabc-btn { box-shadow: 0 12px 30px rgba(18,140,126,.35); }

/* Visibility flags: elements the admin can disable (360° campaign toggles) */
.flag-off { display: none !important; }
@media (max-width: 768px) {
  .fab-360 { right: 16px; bottom: 16px; width: 60px; height: 60px; }
  .fab-contact { right: 16px; bottom: 88px; }
  .fabc-btn { width: 52px; height: 52px; }
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 24px 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,74,148,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(59,74,148,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.glow-1 { width: 520px; height: 520px; background: rgba(59,74,148,.4); top: -120px; right: -100px; }
.glow-2 { width: 420px; height: 420px; background: rgba(35,35,100,.35); bottom: -160px; left: -80px; }
.hero-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(59,74,148,.25); }
.orb-1 { width: 340px; height: 340px; right: 8%; top: 18%; animation: float 8s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; right: 22%; top: 40%; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(74,88,168,.3); background: rgba(74,88,168,.08);
  padding: 8px 16px; border-radius: 40px; margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.02em;
}
.hero-sub { margin: 26px 0 40px; font-size: 1.15rem; color: var(--text-2); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-main); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: var(--radius); cursor: pointer;
  border: none; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 12px 32px rgba(59,74,148,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(59,74,148,.5); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 62px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-item strong { font-family: var(--font-display); font-size: 1.6rem; }
.meta-item span { color: var(--text-2); font-size: .9rem; }

/* 360° teaser card in the hero */
.btn-hero-spin {
  background: linear-gradient(120deg, rgba(59,74,148,.2), rgba(74,88,168,.16));
  color: #dfe3f2; border: 1px solid rgba(74,88,168,.5);
  box-shadow: 0 0 0 0 rgba(74,88,168,.35);
  animation: spinBtnGlow 2.8s ease-in-out infinite;
}
.btn-hero-spin:hover { color: #fff; border-color: rgba(123,135,196,.85); transform: translateY(-3px); }
@keyframes spinBtnGlow { 0%,100% { box-shadow: 0 0 8px rgba(74,88,168,.3); } 50% { box-shadow: 0 0 20px rgba(74,88,168,.55); } }

.hero-360 {
  position: absolute; right: clamp(24px, 6vw, 96px); top: 50%;
  transform: translateY(-50%); z-index: 2;
  display: flex; align-items: center; gap: 18px; max-width: 340px;
  padding: 20px 24px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(145deg, rgba(15,42,74,.72), rgba(15,23,42,.78));
  border: 1px solid rgba(74,88,168,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hero-360:hover { border-color: rgba(123,135,196,.75); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 34px rgba(74,88,168,.3); transform: translateY(-50%) translateY(-4px); }
.h360-orb { position: relative; flex: 0 0 74px; width: 74px; height: 74px; display: grid; place-items: center; }
.h360-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(123,135,196,.5); animation: navSpinRotate 10s linear infinite; }
.h360-ring.r2 { inset: 8px; border: 2px solid rgba(59,74,148,.5); border-top-color: rgba(123,135,196,.9); animation: navSpinRotate 5s linear infinite reverse; }
.h360-orb b {
  font-family: var(--font-brand); font-size: 1.25rem; letter-spacing: .02em;
  background: linear-gradient(120deg, #8e99db, #a3abdb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(74,88,168,.5);
}
.h360-copy { display: flex; flex-direction: column; gap: 4px; }
.h360-copy strong { font-family: var(--font-display); font-size: 1.08rem; color: #fff; }
.h360-copy small { color: var(--text-2); font-size: .86rem; line-height: 1.45; }
.h360-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-weight: 600; font-size: .92rem; color: var(--accent); }
@media (max-width: 1240px) { .hero-360 { display: none; } }

.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--text-2); border-radius: 20px; display: block; position: relative; }
.wheel { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; background: var(--primary); border-radius: 3px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1; top:8px} 100%{opacity:0; top:24px} }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 110px 24px; position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; position: relative; z-index: 2; }
.section-head-light { text-align: center; margin-left: auto; margin-right: auto; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 16px 0 20px; }
.section-sub { color: var(--text-2); font-size: 1.08rem; }

/* ---------- Products editorial hero (matches the shop's premium look) ---------- */
.prod-hero { max-width: 1240px; margin: 0 auto 56px; position: relative; }
.prod-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.prod-hero-copy { position: relative; z-index: 2; }
.prod-hero-copy .section-title { margin-top: 0; margin-bottom: 20px; }
.prod-hero-copy .section-sub { max-width: 600px; }
.prod-hero-media { position: relative; z-index: 1; }
.hero-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-2); box-shadow: var(--shadow-lg);
}
.hero-frame img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-tag {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(7,11,20,.55); backdrop-filter: blur(8px); border: 1px solid rgba(148,163,184,.28);
  color: var(--text); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(7,11,20,.6); backdrop-filter: blur(8px); border: 1px solid rgba(74,88,168,.4);
  color: var(--text); font-size: .76rem; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-chip.chip-cn { bottom: 14px; left: 14px; }
.hero-chip.chip-rn { top: 18px; right: 14px; border-color: rgba(123,135,196,.45); }
.hero-subcard {
  position: absolute; top: 50%; left: -24px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow); z-index: 2;
}
.hero-subcard img { width: 52px; height: 42px; object-fit: cover; border-radius: var(--radius); }
.hero-subcard span { font-size: .8rem; font-weight: 600; line-height: 1.3; }
.hero-subcard em { font-style: normal; color: var(--primary); }
.hero-caption { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--text-3); font-size: .82rem; }
.hero-caption::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--gradient); }
.hero-product-btn { margin-top: 20px; gap: 10px; }
.hero-product-btn svg { transition: transform .25s; }
.hero-product-btn:hover svg { transform: translateX(4px); }

/* hero image crossfade: the ghost layer dissolves the next frame in over the current one */
.hero-ghost {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 2;
  opacity: 0; transform: scale(1.045);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.hero-ghost.in { opacity: 1; transform: scale(1); }
.hero-tag { z-index: 3; }
.hero-tag, .hero-caption { transition: opacity .28s ease; }
.prod-hero-media.hero-swapping .hero-tag,
.prod-hero-media.hero-swapping .hero-caption { opacity: 0; }

/* "See all products" button: inviting pulse so it reads as an action */
.hero-see-all { margin-top: 26px; gap: 10px; position: relative;
  animation: seeAllPulse 2.6s ease-in-out infinite; }
.hero-see-all svg { transition: transform .25s; }
.hero-see-all:hover svg { transform: translateY(4px); }
@keyframes seeAllPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,74,148,0); border-color: var(--border); }
  45% { box-shadow: 0 0 0 7px rgba(59,74,148,.12), 0 0 26px rgba(59,74,148,.5); border-color: var(--primary); }
}
html[data-theme="dark"] .hero-see-all { animation-name: seeAllPulseDark; }
@keyframes seeAllPulseDark {
  0%, 100% { box-shadow: 0 0 0 0 rgba(142,153,219,0); border-color: var(--border); }
  45% { box-shadow: 0 0 0 7px rgba(142,153,219,.14), 0 0 26px rgba(142,153,219,.55); border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-see-all { animation: none; }
  .hero-ghost { transition: opacity .3s ease; }
}
@media (max-width: 767px) {
  .prod-hero-inner { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  /* the hero photo + its "View this machine" CTA are a wide-screen (desktop/tablet) showpiece */
  .prod-hero-media { display: none; }
  .hero-chip.chip-rn { top: 12px; right: 12px; }
  .hero-chip.chip-cn { bottom: 12px; left: 12px; }
}
@media (max-width: 560px) {
  .prod-hero { margin-bottom: 40px; }
  .hero-subcard { left: 8px; top: auto; bottom: 58px; transform: none; }
}
html[data-theme="light"] .hero-tag, html[data-theme="light"] .hero-chip { background: rgba(255,255,255,.88); color: #0f172a; }
html[data-theme="light"] .hero-tag i { background: #16a34a; box-shadow: 0 0 10px #16a34a; }
html[data-theme="light"] .hero-subcard { background: #fff; }
html[data-theme="light"] .hero-caption { color: var(--text-3); }

/* ---------- Products ---------- */
.products { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.product-grid {
  display: flex; flex-wrap: nowrap; gap: 28px;
  max-width: 1240px; margin: 0 auto;
  justify-content: safe center;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding: 22px 4px 18px;
  scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .35) transparent;
}
.product-grid::-webkit-scrollbar { height: 8px; }
.product-grid::-webkit-scrollbar-track { background: transparent; }
.product-grid::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .3); border-radius: 999px; }
.product-grid::-webkit-scrollbar-thumb:hover { background: rgba(163,171,219, .6); }
.product-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  display: flex; flex-direction: column;
  flex: 0 0 clamp(300px, 31vw, 345px); scroll-snap-align: start;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  will-change: transform;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(59,74,148,.4); }
.product-visual { position: relative; padding: 30px; background: radial-gradient(circle at 50% 30%, rgba(59,74,148,.14), transparent 70%); }
.product-img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); transition: transform .5s cubic-bezier(.22,1,.36,1); transform: scale(var(--sv, 1)) translateY(var(--svy, 0px)); }
.product-card:hover .product-img { --sv: 1.02; --svy: -2px; }
.machine-svg { width: 100%; height: auto; transition: transform .5s cubic-bezier(.22,1,.36,1); transform: scale(var(--sv, 1)) translateY(var(--svy, 0px)); }
.product-card:hover .machine-svg { --sv: 1.06; --svy: -4px; }
.product-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 30px; color: #0f172a;
  background: var(--gradient);
}
.product-360 {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; text-decoration: none;
  font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  color: #dfe3f2;
  background: linear-gradient(120deg, rgba(59,74,148,.25), rgba(74,88,168,.2));
  border: 1px solid rgba(74,88,168,.6);
  box-shadow: 0 0 0 0 rgba(74,88,168,.4);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.product-360::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid rgba(123,135,196,.4); border-top-color: #7b87c4;
  animation: navSpinRotate 1.4s linear infinite;
}
.product-360:hover { color: #fff; border-color: rgba(123,135,196,.9); transform: translateY(-2px); box-shadow: 0 0 18px rgba(74,88,168,.5); }
.product-body { padding: 8px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { color: var(--text-2); font-size: .98rem; margin-bottom: 16px; flex: 1; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.specs span {
  font-size: .78rem; color: var(--text-2);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px;
}
.btn-details {
  background: rgba(59,74,148,.1); color: var(--primary); border: 1px solid rgba(59,74,148,.25);
  padding: 12px 20px; align-self: flex-start;
}
.btn-details:hover { background: var(--primary); color: #fff; }
@media (max-width: 600px) {
  .product-grid { gap: 16px; }
  .product-card { flex-basis: min(80vw, 340px); }
  .product-visual { padding: 20px; }
  .product-body { padding: 8px 20px 24px; }
}

/* ---------- Products rail: desktop scroll buttons + phone dot indicator ---------- */
.product-rail { position: relative; max-width: 1240px; margin: 0 auto; }
.product-grid { max-width: none; margin: 0; }
.rail-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity .25s, background .25s, color .25s, border-color .25s, transform .25s;
}
.rail-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.rail-prev { left: 8px; }
.rail-next { right: 8px; }
.product-rail:not(.scrollable) .rail-btn { opacity: 0; pointer-events: none; }
.rail-btn:disabled { opacity: .3; pointer-events: none; }
.product-dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.product-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background .25s, transform .25s;
}
.product-dot.active { background: var(--primary); transform: scale(1.35); }
html[data-theme="dark"] .product-dot { background: rgba(148,163,184,.3); }
.rail-hint {
  position: absolute; left: 50%; bottom: 16px; z-index: 6;
  transform: translateX(-50%);
  display: none; align-items: center; justify-content: center; gap: 10px;
  width: max-content; max-width: 88%;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(59,74,148,.92), rgba(35,35,100,.9));
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
  pointer-events: none; white-space: nowrap;
}
.rail-hint svg { color: #fff; opacity: .95; }
.rail-hint .rh-l { animation: rhNudgeL 1.8s ease-in-out infinite; }
.rail-hint .rh-r { animation: rhNudgeR 1.8s ease-in-out infinite; }
@keyframes rhNudgeL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes rhNudgeR { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .rail-hint .rh-l, .rail-hint .rh-r { animation: none; } }
@media (hover: hover) and (pointer: fine) {
  .product-grid { cursor: grab; }
  .product-grid.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
  .product-grid.dragging .product-card { transform: none; }
}
@media (max-width: 900px) {
  .rail-btn { display: none; }
  .product-dots.on { display: flex; }
  .rail-hint.on { display: flex; }
  .product-grid {
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    padding-left: calc((100% - min(80vw, 340px)) / 2);
    padding-right: calc((100% - min(80vw, 340px)) / 2);
  }
  .product-card { flex-basis: min(80vw, 340px); scroll-snap-align: center; }
}

/* ---------- 360 Spin Viewer ---------- */
.spin { position: relative; padding: 0; overflow: hidden; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.spin-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 24% 38%, rgba(74,88,168,.07), transparent 62%),
    radial-gradient(55% 70% at 68% 82%, rgba(59,74,148,.12), transparent 60%),
    radial-gradient(45% 58% at 82% 22%, rgba(59,74,148,.13), transparent 60%);
}
.spin-shell { position: relative; z-index: 2; height: calc(100svh - var(--nav-h)); max-width: 1920px; margin: var(--nav-h) auto 0; }

/* CSS owns the geometry: the stage is a centering grid and the viewer is an
     aspect-ratio box. JS feeds --spin-ar (image ratio) + --spin-w (largest
     width that fits the stage, measured once per resize) — centering, height
     and the short-phone cap all come from CSS. No left/top pixel positioning. */
.spin-stage { position: absolute; inset: 0; right: calc(400px + clamp(14px, 2.4vw, 44px) + clamp(9px, 1.2vw, 18px)); container-type: inline-size; display: grid; place-items: center; }
.spin-viewer {
  position: relative; overflow: hidden; touch-action: pan-y; cursor: grab;
  aspect-ratio: var(--spin-ar, 16 / 9);
  width: var(--spin-w, 100%); height: auto; max-width: 100%; max-height: 100%; box-sizing: border-box;
  background:
    radial-gradient(42% 44% at 46% 42%, rgba(59,74,148,.14), transparent 70%),
    radial-gradient(38% 42% at 72% 24%, rgba(35,35,100,.08), transparent 70%),
    linear-gradient(180deg, rgba(9,13,24,.82), rgba(4,7,14,.96));
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.spin-viewer:active { cursor: grabbing; }
.spin-viewer img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* Removed the gradient cutoff mask causing the visual chin */
  -webkit-mask-image: none;
  mask-image: none;
  user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; will-change: transform;
}
.spin-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; overflow: hidden; container-type: inline-size;
}
.spin-ov {
  position: absolute; transform: translate(var(--ax, -50%), var(--ay, -50%));
  font-family: var(--font-brand);
  text-shadow: 0 2px 14px rgba(0,0,0,.65), 0 0 3px rgba(0,0,0,.55);
  white-space: pre-wrap; line-height: 1.12; letter-spacing: .01em; overflow-wrap: break-word;
}
.spin-ov.pill { padding: .16em .5em; border-radius: 999px; }
.spin-ov.sun { padding: 0; border-radius: 0; background: none; }
.spin-ov.sized { white-space: normal; }
.spin-ov-i { white-space: inherit; position: relative; z-index: 1; }

/* Flash badges: circular filleted gear (20 teeth) with a yellow inner contour */
.spin-ov.sun { display: grid; place-items: center; }
.spin-gear {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
}
.spin-ov.sun.spin-ov-blink { animation: ovBlink 1.1s steps(2, jump-none) infinite; }
.spin-ov.sun.spin-ov-pulse, .spin-ov.pill.spin-ov-pulse, .spin-ov.spin-ov-pulse { animation: ovPulse 1.3s ease-in-out infinite; }.spin-ov.sun.spin-ov-shine { overflow: hidden; }
.spin-ov.sun.spin-ov-shine .spin-gearshine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%, rgba(255,255,255,0) 37%,
    rgba(255,255,255,.16) 43%, rgba(255,255,255,.95) 49%, #fff 50%,
    rgba(255,255,255,.95) 51%, rgba(255,255,255,.16) 57%,
    rgba(255,255,255,0) 63%, rgba(255,255,255,0) 100%);
  background-size: 300% 300%;
  mix-blend-mode: screen;
  -webkit-mask-image: var(--ovmask, none); mask-image: var(--ovmask, none);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: ovShine 3.6s ease-in-out infinite;
}
@keyframes ovBlink { 0%,100% { opacity: 1 } 50% { opacity: .18 } }
@keyframes ovPulse { 0%,100% { transform: translate(var(--ax, -50%), var(--ay, -50%)) scale(1) } 50% { transform: translate(var(--ax, -50%), var(--ay, -50%)) scale(1.08) } }
@keyframes ovShine { 0% { background-position: 150% 150%; } 50%,100% { background-position: -150% -150%; } }
.spin-hero {
  position: absolute; top: calc(1.6cqw); left: calc(2.36cqw); z-index: 4;
  max-width: 59cqw;
}
.spin-hero .eyebrow { margin-bottom: calc(.84cqw); font-size: calc(1.18cqw); padding: calc(.63cqw) calc(1.26cqw); text-shadow: 0 2px 12px rgba(0,0,0,.55); }

/* Phone-only machine description ("dead space" filler) */
.spin-phone-desc { display: none; }
.spin-phone-desc[hidden] { display: none !important; }

.spin-chip {
  position: absolute; top: calc(1.6cqw); right: clamp(14px, 3vw, 36px); z-index: 4;
  font-size: calc(1.11cqw); font-weight: 700; letter-spacing: .26em; color: #a3abdb;
  padding: calc(.53cqw) calc(1.16cqw); border: 1px solid rgba(123,135,196,.45); border-radius: 999px;
  background: rgba(30,41,59,.5); backdrop-filter: blur(6px);
}
.spin-loader {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  color: var(--text-2); font-size: .95rem; background: rgba(5,8,15,.45);
  transition: opacity .4s ease, visibility .4s ease;
}
.spin-loader.hide { opacity: 0; visibility: hidden; }
.spin-controls {
  position: absolute; left: max(8px, 1.2cqw); top: 50%; transform: translateY(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: max(2px, .63cqw);
  padding: max(8px, .84cqw) max(4px, .84cqw); border-radius: 999px; box-sizing: border-box;
  background: rgba(14, 16, 20, .92);
  border: 1px solid rgba(148,163,184,.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
}
html[data-theme="light"] .spin-controls {
  background: rgba(255,255,255,.98);
  border-color: rgba(23,24,28,.16);
  box-shadow: 0 20px 52px rgba(0,0,0,.16);
}
html[data-theme="light"] .spin-sep { background: rgba(23,24,28,.16); }
html[data-theme="light"] .spin-btn { color: var(--text); background: rgba(255,255,255,.96); border-color: rgba(23,24,28,.2); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
html[data-theme="light"] .spin-btn:hover { border-color: rgba(59,74,148,.8); color: var(--text); background: rgba(255,255,255,1); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
html[data-theme="light"] .spin-hint { color: var(--text-2); }
.spin-sep { width: 2.1cqw; height: 1px; background: rgba(148,163,184,.22); margin: .42cqw 0; }
.btn.spin-btn { display: inline-flex; align-items: center; justify-content: center; gap: max(2px, .63cqw); border-radius: 999px; white-space: nowrap; font-size: max(.5rem, 1.43cqw); padding: max(2px, .84cqw) max(5px, 1.68cqw); }
.spin-btn:hover { border-color: rgba(123,135,196,.6); color: #fff; }
.btn.spin-btn:hover, .btn.spin-btn:active { transform: none; box-shadow: none; }
.spin-btn.active { background: linear-gradient(135deg, var(--primary), rgba(35,35,100,.9)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(59,74,148,.4); }
.spin-hint {
  position: absolute; bottom: max(18px, 4.2cqw); left: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--text-3); font-size: calc(1.38cqw); text-align: center; white-space: nowrap;
}

/* Model identity - short heading in the stage top-left */
.spin-name {
  margin: 0; font-size: calc(3.2cqw); font-weight: 700; line-height: 1.15;
  background: linear-gradient(120deg, #ffffff 28%, #a3abdb 60%, #7b87c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Request-a-quote trigger, tucked under the model name in the 360 hero */
.spin-quote {
  margin-top: calc(1.3cqw);
  font-size: max(.62rem, 1.5cqw); padding: max(6px, 1cqw) max(12px, 2.2cqw);
  border-radius: 999px; white-space: nowrap;
}

/* Configurator panel - glass card, vertically centered on the right edge */
.spin-config {
  position: absolute; top: 0; bottom: 0;
  right: clamp(14px, 2.4vw, 44px); width: 400px; z-index: 5;
  border-radius: 22px 10px 10px 22px; padding: 18px 20px; overflow-x: hidden; overflow-y: auto;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent;
}
/* Floating inset "pill" scrollbar — transparent track, no native arrows, only
   faint when idle, brighter when the card or the thumb itself is hovered.
   Track margin = the 22px fillet, so the thumb never reaches the rounded
   corners (the corner curve can't clip it). */
.spin-config::-webkit-scrollbar { width: 8px; }
.spin-config::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.spin-config::-webkit-scrollbar-button { display: none; }
.spin-config::-webkit-scrollbar-corner { background: transparent; }
.spin-config::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.28);
  border: 2px solid transparent; border-radius: 999px;
  background-clip: content-box;
}
.spin-config:hover::-webkit-scrollbar-thumb { background-color: rgba(148,163,184,.5); }
.spin-config::-webkit-scrollbar-thumb:hover { background-color: rgba(163,171,219,.75); }

.spin-step { padding: 9px 2px; border-top: 1px dashed rgba(148,163,184,.14); }
.spin-step:first-of-type { padding-top: 2px; border-top: 0; }
.spin-step h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: .67rem; text-transform: uppercase; letter-spacing: .22em; color: var(--text-3); font-weight: 700; }
.step-n {
  width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; font-size: .62rem; letter-spacing: 0; font-weight: 700; color: #dbe4ff;
  background: linear-gradient(135deg, rgba(59,74,148,.65), rgba(35,35,100,.65));
  box-shadow: 0 2px 10px rgba(59,74,148,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  appearance: none; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
  white-space: nowrap;
  border: 1px solid rgba(148,163,184,.22); background: rgba(255,255,255,.05);
  color: var(--text-2); padding: 7px 13px; border-radius: 999px;
  font: inherit; font-size: .88rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.choice:hover { transform: translateY(-1px); border-color: rgba(123,135,196,.55); color: #fff; box-shadow: 0 8px 20px rgba(59,74,148,.28); }
.choice.active { background: linear-gradient(135deg, rgba(59,74,148,.32), rgba(35,35,100,.32)); border-color: rgba(123,135,196,.85); color: #fff; box-shadow: 0 0 0 1px rgba(123,135,196,.4), 0 8px 24px rgba(59,74,148,.4); }
.choice-label { line-height: 1.2; white-space: nowrap; }
.choice-sub { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 500; color: var(--text-3); letter-spacing: .02em; white-space: nowrap; }
.choice.active .choice-sub { color: #c7d2fe; }
.mini-dots { display: inline-flex; gap: 3px; }
.mini-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.mini-dots.empty::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(148,163,184,.3); }

.choice.variant { padding: 6px 14px; font-size: .8rem; font-weight: 600; }
.choice.variant .choice-sub { font-size: .62rem; }
.choice.variant.active { background: linear-gradient(135deg, rgba(16,185,129,.26), rgba(59,74,148,.32)); border-color: rgba(52,211,153,.6); box-shadow: 0 0 0 1px rgba(52,211,153,.3), 0 8px 26px rgba(16,185,129,.3); }

/* Fancy dropdown for Category / Lineup / Model (many options stay compact)
   Native <select> popups are OS-painted squares — this is a custom button whose
   menu (fixed-position glass panel appended to <body>) can't be clipped by the
   configurator's scroll container or the phone drawer. */
.spin-dd { position: relative; }
.spin-dd-btn {
  appearance: none; -webkit-appearance: none; width: 100%; cursor: pointer;
  border: 1px solid rgba(148,163,184,.22); background: rgba(255,255,255,.05);
  color: #eef1f8; padding: 9px 32px 9px 14px; border-radius: var(--radius);
  font: inherit; font-size: .9rem; font-weight: 500; line-height: 1.3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.spin-dd-btn:hover { border-color: rgba(123,135,196,.5); }
.spin-dd-btn:focus-visible, .spin-dd-btn.open {
  outline: none; border-color: rgba(123,135,196,.8); box-shadow: 0 0 0 3px rgba(59,74,148,.18);
}
.spin-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spin-dd-caret {
  flex: 0 0 auto; width: 9px; height: 9px;
  border-right: 2px solid rgba(163,171,219,.85); border-bottom: 2px solid rgba(163,171,219,.85);
  transform: rotate(45deg); transition: transform .18s ease;
}
.spin-dd-btn.open .spin-dd-caret { transform: rotate(225deg); margin-top: 2px; }
.spin-dd-menu {
  position: fixed; z-index: 900; margin: 0; padding: 6px;
  min-width: 180px; max-width: min(320px, calc(100vw - 16px));
  border: 1px solid rgba(148,163,184,.24); border-radius: var(--radius);
  background: linear-gradient(172deg, rgba(23,32,52,.98), rgba(11,16,28,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  max-height: min(300px, 55vh); overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent;
}
.spin-dd-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.spin-dd-menu::-webkit-scrollbar { width: 8px; }
.spin-dd-menu::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.spin-dd-menu::-webkit-scrollbar-thumb { background: rgba(148,163,184,.28); border: 2px solid transparent; border-radius: 999px; background-clip: content-box; }
.spin-dd-menu:hover::-webkit-scrollbar-thumb { background-color: rgba(148,163,184,.5); }
.spin-dd-opt {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; background: transparent; color: #dbe2f0;
  font: inherit; font-size: .82rem; font-weight: 500; line-height: 1.3;
  padding: 9px 12px; border-radius: var(--radius);
  transition: background-color .14s ease, color .14s ease;
}
.spin-dd-opt:hover, .spin-dd-opt:focus-visible { background: rgba(59,74,148,.18); color: #fff; outline: none; }
.spin-dd-opt.active { color: #a3abdb; font-weight: 600; background: rgba(59,74,148,.14); }
.spin-dd-check { color: #7b87c4; font-size: .85rem; flex: 0 0 auto; }
.spin-dd-opt-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.swatch-group { display: flex; flex-wrap: wrap; gap: 8px; }
.big-swatch {
  appearance: none; cursor: pointer; background: transparent; border: 0; padding: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-3); font: inherit; font-size: .7rem; letter-spacing: .02em;
  transition: transform .18s ease, color .18s ease;
}
.big-swatch .blob { width: 19px; height: 19px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 3px rgba(255,255,255,.4); transition: transform .2s ease, box-shadow .2s ease; }
.big-swatch:hover .blob { transform: scale(1.1); }
.big-swatch.active { color: #fff; }
.big-swatch.active .blob { transform: scale(1.15); box-shadow: 0 0 0 2px #070d18, 0 0 0 3px var(--c, #e2e8f0), 0 8px 16px rgba(0,0,0,.5); }
.big-swatch .swatch-name { line-height: 1.1; white-space: nowrap; }

.spin-specs { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spin-specs td { padding: 6px 2px; border-bottom: 1px solid rgba(148,163,184,.08); }
.spin-specs tr:last-child td { border-bottom: 0; }
.spin-specs td:first-child { color: var(--text-3); width: 44%; white-space: nowrap; font-size: .8rem; }
.spin-specs td:last-child { color: #eef1f8; font-weight: 500; text-align: right; }

/* Let the section breathe into the next one */
.spin::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }

/* ---------- Phone mode (767px, coarse pointer): 9:16 portrait photo + slide-out drawer configurator ---------- */
.spin.phone .spin-config { display: none; }
.spin.phone .spin-stage { right: 0; }
.spin.phone .spin-model-btn { display: inline-flex; }
.spin-model-btn {
  display: none; position: absolute; bottom: max(56px, 9.5cqw); left: 50%; transform: translateX(-50%);
  z-index: 4; align-items: center; gap: 6px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(59,74,148,.85), rgba(35,35,100,.85));
  border: 1px solid rgba(123,135,196,.6); color: #fff; font-weight: 600; padding: 9px 20px;
  box-shadow: 0 8px 24px rgba(59,74,148,.45);
}
.spin-model-btn:hover, .spin-model-btn:active { transform: translateX(-50%); }
.spin-backdrop {
  position: fixed; inset: 0; z-index: 600; background: rgba(4,7,14,.6);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.spin-backdrop.show { opacity: 1; visibility: visible; }
.spin-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 420px);
  z-index: 601; display: none; flex-direction: column;
  background: linear-gradient(165deg, rgba(17,25,45,.98), rgba(9,13,24,.98));
  border-left: 1px solid rgba(148,163,184,.18);
  box-shadow: -30px 0 80px rgba(0,0,0,.55);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.spin-drawer.open { transform: translateX(0); }
.spin-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px 10px; color: #fff; font-size: 1.02rem;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.spin-drawer-close {
  border: 1px solid rgba(148,163,184,.3); background: none; color: var(--text-2);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .85rem; line-height: 1; flex: 0 0 auto;
}
.spin-drawer-close:hover { color: #fff; border-color: rgba(123,135,196,.6); }
.spin-drawer-steps { flex: 1; overflow-y: auto; padding: 8px 18px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent; }
.spin-drawer-steps::-webkit-scrollbar { width: 8px; }
.spin-drawer-steps::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.spin-drawer-steps::-webkit-scrollbar-button { display: none; }
.spin-drawer-steps::-webkit-scrollbar-thumb { background: rgba(148,163,184,.28); border: 2px solid transparent; border-radius: 999px; background-clip: content-box; }
.spin-drawer-steps:hover::-webkit-scrollbar-thumb { background-color: rgba(148,163,184,.5); }
.spin-drawer-foot { padding: 12px 18px 20px; border-top: 1px solid rgba(148,163,184,.14); }
.spin-drawer-ok { width: 100%; }

@media (max-width: 1100px) {
  /* Stacked mode: top gap under the nav equals the side gaps (same gutter).
     Padding (not margin) so it can't collapse into the shell's 72px nav margin. */
  .spin:not(.phone) .spin-shell { height: auto; min-height: 0; padding-top: clamp(8px, 2vw, 28px); }
  .spin-stage { position: relative; right: auto; width: calc(100% - 2 * clamp(8px, 2vw, 28px)); margin: 0 auto; aspect-ratio: 16 / 9; height: auto; }
  .spin.phone .spin-stage { aspect-ratio: 9 / 16; }
  .spin-controls { top: auto; bottom: max(10px, 1.4cqw); transform: none; left: max(6px, 1.2cqw); }
  .spin-hint { bottom: max(8px, 2cqw); }
  .spin-config { position: relative; top: auto; bottom: auto; right: auto; width: 400px; max-width: 100%; margin: 16px auto 0; border-radius: 18px 8px 8px 18px; }

  /* Phone only: the 360 view fills the viewport below the nav. The portrait
     9:16 viewer is sized by WIDTH (viewport - 10px, 5px each side) and the
     height derived from it (width * 16/9). It is centered BOTH ways within the
     space below the nav — so the top/bottom gaps are equal and can collapse
     to zero when there isn't enough room. */
  .spin.phone .spin-shell { height: calc(100svh - var(--nav-h)); min-height: 0; }
  .spin.phone { padding: 0; } /* full-bleed width: the phone shell must span the whole viewport */
  .spin.phone .spin-stage { width: 100%; aspect-ratio: auto; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2cqw, 18px); }
  .spin.phone .spin-viewer {
    position: relative; inset: auto; margin: 0;
    /* Largest 9:16 that fits BOTH the phone width and the height below the
       nav: width wins on tall phones (exact 430x764.4 @ 440x956, 5px sides),
       height wins on short phones so the viewer never clips. */
    width: min(calc(100% - 10px), calc((100svh - var(--nav-h) - 10px) * 9 / 16));
    aspect-ratio: 9 / 16;
    height: auto;
    flex: 0 0 auto;
  }
  .spin.phone .spin-drawer { display: flex; top: var(--nav-h); height: calc(100svh - var(--nav-h)); }
  .spin-phone-desc {
    display: grid; place-items: center; position: relative; left: auto; transform: none;
    bottom: auto; max-width: 84%; z-index: 3; margin: 0 auto; pointer-events: none; flex: 0 0 auto;
  }
  .spin-phone-desc[hidden] { display: none; }
  .spin-phone-desc {
    text-align: center; white-space: pre-wrap; font-size: max(.8rem, 2.9cqw); line-height: 1.5; color: var(--text-2);
    padding: max(8px, 1.4cqw) max(16px, 2.6cqw); border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(15,23,42,.82), rgba(15,23,42,.42));
    border: 1px solid rgba(148,163,184,.2); backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  }
}
@media (max-width: 600px) {
  .spin-controls { gap: max(3px, .7cqw); padding: max(8px, .9cqw) max(6px, .9cqw); left: max(6px, 1.4cqw); }
  .btn.spin-btn { font-size: max(.78rem, 3.05cqw); padding: max(6px, 1.1cqw) max(10px, 2cqw); }
  .spin-sep { width: 2cqw; margin: .5cqw 0; }
  .spin-hint { font-size: calc(3cqw); color: var(--text-2); bottom: max(10px, 2.6cqw); white-space: normal; line-height: 1.35; max-width: 92%; }
.spin-chip { display: none; }
}
@media (max-width: 768px) {
  .spin-shell {
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
  }
  .spin.phone .spin-viewer {
    border-radius: clamp(14px, 5cqw, 22px); /* filleted window, matching the desktop 22px */
    border: none;
    }
}
/* ---------- About ---------- */
.about { background: var(--bg); }
.about-wrap { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.about-visual { position: relative; min-height: 420px; }
.about-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,74,148,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(59,74,148,.1) 1px, transparent 1px);
  background-size: 40px 40px; border-radius: var(--radius);
}
.about-hero-text {
  position: relative; background: rgba(15,23,42,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; max-width: 440px;
  margin: 70px auto 0; box-shadow: var(--shadow);
}
.about-hero-text h3 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; margin: 16px 0 18px; }
.about-hero-text p { color: var(--text-2); font-size: .98rem; }
.about-card {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: .85rem;
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.card-1 { background: linear-gradient(135deg, rgba(59,74,148,.8), rgba(35,35,100,.8)); top: 0; left: 24px; animation: float 6s ease-in-out infinite; }
.card-2 { background: linear-gradient(135deg, rgba(74,88,168,.8), rgba(59,74,148,.8)); bottom: 20px; right: 10px; animation: float 7s ease-in-out infinite reverse; }
.card-3 {
  background: linear-gradient(135deg, rgba(34,197,94,.85), rgba(16,185,129,.85));
  top: 40%; right: 24px; cursor: pointer; font-family: var(--font-main);
  border: 1px solid rgba(255,255,255,.18); animation: float 6.5s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-3:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 48px rgba(16,185,129,.35); }
.card-3:focus-visible { outline: 2px solid #34d399; outline-offset: 3px; }
.card-3 svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }

.legal-strip {
  display: flex; align-items: center; gap: 18px;
  margin-top: 44px; padding: 22px 28px;
  background: rgba(7,11,20,.5); border: 1px solid var(--border);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.legal-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(34,197,94,.1), transparent 40%);
}
.legal-seal {
  flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px;
  color: #34d399; border: 1px solid rgba(52,211,153,.4);
  background: rgba(34,197,94,.12); border-radius: 50%;
}
.legal-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.legal-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.legal-text span { color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.btn-legal {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; padding: 12px 22px; font-size: .9rem;
  background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(16,185,129,.22));
  border: 1px solid rgba(52,211,153,.45); border-radius: var(--radius);
  color: #6ee7b7; font-weight: 600; cursor: pointer;
  transition: all .25s ease; font-family: var(--font-main);
}
.btn-legal:hover { background: linear-gradient(135deg, rgba(34,197,94,.35), rgba(16,185,129,.35)); color: #a7f3d0; transform: translateY(-2px); }
.btn-legal:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }

.lb-cert .lb-img { box-shadow: 0 30px 90px rgba(0,0,0,.65); }

.about-tabs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.tab-buttons { display: flex; gap: 6px; padding: 4px; background: rgba(7,11,20,.5); border-radius: var(--radius); margin-bottom: 20px; }
.tab-btn {
  flex: 1; background: none; border: none; color: var(--text-2); font-family: var(--font-main);
  font-weight: 600; font-size: .95rem; padding: 12px; border-radius: var(--radius); cursor: pointer; transition: all .25s;
}
.tab-btn.active { background: var(--gradient); color: #fff; }
.tab-panels { padding: 12px 16px 20px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from{opacity:0; transform: translateY(12px)} to{opacity:1; transform:none} }
.tab-panel h4 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }
.tab-panel p { color: var(--text-2); }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-item { background: rgba(7,11,20,.5); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.value-item .v-icon { font-size: 1.4rem; margin-bottom: 6px; }
.value-item strong { font-size: .95rem; }
.value-item small { color: var(--text-3); font-size: .82rem; }

/* ---------- Stats ---------- */
.stats { background: var(--bg-2); text-align: center; overflow: hidden; position: relative; }
.stats-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(59,74,148,.16), transparent 60%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-2); font-size: .98rem; }

/* ---------- CTA ---------- */
.cta { padding: 40px 24px; }
.cta-inner {
  max-width: 1080px; margin: 0 auto; text-align: center;
  background: var(--gradient-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 72px 32px;
  background-image: linear-gradient(rgba(59,74,148,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(59,74,148,.1) 1px, transparent 1px), var(--gradient-soft);
  background-size: 44px 44px, 44px 44px, cover;
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); margin: 18px 0; }
.cta-inner p { color: var(--text-2); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Animated marquee band ---------- */
.marquee {
  overflow: hidden; position: relative; padding: 22px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(35,35,100,.06), rgba(35,35,100,.08), rgba(35,35,100,.06)), var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  user-select: none;
}
.marquee-track {
  display: flex; width: max-content; animation: marqueeScroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee-group span {
  font-family: var(--font-display); font-size: clamp(.98rem, 1.7vw, 1.25rem);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
}
.marquee-group i {
  font-style: normal; font-size: .85rem;
  background: linear-gradient(135deg, rgba(59,74,148,.88), rgba(74,88,168,.88));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: marqueeSparkle 1.8s ease-in-out infinite;
}
.marquee-group i:nth-child(even) { animation-delay: .5s; }
@keyframes marqueeScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes marqueeSparkle { 0%,100% { opacity: .4 } 50% { opacity: 1 } }
html[data-theme="light"] .marquee { background: linear-gradient(90deg, rgba(35,35,100,.08), rgba(35,35,100,.09), rgba(35,35,100,.08)), var(--bg); }
html[data-theme="light"] .marquee-group span { color: #334155; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@media (max-width: 560px) {
  .marquee-group { gap: 20px; padding-right: 20px; }
  .marquee-group span { letter-spacing: .08em; }
}
.btn-cta-spin {
  background: linear-gradient(120deg, rgba(59,74,148,.22), rgba(74,88,168,.18));
  color: #dfe3f2; border: 1px solid rgba(74,88,168,.55);
  box-shadow: 0 0 0 0 rgba(74,88,168,.35);
  animation: spinBtnGlow 2.8s ease-in-out infinite;
}
.btn-cta-spin:hover { color: #fff; border-color: rgba(123,135,196,.9); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.contact-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-info p { color: var(--text-2); margin: 18px 0 32px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.c-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: var(--gradient-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.2rem;
}
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list span { color: var(--text-2); }
#contactPhones { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
#contactPhones .phone-chip { color: var(--text-2); text-decoration: none; font-size: .93rem; transition: color .2s; width: fit-content; }
#contactPhones .phone-chip:hover { color: var(--accent); }
.clickable { cursor: pointer; position: relative; }
.clickable:hover { color: var(--accent); }
.clickable::after { content: 'Copy'; position: absolute; left: 0; top: -20px; font-size: .7rem; background: var(--surface); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; opacity: 0; transition: opacity .2s; }
.clickable:hover::after { opacity: 1; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-main); font-size: .95rem;
  padding: 13px 16px; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,74,148,.18);
}
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }
.form-note { margin-top: 16px; color: #34d399; font-size: .92rem; text-align: center; }
/* Contact subject dropdown — reuse the 360 viewer's fancy .spin-dd styling */
#subjectDd .spin-dd-btn { padding: 13px 36px 13px 16px; font-size: .95rem; border-radius: var(--radius); }
.spin-dd-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Contact: Google Map ---------- */
.contact-map { max-width: 1080px; margin: 64px auto 0; }
.map-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.map-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.c-map-pin {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: var(--gradient-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.15rem;
}
.map-title strong { display: block; }
.map-title span { color: var(--text-2); font-size: .92rem; }
.map-open {
  margin-left: auto; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.map-open:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,88,168,.15); }
.map-frame { height: 420px; background: var(--bg-3); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
html[data-theme="light"] .map-frame { background: #e9edf5; }
.footer-dir {
  color: var(--accent); text-decoration: none; font-size: .93rem; font-weight: 600;
  width: fit-content; transition: color .2s, text-decoration .2s;
}
.footer-dir:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) {
  .contact-map { margin-top: 40px; }
  .map-head { flex-wrap: wrap; }
  .map-open { margin-left: 0; }
  .map-frame { height: 320px; }
}

    /* ---------- Newsletter band (global, above footer) ---------- */
    .nl-section {
      position: relative; padding: 48px 24px 96px; overflow: hidden;
      background: linear-gradient(180deg, var(--bg-2), var(--bg));
    }
    .nl-card {
      position: relative; max-width: 940px; margin: 0 auto; text-align: center;
      background:
        radial-gradient(58% 70% at 12% 0%, rgba(59,74,148,.14), transparent 62%),
        radial-gradient(52% 70% at 92% 100%, rgba(35,35,100,.16), transparent 60%),
        linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
      border: 1px solid var(--border); border-radius: var(--radius);
      box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
      padding: clamp(24px, 3.2vw, 40px) clamp(22px, 5vw, 64px);
      overflow: hidden;
    }
    .nl-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
      background: radial-gradient(40% 45% at 50% 0%, rgba(74,88,168,.08), transparent 70%); }
    .nl-orbit { position: absolute; right: -140px; top: -180px; width: 420px; height: 420px; border: 1px dashed rgba(123,135,196,.22); border-radius: 50%; pointer-events: none; animation: spinSlow 40s linear infinite; }
    .nl-orbit::before, .nl-orbit::after { content: ''; position: absolute; border-radius: 50%; }
    .nl-orbit::before { inset: 64px; border: 1px solid rgba(74,88,168,.14); }
    .nl-orbit::after { inset: 128px; border: 1px dashed rgba(148,163,184,.12); }
    @keyframes spinSlow { to { transform: rotate(360deg); } }
    .nl-card > * { position: relative; z-index: 1; }
    .nl-card .nl-glow, .nl-card .nl-orbit { position: absolute; }
    .nl-eyebrow {
      display: inline-block; padding: 7px 18px; border-radius: 999px;
      border: 1px solid rgba(123,135,196,.3); background: rgba(123,135,196,.08);
      font-size: .74rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
      color: #a3abdb;
    }
    .nl-title { font-family: var(--font-display); font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 22px auto 16px; max-width: 620px; }
    .nl-sub { color: var(--text-2); font-size: 1.08rem; max-width: 560px; margin: 0 auto; }
    .nl-form { margin: 40px auto 0; max-width: 640px; }
    .nl-input {
      display: flex; align-items: center; gap: 8px;
      background: rgba(2,6,23,.62); border: 1px solid var(--border);
      border-radius: 999px; padding: 7px 7px 7px 0;
      transition: border-color .25s, box-shadow .25s;
    }
    .nl-input:focus-within { border-color: rgba(123,135,196,.7); box-shadow: 0 0 0 4px rgba(59,74,148,.16), 0 8px 34px rgba(0,0,0,.35); }
    .nl-ico { padding-left: 22px; color: var(--primary); font-size: 1.05rem; font-weight: 800; }
    .nl-input input {
      flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0;
      color: var(--text); font-family: var(--font-main); font-size: 1rem; padding: 13px 12px;
    }
    .nl-input input::placeholder { color: var(--text-3); }
    .nl-btn {
      flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
      background: var(--gradient); color: #fff; font-weight: 600; border-radius: 999px;
      padding: 13px 28px; box-shadow: 0 8px 26px rgba(59,74,148,.38);
      transition: transform .2s, box-shadow .2s, filter .2s; border: 0; cursor: pointer; font-family: var(--font-main); font-size: .95rem;
    }
    .nl-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(59,74,148,.5); filter: brightness(1.06); }
    .nl-btn:active { transform: translateY(0); }
    .nl-btn.loading { opacity: .75; pointer-events: none; }
    .nl-err { color: #f87171; font-size: .9rem; margin-top: 12px; }
    .nl-sub-sub { color: var(--text-3); font-size: .83rem; margin-top: 13px; }
    .nl-verify { margin: 26px auto 0; max-width: 560px; animation: nlPop .5s cubic-bezier(.22,1,.36,1) both; }
    .nl-mail-ico {
      width: 62px; height: 62px; margin: 0 auto; border-radius: 50%;
      display: grid; place-items: center; color: #7b87c4;
      background: rgba(74,88,168,.1); border: 1px solid rgba(74,88,168,.35);
      box-shadow: 0 0 0 8px rgba(74,88,168,.07);
    }
    .nl-v-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-top: 18px; }
    .nl-v-sub { color: var(--text-2); font-size: .98rem; line-height: 1.55; margin: 6px auto 0; max-width: 430px; }
    .nl-v-sub strong { color: var(--text); }
    .nl-v-email { color: var(--accent); font-weight: 600; word-break: break-all; }
    .nl-code-form { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
    .nl-code-form input {
      width: 184px; background: rgba(2,6,23,.62); border: 1px solid var(--border); border-radius: 999px;
      color: var(--text); font-family: var(--font-main); font-size: 1.12rem; letter-spacing: .34em;
      text-align: center; padding: 12px 10px; outline: 0; transition: border-color .25s, box-shadow .25s;
    }
    .nl-code-form input:focus { border-color: rgba(123,135,196,.7); box-shadow: 0 0 0 4px rgba(59,74,148,.16); }
    .nl-v-err { color: #f87171; font-size: .88rem; margin-top: 12px; }
    .nl-v-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
    .nl-dot { color: var(--text-3); }
    .nl-link {
      background: none; border: 0; cursor: pointer; color: var(--accent);
      font-family: var(--font-main); font-size: .88rem; text-decoration: underline;
      text-underline-offset: 3px; transition: color .2s, opacity .2s;
    }
    .nl-link:hover { color: var(--primary); }
    .nl-link.loading { opacity: .6; pointer-events: none; }
    .nl-success { margin-top: 14px; }
    .nl-check {
      width: 62px; height: 62px; margin: 0 auto; border-radius: 50%;
      display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: #fff;
      background: var(--gradient); box-shadow: 0 10px 34px rgba(52,211,153,.35), 0 0 0 8px rgba(52,211,153,.12);
      animation: nlPop .55s cubic-bezier(.22,1,.36,1) both;
    }
    @keyframes nlPop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
    .nl-ok-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 20px; }
    .nl-ok-sub { color: var(--text-2); font-size: .98rem; margin-top: 4px; }
    .nl-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; }
    .nl-perks span { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: .86rem; }
    .nl-tick { color: #34d399; font-weight: 800; }
    .footer-nl-link { cursor: pointer; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-wrap { width: 100%; padding: 0 clamp(16px, 2.4vw, 40px); box-sizing: border-box; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { color: var(--text-3); margin-top: 18px; max-width: 300px; font-size: .92rem; }
.footer h4 { font-family: var(--font-display); margin-bottom: 18px; font-size: 1.05rem; }
.footer-links, .footer-contact, #footerProducts { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact span { color: var(--text-3); text-decoration: none; font-size: .93rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-links .footer-360 { color: var(--accent); font-weight: 600; }
#footerPhones a.phone-chip { color: var(--text-3); text-decoration: none; font-size: .93rem; transition: color .2s; }
#footerPhones a.phone-chip:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-2); transition: all .25s;
}
.socials a:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px clamp(16px, 2.4vw, 40px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-3); font-size: .85rem;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(3,7,14,.8); backdrop-filter: blur(6px); }
.modal-content {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px 10px 10px 22px; max-width: 860px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; overflow-x: hidden; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent;
  box-shadow: var(--shadow); transform: scale(.92) translateY(20px); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.modal.open .modal-content { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 10px; border: none; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--text); font-size: 1.6rem; line-height: 1;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--primary); transform: rotate(90deg); }
.modal-body { display: flex; min-height: 0; }
.modal-visual {
  flex: 0 0 45%; background: radial-gradient(circle at 50% 40%, rgba(59,74,148,.16), transparent 70%);
  padding: 30px; display: grid; place-items: center; min-height: 0; overflow: hidden;
}
.modal-visual svg { width: 100%; }
.modal-visual .product-img { width: 100%; height: 100%; object-fit: contain; }
.modal-info {
  flex: 1 1 auto; min-height: 0; padding: 40px 36px;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent;
}
/* Floating inset "pill" scrollbar for the product-details modal — same as the
   360° configurator panel: transparent track, no native arrows, faint when idle,
   brighter on card hover / thumb hover, thumb inset so the 22px fillet can't clip it. */
.modal-info::-webkit-scrollbar { width: 8px; }
.modal-info::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.modal-info::-webkit-scrollbar-button { display: none; }
.modal-info::-webkit-scrollbar-corner { background: transparent; }
.modal-info::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.28);
  border: 2px solid transparent; border-radius: 999px;
  background-clip: content-box;
}
.modal-info:hover::-webkit-scrollbar-thumb { background-color: rgba(148,163,184,.5); }
.modal-info::-webkit-scrollbar-thumb:hover { background-color: rgba(163,171,219,.75); }
html[data-theme="light"] .modal-info { scrollbar-color: rgba(15,23,42,.28) transparent; }
html[data-theme="light"] .modal-info::-webkit-scrollbar-thumb { background-color: rgba(15,23,42,.22); }
html[data-theme="light"] .modal-info:hover::-webkit-scrollbar-thumb { background-color: rgba(15,23,42,.4); }
html[data-theme="light"] .modal-info::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }
.modal-info h3 { font-family: var(--font-display); font-size: 2rem; margin: 14px 0 12px; }
.modal-info > p { color: var(--text-2); margin-bottom: 24px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 8px; font-size: .93rem; }
.spec-table td:first-child { color: var(--text-3); width: 45%; }
.spec-table td:last-child { color: var(--text); text-align: right; font-weight: 500; }
.modal-actions { display: flex; gap: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 120px); z-index: 500;
  background: var(--surface); border: 1px solid rgba(52,211,153,.4); color: #34d399;
  padding: 14px 26px; border-radius: var(--radius); font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.22,1,.36,1); white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .modal-body { flex-direction: column; }
  .modal-visual { flex: none; max-height: 260px; position: static; }
  .card-3 { top: 32px; right: 54px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; gap: 4px; padding: 20px 24px 28px;
    background: rgba(7, 11, 20, 0.98); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s ease; 
    z-index: 9999; /* Ensures it sits cleanly on top of everything */
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  }
  .nav-links.open { transform: none; }
  .nav-link { padding: 14px; font-size: 1.1rem; width: 100%; display: block; }
  .nav-spin { display: inline-flex; width: auto; margin: 4px 0 8px; padding: 10px 20px 10px 16px !important; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .section { padding: 80px 20px; }
  .nl-section { padding: 36px 18px 72px; }
  .nl-perks { gap: 10px 18px; }
  .nl-code-form { flex-direction: column; align-items: center; }
  .nl-code-form input { width: min(260px, 100%); }
  .nl-v-actions { flex-wrap: wrap; }
  .legal-strip { flex-direction: column; text-align: center; padding: 24px 20px; gap: 14px; }
  .legal-text span { font-size: .86rem; }
  .btn-legal { margin-left: 0; }
}

@media (max-width: 520px) {
  .footer-wrap { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nl-input { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .nl-ico { display: none; }
  .nl-input input { flex-basis: calc(100% - 12px); text-align: center; padding: 12px 6px; }
  .nl-btn { width: 100%; justify-content: center; padding: 15px; }
  .card-3 { display: none; }
}

/* ============================================================
   CONFIGURATOR (3D Machine Selector)
   ============================================================ */
.configurator {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 64px;
  box-shadow: var(--shadow);
  animation: fadeUp .4s ease;
}
.configurator.open { display: block; }

.config-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb {
  background: none; border: none; color: var(--text-2); cursor: pointer;
  font-family: var(--font-main); font-size: .9rem; font-weight: 500; padding: 4px 8px;
  border-radius: 6px; transition: color .2s;
}
.crumb:hover:not(:disabled) { color: var(--accent); }
.crumb:disabled { cursor: default; color: var(--text); }
.crumb-sep { color: var(--text-3); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

.config-step h4.step-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; }

.config-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.config-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--text); font-family: var(--font-main);
  transition: transform .25s, border-color .25s, background .25s;
}
.config-card:hover {
  transform: translateY(-4px); border-color: var(--primary);
  background: linear-gradient(135deg, rgba(59,74,148,.1), rgba(35,35,100,.1));
}
.config-card .cc-icon { font-size: 1.8rem; }
.config-card strong { font-size: 1.05rem; }
.config-card small { color: var(--text-3); font-size: .85rem; line-height: 1.4; }

/* Configurator open badge */
.configurator-open {
  text-align: center; padding: 40px 20px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--gradient-soft);
  max-width: 640px; margin: 0 auto 64px;
}
.configurator-open p { color: var(--text-2); margin-bottom: 22px; font-size: 1.05rem; }

/* ---------- 3D Viewer layout ---------- */
.viewer-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch;
}
.viewer-stage {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(59,74,148,.12), var(--bg));
  display: flex; flex-direction: column; min-height: 460px;
}
.viewer-hintbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; color: var(--text-3); font-size: .8rem; flex-wrap: wrap;
}
.viewer-hintbar span { white-space: nowrap; }
.viewer-hintbar i { font-style: normal; color: var(--text-3); opacity: .5; }

/* Backdrop (environment) toggle chip */
.backdrop-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; padding: 5px 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--text-2); font-family: var(--font-main); font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all .25s; white-space: nowrap;
}
.backdrop-chip .eyes { font-size: .85rem; line-height: 1; }
.backdrop-chip:hover:not(.active) { border-color: var(--primary); color: #fff; }
.backdrop-chip.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(59,74,148,.35);
}

.viewer-canvas-wrap { position: relative; flex: 1; min-height: 400px; }
.viewer-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.viewer-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-2); font-size: .9rem; font-weight: 500;
  pointer-events: none; z-index: 2;
}

/* ---------- View Cube (software-style orientation widget) ---------- */
.viewcube {
  --rx: 0deg; --ry: 0deg;
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 64px; height: 64px; cursor: pointer;
  transform-style: preserve-3d;
  perspective: 400px;
  opacity: .85; transition: opacity .3s;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.viewcube:hover, .viewcube.hovered { opacity: 1; }
.viewcube-face {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: var(--text);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: background .2s, color .2s, border-color .2s;
}
.viewcube-face:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* cube assembly */
.viewcube-face[data-view="front"]  { transform: rotateY(0deg)   translateZ(32px); }
.viewcube-face[data-view="back"]   { transform: rotateY(180deg) translateZ(32px); }
.viewcube-face[data-view="right"]  { transform: rotateY(90deg)  translateZ(32px); }
.viewcube-face[data-view="left"]   { transform: rotateY(-90deg) translateZ(32px); }
.viewcube-face[data-view="top"]    { transform: rotateX(90deg)  translateZ(32px); }
.viewcube-face[data-view="bottom"] { transform: rotateX(-90deg) translateZ(32px); }
/* the wrapper rotates with the camera */
.viewcube > .viewcube-face { transform-style: preserve-3d; }
.viewcube-core {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.viewcube-core span {
  font-size: 9px; letter-spacing: .14em; color: var(--accent);
  background: rgba(7, 11, 20, 0.7);
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}

.viewer-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.viewer-info h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; }
.viewer-info p { color: var(--text-3); font-size: .85rem; }

/* ---------- Feature panel ---------- */
.feature-panel {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: var(--bg); overflow-y: auto; max-height: 560px;
}
.feature-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 18px; }
.feature-group { margin-bottom: 22px; }
.feature-group .group-head {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3); margin-bottom: 12px; font-weight: 600;
}
.part-row { margin-bottom: 8px; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 0; cursor: pointer; font-size: .9rem;
}
.toggle-row.disabled { opacity: .45; cursor: not-allowed; }
.toggle-row span:first-child { color: var(--text); }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer; background: #334155;
  border-radius: 24px; transition: background .3s;
}
.slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #e2e8f0; border-radius: 50%; transition: transform .3s;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, border-color .2s;
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }

/* Environment rotation range slider */
.range-row {
  display: flex; flex-direction: column; gap: 10px;
}
.range-row > span { font-size: .9rem; color: var(--text); }
.range-row > output {
  align-self: flex-end; font-size: .78rem; color: var(--accent);
  font-weight: 600; margin-top: -6px;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(59,74,148,.4), rgba(35,35,100,.4));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient); border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient); border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab;
}

.mini-spec { width: 100%; border-collapse: collapse; }
.mini-spec tr { border-bottom: 1px solid var(--border); }
.mini-spec td { padding: 9px 4px; font-size: .88rem; }
.mini-spec td:first-child { color: var(--text-3); }
.mini-spec td:last-child { text-align: right; color: var(--text); font-weight: 500; }

@media (max-width: 900px) {
  .viewer-layout { grid-template-columns: 1fr; }
  .feature-panel { max-height: none; }
}

/* Fullscreen canvas adjustments */
.viewer-canvas-wrap:fullscreen { background: var(--bg); }
.viewer-canvas-wrap:fullscreen canvas { width: 100vw; height: 100vh; }
@media (max-width: 520px) {
  .configurator { padding: 14px; }
  .viewer-layout { gap: 12px; }
}

/* ============================================================
   SPA pages — one .page per route, shown via .active
   ============================================================ */
.page { display: none; }
.page.active { display: block; animation: pageIn .45s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Product-card actions row: Details + 360° link */
.product-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spin-link { border: 1px solid var(--border); color: var(--text-2); }
.spin-link:hover { color: #fff; }

/* Pages with a full-viewport hero keep their minimum height */
.hero, .spin { min-height: 100vh; }

/* ============ News / Amix Bulletin page ============ */
.news-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.news-head p { color: var(--text-2, #9fb0c8); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: clamp(16px, 2vw, 26px); }
.news-card { position: relative; display: flex; flex-direction: column; background: rgba(15, 24, 44, .55); border: 1px solid rgba(148, 163, 184, .12); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(2, 6, 23, .45); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.news-card:hover { transform: translateY(-6px); border-color: rgba(123,135,196, .35); box-shadow: 0 26px 54px rgba(2, 6, 23, .55); }
.news-media { position: relative; }
.news-poster { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.news-poster img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-count { position: absolute; right: 10px; bottom: 10px; background: rgba(2, 6, 23, .72); color: #e2e8f0; font-size: .72rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.news-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.news-thumb { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; }
.news-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.news-more { display: grid; place-items: center; background: rgba(123,135,196, .12); color: #c9cee8; font-weight: 700; font-size: .85rem; border-radius: var(--radius); }
.news-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-top: 4px; }
.news-vid { position: relative; padding: 0; border: 0; background: #06090f; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.news-vid video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s, transform .25s; }
.news-vid:hover video { opacity: 1; transform: scale(1.03); }
.news-vid-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(123,135,196, .85); color: #0f1236; display: grid; place-items: center; font-size: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); transition: transform .25s, background .25s; }
.news-vid:hover .news-vid-play { transform: translate(-50%, -50%) scale(1.12); background: #7b87c4; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2, #9fb0c8); }
.news-title { font-family: var(--font-main); font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.news-desc { color: var(--text-2, #9fb0c8); font-size: .9rem; line-height: 1.6; }
.news-empty { padding: 40px 0; text-align: center; color: var(--text-2, #9fb0c8); }
.news-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 clamp(18px, 2.4vw, 26px); }
.news-filter-count { margin: 0; font-size: .9rem; color: var(--text-2, #9fb0c8); }
.news-filter {
  min-height: 42px; padding: 0 38px 0 14px;
  border: 1px solid rgba(148, 163, 184, .3); border-radius: var(--radius);
  background: rgba(15, 24, 44, .55) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb0c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 14px center;
  color: var(--text, #fff); font-size: .92rem; font-family: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.news-filter:hover, .news-filter:focus-visible { border-color: rgba(123,135,196, .55); outline: none; box-shadow: 0 0 0 3px rgba(123,135,196, .12); }
html[data-theme='light'] .news-filter { background-color: #fff; border-color: rgba(2, 6, 23, .16); color: #0f172a; }
.news-pager-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: clamp(26px, 3vw, 40px); }
.news-pager-row[hidden] { display: none; }
.news-pageinfo { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px; margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: var(--text-3, #64748b); }
.news-pageinfo .pi-cur { font-size: 1.06rem; font-weight: 800; line-height: 1; color: var(--accent, #8e99db); }
.news-pageinfo .pi-tot { font-weight: 700; color: var(--text-2, #9fb0c8); }
.news-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.news-pager[hidden] { display: none; }
.news-page {
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .25); border-radius: var(--radius);
  background: rgba(15, 24, 44, .5); color: var(--text-2, #9fb0c8);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.news-page:hover:not(:disabled) { border-color: rgba(123,135,196, .55); color: #fff; transform: translateY(-1px); }
.news-page.on { background: var(--gradient, linear-gradient(120deg, #3b4a94, #232364)); color: #fff; border-color: transparent; }
.news-page:disabled { opacity: .35; cursor: not-allowed; }
.news-page.nav { font-size: 1.1rem; line-height: 1; }
.news-dots { color: var(--text-3, #64748b); padding: 0 4px; }

/* ============ News photo lightbox ============ */
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .9); backdrop-filter: blur(6px); }
.lb-img { position: relative; max-width: min(86vw, 1200px); max-height: 82vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 18px; right: 22px; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(148, 163, 184, .35); background: rgba(15, 24, 44, .6); color: #fff; font-size: 20px; border-radius: 50%; cursor: pointer; }
.lb-close:hover { border-color: rgba(248, 113, 113, .6); color: #fca5a5; }
.lb-arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; transform: translateY(-50%); border: 1px solid rgba(148, 163, 184, .35); background: rgba(15, 24, 44, .6); color: #fff; font-size: 24px; border-radius: 50%; cursor: pointer; }
.lb-arrow:hover { border-color: rgba(123,135,196, .6); color: #c9cee8; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-cap { position: absolute; bottom: 22px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 6px 14px; font-size: .82rem; font-variant-numeric: tabular-nums; color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .2); background: rgba(15, 24, 44, .6); border-radius: 999px; }
.lb-vid { position: relative; display: block; max-width: min(86vw, 1200px); max-height: 82vh; border-radius: var(--radius); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-vid[hidden] { display: none; }
@media (max-width: 640px) {
  .lb-arrow { width: 38px; height: 38px; font-size: 20px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-width: 94vw; }
  .lb-vid { max-width: 94vw; }
}

/* News media lightbox — image auto-hide when a video is showing */
.lb-img[hidden] { display: none; }
/* ============================================================
   THEME — the industrial light palette is DEFAULT. The base dark
   materials above stay; the light scoped rules re-tune them for a
   paper-light page, the dark scoped rules restore dark-glass, and
   the 360° stage chrome + industrial accents are constant in both.
   ============================================================ */

/* ---------- Light (default) ---------- */
html[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-2: #eef0ec;
  --bg-3: #e6e8e2;
  --surface: #ffffff;
  --border: rgba(23, 24, 28, 0.10);
  --text: #1a1b1e;
  --text-2: #565b66;
  --text-3: #8a8f98;
  --primary: #3b4a94;
  --primary-2: #232364;
  --accent: #3b4a94;
  --gradient: linear-gradient(135deg, rgba(59,74,148,.88) 0%, rgba(35,35,100,.85) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59,74,148,.08), rgba(59,74,148,.06));
  --radius: 6px;
  --radius-sm: 6px;
  --shadow: 0 20px 48px rgba(0,0,0,.08);
  --shadow-lg: 0 34px 90px rgba(0,0,0,.12);
}

/* Scrollbar + selection + cursor */
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9ccd3; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--primary); }
html[data-theme="light"] ::selection { background: rgba(59,74,148,.24); color: #fff; }
html[data-theme="light"] .cursor-ring { border-color: rgba(59,74,148,.45); }
html[data-theme="light"] .cursor-ring.hover { border-color: #3b4a94; }

/* Preloader */
html[data-theme="light"] .preloader-emblems img { filter: drop-shadow(0 0 14px rgba(23,24,28,.12)); }
html[data-theme="light"] .preloader-bar { background: rgba(23,24,28,.08); }

/* Navigation — light glass + underlines back to ink */
html[data-theme="light"] .nav.on-360,
html[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(23, 24, 28, 0.1);
}
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { color: var(--text); }
html[data-theme="light"] .nav-link.active::after,
html[data-theme="light"] .nav-link:hover::after { transform: scaleX(1); }
@media (max-width: 1100px) {
  html[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 40px rgba(23, 24, 28, 0.12);
  }
}

/* Hero decorations — neutral paper grid + faint orange glows */
html[data-theme="light"] .glow-1 { background: rgba(59,74,148,.05); }
html[data-theme="light"] .glow-2 { background: rgba(59,74,148,.04); }
html[data-theme="light"] .hero-grid {
  background-image: linear-gradient(rgba(23,24,28,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(23,24,28,.05) 1px, transparent 1px);
}
html[data-theme="light"] .hero-orb { border-color: rgba(23,24,28,.09); }
html[data-theme="light"] .eyebrow {
  color: var(--accent);
  border-color: rgba(59,74,148,.28);
  background: rgba(59,74,148,.07);
}

/* 360° teaser + campaign copy (light) */
html[data-theme="light"] .hero-360 {
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(238,240,236,.9));
  border: 1px solid rgba(59,74,148,.24);
  box-shadow: 0 24px 60px rgba(23,24,28,.1), inset 0 1px 0 #fff;
}
html[data-theme="light"] .h360-copy strong { color: var(--text); }
html[data-theme="light"] .spin-link:hover { color: var(--text); }

/* Buttons (light) */
html[data-theme="light"] .btn-ghost:hover { color: var(--text); }
html[data-theme="light"] .btn-details:hover { background: var(--primary); color: #fff; border-color: transparent; }

/* About / tabs / values / legal / map */
html[data-theme="light"] .about-hero-text { background: rgba(255, 255, 255, 0.94); }
html[data-theme="light"] .tab-buttons { background: rgba(23, 24, 28, 0.05); }
html[data-theme="light"] .value-item { background: rgba(23, 24, 28, 0.03); }
html[data-theme="light"] .legal-strip { background: rgba(255, 255, 255, 0.9); }
html[data-theme="light"] .legal-text strong { color: var(--text); }
html[data-theme="light"] .btn-legal {
  color: #047857;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.12));
  border-color: rgba(16,185,129,.45);
}
html[data-theme="light"] .btn-legal:hover { color: #065f46; }
html[data-theme="light"] .map-frame { background: #e6e8e2; }

/* Newsletter (light) */
html[data-theme="light"] .nl-card { background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(238,240,236,.6)); }
html[data-theme="light"] .nl-glow { background: radial-gradient(40% 45% at 50% 0%, rgba(59,74,148,.05), transparent 70%); }
html[data-theme="light"] .nl-orbit { border-color: rgba(23,24,28,.14); }
html[data-theme="light"] .nl-orbit::before { border-color: rgba(23,24,28,.09); }
html[data-theme="light"] .nl-orbit::after { border-color: rgba(23,24,28,.14); }
html[data-theme="light"] .nl-eyebrow {
  color: #232364;
  background: rgba(59,74,148,.09);
  border-color: rgba(59,74,148,.3);
}
html[data-theme="light"] .nl-input { background: #fff; }
html[data-theme="light"] .nl-code-form input { background: rgba(23,24,28,.05); }

/* News cards + filter + pager (light) */
html[data-theme="light"] .news-card {
  background: #ffffff;
  border-color: rgba(23,24,28,.1);
  box-shadow: 0 18px 40px rgba(23,24,28,.08);
}
html[data-theme="light"] .news-card:hover {
  border-color: rgba(59,74,148,.45);
  box-shadow: 0 26px 54px rgba(23,24,28,.12);
}
html[data-theme="light"] .news-more { background: rgba(59,74,148,.1); color: #232364; }
html[data-theme="light"] .news-page { background: #ffffff; border-color: rgba(23,24,28,.16); color: var(--text-2); }
html[data-theme="light"] .news-page:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
html[data-theme="light"] .news-page.on { background: var(--gradient); color: #fff; border-color: transparent; }
html[data-theme="light"] .news-filter { background-color: #fff; border-color: rgba(23,24,28,.16); color: #1a1b1e; }

/* Configurator panel + dropdowns + choices (light) */
html[data-theme="light"] .spin-config {
  background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(255,255,255,.66));
  border-color: rgba(23,24,28,.1);
  box-shadow: 0 26px 70px rgba(23,24,28,.1), inset 0 1px 0 #fff;
}
html[data-theme="light"] .spin-step { border-top-color: rgba(23,24,28,.1); }
html[data-theme="light"] .spin-dd-btn { background: #fff; color: var(--text); border-color: rgba(23,24,28,.14); }
html[data-theme="light"] .spin-dd-caret { border-color: #3b4a94; }
html[data-theme="light"] .spin-dd-menu {
  background: linear-gradient(172deg, #ffffff, #f7f7f5);
  border-color: rgba(23,24,28,.1);
  box-shadow: 0 24px 60px rgba(23,24,28,.12), 0 6px 18px rgba(23,24,28,.08);
}
html[data-theme="light"] .spin-dd-opt { color: #1a1b1e; }
html[data-theme="light"] .spin-dd-opt:hover,
html[data-theme="light"] .spin-dd-opt:focus-visible { background: rgba(59,74,148,.08); color: var(--text); }
html[data-theme="light"] .spin-dd-opt.active { color: #232364; background: rgba(59,74,148,.1); }
html[data-theme="light"] .spin-dd-check { color: #3b4a94; }
html[data-theme="light"] .spin-specs td:last-child { color: var(--text); }
html[data-theme="light"] .choice { background: #fff; }
html[data-theme="light"] .choice:hover { color: var(--text); }
html[data-theme="light"] .choice.active {
  background: linear-gradient(135deg, rgba(59,74,148,.14), rgba(59,74,148,.1));
  border-color: rgba(59,74,148,.45); color: var(--text);
  box-shadow: 0 0 0 1px rgba(59,74,148,.2), 0 8px 24px rgba(59,74,148,.18);
}
html[data-theme="light"] .choice.active .choice-sub { color: #232364; }
html[data-theme="light"] .big-swatch.active { color: var(--text); }
html[data-theme="light"] .big-swatch .blob { box-shadow: 0 4px 10px rgba(23,24,28,.2), inset 0 1px 3px rgba(255,255,255,.7); }

/* Mobile: machine description card + drawer (light) */
html[data-theme="light"] .spin-phone-desc {
  background: linear-gradient(165deg, rgba(255,255,255,.96), rgba(238,240,236,.92));
  border-color: rgba(23,24,28,.1);
  box-shadow: 0 12px 30px rgba(23,24,28,.1), inset 0 1px 0 #fff;
}
html[data-theme="light"] .spin-backdrop { background: rgba(23,24,28,.35); }
html[data-theme="light"] .spin-drawer {
  background: linear-gradient(165deg, #ffffff, #f4f5f1);
  border-left-color: rgba(23,24,28,.1);
  box-shadow: -30px 0 80px rgba(23,24,28,.14);
}
html[data-theme="light"] .spin-drawer-head { color: var(--text); }
html[data-theme="light"] .spin-drawer-close:hover { color: var(--text); border-color: rgba(59,74,148,.5); }

/* Modal + 3D leftovers (light) */
html[data-theme="light"] .modal-close { background: rgba(23,24,28,.05); }
html[data-theme="light"] .viewcube-face { background: rgba(23,24,28,.05); border-color: rgba(23,24,28,.2); }

/* ---------- Dark (secondary, industrial) ---------- */
html[data-theme="dark"] {
  --bg: #0b0d10;
  --bg-2: #111318;
  --bg-3: #16181d;
  --surface: #16181c;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --primary: #3b4a94;
  --primary-2: #232364;
  --accent: #8e99db;
  --gradient: linear-gradient(135deg, rgba(90,104,184,.9) 0%, rgba(59,74,148,.87) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(142,153,219,.16), rgba(142,153,219,.12));
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow-lg: 0 34px 90px rgba(0,0,0,.6);
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a2e36; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--primary); }
html[data-theme="dark"] ::selection { background: rgba(59,74,148,.45); color: #fff; }
html[data-theme="dark"] .cursor-ring { border-color: rgba(59,74,148,.5); }
html[data-theme="dark"] .cursor-ring.hover { border-color: #3b4a94; }
html[data-theme="dark"] .nav.on-360,
html[data-theme="dark"] .nav.scrolled { background: rgba(7,11,20,.82); border-bottom-color: rgba(148,163,184,.14); }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: #e2e8f0; }
@media (max-width: 1100px) {
  html[data-theme="dark"] .nav-links { background: rgba(7,11,20,.97); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
}
html[data-theme="dark"] .glow-1 { background: rgba(59,74,148,.12); }
html[data-theme="dark"] .glow-2 { background: rgba(59,74,148,.1); }
html[data-theme="dark"] .hero-grid {
  background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
}
html[data-theme="dark"] .hero-orb { border-color: rgba(148,163,184,.16); }
html[data-theme="dark"] .eyebrow { border-color: rgba(59,74,148,.32); background: rgba(59,74,148,.1); }
html[data-theme="dark"] .hero-360 {
  background: linear-gradient(145deg, rgba(17,19,24,.72), rgba(17,19,24,.6));
  border: 1px solid rgba(59,74,148,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="dark"] .h360-copy strong { color: var(--text); }
html[data-theme="dark"] .spin-link:hover { color: #fff; }
html[data-theme="dark"] .btn-ghost:hover { color: #e2e8f0; }
html[data-theme="dark"] .btn-details:hover { background: var(--primary); color: #fff; border-color: transparent; }
html[data-theme="dark"] .about-hero-text { background: rgba(17,19,24,.85); }
html[data-theme="dark"] .map-frame { background: #16181d; }
html[data-theme="dark"] .news-card { background: rgba(15,24,44,.55); border-color: rgba(148,163,184,.14); box-shadow: var(--shadow); }
html[data-theme="dark"] .news-card:hover { border-color: rgba(59,74,148,.4); }
html[data-theme="dark"] .news-filter { background-color: rgba(23,26,32,.85); border-color: rgba(148,163,184,.2); color: #e2e8f0; }
html[data-theme="dark"] .nl-glow { background: radial-gradient(40% 45% at 50% 0%, rgba(59,74,148,.08), transparent 70%); }
html[data-theme="dark"] .nl-eyebrow { color: #8e99db; background: rgba(59,74,148,.12); border-color: rgba(59,74,148,.3); }
html[data-theme="dark"] .nl-input { background: rgba(2,6,23,.6); }
html[data-theme="dark"] .nl-code-form input { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .spin-config {
  background: linear-gradient(165deg, rgba(23,26,32,.97), rgba(14,16,20,.97));
  border-color: rgba(148,163,184,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
html[data-theme="dark"] .spin-step { border-top-color: rgba(148,163,184,.14); }
html[data-theme="dark"] .spin-dd-btn { background: rgba(255,255,255,.05); color: #eef1f8; border-color: rgba(148,163,184,.22); }
html[data-theme="dark"] .spin-dd-caret { border-color: #8e99db; }
html[data-theme="dark"] .spin-dd-menu {
  background: linear-gradient(172deg, rgba(23,26,32,.98), rgba(14,16,20,.98));
  border-color: rgba(148,163,184,.24);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.35);
}
html[data-theme="dark"] .spin-dd-opt { color: #dbe2f0; }
html[data-theme="dark"] .spin-dd-opt:hover,
html[data-theme="dark"] .spin-dd-opt:focus-visible { background: rgba(59,74,148,.16); color: #fff; }
html[data-theme="dark"] .spin-dd-opt.active { color: #a6aee2; background: rgba(59,74,148,.14); }
html[data-theme="dark"] .spin-dd-check { color: #8e99db; }
html[data-theme="dark"] .spin-specs td:last-child { color: #eef1f8; }
html[data-theme="dark"] .choice { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .choice:hover { color: #fff; }
html[data-theme="dark"] .choice.active {
  background: linear-gradient(135deg, rgba(59,74,148,.3), rgba(59,74,148,.26));
  border-color: rgba(59,74,148,.6); color: #fff;
  box-shadow: 0 0 0 1px rgba(59,74,148,.35), 0 8px 24px rgba(59,74,148,.35);
}
html[data-theme="dark"] .choice.active .choice-sub { color: #c9cee8; }
html[data-theme="dark"] .step-n {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,74,148,.75), rgba(35,35,100,.75));
  box-shadow: 0 2px 10px rgba(59,74,148,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
html[data-theme="dark"] .spin-phone-desc {
  background: linear-gradient(165deg, rgba(17,19,24,.82), rgba(17,19,24,.42));
  border-color: rgba(148,163,184,.2);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
html[data-theme="dark"] .spin-backdrop { background: rgba(4,7,14,.6); }
html[data-theme="dark"] .spin-drawer {
  background: linear-gradient(165deg, rgba(17,25,45,.98), rgba(9,13,24,.98));
  border-left-color: rgba(148,163,184,.18);
  box-shadow: -30px 0 80px rgba(0,0,0,.55);
}
html[data-theme="dark"] .spin-drawer-head { color: #fff; }
html[data-theme="dark"] .spin-drawer-close:hover { color: #fff; border-color: rgba(59,74,148,.5); }
html[data-theme="dark"] .modal-close { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .viewcube-face { background: rgba(30,41,59,.9); border-color: rgba(148,163,184,.2); }

/* ---------- Always: industrial accent + tight corners ---------- */
.nav-spin,
.btn-hero-spin,
.btn-cta-spin {
  background: linear-gradient(120deg, rgba(59,74,148,.88), rgba(35,35,100,.85)) !important;
  border-color: rgba(59,74,148,.55) !important;
  color: #fff !important;
  animation: none !important;
}
.product-360 {
  color: #fff !important;
  background: linear-gradient(120deg, rgba(59,74,148,.2), rgba(35,35,100,.16));
  border-color: rgba(59,74,148,.55);
}
.product-360::before { border-color: rgba(59,74,148,.5); border-top-color: #fff; }
.product-360:hover { color: #fff; border-color: rgba(59,74,148,.8); box-shadow: 0 10px 26px rgba(59,74,148,.3); }
.fab-360 {
  background: linear-gradient(135deg, rgba(59,74,148,.88), rgba(35,35,100,.85));
  box-shadow: 0 12px 32px rgba(59,74,148,.4);
  animation: none !important;
}
.fab-360:hover { box-shadow: 0 18px 44px rgba(59,74,148,.55); }
.fab-360 svg { color: #fff; }
.fab-top:hover {
  background: rgba(59,74,148,.12); border-color: rgba(59,74,148,.5); color: #232364;
  box-shadow: 0 8px 24px rgba(59,74,148,.25);
}
.fab-top:focus-visible { outline-color: #3b4a94; }
.product-tag { color: #fff; }
.step-n {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,74,148,.75), rgba(35,35,100,.75));
  box-shadow: 0 2px 10px rgba(59,74,148,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.eyebrow { color: var(--accent); }

.cta-inner,
.nl-card,
.hero-360,
.news-card,
.map-card,
.about-tabs,
.modal-content,
.theme-toggle {
  border-radius: var(--radius);
}
.cta { background: var(--gradient-soft); }
.prod-hero .hero-frame { border-radius: var(--radius); }

/* ---------- Always: 360° stage chrome stays dark ---------- */
.spin-viewer {
  background:
    radial-gradient(42% 44% at 46% 42%, rgba(59,74,148,.06), transparent 70%),
    linear-gradient(180deg, #1c1e21, #101114);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.spin-chip {
  color: #a3abdb;
  border-color: rgba(59,74,148,.5);
  background: rgba(20,21,24,.55);
}
.spin-loader { background: rgba(5,8,15,.6); color: #94a3b8; }
.spin-controls {
  background: rgba(14,16,20,.85);
  border-color: rgba(148,163,184,.2);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.spin-btn:hover { border-color: rgba(59,74,148,.6); color: #fff; }
.spin-btn.active {
  background: linear-gradient(135deg, rgba(59,74,148,.88), rgba(35,35,100,.85));
  box-shadow: 0 6px 18px rgba(59,74,148,.4);
  border-color: transparent; color: #fff;
}
.spin-name {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.spin-sep { background: rgba(148,163,184,.22); }

/* ---------- Theme toggle button (nav) ---------- */
.theme-toggle {
  position: relative; width: 42px; height: 42px; flex: 0 0 auto;
  margin-left: 4px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(23,24,28,.04);
  color: var(--text-2); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .25s, background .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--text); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: opacity .3s, transform .3s; }
html[data-theme="light"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
html[data-theme="light"] .theme-toggle .ico-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .ico-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* Contact form - file input + honeypot */
.field-hint{color:var(--text-3);font-size:.82rem}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}


/* Image previews */
.img-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.img-preview{width:90px;height:90px;border-radius:6px;overflow:hidden;border:1px solid var(--border);background:#000;position:relative}
.img-preview img{width:100%;height:100%;object-fit:cover;display:block}
.img-preview .img-remove{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;border:0;border-radius:4px;font-size:11px;line-height:1;padding:2px 4px;cursor:pointer}

/* ============================================================
   FAQ page — admin-managed accordion
   ============================================================ */
.faq-sec { max-width: 960px; margin: 0 auto; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-loading,
.faq-empty p { padding: 30px 0; text-align: center; color: var(--text-3); }

.faq-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.faq-item:hover { border-color: rgba(59,74,148,.35); }
.faq-item.open { border-color: rgba(59,74,148,.5); box-shadow: 0 26px 54px rgba(0,0,0,.12); }
.faq-item::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gradient);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s ease;
}
.faq-item.open::before { transform: scaleY(1); }

.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border: 0; background: none; cursor: pointer;
  text-align: left; color: var(--text);
  font-family: var(--font-main); font-size: 1.02rem; font-weight: 600;
  line-height: 1.45; letter-spacing: -.01em;
  transition: color .25s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-q-text { flex: 1 1 auto; }
.faq-q-cat {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(59,74,148,.28); background: rgba(59,74,148,.07);
}
.faq-ico {
  flex: 0 0 auto; position: relative; width: 18px; height: 18px;
  color: var(--text-3); transition: color .25s ease;
}
.faq-ico::before,
.faq-ico::after {
  content: ""; position: absolute; border-radius: 2px; background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.faq-ico::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-ico::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-ico { color: var(--accent); }
.faq-item.open .faq-ico::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,1,.36,1);
}
.faq-a-inner {
  padding: 0 22px 22px 22px;
  color: var(--text-2); font-size: .96rem; line-height: 1.75;
  white-space: pre-line;
}

.faq-cta {
  max-width: 820px; margin: clamp(38px, 5vw, 60px) auto 0;
  text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 40px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59,74,148,.07), rgba(59,74,148,.03));
}
.faq-cta h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; margin-bottom: 10px; }
.faq-cta p { color: var(--text-2); max-width: 52ch; margin: 0 auto 22px; }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

html[data-theme="dark"] .faq-item { background: rgba(15,24,44,.55); border-color: rgba(148,163,184,.14); }
html[data-theme="dark"] .faq-item:hover { border-color: rgba(59,74,148,.45); }
html[data-theme="dark"] .faq-item.open { border-color: rgba(59,74,148,.6); box-shadow: 0 26px 54px rgba(0,0,0,.5); }
html[data-theme="dark"] .faq-cta { background: linear-gradient(135deg, rgba(59,74,148,.12), rgba(59,74,148,.05)); }

@media (max-width: 560px) {
  .faq-q { padding: 17px 16px; font-size: .96rem; gap: 10px; flex-wrap: wrap; }
  .faq-q-cat { order: 3; }
  .faq-a-inner { padding: 0 16px 18px 16px; }
}

