/* ==========================================================================
   Hero Four-Device Stage (MacBook, Windows PC, MX Creative Keypad, Android)
   Scoped strictly under .hero-devices to prevent bleeding to other sections.
   Version: 0.2.17
   ========================================================================== */

.hero:has(.hero-devices),
.hero.hero-devices {
  padding: 10px 0 20px;
  overflow: visible;
}
.hero:has(.hero-devices)::before,
.hero.hero-devices::before {
  display: none;
}

.hero-devices {
  position: relative;
  overflow: visible;
  padding: 10px 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.hero-devices::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px 500px at 70% 35%, rgba(217, 164, 65, 0.08), transparent 70%),
              radial-gradient(400px 300px at 85% 15%, rgba(224, 112, 63, 0.05), transparent 70%);
}

.hero-devices .desk-hero-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Exact Copy Typography */
.hero-devices .hero-h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ot-text);
  margin: 0 0 10px 0;
  text-wrap: balance;
}

.hero-devices .hero-sub {
  font-size: clamp(15.5px, 1.3vw, 18.5px);
  line-height: 1.42;
  color: var(--ot-text-2);
  margin: 0 auto 12px auto;
  max-width: 620px;
}

/* Compatibility Strip */
.hero-devices .compat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 12px 0 4px 0;
  padding: 0;
}

.hero-devices .compat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 14px/1.4 var(--ot-font-sans);
  color: var(--ot-text-2);
}

.hero-devices .glyph {
  display: inline-block;
  position: relative;
  flex: none;
}

/* 1. Laptop Glyph */
.hero-devices .glyph-laptop {
  width: 18px;
  height: 14px;
}
.hero-devices .glyph-laptop::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 14px;
  height: 9px;
  border: 1.5px solid var(--ot-gold-text);
  border-radius: 1px;
  box-sizing: border-box;
}
.hero-devices .glyph-laptop::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ot-gold-text);
  border-radius: 1px;
}

/* 2. Monitor Glyph */
.hero-devices .glyph-monitor {
  width: 18px;
  height: 14px;
}
.hero-devices .glyph-monitor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  width: 16px;
  height: 10px;
  border: 1.5px solid var(--ot-gold-text);
  border-radius: 1.5px;
  box-sizing: border-box;
}
.hero-devices .glyph-monitor::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 10px;
  height: 2px;
  background: var(--ot-gold-text);
  border-radius: 1px;
}

/* 3. Phone Glyph */
.hero-devices .glyph-phone {
  width: 12px;
  height: 16px;
}
.hero-devices .glyph-phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  width: 10px;
  height: 16px;
  border: 1.5px solid var(--ot-gold-text);
  border-radius: 2px;
  box-sizing: border-box;
}
.hero-devices .glyph-phone::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 1px;
  background: var(--ot-gold-text);
}

/* 4. Square Keypad Glyph */
.hero-devices .glyph-keypad {
  width: 14px;
  height: 14px;
}
.hero-devices .glyph-keypad::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ot-gold-text);
  border-radius: 2px;
  box-sizing: border-box;
}
.hero-devices .glyph-keypad::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border: 1px dashed var(--ot-gold-text);
  box-sizing: border-box;
}

/* CTAs */
.hero-devices .cta-group,
.hero-devices .ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-devices .ctas .btn-primary {
  background: linear-gradient(180deg, var(--ot-gold-hi) 0%, var(--ot-gold) 60%, #c8923a 100%);
  color: var(--ot-on-accent);
  box-shadow: var(--ot-glow-cta);
  font: 600 15px/1 var(--ot-font-sans);
  padding: 13px 24px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.hero-devices .ctas .btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.7), inset 0 0 0 1px rgba(143, 95, 28, 0.35), 0 12px 32px -8px rgba(217, 164, 65, 0.6);
  transform: translateY(-1px);
}

.hero-devices .btn-secondary-link {
  font: 600 15px/1 var(--ot-font-sans);
  color: var(--ot-gold-text);
  text-decoration: none;
  padding: 9px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-devices .btn-secondary-link:hover {
  color: var(--ot-gold-hi);
}

/* ==========================================================================
   DESK HERO STAGE & UNIFIED WORKSTATION
   ========================================================================== */

.hero-devices .desk-stage-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hero-devices .desk-stage {
  position: relative;
  width: 100%;
  max-width: 1220px;
  height: 485px;
  margin: 12px auto 0;
  perspective: 1200px;
  perspective-origin: 50% 65%;
}

/* Desk Surface Plane */
.hero-devices .desk-surface-plane {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 0;
  height: 235px;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 960px 130px at 50% 92%, rgba(217, 164, 65, 0.055), transparent 70%),
    linear-gradient(180deg, rgba(20, 18, 16, 0) 0%, rgba(26, 22, 19, 0.45) 30%, rgba(18, 15, 13, 0.90) 100%);
  border-radius: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  z-index: 0;
}

/* Panel capture */
.hero-devices .panel-capture {
  position: absolute;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.10);
  z-index: 3;
  display: block;
}

/* 1. MACBOOK */
.hero-devices .desk-stage .device-macbook {
  position: absolute;
  left: -68px;
  top: 0px;
  width: 432px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-devices .macbook-lid {
  width: 100%;
  background: linear-gradient(180deg, #666876 0%, #4e505d 22%, #3c3d48 65%, #2d2e37 100%);
  border-radius: 12px 12px 0 0;
  padding: 3px 3px 0 3px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 
    inset 0 1.2px 0.5px rgba(255, 255, 255, 0.44),
    inset 1px 0 0 rgba(255, 255, 255, 0.18),
    inset -1px 0 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px #1e1f26,
    0 18px 40px rgba(0, 0, 0, 0.65);
}

.hero-devices .macbook-glass-bezel {
  width: 100%;
  background: #08090c;
  border-radius: 9px 9px 0 0;
  padding: 5px 6px 0 6px;
  box-sizing: border-box;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-devices .macbook-notch-housing {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 6.5px;
  background: #06070a;
  border-radius: 0 0 4.5px 4.5px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-devices .macbook-camera-lens {
  width: 2.5px;
  height: 2.5px;
  background: #040912;
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.20);
}

.hero-devices .macbook-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: 
    radial-gradient(circle at 35% 35%, #1e2230 0%, #12131a 50%, #0a0b10 100%);
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-devices .macbook-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 2;
}

.hero-devices .macbook-screen .mac-panel {
  top: 16px;
  right: 6px;
  max-width: 48%;
}

.hero-devices .macbook-hinge {
  width: 96%;
  height: 3px;
  background: #0a0b0e;
  border-top: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  margin: 0 auto;
  border-radius: 1px;
}

.hero-devices .macbook-deck-assembly {
  width: 116%;
  transform: translateX(18px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-devices .macbook-deck {
  width: 100%;
  height: 56px;
  background: linear-gradient(180deg, #5c5e6b 0%, #4c4e5a 30%, #3e404b 75%, #33343f 100%);
  clip-path: polygon(4% 0%, 96% 0%, 100% 100%, 0% 100%);
  padding: 4px 18px 2px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 
    inset 0 1.2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.hero-devices .macbook-keyboard-well {
  width: 85%;
  height: 28px;
  background: #14151a;
  border-radius: 3px;
  box-shadow: 
    inset 0 1.5px 3px rgba(0, 0, 0, 0.90),
    inset 0 0 0 0.8px rgba(0, 0, 0, 0.65),
    0 0.5px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 1.5px 4px;
  box-sizing: border-box;
}

.hero-devices .macbook-key-row {
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #1f2027 0px, #1f2027 12px, #14151a 12px, #14151a 13.5px);
  opacity: 0.9;
  border-radius: 0.5px;
  box-shadow: inset 0 0.4px 0 rgba(255, 255, 255, 0.05);
}
.hero-devices .macbook-key-row.r5 {
  background: linear-gradient(90deg, 
    #1f2027 0%, #1f2027 28%, 
    #14151a 28%, #14151a 29.5%,
    #22232b 29.5%, #22232b 70.5%, 
    #14151a 70.5%, #14151a 72%, 
    #1f2027 72%, #1f2027 100%
  );
}

.hero-devices .macbook-trackpad {
  width: 114px;
  height: 16px;
  margin-top: 3.5px;
  border: 0.8px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: linear-gradient(180deg, #575967 0%, #4a4c58 100%);
  box-shadow: 
    inset 0 0.5px 1px rgba(0, 0, 0, 0.25),
    0 0.5px 0 rgba(255, 255, 255, 0.08);
}

.hero-devices .macbook-front-edge {
  width: 100%;
  height: 1.2px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.65) 20%, 
    rgba(255, 255, 255, 0.90) 50%, 
    rgba(255, 255, 255, 0.65) 80%, 
    rgba(255, 255, 255, 0.15) 100%
  );
  box-shadow: 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.hero-devices .macbook-front-lip {
  width: 100%;
  height: 5px;
  background: linear-gradient(180deg, #3a3b46 0%, #22232b 100%);
  border-radius: 0 0 6px 6px;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.50);
}
.hero-devices .macbook-thumb-notch {
  width: 44px;
  height: 2px;
  background: #111216;
  margin: 0 auto;
  border-radius: 0 0 2px 2px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.hero-devices .macbook-shadow {
  position: absolute;
  bottom: -18px;
  left: -6%;
  width: 112%;
  height: 26px;
  background: radial-gradient(ellipse 65% 50% at 50% 30%, rgba(0, 0, 0, 0.70), transparent 75%);
  pointer-events: none;
}

/* 2. WINDOWS PC MONITOR */
.hero-devices .desk-stage .device-pc {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 476px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-devices .pc-enclosure {
  width: 100%;
  background: linear-gradient(180deg, #3a3b47 0%, #292a34 40%, #1e1f26 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px 6px 4px 4px;
  padding: 2.5px 2.5px 0 2.5px;
  box-sizing: border-box;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 48px rgba(0, 0, 0, 0.75);
}

.hero-devices .pc-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: 
    radial-gradient(circle at 70% 35%, #181d28 0%, #101219 55%, #08090d 100%);
  border-top: 2px solid #060709;
  border-left: 2px solid #060709;
  border-right: 2px solid #060709;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.hero-devices .pc-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-devices .pc-taskbar-center-icons {
  width: 48px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.hero-devices .pc-screen .win-panel {
  bottom: 24px;
  right: 8px;
  max-width: 44%;
}

.hero-devices .pc-chin {
  height: 13px;
  background: linear-gradient(180deg, #2c2d37 0%, #1c1d24 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 0 0 4px 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.hero-devices .pc-chin-line {
  width: 82%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.15) 75%, transparent);
}

.hero-devices .pc-stand-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-devices .pc-stand-neck {
  width: 18px;
  height: 48px;
  background: linear-gradient(90deg, #525462 0%, #8b8ea0 35%, #abb0c4 50%, #8b8ea0 65%, #4c4e5c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 0 2px rgba(0, 0, 0, 0.65);
  border-radius: 2px 2px 0 0;
}

.hero-devices .pc-stand-foot {
  width: 168px;
  height: 14px;
  margin-top: -4px;
  border-radius: 50% / 40%;
  background: 
    radial-gradient(ellipse 135px 9px at 50% 22%, rgba(255, 255, 255, 0.50), transparent 70%),
    linear-gradient(180deg, #707383 0%, #515463 50%, #353642 100%);
  border-top: 1.2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.70);
}

.hero-devices .pc-stand-shadow {
  width: 205px;
  height: 18px;
  margin-top: -7px;
  background: radial-gradient(ellipse 65% 50% at 50% 50%, rgba(0, 0, 0, 0.72), transparent 75%);
  pointer-events: none;
}

/* 3. LOGITECH MX CREATIVE KEYPAD */
.hero-devices .desk-stage .device-keypad-wrapper, .hero-devices .desk-stage .stage {
  position: absolute;
  left: 375px;
  top: 42px;
  width: 366px;
  z-index: 5;
  perspective: 1200px;
  perspective-origin: 50% 65%;
  margin: 0;
}

.hero-devices .keypad-cable {
  position: absolute;
  top: -48px;
  left: calc(50% + 34px);
  width: 48px;
  height: 56px;
  pointer-events: none;
  z-index: 1;
}

.hero-devices .keypad-stand-wedge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) translateZ(-45px);
  width: 326px;
  height: 226px;
  background: linear-gradient(180deg, #24242d 0%, #16161c 50%, #0a0a0d 100%);
  border-radius: 18px;
  box-shadow: 
    0 26px 56px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  z-index: 2;
  pointer-events: none;
}

.hero-devices .device-keypad {
  position: relative;
  width: 338px;
  height: 392px;
  background: linear-gradient(176deg, #2e2e36 0%, #222227 35%, #19191d 80%, #121215 100%);
  border-radius: 33px;
  box-shadow: 
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 22px 46px rgba(0, 0, 0, 0.80),
    0 4px 12px rgba(0, 0, 0, 0.55);
  border-bottom: 2.5px solid #0c0c0f;
  padding: 22px 21.5px 22px 21.5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  z-index: 4;
}

.hero-devices .keypad-master-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-devices .keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 93px);
  grid-template-rows: repeat(3, 93px);
  gap: 8px;
  justify-content: center;
  width: 295px;
}

.hero-devices .key-button {
  width: 93px;
  height: 93px;
  background: linear-gradient(180deg, #2d2d35 0%, #1f1f25 50%, #151519 100%);
  border-radius: 12px;
  padding: 2.5px;
  box-sizing: border-box;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.70),
    0 1.5px 2.5px rgba(0, 0, 0, 0.45),
    0 3px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-devices .key-frame {
  width: 100%;
  height: 100%;
  background: #08080a;
  border-radius: 10px;
  box-shadow: inset 0 1.2px 3px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-devices .key-display {
  --key-display-size: 88px;
  width: var(--key-display-size);
  height: var(--key-display-size);
  position: relative;
  background-image: url('/assets/img/hero/keypad-keys-f0-0217.png?v=2d082b9583');
  background-size: calc(var(--key-display-size) * (868 / 236)) calc(var(--key-display-size) * (868 / 236));
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
}

.hero-devices .key-c0-r0 { background-position: 0 0; }
.hero-devices .key-c1-r0 { background-position: calc(-1 * var(--key-display-size) * (316 / 236)) 0; }
.hero-devices .key-c2-r0 { background-position: calc(-2 * var(--key-display-size) * (316 / 236)) 0; }

.hero-devices .key-c0-r1 { background-position: 0 calc(-1 * var(--key-display-size) * (316 / 236)); }
.hero-devices .key-c1-r1 { background-position: calc(-1 * var(--key-display-size) * (316 / 236)) calc(-1 * var(--key-display-size) * (316 / 236)); }
.hero-devices .key-c2-r1 { background-position: calc(-2 * var(--key-display-size) * (316 / 236)) calc(-1 * var(--key-display-size) * (316 / 236)); }

.hero-devices .key-c0-r2 { background-position: 0 calc(-2 * var(--key-display-size) * (316 / 236)); }
.hero-devices .key-c1-r2 { background-position: calc(-1 * var(--key-display-size) * (316 / 236)) calc(-2 * var(--key-display-size) * (316 / 236)); }
.hero-devices .key-c2-r2 { background-position: calc(-2 * var(--key-display-size) * (316 / 236)) calc(-2 * var(--key-display-size) * (316 / 236)); }

.hero-devices .key-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  position: absolute;
  inset: 0;
}

.hero-devices .key-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0) 65%);
  z-index: 5;
}

.hero-devices .keypad-bottom-row {
  width: 295px;
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}
.hero-devices .keypad-page-buttons {
  display: flex;
  gap: 9px;
}
.hero-devices .keypad-page-btn {
  width: 101px;
  height: 35px;
  border-radius: 8px;
  background: linear-gradient(180deg, #282830 0%, #1f1f24 55%, #151518 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #8c8c96;
  font-size: 20px;
  line-height: 1;
  user-select: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}
.hero-devices .keypad-page-btn:hover {
  background: linear-gradient(180deg, #30303a 0%, #24242b 55%, #18181d 100%);
  color: #a8a8b4;
}
.hero-devices .page-chevron {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 300;
}

.hero-devices .keypad-stand-lip {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 7.5px;
  background: #151519;
  border-radius: 3.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.hero-devices .keypad-stand-base {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 334px;
  height: 44px;
  background: linear-gradient(180deg, #2b2b36 0%, #1a1a22 45%, #0e0e13 100%);
  border-radius: 0 0 18px 18px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.20);
  box-shadow: 
    0 20px 42px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 3;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.hero-devices .keypad-stand-cradle-lip {
  width: 126px;
  height: 11px;
  margin-top: -5px;
  background: linear-gradient(180deg, #363644 0%, #1e1e26 100%);
  border-radius: 4px;
  border-top: 1.6px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* 4. ANDROID PHONE */
.hero-devices .desk-stage .device-phone.phone-demo,
.hero-devices .desk-stage .device-phone {
  position: absolute;
  left: 762px;
  top: 8px;
  width: 200px;
  max-width: 200px;
  z-index: 6;
  border-radius: 28px;
  padding: 5px;
  background: linear-gradient(170deg, #3c3c46 0%, #202026 35%, #2c2c34 70%, #151519 100%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.20),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 26px 55px -10px rgba(0, 0, 0, 0.90),
    0 8px 18px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  flex: none;
  margin: 0;
  justify-self: auto;
}

.hero-devices .phone-button-volume {
  position: absolute;
  right: -2.5px;
  top: 75px;
  width: 3px;
  height: 38px;
  background: linear-gradient(180deg, #3f3f48 0%, #222228 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.4);
}
.hero-devices .phone-button-power {
  position: absolute;
  right: -2.5px;
  top: 126px;
  width: 3px;
  height: 24px;
  background: linear-gradient(180deg, #3f3f48 0%, #222228 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.4);
}

.hero-devices .phone-screen-container {
  border-radius: 23px;
  overflow: hidden;
  aspect-ratio: 9 / 20;
  position: relative;
  background: #000;
  display: block;
  width: 100%;
}

.hero-devices .phone-camera-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6.5px;
  height: 6.5px;
  background: #000;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0.8px rgba(255, 255, 255, 0.14);
}
.hero-devices .phone-camera-inner {
  width: 2px;
  height: 2px;
  background: #071220;
  border-radius: 50%;
}

.hero-devices .phone-screen {
  border-radius: inherit;
  overflow: hidden;
  aspect-ratio: 9 / 20;
  background: #000;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-devices .phone-screen-container .phone-shot,
.hero-devices .desk-stage .phone-shot,
.hero-devices .phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  aspect-ratio: 9 / 20;
}

.hero-devices .phone-shadow {
  position: absolute;
  bottom: -14px;
  left: -5%;
  width: 110%;
  height: 22px;
  background: radial-gradient(ellipse 65% 45% at 50% 50%, rgba(0, 0, 0, 0.7), transparent 75%);
  pointer-events: none;
}

/* ==========================================================================
   INTEGRATION SCOPES — beat site-v3 / .page-home / inline global phone rules
   inside .hero-devices only (do not touch the globals; other sections use them)
   ========================================================================== */
.hero-devices .hero-visuals,
.hero-devices .desk-stage.product-pair {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
  grid-template-columns: none;
  align-items: initial;
}

.hero-devices .desk-stage figure.stage,
.hero-devices .desk-stage .stage {
  display: block;
  margin: 0;
  max-width: none;
}

/* Phone figure: beat .site-v3.page-home .hero .phone-demo {width:100%} (0,4,0)
   and .site-v3 .product-pair .phone-demo {max-width:240px} */
.hero-devices .desk-stage .device-phone.phone-demo {
  width: 200px;
  max-width: 200px;
  margin: 0;
  justify-self: auto;
}

/* Phone media: beat .site-v3 .product-pair video/img {width:100%; height:auto} */
.hero-devices .desk-stage .phone-screen-container .phone-shot,
.hero-devices .desk-stage .phone-demo .phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  aspect-ratio: 9 / 20;
}

/* ---- fold-fit at desktop: smaller H1 + tighter vertical rhythm ---- */
.hero:has(.hero-devices),
.hero.hero-devices {
  padding: 8px 0 10px;
}
.hero-devices {
  padding: 8px 0 10px;
}
.hero-devices .desk-hero-wrap > .copy {
  width: 100%;
  max-width: 1120px;
}
.hero-devices .hero-h1 {
  font-size: clamp(30px, 3.15vw, 46px);
  max-width: none;
  width: 100%;
  margin: 0 0 8px 0;
}
.hero-devices .hero-sub {
  margin: 0 auto 8px auto;
}
.hero-devices .compat-strip {
  margin: 8px 0 2px 0;
}
.hero-devices .cta-group,
.hero-devices .ctas {
  margin-top: 10px;
}
.hero-devices .desk-stage {
  margin: 4px auto 0;
  height: 460px;
}

/* Light theme adaptations */
:root[data-theme="light"] .hero-devices .desk-stage .desk-surface-plane,
:root[data-theme="light"] .hero-devices .desk-surface-plane,
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-devices .desk-stage .desk-surface-plane,
  :root:not([data-theme="dark"]) .hero-devices .desk-surface-plane {
    background: 
      radial-gradient(ellipse 960px 130px at 50% 92%, rgba(217, 164, 65, 0.06), transparent 70%),
      linear-gradient(180deg, rgba(236, 229, 220, 0) 0%, rgba(224, 214, 201, 0.45) 30%, rgba(210, 198, 184, 0.85) 100%);
    border-bottom: 1px solid var(--ot-hair, #e0d7cb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}
:root[data-theme="light"] .hero-devices .macbook-shadow,
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-devices .macbook-shadow {
    background: radial-gradient(ellipse 65% 50% at 50% 30%, rgba(60, 40, 20, 0.28), transparent 75%);
  }
}
:root[data-theme="light"] .hero-devices .pc-stand-shadow,
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-devices .pc-stand-shadow {
    background: radial-gradient(ellipse 65% 50% at 50% 50%, rgba(60, 40, 20, 0.32), transparent 75%);
  }
}
:root[data-theme="light"] .hero-devices .phone-shadow,
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-devices .phone-shadow {
    background: radial-gradient(ellipse 65% 45% at 50% 50%, rgba(60, 40, 20, 0.32), transparent 75%);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-devices .key-canvas {
    display: none;
  }
  .hero-devices .key-display {
    background-image: url('/assets/img/hero/keypad-keys-f0-0217.png?v=2d082b9583');
  }
}

/* ==========================================================================
   RESPONSIVE (390px Mobile Viewport)
   ========================================================================== */

@media (max-width: 768px) {
  .hero:has(.hero-devices),
  .hero.hero-devices,
  .hero-devices {
    padding: 10px 0 18px;
  }
  .hero-devices .desk-hero-wrap {
    padding: 0 16px;
  }
  .hero-devices .hero-h1 {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .hero-devices .hero-sub {
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  .hero-devices .compat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 10px;
    margin: 8px 0;
  }
  .hero-devices .compat-item {
    font-size: 13px;
    gap: 7px;
  }
  .hero-devices .cta-group,
  .hero-devices .ctas {
    margin-top: 10px;
    gap: 12px 18px;
  }
  .hero-devices .ctas .btn-primary {
    font-size: 14px;
    padding: 10px 18px;
  }
  .hero-devices .btn-secondary-link {
    font-size: 13.5px;
    padding: 5px 0;
  }

  /* Desk Stage on 390px Mobile */
  .hero-devices .desk-stage {
    max-width: 358px;
    height: 245px;
    margin: 10px auto 0;
    perspective: none;
  }
  .hero-devices .desk-surface-plane {
    height: 140px;
    left: -10px;
    right: -10px;
  }

  .hero-devices .desk-stage .device-macbook {
    width: 146px;
    left: 2px;
    top: 16px;
  }
  .hero-devices .macbook-lid {
    border-radius: 7px 7px 0 0;
    padding: 2px 2px 0 2px;
  }
  .hero-devices .macbook-glass-bezel {
    border-radius: 5px 5px 0 0;
    padding: 2.5px 3px 0 3px;
  }
  .hero-devices .macbook-front-edge {
    display: none;
  }
  .hero-devices .macbook-notch-housing {
    width: 18px;
    height: 4px;
    top: 0;
  }
  .hero-devices .macbook-camera-lens {
    width: 1.5px;
    height: 1.5px;
  }
  .hero-devices .macbook-menubar {
    height: 7px;
  }
  .hero-devices .macbook-screen .mac-panel {
    top: 8px;
    right: 4px;
    border-radius: 3px;
  }
  .hero-devices .macbook-deck {
    height: 22px;
    padding: 2px 8px 1px 8px;
  }
  .hero-devices .macbook-keyboard-well {
    height: 12px;
  }
  .hero-devices .macbook-key-row {
    height: 1.2px;
  }
  .hero-devices .macbook-trackpad {
    width: 32px;
    height: 5px;
    margin-top: 1.5px;
  }
  .hero-devices .macbook-front-lip {
    height: 2.5px;
  }
  .hero-devices .macbook-thumb-notch {
    width: 20px;
    height: 1px;
  }

  .hero-devices .desk-stage .device-pc {
    width: 158px;
    right: 2px;
    top: 6px;
  }
  .hero-devices .pc-enclosure {
    padding: 2px 2px 0 2px;
    border-radius: 3px;
  }
  .hero-devices .pc-chin {
    height: 5px;
  }
  .hero-devices .pc-chin-line {
    display: none;
  }
  .hero-devices .pc-taskbar {
    height: 8px;
  }
  .hero-devices .pc-screen .win-panel {
    bottom: 10px;
    right: 4px;
    border-radius: 3px;
  }
  .hero-devices .pc-stand-neck {
    width: 12px;
    height: 20px;
  }
  .hero-devices .pc-stand-foot {
    width: 68px;
    height: 9px;
  }
  .hero-devices .pc-stand-shadow {
    width: 140px;
  }

  .hero-devices .desk-stage .device-keypad-wrapper,
  .hero-devices .desk-stage figure.stage,
  .hero-devices .desk-stage .stage {
    left: 82px;
    top: 48px;
    width: 132px;
    max-width: 132px;
    perspective: none;
  }
  .hero-devices .keypad-cable {
    display: none;
  }
  .hero-devices .keypad-stand-wedge {
    display: none;
  }
  .hero-devices .keypad-stand-lip {
    display: none;
  }
  .hero-devices .keypad-stand-base {
    display: none;
  }
  .hero-devices .device-keypad {
    width: 132px;
    height: 154px;
    padding: 9px 8px 8px 8px;
    border-radius: 14px;
    transform: none;
  }
  .hero-devices .keypad-grid {
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
    gap: 3.5px;
    width: 115px;
  }
  .hero-devices .key-button {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    padding: 1px;
  }
  .hero-devices .key-frame {
    border-radius: 4px;
  }
  .hero-devices .key-display {
    --key-display-size: 34px;
    width: 34px;
    height: 34px;
    border-radius: 3px;
  }
  .hero-devices .keypad-bottom-row {
    width: 115px;
    margin-top: 5px;
  }
  .hero-devices .keypad-page-buttons {
    gap: 3.5px;
  }
  .hero-devices .keypad-page-btn {
    width: 36px;
    height: 13px;
    border-radius: 3.5px;
    font-size: 11px;
  }

  .hero-devices .desk-stage .device-phone.phone-demo,
  .hero-devices .desk-stage .device-phone {
    width: 82px;
    max-width: 82px;
    left: 210px;
    top: 28px;
    padding: 2.5px;
    border-radius: 13px;
    margin: 0;
    justify-self: auto;
  }
  .hero-devices .phone-screen-container {
    border-radius: 11px;
  }
  .hero-devices .phone-camera-dot {
    width: 3.5px;
    height: 3.5px;
    top: 3px;
  }
  .hero-devices .phone-camera-inner {
    width: 1px;
    height: 1px;
  }
  .hero-devices .phone-button-volume {
    height: 16px;
    top: 30px;
    width: 1.5px;
    right: -1.5px;
  }
  .hero-devices .phone-button-power {
    height: 10px;
    top: 50px;
    width: 1.5px;
    right: -1.5px;
  }
}
