/* ================================================
   SUFRAH — Flagship Hero Section v2 (Production Ready)
   Multi-Layered Product Ecosystem (Web + App + Ops + Signals)
   Strict Containment & 4-Corner Perimeter Alignment
   ================================================ */

/* ------------------------------------------------
   1. HERO CONTAINER & BASE STAGE
   ------------------------------------------------ */
.hero-v2 {
  position: relative;
  min-height: clamp(660px, 90vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(85px + var(--space-4));
  padding-bottom: var(--space-8);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-bg-primary);
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   HERO METRICS / TRUST BAR
   ───────────────────────────────────────────────────────────── */
.hero-metrics {
  position: relative;
  z-index: 1;
  padding: clamp(14px, 2.2vw, 24px) 0 clamp(38px, 5vw, 64px);
  direction: rtl;
}

.hero-metrics__band {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(191, 164, 255, 0.24);
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.16), transparent 52%), linear-gradient(115deg, #181126 0%, #2d1b50 50%, #191329 100%);
  box-shadow: 0 16px 34px rgba(54, 24, 100, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.11), inset 0 -1px 0 rgba(9, 5, 19, 0.24);
}

.hero-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-metrics__item {
  display: grid;
  justify-items: center;
  align-content: center;
  position: relative;
  min-height: 156px;
  padding: 32px 22px 34px;
  text-align: center;
  transition: background-color 220ms ease, transform 220ms ease;
  opacity: 1;
  transform: none;
}

.js .hero-metrics__item { opacity: 0; transform: translateY(14px); }

.hero-metrics__item + .hero-metrics__item::before {
  position: absolute;
  inset-block: 27px;
  inset-inline-start: 0;
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(224, 211, 255, 0.22), transparent);
}

.hero-metrics[data-state="visible"] .hero-metrics__item {
  animation: hero-metrics-reveal 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-metrics[data-state="visible"] .hero-metrics__item:nth-child(2) { animation-delay: 90ms; }
.hero-metrics[data-state="visible"] .hero-metrics__item:nth-child(3) { animation-delay: 180ms; }
.hero-metrics[data-state="visible"] .hero-metrics__item:nth-child(4) { animation-delay: 270ms; }

.hero-metrics__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  color: #cbb5ff;
  border: 1px solid rgba(220, 203, 255, 0.3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(218, 199, 255, 0.18), rgba(125, 83, 190, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.hero-metrics__icon > span { display: contents; }
.hero-metrics__icon svg, .hero-metrics__icon .features-animated-icon { width: 25px; height: 25px; }
.hero-metrics__value { display: block; direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-size: clamp(2.15rem, 3vw, 2.55rem); line-height: 1; letter-spacing: -0.025em; font-weight: 800; color: #fff; }
.hero-metrics__label { display: block; max-width: 23ch; margin-top: 10px; color: rgba(246, 241, 255, 0.7); font-size: 0.84rem; line-height: 1.55; font-weight: 500; }

@keyframes hero-metrics-reveal { to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) and (pointer: fine) {
  .hero-metrics__item:hover {
    background: radial-gradient(circle at 50% 32%, rgba(224, 211, 255, 0.055), transparent 67%);
    transform: translateY(-2px);
  }
  .hero-metrics__item:hover .hero-metrics__icon {
    color: #e1d4ff;
    border-color: rgba(230, 218, 255, 0.48);
    background: rgba(203, 181, 255, 0.16);
    box-shadow: 0 0 16px rgba(166, 126, 239, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .hero-metrics__item:hover .hero-metrics__value { color: #fff; text-shadow: 0 0 14px rgba(210, 190, 255, 0.18); }
  [data-theme="light"] .hero-metrics__item:hover { background: radial-gradient(circle at 50% 32%, rgba(111, 72, 181, 0.04), transparent 67%); }
  [data-theme="light"] .hero-metrics__item:hover .hero-metrics__icon { color: #7143ad; border-color: rgba(113, 67, 173, 0.38); background: rgba(190, 157, 244, 0.18); box-shadow: 0 0 16px rgba(113, 67, 173, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78); }
  [data-theme="light"] .hero-metrics__item:hover .hero-metrics__value { color: #29164c; text-shadow: 0 0 14px rgba(113, 67, 173, 0.12); }
}

[data-theme="light"] .hero-metrics__band {
  color: #29164c;
  border-color: rgba(124, 82, 190, 0.18);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 55%), linear-gradient(115deg, #eee6ff 0%, #f8f5ff 50%, #e9dfff 100%);
  box-shadow: 0 16px 34px rgba(104, 72, 164, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(111, 72, 181, 0.08);
}
[data-theme="light"] .hero-metrics__item + .hero-metrics__item::before { background: linear-gradient(to bottom, transparent, rgba(117, 78, 181, 0.2), transparent); }
[data-theme="light"] .hero-metrics__icon { color: #7143ad; border-color: rgba(113, 67, 173, 0.22); background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(190, 157, 244, 0.2)); }
[data-theme="light"] .hero-metrics__value { color: #29164c; }
[data-theme="light"] .hero-metrics__label { color: rgba(41, 22, 76, 0.68); }

@media (max-width: 900px) {
  .hero-metrics__item { min-height: 150px; padding-inline: 14px; }
  .hero-metrics__label { font-size: 0.82rem; }
}

@media (max-width: 640px) {
  .hero-metrics { padding-top: 14px; padding-bottom: 46px; }
  .hero-metrics__band { border-radius: 20px; }
  .hero-metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics__item { min-height: 144px; padding: 25px 12px 24px; }
  .hero-metrics__item + .hero-metrics__item::before { inset-block: 22px; }
  .hero-metrics__item:nth-child(n + 3)::after { position: absolute; inset-inline: 18px; inset-block-start: 0; height: 1px; content: ""; background: linear-gradient(to right, transparent, rgba(224, 211, 255, 0.2), transparent); }
  [data-theme="light"] .hero-metrics__item:nth-child(n + 3)::after { background: linear-gradient(to right, transparent, rgba(117, 78, 181, 0.16), transparent); }
  .hero-metrics__icon { width: 43px; height: 43px; margin-bottom: 11px; }
  .hero-metrics__value { font-size: 1.85rem; }
  .hero-metrics__label { max-width: 17ch; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-metrics__item, .hero-metrics__icon { opacity: 1; transform: none; animation: none !important; transition: none !important; }
}

.hero-v2__stage {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: clamp(24px, 2.5vw, 42px);
  align-items: center;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

/* ------------------------------------------------
   2. AMBIENT BACKGROUND GLOWS & SUBTLE GRID
   ------------------------------------------------ */
.hero-v2__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hero-v2__glow-a {
  position: absolute;
  width: 650px;
  height: 650px;
  top: -120px;
  left: 5%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.02) 55%, transparent 70%);
  filter: blur(85px);
  border-radius: 50%;
  animation: heroPulseGlow 9s ease-in-out infinite alternate;
}

.hero-v2__glow-b {
  position: absolute;
  width: 480px;
  height: 480px;
  bottom: -80px;
  right: 8%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.07) 0%, rgba(124, 58, 237, 0.02) 55%, transparent 70%);
  filter: blur(90px);
  border-radius: 50%;
}

/* Subconscious background grid texture */
.hero-v2__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 45% 45%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 45% 45%, black 15%, transparent 70%);
}

[data-theme="light"] .hero-v2__glow-a {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, rgba(124, 58, 237, 0.01) 50%, transparent 70%);
}

[data-theme="light"] .hero-v2__glow-b {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .hero-v2__grid {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.012) 1px, transparent 1px);
}

@keyframes heroPulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.75; }
  100% { transform: scale(1.08) translate(-15px, 20px); opacity: 0.95; }
}

/* ------------------------------------------------
   3. COPY SIDE (RIGHT IN RTL)
   ------------------------------------------------ */
.hero-v2__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 550px;
  z-index: 2;
}

/* 3a. Top Badge */
.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(167, 139, 250, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: var(--space-5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: default;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: heroFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-v2__badge:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.18);
}

.hero-v2__badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: heroPulseBeacon 2s infinite;
}

.hero-v2__badge-icon {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  flex-shrink: 0;
}

.hero-v2__badge-text {
  font-size: 0.86rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

[data-theme="light"] .hero-v2__badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 240, 255, 0.88));
  border-color: rgba(124, 58, 237, 0.16);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06), inset 0 1px 0 #fff;
}

/* 3b. Main Heading */
.hero-v2__title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  animation: heroFadeUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-v2__title .text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #c4a8ff 50%, #e0d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

[data-theme="light"] .hero-v2__title .text-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 60%, #4c1d95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 3c. Supporting Text */
.hero-v2__desc {
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  line-height: 1.82;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  animation: heroFadeUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 3d. CTA Cluster */
.hero-v2__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  animation: heroFadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-v2__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.hero-v2__cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.hero-v2__cta-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero-v2__cta-primary:hover::before {
  left: 140%;
}

.hero-v2__cta-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
  transform: scaleX(-1);
}

.hero-v2__cta-primary:hover .hero-v2__cta-arrow {
  transform: scaleX(-1) translateX(3px);
}

.hero-v2__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: var(--color-text-primary);
  font-size: 0.96rem;
  font-weight: var(--fw-semibold);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.hero-v2__cta-secondary:hover {
  transform: translateY(-2px);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--color-brand-300);
}

[data-theme="light"] .hero-v2__cta-secondary {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.16);
  color: var(--color-text-primary);
}

[data-theme="light"] .hero-v2__cta-secondary:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.32);
  color: var(--color-brand-600);
}

.hero-v2__cta-play {
  width: 14px;
  height: 14px;
  color: var(--color-brand-400);
}

/* 3e. Unified Trust Proof Strip */
.hero-v2__trust-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heroFadeUp 0.8s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="light"] .hero-v2__trust-strip {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(124, 58, 237, 0.09);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hero-v2__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.hero-v2__trust-star {
  color: #fbbf24;
  font-size: 0.92rem;
}

.hero-v2__trust-check {
  width: 14px;
  height: 14px;
  color: var(--color-success);
  flex-shrink: 0;
}

.hero-v2__trust-strong {
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.hero-v2__trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="light"] .hero-v2__trust-sep {
  background: rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------------
   4. PRODUCT ECOSYSTEM STAGE (LEFT IN RTL)
   ------------------------------------------------ */
.hero-v2__scene {
  --hero-web-w: 500px;
  --hero-web-h: 355px;
  --hero-web-left: 40px;
  --hero-phone-w: 242px;
  --hero-phone-h: 462px;
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}

.hero-v2__scene-aura {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, rgba(124, 58, 237, 0.02) 55%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: heroAuraPulse 7s ease-in-out infinite alternate;
}

@keyframes heroAuraPulse {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.05); }
}

/* ------------------------------------------------
   4a. LAYER 1 (BACK): WEBSITE STOREFRONT SURFACE
   ------------------------------------------------ */
.hero-v2__surface-web {
  position: absolute;
  top: -10px;
  left: calc(var(--hero-web-left) + (var(--hero-web-w) - 520px) / 2);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  transform-origin: center center;
  z-index: 2;
  overflow: visible;
  display: block;
  pointer-events: none;
  transition: none;
  animation: heroOrbitEnter 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}

[data-theme="light"] .hero-v2__surface-web {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Ambient ecosystem replacement for the former storefront surface. */
.hero-v2__orbit-system {
  position: absolute;
  inset: 0;
  overflow: visible;
  isolation: isolate;
}

.hero-v2__orbit-system::after {
  position: absolute;
  z-index: -1;
  inset: 10% 12%;
  border-radius: 50%;
  content: "";
  opacity: 0.42;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent 66%), radial-gradient(circle at 50% 52%, transparent 48%, rgba(124, 58, 237, 0.035) 49%, transparent 50%);
}

.hero-v2__orbit-glow {
  position: absolute;
  inset: 20% 23%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.08) 37%, transparent 72%);
  filter: blur(18px);
  opacity: 0.72;
  animation: heroOrbitGlow 7s ease-in-out infinite alternate;
}

.hero-v2__orbit-rings {
  position: absolute;
  top: 50%;
  left: calc(50% - 2.5px);
  width: var(--hero-orbit-size, 522px);
  height: var(--hero-orbit-size, 522px);
  overflow: visible;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.hero-v2__orbit-primary,
.hero-v2__orbit-secondary {
  transform-box: view-box;
  transform-origin: center;
}

.hero-v2__orbit-primary {
  animation: heroOrbitPrimarySpin 32s linear 1.25s infinite;
  filter: drop-shadow(0 0 2px rgba(196, 181, 253, 0.28));
}

.hero-v2__orbit-secondary {
  animation: heroOrbitSecondarySpin 46s linear 1.5s infinite reverse;
  filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.2));
}

.hero-v2__orbit-circle,
.hero-v2__orbit-connector {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.hero-v2__orbit-circle {
  fill: none;
  stroke: rgba(196, 181, 253, 0.28);
  stroke-width: 1.35;
  stroke-dasharray: 520 18 360 24 410 18;
  stroke-dashoffset: 1350;
  animation: heroOrbitPrimaryResolve 1200ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.hero-v2__orbit-circle--secondary {
  stroke: rgba(167, 139, 250, 0.165);
  stroke-width: 1.05;
  stroke-dasharray: 360 24 160 28 310 32;
  stroke-dashoffset: 1500;
  animation-name: heroOrbitSecondaryResolve;
  animation-duration: 1500ms;
  animation-delay: 260ms;
}

.hero-v2__orbit-connector {
  stroke: rgba(196, 181, 253, 0.2);
  stroke-width: 0.9;
  stroke-dasharray: 18 10;
  filter: drop-shadow(0 0 1.5px rgba(196, 181, 253, 0.16));
}

.hero-v2__orbit-node {
  vector-effect: non-scaling-stroke;
  fill: #a78bfa;
  stroke: rgba(238, 232, 255, 0.78);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.34));
  animation: heroOrbitNode 4.8s ease-in-out infinite;
}

.hero-v2__orbit-node--primary-accent { animation-delay: 1.4s; }
.hero-v2__orbit-node--secondary { animation-delay: 2.1s; }
.hero-v2__orbit-node--secondary:nth-of-type(4) { animation-delay: 3.2s; }
.hero-v2__orbit-node--secondary:nth-of-type(5) { animation-delay: 4.1s; }

[data-theme="light"] .hero-v2__orbit-glow { background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.06) 38%, transparent 72%); }
[data-theme="light"] .hero-v2__orbit-primary { filter: drop-shadow(0 0 2px rgba(109, 70, 180, 0.24)); }
[data-theme="light"] .hero-v2__orbit-secondary { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.16)); }
[data-theme="light"] .hero-v2__orbit-circle { stroke: rgba(109, 70, 180, 0.26); }
[data-theme="light"] .hero-v2__orbit-circle--secondary { stroke: rgba(124, 58, 237, 0.155); }
[data-theme="light"] .hero-v2__orbit-connector { stroke: rgba(124, 58, 237, 0.17); filter: drop-shadow(0 0 1.5px rgba(124, 58, 237, 0.13)); }
[data-theme="light"] .hero-v2__orbit-node { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.26)); }

@keyframes heroOrbitEnter { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes heroOrbitPrimaryResolve { from { opacity: 0; stroke-dashoffset: 1350; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes heroOrbitSecondaryResolve { from { opacity: 0; stroke-dashoffset: 1500; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes heroOrbitPrimarySpin { to { transform: rotate(360deg); } }
@keyframes heroOrbitSecondarySpin { to { transform: rotate(360deg); } }
@keyframes heroOrbitGlow { from { opacity: 0.56; transform: scale(0.96); } to { opacity: 0.82; transform: scale(1.04); } }
@keyframes heroOrbitNode { 0%, 100% { opacity: 0.64; } 50% { opacity: 1; } }

/* Browser Chrome Header */
.hero-v2__browser-header {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  box-sizing: border-box;
}

[data-theme="light"] .hero-v2__browser-header {
  background: rgba(245, 243, 255, 0.65);
  border-bottom-color: rgba(124, 58, 237, 0.08);
}

.hero-v2__browser-dots {
  display: flex;
  gap: 5px;
}

.hero-v2__browser-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--red { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green { background: #10b981; }

.hero-v2__browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .hero-v2__browser-url {
  background: #fff;
  border-color: rgba(124, 58, 237, 0.09);
  color: #475569;
}

.hero-v2__browser-lock {
  width: 10px;
  height: 10px;
  color: #10b981;
}

.hero-v2__browser-tag {
  background: rgba(124, 58, 237, 0.18);
  color: #c4a8ff;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
}

[data-theme="light"] .hero-v2__browser-tag {
  background: rgba(124, 58, 237, 0.09);
  color: #7c3aed;
}

.hero-v2__browser-pill {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-brand-300);
}

[data-theme="light"] .hero-v2__browser-pill {
  color: var(--color-brand-600);
}

/* Browser Body Content */
.hero-v2__browser-body {
  position: relative;
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  filter: blur(0.8px) saturate(0.8) contrast(0.93);
  opacity: 0.8;
  box-sizing: border-box;
}

.hero-v2__browser-body::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, rgba(232, 221, 255, 0.16) 0%, rgba(232, 221, 255, 0.09) 43%, rgba(232, 221, 255, 0.025) 80%, transparent 100%);
}

[data-theme="light"] .hero-v2__browser-body {
  filter: blur(0.8px) saturate(0.82) contrast(0.94);
  opacity: 0.82;
}

[data-theme="light"] .hero-v2__browser-body::after {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(241, 234, 255, 0.1) 43%, rgba(241, 234, 255, 0.025) 80%, transparent 100%);
}

.hero-v2__web-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

[data-theme="light"] .hero-v2__web-nav {
  border-bottom-color: rgba(124, 58, 237, 0.07);
}

.hero-v2__web-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-v2__web-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
}

.hero-v2__web-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero-v2__web-brand-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.hero-v2__web-brand-sub {
  font-size: 0.58rem;
  color: var(--color-text-tertiary);
}

.hero-v2__web-links {
  display: flex;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--color-text-secondary);
}

.hero-v2__web-links span.active {
  color: var(--color-brand-300);
  font-weight: 700;
}

[data-theme="light"] .hero-v2__web-links span.active {
  color: var(--color-brand-600);
}

.hero-v2__web-cart-btn {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(124, 58, 237, 0.14);
  color: #c4a8ff;
  font-size: 0.62rem;
  font-weight: 600;
}

[data-theme="light"] .hero-v2__web-cart-btn {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

/* Web Hero Banner */
.hero-v2__web-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.14);
  flex-shrink: 0;
}

[data-theme="light"] .hero-v2__web-hero-banner {
  background: linear-gradient(135deg, rgba(245, 240, 255, 0.92), rgba(235, 230, 255, 0.75));
  border-color: rgba(124, 58, 237, 0.12);
}

.hero-v2__web-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-v2__web-badge {
  font-size: 0.56rem;
  font-weight: 700;
  color: #fbbf24;
}

.hero-v2__web-banner-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
}

.hero-v2__web-banner-p {
  font-size: 0.6rem;
  color: var(--color-text-tertiary);
  margin: 0;
}

.hero-v2__web-banner-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.hero-v2__web-price {
  font-size: 0.76rem;
  font-weight: 800;
  color: #34d399;
}

[data-theme="light"] .hero-v2__web-price {
  color: #059669;
}

.hero-v2__web-order-chip {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
}

.hero-v2__food-orb {
  font-size: 1.8rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

/* Web Mini Product Cards */
.hero-v2__web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex-shrink: 0;
}

.hero-v2__web-card {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .hero-v2__web-card {
  background: #fff;
  border-color: rgba(124, 58, 237, 0.07);
}

.hero-v2__web-card-thumb {
  font-size: 1rem;
}

.hero-v2__web-card-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero-v2__web-card-meta .name {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.hero-v2__web-card-meta .price {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--color-brand-400);
}

[data-theme="light"] .hero-v2__web-card-meta .price {
  color: var(--color-brand-600);
}

/* ------------------------------------------------
   4b. LAYER 2 (MIDDLE - DOMINANT): MOBILE APP
   ------------------------------------------------ */
.hero-v2__surface-phone {
  position: absolute;
  top: 18px;
  left: calc(var(--hero-web-left) + (var(--hero-web-w) - var(--hero-phone-w)) / 2 - 2.5px);
  width: var(--hero-phone-w);
  height: var(--hero-phone-h);
  z-index: 10;
  transform: rotateY(-2.5deg) rotateX(1deg);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  animation: heroPhoneEnter 1s 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}

.hero-v2__surface-phone:hover {
  transform: translateY(-4px) rotateY(0deg) rotateX(0deg) scale(1.015);
}

.hero-v2__phone-hardware {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  padding: 5px;
  background: linear-gradient(145deg, #2a233d, #110d1f);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 25px 60px -12px rgba(0, 0, 0, 0.65),
    0 10px 25px rgba(124, 58, 237, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="light"] .hero-v2__phone-hardware {
  background: linear-gradient(145deg, #ded8f2, #f5f2ff);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.18),
    0 22px 50px -10px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(124, 58, 237, 0.1);
}

.hero-v2__phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-bg-elevated);
  border-radius: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

[data-theme="light"] .hero-v2__phone-bezel {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

/* Dynamic Island */
.hero-v2__phone-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 130px;
  height: 20px;
  background: #000;
  border-radius: 10px;
  margin: 5px auto 3px;
  padding: 0 8px;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  box-sizing: border-box;
}

.hero-v2__island-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e1b4b;
}

.hero-v2__island-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-v2__island-live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  animation: heroPulseBeacon 1.5s infinite;
}

/* Phone Screen App UI */
.hero-v2__phone-screen {
  flex: 1;
  padding: 4px 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  direction: rtl;
  overflow: hidden;
  box-sizing: border-box;
}

/* App Bar */
.hero-v2__app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.hero-v2__app-brand-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-v2__app-logo-badge {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.25);
}

.hero-v2__app-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero-v2__app-name-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero-v2__app-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.hero-v2__app-verified {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.hero-v2__app-status {
  font-size: 0.54rem;
  color: var(--color-success);
  font-weight: 600;
}

.hero-v2__app-bar-icons {
  display: flex;
  gap: 4px;
  font-size: 0.7rem;
}

.hero-v2__app-icon-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* App Promo Card */
.hero-v2__app-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.2);
  flex-shrink: 0;
}

[data-theme="light"] .hero-v2__app-promo {
  background: linear-gradient(135deg, rgba(243, 238, 255, 0.92), rgba(230, 220, 255, 0.75));
  border-color: rgba(124, 58, 237, 0.14);
}

.hero-v2__app-promo-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero-v2__app-promo-tag {
  font-size: 0.52rem;
  font-weight: 700;
  color: #fbbf24;
}

.hero-v2__app-promo-heading {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.hero-v2__app-promo-sub {
  font-size: 0.52rem;
  color: var(--color-text-tertiary);
}

.hero-v2__app-promo-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
}

/* App Category Chips */
.hero-v2__app-cats {
  display: flex;
  gap: 4px;
  overflow-x: hidden;
  flex-shrink: 0;
}

.hero-v2__app-cat {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  font-size: 0.58rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-v2__app-cat.is-active {
  background: var(--color-brand-500);
  color: #fff;
  font-weight: 700;
}

/* App Menu Products */
.hero-v2__app-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.hero-v2__app-product {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 9px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

[data-theme="light"] .hero-v2__app-product {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.hero-v2__app-product:hover {
  transform: translateX(-2px);
  border-color: rgba(124, 58, 237, 0.28);
}

.hero-v2__product-img-box {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-v2__product-img-box--burger {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
}

.hero-v2__product-img-box--shawarma {
  background: linear-gradient(135deg, #fecaca 0%, #ef4444 100%);
}

.hero-v2__product-emoji {
  font-size: 1.05rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.hero-v2__product-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-v2__product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-v2__product-title {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.hero-v2__product-rating {
  font-size: 0.54rem;
  font-weight: 700;
  color: #fbbf24;
}

.hero-v2__product-desc {
  font-size: 0.52rem;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-v2__product-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
}

.hero-v2__product-price {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-brand-400);
}

[data-theme="light"] .hero-v2__product-price {
  color: var(--color-brand-600);
}

.hero-v2__product-add-btn {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(124, 58, 237, 0.25);
}

/* Floating Cart Summary Bar */
.hero-v2__app-cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(124, 58, 237, 0.35);
  flex-shrink: 0;
  box-sizing: border-box;
}

.hero-v2__cart-bar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-v2__cart-count-badge {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand-700);
  font-size: 0.58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-v2__cart-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero-v2__cart-bar-label {
  font-size: 0.62rem;
  font-weight: 800;
}

.hero-v2__cart-bar-items {
  font-size: 0.48rem;
  opacity: 0.85;
}

.hero-v2__cart-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-v2__cart-bar-total {
  font-size: 0.67rem;
  font-weight: 800;
}

.hero-v2__cart-bar-btn {
  font-size: 0.56rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
}

/* ------------------------------------------------
   4c. LAYER 3 (FRONT): OPERATIONS & LIVE INTAKE (STOREFRONT BOTTOM-LEFT)
   ------------------------------------------------ */
.hero-v2__surface-ops {
  position: absolute;
  bottom: 12px;
  left: -75px;
  width: 235px;
  z-index: 15;
  animation: heroOpsEnter 0.9s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}

.hero-v2__ops-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(20, 16, 38, 0.92);
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(124, 58, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="light"] .hero-v2__ops-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.16);
  box-shadow:
    0 16px 40px -8px rgba(15, 23, 42, 0.12),
    0 6px 16px rgba(124, 58, 237, 0.06),
    inset 0 1px 0 #fff;
}

.hero-v2__ops-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.45);
}

.hero-v2__ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .hero-v2__ops-header {
  border-bottom-color: rgba(124, 58, 237, 0.07);
}

.hero-v2__ops-live-beacon {
  position: relative;
  width: 7px;
  height: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.beacon-pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: heroPulseBeacon 2s infinite;
}

.hero-v2__ops-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.hero-v2__ops-badge {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.hero-v2__ops-body {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-v2__ops-order-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-v2__ops-order-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-v2__ops-order-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero-v2__ops-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-v2__ops-order-head .num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.hero-v2__ops-order-head .time {
  font-size: 0.54rem;
  color: var(--color-text-tertiary);
}

.hero-v2__ops-order-info .detail {
  font-size: 0.54rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-v2__ops-status-tag {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.16);
  color: #c4a8ff;
  white-space: nowrap;
}

[data-theme="light"] .hero-v2__ops-status-tag {
  background: rgba(124, 58, 237, 0.09);
  color: #7c3aed;
}

.hero-v2__ops-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

[data-theme="light"] .hero-v2__ops-progress {
  background: rgba(0, 0, 0, 0.06);
}

.hero-v2__ops-progress-bar {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #10b981);
  border-radius: 99px;
  animation: heroProgressAnim 3s ease-in-out infinite alternate;
}

@keyframes heroProgressAnim {
  0% { width: 45%; }
  100% { width: 85%; }
}

.hero-v2__ops-driver-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.56rem;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-v2__ops-driver-avatar {
  font-size: 0.7rem;
}

/* ------------------------------------------------
   4d. LAYER 4 (PERIPHERAL SIGNALS - STOREFRONT PERIMETER)
   ------------------------------------------------ */
.hero-v2__signal {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(22, 18, 42, 0.92);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

[data-theme="light"] .hero-v2__signal {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.07),
    0 3px 6px rgba(124, 58, 237, 0.04),
    inset 0 1px 0 #fff;
}

.hero-v2__signal:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.2);
}

.hero-v2__signal-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-v2__signal-icon svg {
  width: 14px;
  height: 14px;
}

.hero-v2__signal-icon--purple {
  background: rgba(124, 58, 237, 0.16);
  color: #a78bfa;
}

.hero-v2__signal-icon--emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.hero-v2__signal-icon--gold {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.hero-v2__signal-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-v2__signal-title {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
}

.hero-v2__signal-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.hero-v2__signal-val small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.hero-v2__signal-trend {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  font-size: 0.62rem;
  font-weight: 800;
}

.hero-v2__signal-tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 800;
}

/* Specific Signal Anchor Coordinates (Storefront Perimeter) */
.hero-v2__signal--orders {
  width: 175px;
  top: 10px;
  left: -40px;
  animation: heroSignalPop 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, heroFloatA 6s 1.5s ease-in-out infinite alternate;
}

.hero-v2__signal--satisfaction {
  width: 175px;
  top: 10px;
  left: 450px;
  animation: heroSignalPop 0.8s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both, heroFloatA 6.5s 1.9s ease-in-out infinite alternate;
}

.hero-v2__signal--revenue {
  width: 170px;
  bottom: 20px;
  left: 450px;
  animation: heroSignalPop 0.8s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both, heroFloatB 7s 1.7s ease-in-out infinite alternate;
}

/* ------------------------------------------------
   5. KEYFRAME ANIMATIONS & ENTRANCE TIMELINES
   ------------------------------------------------ */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes heroWebEnter {
  from { opacity: 0; transform: rotateY(-7deg) rotateX(5deg) translateY(35px) scale(0.92); }
  to { opacity: 1; transform: rotateY(-4deg) rotateX(2.5deg) translateY(0) scale(0.98); }
}

@keyframes heroPhoneEnter {
  from { opacity: 0; transform: rotateY(-5deg) rotateX(3deg) translateY(45px) scale(0.94); }
  to { opacity: 1; transform: rotateY(-2.5deg) rotateX(1deg) translateY(0) scale(1); }
}

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

@keyframes heroSignalPop {
  0% { opacity: 0; transform: scale(0.85) translateY(12px); }
  70% { transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes heroFloatA {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes heroFloatB {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@keyframes heroPulseBeacon {
  0% { transform: scale(0.92); opacity: 0.8; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.92); opacity: 0.8; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ------------------------------------------------
   6. RESPONSIVE BREAKPOINTS
   ------------------------------------------------ */

/* Medium Desktop / Laptop (1100px - 1280px) */
@media (max-width: 1280px) {
  .hero-v2__stage {
    grid-template-columns: 43% 57%;
    gap: var(--space-5);
  }

  .hero-v2__scene {
    --hero-web-w: 460px;
    --hero-web-h: 335px;
    --hero-web-left: 40px;
    --hero-phone-w: 230px;
    --hero-phone-h: 440px;
    max-width: 540px;
    height: 470px;
  }

  .hero-v2__surface-web {
    width: var(--hero-web-w);
    height: var(--hero-web-h);
    left: var(--hero-web-left);
  }

  .hero-v2__surface-phone {
    left: calc(var(--hero-web-left) + (var(--hero-web-w) - var(--hero-phone-w)) / 2 - 2px);
    width: var(--hero-phone-w);
    height: var(--hero-phone-h);
  }

  .hero-v2__surface-ops {
    left: -70px;
    width: 220px;
    bottom: 10px;
  }

  .hero-v2__signal--orders {
    width: 165px;
    left: -35px;
    top: 8px;
  }

  .hero-v2__signal--satisfaction {
    width: 165px;
    left: 420px;
    top: 8px;
  }

  .hero-v2__signal--revenue {
    width: 160px;
    left: 415px;
    bottom: 18px;
  }
}

/* Small Desktop / Laptop (1024px - 1099px) */
@media (min-width: 1024px) and (max-width: 1099px) {
  .hero-v2__scene {
    transform: scale(0.92);
    transform-origin: center center;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .hero-v2 {
    min-height: auto;
    padding-top: calc(80px + var(--space-6));
    padding-bottom: var(--space-10);
  }

  .hero-v2__stage {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .hero-v2__copy {
    max-width: 100%;
    align-items: center;
    margin-inline: auto;
  }

  .hero-v2__desc {
    max-width: 540px;
    margin-inline: auto;
  }

  .hero-v2__ctas {
    justify-content: center;
  }

  .hero-v2__scene {
    --hero-web-w: 450px;
    --hero-web-h: 330px;
    --hero-web-left: 35px;
    --hero-phone-w: 230px;
    --hero-phone-h: 440px;
    height: 470px;
    max-width: 520px;
    margin-inline: auto;
    transform: scale(0.96);
  }

  .hero-v2__surface-web {
    left: var(--hero-web-left);
    width: var(--hero-web-w);
    height: var(--hero-web-h);
  }

  .hero-v2__surface-phone {
    left: calc(var(--hero-web-left) + (var(--hero-web-w) - var(--hero-phone-w)) / 2 - 1.8px);
    width: var(--hero-phone-w);
    height: var(--hero-phone-h);
  }

  .hero-v2__surface-ops {
    left: -70px;
    bottom: 8px;
    width: 215px;
  }

  .hero-v2__signal--orders {
    width: 160px;
    left: -35px;
    top: 6px;
  }

  .hero-v2__signal--satisfaction {
    width: 160px;
    left: 410px;
    top: 6px;
  }

  .hero-v2__signal--revenue {
    width: 155px;
    left: 405px;
    bottom: 16px;
  }
}

/* Orbit sizing follows the phone center while leaving phone geometry untouched. */
@media (min-width: 1100px) and (max-width: 1280px) {
  .hero-v2__surface-web {
    top: -12px;
    left: calc(var(--hero-web-left) + (var(--hero-web-w) - 450px) / 2);
    width: 450px;
    height: 450px;
  }
}

@media (min-width: 1281px) {
  .hero-v2__orbit-system { --hero-orbit-size: 522px; }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .hero-v2__surface-web {
    top: -12px;
    left: calc(var(--hero-web-left) + (var(--hero-web-w) - 450px) / 2);
    width: 450px;
    height: 450px;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-v2__orbit-system { --hero-orbit-size: 444px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-v2__surface-web {
    top: -2px;
    left: calc(var(--hero-web-left) + (var(--hero-web-w) - 480px) / 2);
    width: 480px;
    height: 480px;
  }
  .hero-v2__orbit-system { --hero-orbit-size: 528px; }
}

/* Mobile (<= 767px) — Simplified Product Scene: Phone Only + 4 Full-Width Cards Below */
@media (max-width: 1024px) and (min-width: 768px) {
  .hero-v2__browser-body {
    filter: blur(0.6px) saturate(0.86) contrast(0.95);
    opacity: 0.86;
  }
}

@media (max-width: 767px) {
  .hero-v2 {
    min-height: auto;
    padding-top: calc(75px + var(--space-4));
    padding-bottom: var(--space-8);
    overflow-x: hidden;
  }

  .hero-v2__stage {
    padding-inline: var(--space-4);
    gap: var(--space-6);
  }

  .hero-v2__badge {
    padding: 6px 14px;
    font-size: 0.76rem;
    margin-bottom: var(--space-3);
  }

  .hero-v2__title {
    font-size: clamp(1.75rem, 6.5vw, 2.2rem);
    margin-bottom: var(--space-3);
  }

  .hero-v2__desc {
    font-size: 0.92rem;
    line-height: 1.68;
    margin-bottom: var(--space-5);
  }

  .hero-v2__ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 16px;
  }

  .hero-v2__cta-primary,
  .hero-v2__cta-secondary {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    padding: 13px 20px;
    font-size: 0.92rem;
    box-sizing: border-box;
  }

  .hero-v2__trust-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
  }

  .hero-v2__trust-item {
    font-size: 0.75rem;
  }

  /* ── Mobile Product Scene Container: Normal Document-Flow Stack ── */
  .hero-v2__scene {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 440px !important;
    height: auto !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    perspective: none !important;
    transform: none !important;
    overflow: visible !important;
  }

  /* Compact ambient orbit behind the phone; cards remain in normal flow below it. */
  .hero-v2__surface-web {
    display: block !important;
    top: calc((460px - min(100vw, 390px)) / 2) !important;
    left: 50% !important;
    width: min(calc(100vw - 20px), 370px) !important;
    height: min(calc(100vw - 20px), 370px) !important;
    transform: translateX(-50%) !important;
    animation: none !important;
    z-index: 0 !important;
    opacity: 0.9;
  }

  .hero-v2__scene-aura {
    display: none !important;
  }

  .hero-v2__orbit-system { inset: 0 !important; }
  .hero-v2__orbit-system { --hero-orbit-size: min(100vw, 390px); }
  .hero-v2__orbit-rings {
    left: 50% !important;
    width: var(--hero-orbit-size) !important;
    height: var(--hero-orbit-size) !important;
  }
  .hero-v2__orbit-glow { inset: 18% 20% !important; opacity: 0.58; filter: blur(12px); }
  .hero-v2__orbit-connector,
  .hero-v2__orbit-secondary .hero-v2__orbit-node--secondary:nth-of-type(3),
  .hero-v2__orbit-secondary .hero-v2__orbit-node--secondary:nth-of-type(4) { display: none; }
  .hero-v2__orbit-primary { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.24)); }
  .hero-v2__orbit-secondary { filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.14)); }

  /* 00. Mobile Phone Hero Asset */
  .hero-v2__surface-phone {
    order: 1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(72vw, 270px) !important;
    height: 460px !important;
    margin: 0 auto var(--space-4) !important;
    animation: heroPhoneEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  .hero-v2__surface-phone:hover {
    transform: none !important;
  }

  /* 01. Orders Today Card (Full Width) */
  .hero-v2__signal--orders {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    animation: heroFadeUp 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  /* 02. Customer Rating Card (Full Width) */
  .hero-v2__signal--satisfaction {
    order: 3 !important;
    display: flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    animation: heroFadeUp 0.6s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  /* 03. Operations Surface Card (Full Width) */
  .hero-v2__surface-ops {
    order: 4 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    animation: heroFadeUp 0.6s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  .hero-v2__surface-ops .hero-v2__ops-card {
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  /* 04. Direct Revenue Card (Full Width) */
  .hero-v2__signal--revenue {
    order: 5 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    animation: heroFadeUp 0.6s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  /* Mobile Signal Card Internal Typography & Icon Layout */
  .hero-v2__signal-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }

  .hero-v2__signal-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .hero-v2__signal-info {
    flex: 1;
    margin-inline: 12px;
  }

  .hero-v2__signal-title {
    font-size: 0.72rem !important;
  }

  .hero-v2__signal-val {
    font-size: 1rem !important;
  }

  .hero-v2__signal-val small {
    font-size: 0.7rem !important;
  }

  .hero-v2__signal-trend,
  .hero-v2__signal-tag {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }
}

/* Extra small mobile (<= 380px) */
@media (max-width: 380px) {
  .hero-v2__scene {
    max-width: 100% !important;
    gap: 10px !important;
  }

  .hero-v2__surface-phone {
    width: min(76vw, 250px) !important;
    height: 430px !important;
  }

  .hero-v2__signal--orders,
  .hero-v2__signal--satisfaction,
  .hero-v2__signal--revenue {
    padding: 10px 14px !important;
  }

  .hero-v2__surface-ops .hero-v2__ops-card {
    padding: 12px 14px !important;
  }
}

/* ------------------------------------------------
   7. REDUCED MOTION SUPPORT
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero-v2 *,
  .hero-v2__surface-web,
  .hero-v2__surface-phone,
  .hero-v2__surface-ops,
  .hero-v2__signal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .hero-v2__surface-web {
    transform: none !important;
  }

  .hero-v2__surface-phone {
    transform: rotateY(-2.5deg) rotateX(1deg) !important;
  }

  .hero-v2__orbit-primary,
  .hero-v2__orbit-secondary,
  .hero-v2__orbit-circle,
  .hero-v2__orbit-node {
    animation: none !important;
    transform: none !important;
  }

  .hero-v2__orbit-circle {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }

  @media (max-width: 767px) {
    .hero-v2__surface-phone,
    .hero-v2__surface-ops,
    .hero-v2__signal {
      transform: none !important;
    }
  }
}
