/*
 * FM Apple-Style Design System
 * Complete visual language for FM × Jack Sewing Machines
 */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --black:      #000000;
  --dark:       #1d1d1f;
  --mid:        #424245;
  --gray:       #6e6e73;
  --rule:       rgba(0,0,0,0.1);
  --rule-dark:  rgba(255,255,255,0.08);
  --light:      #f5f5f7;
  --white:      #ffffff;
  --blue:       #0071e3;
  --blue-hover: #0077ed;
  --blue-glow:  rgba(0,113,227,0.22);
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

section { position: relative; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
  letter-spacing: -0.025em;
}

/* =============================================
   NAVIGATION  (glass morphism)
   ============================================= */
.header {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 0.5px solid rgba(0,0,0,0.12) !important;
  padding: 0 24px !important;
  height: 52px !important;
  transition: background 0.4s ease, border-color 0.4s ease !important;
}

/* Transparent dark state when over hero */
.header.over-hero {
  background: rgba(0,0,0,0.7) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}

.header .logo img {
  max-height: 28px !important;
  transition: filter 0.4s ease;
}

.header.over-hero .logo img {
  filter: brightness(0) invert(1);
}

.header .navmenu a,
.header .navmenu li a {
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: rgba(0,0,0,0.85) !important;
  transition: color 0.2s !important;
  padding: 4px 10px !important;
}

.header.over-hero .navmenu a,
.header.over-hero .navmenu li a {
  color: rgba(255,255,255,0.85) !important;
}

.header .navmenu a:hover {
  color: var(--blue) !important;
}

.header.over-hero .navmenu a:hover {
  color: rgba(255,255,255,1) !important;
}

.header .navmenu .dropdown ul {
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  border: 0.5px solid rgba(0,0,0,0.08) !important;
  padding: 8px 0 !important;
}

/* Fix: .over-hero forces white nav text for the transparent desktop
   header, but this dropdown panel always has a solid white background —
   keep its links dark regardless of hero scroll state, or they render
   invisible (white on white). */
.header .navmenu .dropdown ul a,
.header .navmenu .dropdown ul a:focus,
.header.over-hero .navmenu .dropdown ul a,
.header.over-hero .navmenu .dropdown ul a:focus {
  color: rgba(0,0,0,0.85) !important;
}

/* Fix: backdrop-filter on .header creates a CSS containing block for
   position:fixed descendants, which traps the full-screen mobile nav
   overlay inside the 52px header box instead of the viewport. Drop
   the filter while the mobile menu is open so it can go fullscreen. */
body.mobile-nav-active .header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* =============================================
   MOBILE NAV — full-screen dark panel
   (replaces the template's floating white card, which left a large
   empty gap below a handful of links and opened with no transition)
   ============================================= */
@media (max-width: 1199px) {
  .navmenu ul {
    background: rgba(15,15,20,0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    inset: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 32px !important;
  }

  /* Layout only takes effect once the menu is actually open — leaving
     the closed (display:none) state from main.css untouched avoids
     permanently forcing the panel to render. */
  .mobile-nav-active .navmenu > ul {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }

  .header .navmenu a,
  .header .navmenu a:focus {
    color: rgba(255,255,255,0.92) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    padding: 16px 4px !important;
    letter-spacing: -0.01em !important;
  }

  .navmenu > ul > li {
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
  }

  .navmenu > ul > li:last-child { border-bottom: none; }

  .navmenu a i,
  .navmenu a:focus i {
    background-color: rgba(255,255,255,0.16) !important;
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--blue) !important;
  }

  .header .navmenu .dropdown ul {
    background: rgba(255,255,255,0.1) !important;
    border: 0.5px solid rgba(255,255,255,0.18) !important;
    box-shadow: none !important;
  }

  /* Specificity fix: the global (desktop) dropdown-link color rule
     above uses the same selector + !important, and was winning this
     tie by cascade order, rendering near-black text on this dark
     mobile panel — nearly invisible. Scoping to .mobile-nav-active
     raises specificity so this always wins while the panel is open. */
  .mobile-nav-active .header .navmenu .dropdown ul a,
  .mobile-nav-active .header .navmenu .dropdown ul a:focus {
    color: rgba(255,255,255,0.85) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
  }

  @keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .mobile-nav-active .navmenu > ul {
    animation: mobileMenuIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
  }
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 18px !important;
  border-radius: 980px !important;
  background: var(--dark) !important;
  color: white !important;
  margin-left: 16px !important;
  transition: background 0.2s, color 0.2s, transform 0.2s !important;
}

.header.over-hero .btn-getstarted {
  background: white !important;
  color: var(--dark) !important;
}

.header .btn-getstarted:hover {
  transform: scale(1.03) !important;
  background: #333 !important;
}

/* =============================================
   HERO SECTION
   ============================================= */
.apple-hero {
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 52px;
  position: relative;
}

/* Animated gradient background orbs */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  right: -100px;
  top: -200px;
  background: radial-gradient(circle, rgba(0,80,200,0.22) 0%, transparent 70%);
  animation-duration: 12s;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  left: -150px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(90,0,180,0.12) 0%, transparent 70%);
  animation-duration: 9s;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  left: 30%;
  top: 40%;
  background: radial-gradient(circle, rgba(255,140,60,0.09) 0%, transparent 70%);
  animation-duration: 14s;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.97); }
}

/* Thread SVG */
.hero-thread-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 0;
  pointer-events: none;
}

.hero-thread-svg path {
  fill: none;
  stroke-linecap: round;
}

.thread-line-1 {
  stroke: rgba(255,150,70,0.35);
  stroke-width: 1.5;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: drawThread 3.5s cubic-bezier(0.4,0,0.2,1) forwards 0.6s;
}

.thread-line-2 {
  stroke: rgba(0,113,227,0.18);
  stroke-width: 1;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: drawThread 3.5s cubic-bezier(0.4,0,0.2,1) forwards 1.0s;
}

@keyframes drawThread {
  to { stroke-dashoffset: 0; }
}

/* Hero content — single centered column */
.hero-center-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards 0.2s;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.6); }
}

.hero-h1 {
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 700;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards 0.4s;
}

.hero-h1 .accent { color: var(--blue); }

.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards 0.6s;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards 0.8s;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.01em;
}

.hero-pill i { font-size: 11px; color: var(--blue); }

.hero-pill {
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards 1.0s;
}

.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: white;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-apple-primary:hover {
  background: var(--blue-hover);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 0 32px rgba(0,113,227,0.45);
}

.btn-apple-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-apple-ghost:hover {
  color: rgba(255,255,255,1);
}

/* Hero visual duo — product photo + live-workshop card, centered as one group */
.hero-duo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  width: 100%;
  margin-top: 52px;
}

@keyframes machineReveal {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-machine-wrap {
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: machineReveal 1.4s cubic-bezier(0.4,0,0.2,1) forwards 0.5s;
}

.hero-machine-img {
  max-width: 400px;
  width: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(0,80,200,0.3));
  animation: machineFloat 6s ease-in-out infinite 2s;
}

@keyframes machineFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

/* Radial glow behind machine */
.hero-machine-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(0,113,227,0.4) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: glowBreath 4s ease-in-out infinite 2s;
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.7;  transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scaleX(1.25); }
}

/* Scan-line sweep on machine */
.hero-machine-scanline {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero-machine-scanline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0,113,227,0.12) 40%,
    rgba(0,113,227,0.2) 50%,
    rgba(0,113,227,0.12) 60%,
    transparent 100%
  );
  animation: scanSweep 5s ease-in-out infinite 3s;
  top: -60px;
}

@keyframes scanSweep {
  0%   { top: -60px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% + 60px); opacity: 0; }
}

/* Spec callout badges */
.hero-spec-badge {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  z-index: 4;
  opacity: 0;
  animation: badgeReveal 0.8s ease forwards;
}

.hero-badge-slot-1 { animation-delay: 1.6s; right: -16px; top: 10%; }
.hero-badge-slot-2 { animation-delay: 1.9s; left: -16px; bottom: 16%; }

@keyframes badgeReveal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.badge-value {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2px;
}

.badge-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.8s;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  animation: scrollBob 1.6s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { top: 6px; opacity: 1; }
  50%       { top: 16px; opacity: 0.4; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO SCENE CARD — "The Bored Robot"
   ============================================= */
.hero-scene-wrap {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards 1.3s;
  position: relative;
}

/* Hand-tagged label, like a sticky note pinned above a sketch */
.hero-scene-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #ffb86b;
  background: rgba(255,150,60,0.12);
  border: 0.5px solid rgba(255,150,60,0.3);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  transform: rotate(-1.5deg);
  letter-spacing: 0.01em;
}

.hero-scene-card {
  background: rgba(24,16,28,0.85);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Cute little connector arrow between the photo and the live scene card */
.hero-scene-wrap::before {
  content: '\2192';
  position: absolute;
  left: -38px;
  top: 55%;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(255,180,110,0.35);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.5s;
}

.hero-scene-svg {
  display: block;
  width: 100%;
}

/* NEEDLE animations */
.needle-group {
  animation: needleStitch 2s cubic-bezier(0.4,0,0.2,1) infinite;
  transform-origin: 50% 0;
}

@keyframes needleStitch {
  0%   { transform: translateY(0px); }
  20%  { transform: translateY(58px); }
  45%  { transform: translateY(58px); }
  65%  { transform: translateY(0px); }
  100% { transform: translateY(0px); }
}

.needle-sparkle {
  animation: sparkleFlash 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes sparkleFlash {
  0%, 60%, 100% { opacity: 0; transform: scale(0.5); }
  65%            { opacity: 1; transform: scale(1.4); }
  70%            { opacity: 0.6; transform: scale(1); }
}

/* STITCH DOTS appearing one by one */
.stitch-dot { opacity: 0; animation: dotPop 8s ease infinite; }
.s1 { animation-delay: 0.4s;  }
.s2 { animation-delay: 0.8s;  }
.s3 { animation-delay: 1.2s;  }
.s4 { animation-delay: 1.6s;  }
.s5 { animation-delay: 2.0s;  }

@keyframes dotPop {
  0%   { opacity: 0; r: 0; }
  3%   { opacity: 1; r: 2.5; }
  40%  { opacity: 1; }
  55%  { opacity: 0; }
  100% { opacity: 0; }
}

/* TRIM scissors snip */
.trim-group {
  opacity: 0;
  animation: trimSnip 8s ease infinite;
}

@keyframes trimSnip {
  0%, 27%  { opacity: 0; transform: scale(1) rotate(0deg); }
  30%      { opacity: 1; transform: scale(1.15) rotate(-10deg); }
  35%      { opacity: 1; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1; }
  60%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* THREAD TAIL — tiny, proving how short it is */
.thread-tail {
  opacity: 0;
  animation: tinyTailReveal 8s ease infinite;
  stroke: #0071e3;
  stroke-width: 1.5;
  stroke-linecap: round;
}

@keyframes tinyTailReveal {
  0%, 34%  { opacity: 0; }
  37%      { opacity: 1; }
  65%      { opacity: 1; }
  70%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* ROBOT rolling in */
.robot-group {
  animation: robotRoll 8s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes robotRoll {
  0%   { transform: translateX(90px); opacity: 0; }
  5%   { opacity: 0; }
  10%  { transform: translateX(90px); opacity: 0; }
  38%  { opacity: 1; transform: translateX(0px); }
  50%  { transform: translateX(0px); }
  55%  { transform: translateX(-4px); }
  60%  { transform: translateX(0px); }
  85%  { transform: translateX(0px); opacity: 1; }
  95%  { transform: translateX(90px); opacity: 0; }
  100% { transform: translateX(90px); opacity: 0; }
}

/* Robot wheels spinning */
.robot-wheel {
  animation: wheelSpin 0.4s linear infinite;
  transform-origin: center;
}
.robot-wheel-r { animation: wheelSpinR 0.4s linear infinite; transform-origin: center; }

@keyframes wheelSpin  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes wheelSpinR { from { transform: rotate(0deg);   } to { transform: rotate(-360deg); } }

/* Robot — confused mouth (neutral line → shows 38-54s in 8s loop) */
.robot-mouth-confused {
  opacity: 0;
  animation: confusedMouth 8s ease infinite;
  stroke: #1d1d1f; stroke-width: 1.5; fill: none; stroke-linecap: round;
}

@keyframes confusedMouth {
  0%, 45%  { opacity: 0; }
  50%      { opacity: 1; }
  62%      { opacity: 1; }
  66%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Robot — happy mouth (big curve → shows 62-85s in 8s loop) */
.robot-mouth-happy {
  opacity: 0;
  animation: happyMouth 8s ease infinite;
  stroke: #0a7a0a; stroke-width: 1.5; fill: none; stroke-linecap: round;
}

@keyframes happyMouth {
  0%, 62%  { opacity: 0; }
  66%      { opacity: 1; }
  85%      { opacity: 1; }
  90%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Robot — default mouth */
.robot-mouth-default {
  animation: defaultMouth 8s ease infinite;
  stroke: #888; stroke-width: 1.2; fill: none; stroke-linecap: round;
}

@keyframes defaultMouth {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  90%  { opacity: 0; }
  95%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Robot antenna blink */
.antenna-tip {
  animation: antennaBlink 1.2s ease-in-out infinite;
}

@keyframes antennaBlink {
  0%, 100% { fill: #0071e3; r: 3; }
  50%       { fill: #66aaff; r: 4; }
}

/* Robot celebrate bounce */
.robot-body-group {
  animation: robotBounce 8s ease infinite;
  transform-origin: 50% 80%;
}

@keyframes robotBounce {
  0%, 62%  { transform: scale(1,1) translateY(0); }
  66%      { transform: scale(1.1, 0.92) translateY(3px); }
  70%      { transform: scale(0.95, 1.06) translateY(-6px); }
  74%      { transform: scale(1.05, 0.96) translateY(2px); }
  78%      { transform: scale(1, 1) translateY(0); }
  100%     { transform: scale(1,1) translateY(0); }
}

/* Question mark bubble */
.q-bubble {
  opacity: 0;
  animation: qBubble 8s ease infinite;
}

@keyframes qBubble {
  0%, 50%  { opacity: 0; transform: scale(0.5) translateY(6px); }
  56%      { opacity: 1; transform: scale(1) translateY(0); }
  62%      { opacity: 1; }
  66%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Happy checkmark bubble */
.check-bubble {
  opacity: 0;
  animation: checkBubble 8s ease infinite;
}

@keyframes checkBubble {
  0%, 66%  { opacity: 0; transform: scale(0.5); }
  70%      { opacity: 1; transform: scale(1.15); }
  74%      { transform: scale(1); }
  85%      { opacity: 1; }
  90%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Scene caption below card */
.scene-caption-text {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 8px 14px 10px;
  letter-spacing: 0.02em;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}

.scene-caption-text span { color: rgba(0,180,100,0.8); font-weight: 500; }

/* =============================================
   GROZ-BECKERT SECTION
   ============================================= */
.gb-feature {
  padding: 120px 0;
  background: #000;
  position: relative;
  overflow: hidden;
}

.gb-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,60,200,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.gb-tag {
  font-size: 11px;
  font-weight: 700;
  color: rgba(100,180,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gb-h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  color: white;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gb-body {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

.gb-specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gb-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gb-spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,113,227,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gb-spec-icon i { font-size: 14px; color: #66aaff; }

.gb-spec-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2px;
}

.gb-spec-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Needle visual — genuine product photo + anatomy legend */
.needle-visual-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  padding: 40px;
}

.needle-photo-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
}

.needle-photo-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}

.needle-photo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.needle-photo-badge img {
  width: 34px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.needle-photo-badge span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

.needle-anatomy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.needle-anatomy-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.needle-anatomy-item strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-right: 4px;
}

.needle-anatomy-num {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,113,227,0.25);
  color: #8ec2ff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cloth points strip */
.cloth-points-row { margin-top: 64px; }

.cloth-points-strip {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.cloth-points-lead {
  flex: 0 0 240px;
}

.cloth-points-lead img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.cloth-points-lead-tag {
  font-size: 13px;
  font-weight: 600;
  color: #8ec2ff;
  margin-bottom: 8px;
}

.cloth-points-lead-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.cloth-points-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  align-content: start;
}

.cloth-point-code {
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.cloth-point-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}

/* Floating GB logo badge */
.gb-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 32px;
}

.gb-badge-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #66aaff 0%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gb-badge-text {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.gb-badge-text strong {
  display: block;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 13px;
}

/* =============================================
   STATS BAR
   ============================================= */
.apple-stats {
  background: #1d1d1f;
  padding: 0;
}

.stats-inner {
  display: flex;
  align-items: stretch;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.stat-cell {
  flex: 1;
  padding: 40px 28px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(255,255,255,0.03); }

.stat-num {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.stat-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* =============================================
   GAUSIUM BEETLE — AUTONOMOUS SWEEPER
   ============================================= */
.beetle-feature {
  padding: 120px 0 0;
  background: #000;
  position: relative;
  overflow: hidden;
}

.beetle-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 30%, rgba(90,200,255,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.beetle-feature .container { position: relative; z-index: 1; }

.beetle-feature .feature-tag { color: #5ac8fa; }
.beetle-feature .feature-h2  { color: white; }
.beetle-feature .feature-body { color: rgba(255,255,255,0.55); }
.beetle-feature .feature-checklist li { color: rgba(255,255,255,0.65); }

.beetle-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.beetle-photo {
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 50px rgba(0,140,255,0.25));
  animation: machineFloat 6s ease-in-out infinite;
}

.beetle-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 45%;
  background: radial-gradient(ellipse, rgba(0,170,255,0.35) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: glowBreath 4s ease-in-out infinite;
}

.beetle-badge-slot-1 { right: -10px; top: 8%; animation-delay: 1.6s; }
.beetle-badge-slot-2 { left: -16px; bottom: 14%; animation-delay: 1.9s; }

.beetle-stats-row {
  margin-top: 24px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.beetle-stat {
  padding: 32px 16px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.08);
}

.beetle-stat:last-child { border-right: none; }
.beetle-stat .stat-num { font-size: clamp(22px, 2.6vw, 32px); }

/* In-action banner */
.beetle-banner {
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  background: #000;
}

.beetle-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.beetle-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 60px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, transparent 55%);
}

.beetle-banner-quote {
  max-width: 420px;
  min-width: 0;
  color: white;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.beetle-banner-dark { margin-top: 24px; }

.beetle-banner-dark img { object-position: center 58%; }

.beetle-banner-dark .beetle-banner-text {
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 40px 44px;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.8) 100%);
}

.beetle-banner-dark .beetle-banner-quote {
  max-width: 640px;
  width: 100%;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =============================================
   FM FACTORY SUPPORT — CUSTOMER PORTAL
   ============================================= */
.portal-feature {
  padding: 120px 0;
  background: #000;
  position: relative;
  overflow: hidden;
}

.portal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(0,113,227,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.portal-feature .container { position: relative; z-index: 1; }

.portal-feature .section-eyebrow { color: #5ac8fa; }
.portal-feature .section-h2 { color: white; }
.portal-feature .section-sub { color: rgba(255,255,255,0.55); }

.portal-row { margin-bottom: 72px; }
.portal-row-minor { opacity: 0.9; }

.portal-tag {
  font-size: 11px;
  font-weight: 700;
  color: #5ac8fa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.portal-tag-minor {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.portal-h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.portal-h3-sm {
  font-size: 19px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.portal-body {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 440px;
}

.portal-body-sm {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 20px;
}

.portal-body-sm strong { color: rgba(255,255,255,0.8); font-weight: 600; }

.portal-shot-card {
  background: rgba(12,12,28,0.85);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.portal-shot-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.portal-shot-dot { width: 8px; height: 8px; border-radius: 50%; }
.portal-shot-dot.red   { background: #ff5f56; }
.portal-shot-dot.amber { background: #febc2e; }
.portal-shot-dot.green { background: #27c93f; }

.portal-shot-title {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-left: 6px;
  letter-spacing: 0.04em;
  font-family: 'Inter', monospace;
}

.portal-shot-card img {
  display: block;
  width: 100%;
}

/* =============================================
   FEATURE SPOTLIGHT SECTIONS
   ============================================= */
.apple-feature {
  padding: 120px 0;
}

.apple-feature.bg-white { background: var(--white); }
.apple-feature.bg-light { background: var(--light); }
.apple-feature.bg-dark  { background: #000; }
.apple-feature.bg-warm  { background: linear-gradient(180deg, #fdf8ee 0%, #faf1e0 100%); }

.feature-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.apple-feature.bg-dark .feature-h2 { color: white; }

.feature-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

.apple-feature.bg-dark .feature-body { color: rgba(255,255,255,0.55); }

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 14px;
  line-height: 1.5;
}

.apple-feature.bg-dark .feature-checklist li { color: rgba(255,255,255,0.65); }

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-icon i { font-size: 10px; color: white; }

/* Feature visuals */
.feature-visual-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-visual-box.dark { background: #111; }

.feature-visual-box img {
  width: 75%;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.15));
}

/* Anti-Bird Nest visualization */
.nest-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8effe 100%);
  border-radius: var(--radius-lg);
  width: 100%;
}

.nest-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nest-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nest-circle.bad  { border-color: #d00; background: #fff5f5; }
.nest-circle.good { border-color: #0a7a0a; background: #f0fff0; }

.nest-circle svg {
  width: 80px;
  height: 80px;
}

.nest-title {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.nest-side.bad .nest-title  { color: #c00; }
.nest-side.good .nest-title { color: #0a7a0a; }

.nest-subtitle {
  font-size: 11px;
  color: var(--gray);
  text-align: center;
}

.nest-arrow {
  font-size: 28px;
  color: var(--blue);
  font-weight: 300;
  flex-shrink: 0;
}

/* Thread trim visualization */
.trim-diagram {
  padding: 48px 40px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff2e0 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.trim-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trim-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trim-row-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  width: 72px;
  text-align: right;
  flex-shrink: 0;
}

.trim-track {
  flex: 1;
  height: 10px;
  background: rgba(0,0,0,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.trim-fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.trim-fill.old { background: #d00; }
.trim-fill.new { background: var(--blue); }

.trim-fill.animated-old { width: 80%; }
.trim-fill.animated-new { width: 16%; }
.trim-fill.animated-new2 { width: 12%; }

.trim-val {
  font-size: 13px;
  font-weight: 700;
  width: 46px;
  flex-shrink: 0;
}

.trim-val.bad  { color: #d00; }
.trim-val.good { color: var(--blue); }

.trim-footnote {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* =============================================
   UNIVERSAL NEEDLE PLATE — comparison diagram
   ============================================= */
.compare-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8effe 100%);
  border-radius: var(--radius-lg);
  width: 100%;
}

.compare-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.compare-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-circle.bad  { border-color: #d00; background: #fff5f5; }
.compare-circle.good { border-color: #0a7a0a; background: #f0fff0; }

.compare-circle i { font-size: 40px; }
.compare-circle.bad i  { color: #d00; }
.compare-circle.good i { color: #0a7a0a; }

.compare-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.compare-side.bad .compare-title  { color: #c00; }
.compare-side.good .compare-title { color: #0a7a0a; }

.compare-subtitle {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  max-width: 150px;
}

.compare-arrow {
  flex-shrink: 0;
}

/* =============================================
   BLADE LIFESPAN — stitch-count bar comparison
   ============================================= */
.blade-diagram {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  width: 100%;
}

.blade-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blade-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.blade-row-label {
  width: 92px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--mid);
}

.blade-track {
  flex: 1;
  height: 10px;
  background: rgba(0,0,0,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.blade-fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.blade-fill.old { background: #d00; }
.blade-fill.new { background: var(--blue); }

.blade-fill.animated-old { width: 53%; }
.blade-fill.animated-new { width: 100%; }

.blade-val {
  font-size: 13px;
  font-weight: 700;
  width: 84px;
  flex-shrink: 0;
  text-align: right;
}

.blade-val.bad  { color: #d00; }
.blade-val.good { color: var(--blue); }

.blade-footnote {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* =============================================
   IOT + OIL-FREE HOOK — stat panel
   ============================================= */
.iot-panel {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8effe 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.iot-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.iot-stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,113,227,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iot-stat-icon i { font-size: 20px; color: var(--blue); }

.iot-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.iot-stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.dealer-photo-banner {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dealer-photo-banner img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center 30%;
}

.dealer-photo-caption {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  margin: 16px 0 0;
}

/* =============================================
   LITESPEED NEEDLE
   ============================================= */
.litespeed-needle-card {
  position: relative;
  background: rgba(255,255,255,0.6);
  border: 0.5px solid rgba(194,112,58,0.18);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.litespeed-needle-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,140,60,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 75% 65%, rgba(255,90,60,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.litespeed-needle-img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 16px 30px rgba(120,60,20,0.18));
}

.litespeed-needle-label {
  position: relative;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #a35a2a;
  letter-spacing: 0.04em;
}

.litespeed-gallery-row { margin-top: 72px; }

.litespeed-gallery-head { text-align: center; margin-bottom: 36px; }

.litespeed-gallery-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.litespeed-gallery-sub {
  font-size: 14px;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.litespeed-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding: 12px 0 24px;
}

.litespeed-card {
  width: 160px;
  background: white;
  border-radius: 8px;
  padding: 8px 8px 14px;
  box-shadow: 0 14px 28px rgba(120,90,50,0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.litespeed-card img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

.litespeed-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 0 20px 36px rgba(120,90,50,0.22);
}

.litespeed-card-1 { transform: rotate(-4deg); }
.litespeed-card-2 { transform: rotate(3deg); margin-top: 18px; }
.litespeed-card-3 { transform: rotate(-2deg); }
.litespeed-card-4 { transform: rotate(4deg); margin-top: 18px; }

/* =============================================
   PRODUCT LINEUP
   ============================================= */
.apple-lineup {
  padding: 120px 0;
  background: var(--light);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}

.section-h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--gray);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 64px;
  line-height: 1.65;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.1);
}

.product-img-wrap {
  background: var(--light);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.product-img-wrap img {
  width: 92%;
  height: 92%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.product-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.product-cta:hover { gap: 10px; color: var(--blue); }
.product-cta i { font-size: 12px; }

/* =============================================
   CLIENTS STRIP
   ============================================= */
.apple-clients {
  padding: 72px 0;
  background: var(--white);
  border-top: 0.5px solid var(--rule);
}

.clients-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 44px;
  text-transform: uppercase;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 8px 16px;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.client-logo-item:hover {
  filter: grayscale(0%);
  opacity: 0.9;
}

.client-logo-item img {
  max-height: 100%;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* =============================================
   WARRANTY / SERVICES
   ============================================= */
.apple-warranty {
  padding: 100px 0;
  background: #1d1d1f;
}

.warranty-card {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  padding: 40px;
  height: 100%;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.warranty-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.warranty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.warranty-icon-wrap.blue   { background: rgba(0,113,227,0.18); }
.warranty-icon-wrap.amber  { background: rgba(255,150,30,0.15); }
.warranty-icon-wrap.blue i { color: #5aacff; font-size: 22px; }
.warranty-icon-wrap.amber i{ color: #ffa040; font-size: 22px; }

.warranty-years {
  font-size: 56px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.warranty-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}

.warranty-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */
.apple-contact {
  padding: 100px 0;
  background: var(--light);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
  border: 0.5px solid var(--rule);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.contact-icon i { font-size: 19px; color: var(--blue); }

.contact-info-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.contact-info-card p,
.contact-info-card address {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
  margin: 0;
  font-style: normal;
}

.contact-info-card a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info-card a:hover { text-decoration: underline; }

.map-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid var(--rule);
}

.map-card .map-label {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  border-bottom: 0.5px solid var(--rule);
  letter-spacing: 0.01em;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}

/* =============================================
   FOOTER
   ============================================= */
.apple-footer {
  background: #1d1d1f;
  padding: 48px 0 32px;
}

.footer-top {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 0.5px solid var(--rule-dark);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.footer-brand-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-trading-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
  margin-bottom: 10px;
}

.footer-trading-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}

.footer-trading-badge {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: 980px;
  padding: 6px 14px;
}

.footer-links-group h5 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-group a:hover { color: rgba(255,255,255,0.9); }

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

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  font-size: 17px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
}

.footer-social a:hover { color: rgba(255,255,255,0.9); }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 0.85s cubic-bezier(0.4,0,0.2,1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =============================================
   CATALOGUE PAGES (Lockstitch / Overlock / Interlock / Special Machines)
   ============================================= */
.cat-hero {
  min-height: 62vh;
  background: #000;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 0;
  position: relative;
}

.cat-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 75% 20%, rgba(0,113,227,0.22) 0%, transparent 55%),
              radial-gradient(ellipse at 15% 80%, rgba(255,140,60,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.cat-hero .container { position: relative; z-index: 1; }

.cat-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cat-hero-h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 780px;
}

.cat-hero-h1 .accent { color: var(--blue); }

.cat-hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 40px;
}

/* Quick-jump pill nav — lets a page with many models stay easy to scan */
.cat-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 44px;
}

.cat-jump-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cat-jump-nav a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* Artwork-led hero (needles.html) — cream variant, art bleeds to the viewport edge instead of sitting in a boxed card */
.cat-hero.artwork-hero {
  min-height: 68vh;
  background: #f6f1eb;
}

.cat-hero.artwork-hero .cat-hero-backdrop { display: none; }

.cat-hero.artwork-hero .cat-hero-eyebrow { color: var(--blue); }
.cat-hero.artwork-hero .cat-hero-h1 { color: var(--dark); max-width: 540px; }
.cat-hero.artwork-hero .cat-hero-sub { color: rgba(0,0,0,0.55); max-width: 460px; }

.cat-hero.artwork-hero .cat-jump-nav a {
  color: rgba(0,0,0,0.65);
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
.cat-hero.artwork-hero .cat-jump-nav a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.cat-hero-art-bleed {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 76%;
  max-height: 520px;
  z-index: 0;
  pointer-events: none;
}

.cat-hero-art-bleed img {
  height: 100%;
  width: auto;
  display: block;
}

/* .reveal.in-view resets transform on scroll-in, which fights the centering
   translateY(-50%) above (its 2-class specificity wins over the 1-class rule
   here). Re-assert the centering transform once revealed, desktop only. */
@media (min-width: 992px) {
  .cat-hero-art-bleed.reveal,
  .cat-hero-art-bleed.reveal.in-view {
    transform: translateY(-50%);
  }
}

@media (max-width: 991px) {
  .cat-hero.artwork-hero {
    min-height: auto;
    padding-bottom: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .cat-hero-art-bleed {
    position: static;
    transform: none;
    height: auto;
    max-height: none;
    width: 100%;
    text-align: center;
    margin-top: 28px;
    padding-bottom: 48px;
  }
  .cat-hero-art-bleed img {
    height: auto;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Flagship spotlight — dark stage for the featured machine on each page */
.cat-flagship {
  padding: 110px 0 60px;
  background: #000;
  position: relative;
  overflow: hidden;
}

.cat-flagship-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,113,227,0.14) 0%, transparent 60%);
  pointer-events: none;
}

.cat-flagship .container { position: relative; z-index: 1; }

.cat-flagship-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.cat-flagship-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 45%;
  background: radial-gradient(ellipse, rgba(0,113,227,0.4) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glowBreath 4s ease-in-out infinite;
}

.cat-flagship-img {
  max-width: 460px;
  width: 100%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(0,80,200,0.35));
  animation: machineFloat 6s ease-in-out infinite;
}

.spec-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.spec-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
}

.spec-chip-val {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.spec-chip-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 1px;
}

.cat-flagship-model-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}

.cat-flagship-model {
  flex: 1;
  min-width: 130px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}

.cat-flagship-model-name {
  font-size: 13px;
  font-weight: 700;
  color: #8ec2ff;
  margin-bottom: 4px;
}

.cat-flagship-model-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* Subgroup headings inside a dense grid (used on Special Machines) */
.cat-group {
  margin-top: 88px;
}

.cat-group:first-child { margin-top: 0; }

.cat-group-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cat-group-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Tag chips describing what a machine sews — sits under the product name */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
  background: var(--light);
  border-radius: 6px;
  padding: 4px 9px;
}

/* =============================================
   SERVICES / SUPPORT PAGE
   ============================================= */

/* Hero with a photographic background instead of the gradient-only cat-hero */
.cat-hero.photo-hero { min-height: 72vh; }

.cat-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
}

.cat-hero.photo-hero .cat-hero-backdrop {
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.5) 32%,
    rgba(0,0,0,0.12) 58%,
    rgba(0,0,0,0.3) 100%
  );
}

/* "Real support, real hours" feature row */
.support-portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.support-portrait {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.support-hours-pill {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 980px;
  padding: 12px 22px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.16);
  white-space: nowrap;
}

.support-hours-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

.support-hours-pill span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

/* Coverage timeline — the "always on" 24-hour bar */
.coverage-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px 40px 32px;
}

.coverage-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.coverage-row-label {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
}

.coverage-row .coverage-track { flex: 1; margin-bottom: 0; }

.coverage-track {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}

.coverage-seg {
  height: 100%;
  position: relative;
}

.coverage-seg.human { background: var(--blue); }
.coverage-seg.ai { background: #c2703a; }
.coverage-seg.empty { background: rgba(0,0,0,0.07); }

.coverage-ticks {
  position: relative;
  height: 16px;
  margin: 8px 0 20px 168px;
}

.coverage-tick {
  position: absolute;
  top: 0;
  white-space: nowrap;
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
  transform: translateX(-50%);
}

.coverage-tick:first-child { transform: translateX(0); }
.coverage-tick:last-child { transform: translateX(-100%); }

.coverage-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.coverage-legend-dot.human { background: var(--blue); }
.coverage-legend-dot.ai { background: #c2703a; }

.coverage-note {
  font-size: 13.5px;
  color: var(--gray);
  margin: 0;
}

/* Subtle eligibility note under the AI support CTA */
.ai-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* Animated "how it works" chat demo */
.ai-demo {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

.ai-demo-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 0.5px solid var(--rule);
}

.ai-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

.ai-demo-title { font-size: 14px; font-weight: 600; color: var(--dark); }

.ai-demo-status {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray);
}

.ai-demo-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 250px;
}

.ai-demo-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.ai-demo-bubble-bot {
  background: var(--light);
  color: var(--dark);
  border-bottom-left-radius: 4px;
}

.ai-demo-bubble-user {
  align-self: flex-end;
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-demo-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 980px;
  border: 1px solid var(--rule);
  color: var(--gray);
}

.ai-demo-typing {
  background: var(--light);
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.ai-demo-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
  margin-right: 4px;
  animation: aiDotBounce 1s ease-in-out infinite;
}

.ai-demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-demo-typing span:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }

@keyframes aiDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

/* Looping conversation timeline — one 9s cycle, elements stay visible
   once they've appeared, then the whole thing fades for the next loop */
.ai-demo-step-1 { opacity: 0; animation: aiStep1 9s ease infinite; }
.ai-demo-step-2 { opacity: 0; animation: aiStep2 9s ease infinite; }
.ai-demo-step-3 { opacity: 0; animation: aiStep3 9s ease infinite; }
.ai-demo-step-4 { opacity: 0; animation: aiStep4 9s ease infinite; }
.ai-demo-step-5 { opacity: 0; animation: aiStep5 9s ease infinite; }

@keyframes aiStep1 {
  0%, 3%   { opacity: 0; transform: translateY(6px); }
  8%, 90%  { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; }
}

@keyframes aiStep2 {
  0%, 15%  { opacity: 0; transform: translateY(6px); }
  20%, 90% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; }
}

.ai-demo-pill-active { animation: aiPillTap 9s ease infinite; }

@keyframes aiPillTap {
  0%, 23%   { background: transparent; color: var(--gray); border-color: var(--rule); }
  27%, 90%  { background: var(--blue); color: white; border-color: var(--blue); }
  97%, 100% { background: transparent; color: var(--gray); border-color: var(--rule); }
}

@keyframes aiStep3 {
  0%, 27%  { opacity: 0; transform: translateY(6px); }
  32%, 90% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; }
}

@keyframes aiStep4 {
  0%, 34%  { opacity: 0; }
  38%, 49% { opacity: 1; }
  53%, 100% { opacity: 0; }
}

@keyframes aiStep5 {
  0%, 50%  { opacity: 0; transform: translateY(6px); }
  56%, 90% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; }
}

/* =============================================
   ORIGIN STORY — scroll-chaptered narrative (About Us)
   ============================================= */
.story-chapters {
  background: var(--white);
  position: relative;
}

/* A thin connecting "thread" running down the spine of the story */
.story-chapters::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--rule) 0px, var(--rule) 6px, transparent 6px, transparent 14px
  );
  z-index: 0;
}

.chapter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6vw;
  min-height: 92vh;
  padding: 72px 0;
}

.chapter.reverse { flex-direction: row-reverse; }

.chapter-media {
  flex: 0 0 54%;
  position: relative;
}

.chapter-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0,0,0,0.16);
}

.chapter-num {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 26px rgba(0,0,0,0.28);
  z-index: 2;
}

.chapter.reverse .chapter-num { left: auto; right: -20px; }

.chapter-content {
  flex: 1;
  min-width: 0;
  max-width: 440px;
}

.chapter-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.chapter-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 20px;
  text-wrap: balance;
}

.chapter-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
}

.chapter-body strong { color: var(--dark); font-weight: 600; }

/* Scroll reveal: image and text move in on slightly different beats */
.chapter-media.reveal { transform: translateY(44px) scale(0.97); }
.chapter-content.reveal { transform: translateY(26px); }

/* Higher-specificity override so the resting position always wins once
   revealed, regardless of the plain .reveal.in-view rule's source order. */
.chapter-media.reveal.in-view { transform: translateY(0) scale(1); }
.chapter-content.reveal.in-view { transform: translateY(0); }

/* Fixed chapter rail — desktop only */
.chapter-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  z-index: 40;
}

.chapter-rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.16);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.chapter-rail-dot:hover { background: rgba(0,0,0,0.32); }
.chapter-rail-dot.active { background: var(--blue); transform: scale(1.5); }

/* Closing / today section */
.story-close {
  padding: 100px 0 120px;
  text-align: center;
  background: var(--light);
}

.story-close-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.story-close-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.25;
  text-wrap: balance;
}

.story-close-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =============================================
   GROZ-BECKERT NEEDLE CARDS
   ============================================= */
.gb-needle-pack {
  position: relative;
  max-width: 200px;
  margin: 0 auto;
}

.gb-needle-pack img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.gb-needle-pack-label {
  position: absolute;
  top: 47%;
  left: 8%;
  right: 8%;
  text-align: center;
}

.gb-needle-pack-code {
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.gb-finish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.gb-finish-pill {
  font-size: 10.5px;
  font-weight: 600;
  color: #a35a2a;
  background: rgba(255,150,60,0.12);
  border: 0.5px solid rgba(255,150,60,0.25);
  border-radius: 6px;
  padding: 3px 8px;
}

/* Point-type reference strip */
.gb-point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.gb-point-card {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.gb-point-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.gb-point-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-center-col { padding: 60px 24px 40px; }
  .hero-badge-slot-1 { right: 0; }
  .hero-badge-slot-2 { left: 0; }
}

@media (max-width: 991px) {
  .hero-duo { flex-direction: column; padding: 20px 0 60px; gap: 32px; }
  .hero-machine-img { max-width: 320px; }
  .hero-spec-badge { display: none; }
  .hero-scene-wrap::before { display: none; }
  .stats-inner { flex-wrap: wrap; }
  .stat-cell { min-width: 50%; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
}

@media (max-width: 767px) {
  .apple-feature,
  .apple-lineup,
  .apple-warranty,
  .apple-contact { padding: 80px 0; }
  .feature-h2 { font-size: 36px; }
  .nest-diagram { flex-direction: column; gap: 20px; }
  .nest-arrow { transform: rotate(90deg); }
  .compare-diagram { flex-direction: column; gap: 20px; }
  .compare-arrow { transform: rotate(90deg); }
  .trim-row-label { width: 54px; }
  .blade-row-label { width: 66px; }
  .needle-anatomy { grid-template-columns: 1fr; }
  .cloth-points-strip { flex-direction: column; gap: 28px; }
  .cloth-points-lead { flex-basis: auto; }
  .litespeed-needle-card { padding: 36px 20px; }
  .litespeed-gallery { gap: 16px; }
  .litespeed-card { width: 128px; }
  .litespeed-card-2, .litespeed-card-4 { margin-top: 12px; }
  .beetle-feature { padding-top: 80px; }
  .beetle-banner {
    margin-top: 48px;
    height: 70vh;
    min-height: 420px;
    max-height: 640px;
  }
  .beetle-banner-text {
    padding: 0 24px;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  }
  .beetle-banner-quote { max-width: 100%; }
  .beetle-banner-dark .beetle-banner-text { padding: 0 20px 28px; }
  .beetle-banner-dark .beetle-banner-quote { font-size: 26px; }
  .portal-feature { padding: 80px 0; }
  .portal-row { margin-bottom: 48px; }
  .footer-top { flex-direction: column; }
  .stat-cell { min-width: 100%; }
  .cat-hero { min-height: auto; padding: 100px 0 0; }
  .cat-hero.photo-hero { min-height: 64vh; }
  .cat-hero-photo { object-position: 55% 30%; }
  .cat-hero-h1 { font-size: 34px; }
  .cat-flagship { padding: 80px 0 40px; }
  .cat-flagship-img { max-width: 300px; }
  .cat-flagship-model-row { flex-direction: column; }
  .cat-group { margin-top: 56px; }
  .chapter-rail { display: none; }
}

@media (max-width: 900px) {
  .chapter,
  .chapter.reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    min-height: 0;
    padding: 48px 0;
  }
  .chapter-media { flex-basis: auto; width: 100%; }
  .chapter-num { width: 42px; height: 42px; font-size: 12px; top: -14px; left: -14px; }
  .chapter.reverse .chapter-num { right: -14px; }
  .chapter-content { max-width: 100%; }
  .story-chapters::before { left: 22px; }
  .story-close { padding: 72px 0 88px; }
  .coverage-card { padding: 28px 20px 24px; }
  .coverage-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .coverage-row-label { flex-basis: auto; }
  .coverage-row .coverage-track { flex: none; width: 100%; height: 14px; }
  .coverage-ticks { margin-left: 0; }
  .coverage-tick { font-size: 9.5px; }
  .ai-demo { padding: 18px 18px 20px; }
  .ai-demo-body { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-demo-step-1,
  .ai-demo-step-2,
  .ai-demo-step-3,
  .ai-demo-step-5 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ai-demo-step-4 { animation: none; opacity: 0; }
  .ai-demo-pill-active {
    animation: none;
    background: var(--blue);
    color: white;
    border-color: var(--blue);
  }
  .ai-demo-typing span { animation: none; opacity: 1; }
}
