/* ============================================================
   GP Sourcing — Component Styles
   SaaS-grade: Vercel / Attio / Stripe / Framer
   ============================================================ */

/* ── Global: suppress mouse-click focus outlines ────────────
   :focus-visible keeps outlines for keyboard nav (accessibility)
   :focus:not(:focus-visible) removes them for mouse/touch clicks
   ──────────────────────────────────────────────────────────── */
*:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}


/* ════════════════════════════════════════
   SUPERHUMAN DYNAMIC BACKGROUND MESH
════════════════════════════════════════ */
.superhuman-mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  transition: background var(--t-slow) var(--ease-smooth);
  filter: blur(120px);
  opacity: 0.7;
}

[data-theme="light"] .superhuman-mesh-bg {
  opacity: 0.55;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

[data-theme="light"] .mesh-blob {
  mix-blend-mode: multiply;
  opacity: 0.3;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(59, 130, 246, 0) 70%);
  top: -200px;
  left: -200px;
  animation: floatBlob1 25s ease-in-out infinite alternate;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, rgba(34, 211, 238, 0) 70%);
  bottom: -300px;
  right: -200px;
  animation: floatBlob2 30s ease-in-out infinite alternate;
}

.blob-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(236, 72, 153, 0) 70%);
  top: 30%;
  right: 10%;
  animation: floatBlob3 28s ease-in-out infinite alternate;
}

.blob-4 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(130, 87, 255, 0.4) 0%, rgba(130, 87, 255, 0) 70%);
  bottom: 20%;
  left: 20%;
  animation: floatBlob4 32s ease-in-out infinite alternate;
}

/* Dark mode blob overrides — blue/indigo family only, subtle */
[data-theme="dark"] .blob-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
}
[data-theme="dark"] .blob-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
}
[data-theme="dark"] .blob-3 {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0) 70%);
}
[data-theme="dark"] .blob-4 {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2) 0%, rgba(129, 140, 248, 0) 70%);
}

/* Light mode blob overrides */
[data-theme="light"] .blob-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(59, 130, 246, 0) 70%);
}
[data-theme="light"] .blob-2 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0) 70%);
}
[data-theme="light"] .blob-3 {
  background: radial-gradient(circle, rgba(219, 39, 119, 0.22) 0%, rgba(219, 39, 119, 0) 70%);
}
[data-theme="light"] .blob-4 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
}


/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(var(--header-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--header-blur));
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow) var(--ease-smooth),
              box-shadow var(--t-slow) var(--ease-smooth);
}
#site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 12px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-brand-img-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  height: 30px !important;
  width: 30px !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.logo-text-img {
  height: 30px !important;
  width: auto !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Nav */
.header-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.nav-link {
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: normal !important;
  color: #475569 !important;
  border-radius: var(--r-full) !important;
  border: 1px solid transparent !important;
  transition: all var(--t-fast) cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: transparent !important;
}
[data-theme="dark"] .nav-link {
  color: #94a3b8 !important;
}
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #ffffff !important;
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: transparent !important;
}

@media (max-width: 1350px) {
  .header-nav {
    gap: 6px;
  }
  .nav-link {
    font-size: 13px !important;
    padding: 6px 12px !important;
  }
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Language toggle (pill with sliding text) ── */
.lang-toggle {
  display: flex;
  align-items: center;
  position: relative;
  padding: 2px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--r-full);
  gap: 0;
  cursor: pointer;
  height: 32px;
  box-sizing: border-box;
  transition: all var(--t-base) ease;
}
[data-theme="dark"] .lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.lang-toggle-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  background: #0f172a; /* dark in light mode */
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .lang-toggle-pill {
  background: #ffffff; /* pure white in dark mode */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 100%;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: normal !important;
  color: rgba(15, 23, 42, 0.45);
  border-radius: var(--r-full);
  position: relative;
  z-index: 1;
  transition: color 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}
[data-theme="dark"] .lang-option {
  color: rgba(255, 255, 255, 0.45);
}
.lang-option span {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: normal !important;
}

/* Color Inversion on active options */
.lang-toggle[data-lang="en"] .lang-option[data-lang-opt="en"] { 
  color: #ffffff; 
}
[data-theme="dark"] .lang-toggle[data-lang="en"] .lang-option[data-lang-opt="en"] { 
  color: #08070b; 
}

.lang-toggle[data-lang="zh"] .lang-option[data-lang-opt="zh"] { 
  color: #ffffff; 
}
[data-theme="dark"] .lang-toggle[data-lang="zh"] .lang-option[data-lang-opt="zh"] { 
  color: #08070b; 
}

/* ── Theme toggle ── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all var(--t-fast) ease, transform 0.2s ease;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  position: absolute;
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Toggle icon morph transitions */
[data-theme="light"] .theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="light"] .theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ── CTA button ── */
.btn-chrome {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px;
  height: 42px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--r-full);
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: normal !important;
  transition: all var(--t-fast) ease;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid #0f172a;
}
.btn-chrome span {
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: normal !important;
}
.btn-chrome:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}
.btn-chrome:active {
  transform: translateY(0);
}

[data-theme="dark"] .btn-chrome {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}
[data-theme="dark"] .btn-chrome:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
}

/* ── Mobile hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast) ease;
}
.hamburger:hover { background: var(--bg-subtle); }
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .hamburger { display: flex !important; }
  .header-nav { display: none !important; }
  .hide-mobile { display: none !important; }
}

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) ease;
  z-index: 99;
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer a {
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) ease;
}
.mobile-drawer a:hover { background: var(--bg-subtle); }
.mobile-drawer a.btn-chrome,
.mobile-drawer a.btn {
  color: var(--bg);
}
.mobile-drawer a.btn-chrome:hover,
.mobile-drawer a.btn:hover {
  color: var(--bg);
  background: var(--text);
  opacity: 0.86;
}
.mobile-drawer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-full);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) ease, opacity var(--t-fast) ease,
              background var(--t-fast) ease, box-shadow var(--t-fast) ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  padding: 11px 20px;
  font-size: 0.9375rem;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  padding: 10px 20px;
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost {
  padding: 10px 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-subtle); }
.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero-particles-canvas {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid background (Vercel-inspired) */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Raycast-style Colorful top neon spotlight */
#hero::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(59, 130, 246, 0.12) 0%,       /* Stripe Cobalt Blue spotlight */
    rgba(14, 165, 233, 0.04) 30%,       /* Sky Blue/Cyan soft glow */
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
  animation: spotlightFadeIn 1.6s ease-out both;
}

[data-theme="light"] #hero::after {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(225, 29, 72, 0.06) 0%,
    rgba(244, 63, 94, 0.03) 30%,
    transparent 70%
  );
}

/* Raycast signature diagonal glowing logo stripes */
.raycast-hero-glow {
  display: none; /* Removed: clean black background preferred */
}

.glow-stripe { display: none; }



.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.45s var(--ease-out) both;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  text-wrap: balance;
  font-feature-settings: "ss03" 1, "cv05" 1, "cv11" 1, "ss01" 1;
  -webkit-font-feature-settings: "ss03" 1, "cv05" 1, "cv11" 1, "ss01" 1;
  animation: fadeUp 1.4s 0.25s var(--ease-out) both;
}

/* Control breaks responsively: keep them on desktop, hide on mobile/tablet */
.hero-title br {
  display: block;
}
@media (max-width: 768px) {
  .hero-title br {
    display: none !important;
  }
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  animation: fadeUp 1.4s 0.35s var(--ease-out) both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
  animation: fadeUp 1.4s 0.45s var(--ease-out) both;
}

/* Hero screenshot area */
.hero-screen-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  animation: scaleIn 1.4s 0.55s var(--ease-out) both;
}

/* Browser frame */
.browser-chrome {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px var(--border);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.d-red    { background: #fc605b; }
.d-yellow { background: #fdbc40; }
.d-green  { background: #34c749; }

.browser-url {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  color: var(--muted);
}
.browser-url-lock {
  width: 10px; height: 10px;
  fill: var(--faint);
  flex-shrink: 0;
}

.browser-body { position: relative; }
.browser-body img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 300ms var(--ease-out);
}

/* Hero tab strip */
.hero-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 20px;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  animation: fadeIn 0.6s 0.25s var(--ease-out) both;
}
.hero-tab-pill {
  position: absolute;
  top: 3px; bottom: 3px;
  background: var(--surface);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  transition: left var(--t-slow) var(--ease-spring),
              width var(--t-slow) var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}
.hero-tab {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color var(--t-fast) ease;
  white-space: nowrap;
}
.hero-tab.active { color: var(--text); }
.hero-tab:hover:not(.active) { color: var(--text-2); }

@media (max-width: 640px) {
  .hero-tabs { flex-wrap: wrap; border-radius: var(--r-lg); }
  .hero-tab { font-size: 0.75rem; padding: 5px 10px; }
  .hero-tab-pill { display: none; }
}

/* ════════════════════════════════════════
   LOGO STRIP (social proof)
════════════════════════════════════════ */
#logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.logo-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-strip-item {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: -0.01em;
  opacity: 0.6;
  transition: opacity var(--t-fast) ease;
}
.logo-strip-item:hover { opacity: 1; }

/* ════════════════════════════════════════
   FEATURES (3-col, Stripe-inspired)
════════════════════════════════════════ */
#features .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.feature-cell {
  background: var(--surface);
  padding: 32px 28px;
  transition: background var(--t-fast) ease;
}
.feature-cell:hover { background: var(--bg-soft); }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  #features .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  #features .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   PRODUCT SHOWCASE (Attio / Linear style)
   Left: vertical tab pills | Right: screenshot
════════════════════════════════════════ */

/* ── 3D Stacked Card Carousel Layout ── */
.features-stack-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  overflow-anchor: none; /* Prevents scroll jumps during accordion transitions */
}

/* Left side navigation vertical tabs */
.features-stack-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 580px; /* Lock height to match the viewport */
  box-sizing: border-box;
}

.stack-nav-item {
  flex: 1; /* Stretch items to fit the vertical container height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: flex 0.4s var(--ease-out), background var(--t-base) ease, border-color var(--t-base) ease, box-shadow var(--t-base) ease;
  position: relative;
  text-align: left;
  box-sizing: border-box;
}

.stack-nav-item:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.stack-nav-item.active {
  flex: 1.6; /* Active item expands slightly larger to fit body content */
  background: var(--bg-soft);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .stack-nav-item.active {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .nav-item-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.stack-nav-item.active .nav-item-icon {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

[data-theme="dark"] .stack-nav-item.active .nav-item-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.stack-nav-item.active .nav-item-icon svg {
  color: var(--accent);
}

.stack-nav-item:hover .nav-item-icon {
  transform: scale(1.06);
  border-color: var(--accent-border);
}

.stack-nav-item:hover .nav-item-icon svg {
  color: var(--accent);
}

.nav-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.2;
}

.stack-nav-item.active .nav-item-title {
  color: var(--text);
}

.nav-item-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.4s var(--ease-out), margin-top 0.4s var(--ease-out);
}

.nav-item-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.nav-item-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border-mid);
  border-radius: var(--r-full);
  margin-top: 14px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stack-nav-item.active .nav-item-progress-bar {
  opacity: 1;
}

.nav-item-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
}

/* Right side 3D viewport */
.features-stack-viewport {
  position: relative;
  width: 100%;
  height: 580px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
  overflow: hidden;
}

[data-theme="dark"] .stack-card {
  background: rgba(17, 15, 24, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(59, 130, 246, 0.15);
}

/* 3D Stack States */

/* Front active card */
.stack-card.active {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 10;
  filter: none;
  pointer-events: auto;
}

/* Flying out state */
.stack-card.prev {
  transform: translate3d(-125%, -30px, 80px) rotate(-12deg) scale(0.95);
  opacity: 0;
  z-index: 11;
  pointer-events: none;
}

/* Next 1 card (first behind active) */
.stack-card.next-1 {
  transform: translate3d(0, 24px, -50px) scale(0.94);
  opacity: 0.85;
  z-index: 9;
  filter: blur(1px);
  pointer-events: auto;
  cursor: pointer;
}

.stack-card.next-1:hover {
  transform: translate3d(0, 16px, -40px) scale(0.95);
  opacity: 0.95;
}

/* Next 2 card */
.stack-card.next-2 {
  transform: translate3d(0, 48px, -100px) scale(0.88);
  opacity: 0.55;
  z-index: 8;
  filter: blur(2px);
  pointer-events: none;
}

/* Next 3 card */
.stack-card.next-3 {
  transform: translate3d(0, 72px, -150px) scale(0.82);
  opacity: 0.25;
  z-index: 7;
  filter: blur(3.5px);
  pointer-events: none;
}

/* Hidden cards */
.stack-card.hidden {
  transform: translate3d(0, 96px, -200px) scale(0.76);
  opacity: 0;
  z-index: 5;
  filter: blur(4px);
  pointer-events: none;
}

/* Inner card adjustments */
.stack-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 8px;
}

.stack-card .micro-ui {
  height: 440px;
  margin-top: 0;
  width: 100%;
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.feature-card-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 247, 252, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-mid);
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
[data-theme="dark"] .feature-tag {
  background: rgba(22, 19, 32, 0.45);
}
.feature-tag-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-mid);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme="dark"] .feature-tag-icon-circle {
  background: rgba(255, 255, 255, 0.15);
}
.feature-tag-icon-circle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8px;
}
.feature-tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}

@media (max-width: 1024px) {
  .features-stack-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }

  .features-stack-nav {
    flex-direction: row;
    flex-wrap: wrap;          /* wrap to next line — no scroll */
    height: auto;
    gap: 10px;
    overflow: hidden;         /* absolutely no scrollbar */
    padding-bottom: 0;
  }

  /* 5 items → 3 on first row, 2 on second row (equal widths) */
  .stack-nav-item {
    flex: 1 1 calc(33.333% - 8px); /* ~3 per row */
    min-width: 0;              /* allow shrinking */
    max-width: calc(50% - 6px); /* cap at 2 per row on very small screens */
    padding: 10px 14px;
    border-radius: var(--r-xl);
    background: var(--bg-soft);
    border: 1px solid var(--border-mid);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  [data-theme="dark"] .stack-nav-item {
    background: rgba(255, 255, 255, 0.02);
  }

  .stack-nav-item.active {
    flex: 1 1 calc(33.333% - 8px);
    max-width: calc(50% - 6px);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
  }

  .stack-nav-item.active .nav-item-title {
    color: #ffffff;
  }

  .stack-nav-item.active .nav-item-icon svg {
    color: #ffffff;
  }

  .nav-item-body {
    display: none !important;
  }

  /* Keep icon + title side-by-side on mobile */
  .nav-item-header {
    gap: 10px;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .nav-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
  }
  .nav-item-icon svg {
    width: 20px;
    height: 20px;
  }
  .stack-nav-item.active .nav-item-icon {
    background: var(--accent-soft);
    border-color: var(--accent-border);
  }
  .nav-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
  }

  .features-stack-viewport {
    height: 480px;
  }

  .stack-card {
    padding: 24px;
  }

  .stack-card .micro-ui {
    height: 280px;
  }
  .shop-content-mock {
    grid-template-columns: 160px 1fr;
    padding: 12px 16px;
  }
  .shop-img-wrap {
    width: 100%;
    height: 100%;
  }
  .crop-overlay-selector {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
  .stack-card.active .supplier-row:nth-child(1) { transform: translateY(-80px) scale(0.84); opacity: 0.4; }
  .stack-card.active .supplier-row:nth-child(2) { transform: translateY(-50px) scale(0.88); opacity: 0.6; }
  .stack-card.active .supplier-row:nth-child(3) { transform: translateY(-20px) scale(0.92); opacity: 0.8; }
  .stack-card.active .supplier-row:nth-child(4) { transform: translateY(10px) scale(0.96); opacity: 0.95; }
  .stack-card.active .supplier-row:nth-child(5) { transform: translateY(40px) scale(1); opacity: 1; }
  .stack-card.active:hover .supplier-row:nth-child(1) { transform: translateY(-110px) scale(0.92) rotate(-2deg) !important; opacity: 0.75 !important; }
  .stack-card.active:hover .supplier-row:nth-child(2) { transform: translateY(-65px) scale(0.95) rotate(2deg) !important; opacity: 0.85 !important; }
  .stack-card.active:hover .supplier-row:nth-child(3) { transform: translateY(-20px) scale(0.98) rotate(-1deg) !important; opacity: 0.92 !important; }
  .stack-card.active:hover .supplier-row:nth-child(4) { transform: translateY(25px) scale(1.01) rotate(1.5deg) !important; opacity: 0.98 !important; }
  .stack-card.active:hover .supplier-row:nth-child(5) { transform: translateY(70px) scale(1.04) rotate(-1.5deg) !important; opacity: 1 !important; }
  .shipping-quote-card {
    padding: 16px 20px;
  }
  .margin-calculator-panel {
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 16px 20px;
  }
  .circular-chart {
    width: 85px;
    height: 85px;
  }
}

@media (max-width: 640px) {
  .features-stack-viewport {
    height: 400px;
  }

  .stack-card {
    padding: 16px;
  }

  .stack-card .micro-ui {
    height: 240px;
  }

  .nav-item-title {
    font-size: 0.7rem; /* keep compact within equal tiles */
  }
  .shop-content-mock {
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 8px 12px;
  }
  .shop-img-wrap {
    width: 110px;
    height: 110px;
  }
  .crop-overlay-selector {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
  .shop-brand {
    font-size: 0.55rem;
  }
  .shop-title-mock {
    font-size: 0.95rem;
  }
  .shop-price-mock {
    font-size: 0.9rem;
  }
  .sourcing-status-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    gap: 4px;
  }
  .browser-address-bar {
    margin: 0 10px;
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  .supplier-row {
    padding: 10px 14px;
  }
  .supplier-name {
    font-size: 0.7rem;
  }
  .supplier-price {
    font-size: 0.8rem;
  }
  .supplier-pill {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .stack-card.active .supplier-row:nth-child(1) { transform: translateY(-45px) scale(0.84); opacity: 0.4; }
  .stack-card.active .supplier-row:nth-child(2) { transform: translateY(-25px) scale(0.88); opacity: 0.6; }
  .stack-card.active .supplier-row:nth-child(3) { transform: translateY(-5px) scale(0.92); opacity: 0.8; }
  .stack-card.active .supplier-row:nth-child(4) { transform: translateY(15px) scale(0.96); opacity: 0.95; }
  .stack-card.active .supplier-row:nth-child(5) { transform: translateY(35px) scale(1); opacity: 1; }
  .stack-card.active:hover .supplier-row:nth-child(1) { transform: translateY(-73px) scale(0.92) rotate(-2deg) !important; opacity: 0.75 !important; }
  .stack-card.active:hover .supplier-row:nth-child(2) { transform: translateY(-41px) scale(0.95) rotate(2deg) !important; opacity: 0.85 !important; }
  .stack-card.active:hover .supplier-row:nth-child(3) { transform: translateY(-9px) scale(0.98) rotate(-1deg) !important; opacity: 0.92 !important; }
  .stack-card.active:hover .supplier-row:nth-child(4) { transform: translateY(23px) scale(1.01) rotate(1.5deg) !important; opacity: 0.98 !important; }
  .stack-card.active:hover .supplier-row:nth-child(5) { transform: translateY(55px) scale(1.04) rotate(-1.5deg) !important; opacity: 1 !important; }
  .shipping-quote-card {
    padding: 12px 14px;
  }
  .weight-label-row, .shipping-input-group label {
    font-size: 0.65rem;
  }
  .shipping-method-row {
    padding: 8px 10px;
    height: 44px;
    box-sizing: border-box;
  }
  .margin-calculator-panel {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 12px 14px;
  }
  .circular-chart {
    width: 75px;
    height: 75px;
  }
  .margin-dial-title {
    font-size: 0.65rem;
  }
  .percentage {
    font-size: 8px;
  }
  .cost-items-list {
    font-size: 0.65rem;
  }
  .whatsapp-dialog-body {
    padding: 10px;
    gap: 8px;
  }
  .chat-bubble {
    padding: 6px 10px;
    font-size: 0.65rem;
  }
  .sourcing-catalog-card {
    padding: 6px;
    gap: 8px;
    max-width: 90%;
    margin-top: -2px;
  }
  .catalog-card-img {
    width: 36px;
    height: 36px;
  }
}

.micro-ui {
  height: 220px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  border: none;
  position: relative;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .stack-card .micro-ui {
    height: 440px;
    margin-top: 0;
    width: 100%;
  }
}

/* Cell 1: Shopify Crop Mockup */
.crop-mock {
  padding: 0;
}
.mock-shop-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.browser-header-mock {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-mid);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
  flex-grow: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--r-sm);
  margin: 0 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-content-mock {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 20px 24px;
  height: calc(100% - 38px);
  box-sizing: border-box;
  align-items: center;
}
.shop-img-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
}
.shop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  transform-origin: center center;
}
.crop-overlay-selector {
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  border: 2px dashed var(--accent);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  box-sizing: border-box;
  border-radius: var(--r-sm);
  animation: cropPulse 2.5s infinite ease-in-out;
}
.crop-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: var(--shadow-xs);
}
.crop-handle.top-left { top: -4px; left: -4px; }
.crop-handle.top-right { top: -4px; right: -4px; }
.crop-handle.bottom-left { bottom: -4px; left: -4px; }
.crop-handle.bottom-right { bottom: -4px; right: -4px; }

.crop-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 12px var(--accent-2);
  animation: laserScan 2.2s infinite linear;
}
.crop-laser-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 32px;
  background: linear-gradient(to top, var(--accent), transparent);
  opacity: 0.28;
  pointer-events: none;
}

.crop-tooltip {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--r-md);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
@keyframes cropPulse {
  0%, 100% { border-color: var(--accent); box-shadow: 0 0 8px rgba(59, 130, 246, 0.2); }
  50% { border-color: var(--cyan); box-shadow: 0 0 16px rgba(6, 182, 212, 0.4); }
}
@keyframes laserScan {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (min-width: 1025px) {
  .shop-content-mock {
    grid-template-columns: 260px 1fr;
    padding: 12px 24px;
  }
  .shop-img-wrap {
    width: 100%;
    height: 100%;
  }
  .crop-overlay-selector {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: var(--r-md);
  }
}

.shop-details-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 10px;
}
.shop-brand {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shop-title-mock {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.shop-price-mock {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}
.sourcing-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
  margin-top: 4px;
}
.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseAccent 1.8s infinite;
}
@keyframes pulseAccent {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Cell 2: Overlapping Supplier Card Stack */
.supplier-mock {
  padding: 0;
}
.supplier-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.supplier-row {
  position: absolute;
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-spring), opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-sizing: border-box;
}

/* 3D Stack Offset Styling */
.supplier-row:nth-child(1) {
  transform: translateY(-100px) scale(0.84);
  opacity: 0.4;
  z-index: 1;
}
.supplier-row:nth-child(2) {
  transform: translateY(-60px) scale(0.88);
  opacity: 0.6;
  z-index: 2;
}
.supplier-row:nth-child(3) {
  transform: translateY(-20px) scale(0.92);
  opacity: 0.8;
  z-index: 3;
}
.supplier-row:nth-child(4) {
  transform: translateY(20px) scale(0.96);
  opacity: 0.95;
  z-index: 4;
}
.supplier-row:nth-child(5) {
  transform: translateY(60px) scale(1);
  opacity: 1;
  z-index: 5;
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
}

/* Hover Spread interaction */
.stack-card:hover .supplier-row:nth-child(1),
.features-stack-viewport:hover .supplier-row:nth-child(1) {
  transform: translateY(-170px) scale(0.92);
  opacity: 0.75;
}
.stack-card:hover .supplier-row:nth-child(2),
.features-stack-viewport:hover .supplier-row:nth-child(2) {
  transform: translateY(-100px) scale(0.95);
  opacity: 0.85;
}
.stack-card:hover .supplier-row:nth-child(3),
.features-stack-viewport:hover .supplier-row:nth-child(3) {
  transform: translateY(-30px) scale(0.98);
  opacity: 0.92;
}
.stack-card:hover .supplier-row:nth-child(4),
.features-stack-viewport:hover .supplier-row:nth-child(4) {
  transform: translateY(40px) scale(1.01);
  opacity: 0.98;
}
.stack-card:hover .supplier-row:nth-child(5),
.features-stack-viewport:hover .supplier-row:nth-child(5) {
  transform: translateY(110px) scale(1.04);
  opacity: 1;
}

.supplier-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}
.grad-1 { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.grad-2 { background: linear-gradient(135deg, #34d399, #059669); }
.grad-3 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.grad-4 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.grad-5 { background: linear-gradient(135deg, #f87171, #dc2626); }

.supplier-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-grow: 1;
  margin-left: 14px;
}
.supplier-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.supplier-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}
.supplier-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.supplier-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.green-pill {
  background: var(--green-soft);
  color: var(--green);
}

.supplier-badge-verified {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.supplier-badge-gold {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cell 3: Shipping Quote Card */
.shipping-mock {
  padding: 0;
}
.shipping-quote-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  justify-content: space-between;
}
.shipping-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 10px;
}
.shipping-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shipping-header-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.shipping-quote-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  flex-grow: 1;
  margin-top: 16px;
}
.shipping-form-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.shipping-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.shipping-input-group label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shipping-select-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.shipping-weight-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.weight-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.weight-value {
  color: var(--accent);
  font-weight: 700;
}
.weight-slider-mock-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--r-full);
}
.weight-slider-mock-fill {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
}
.weight-slider-mock-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.shipping-rates-trial {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shipping-method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-mid);
  background: var(--bg-soft);
  font-size: 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  height: 52px;
  box-sizing: border-box;
}
.shipping-method-row.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.method-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.rate-name {
  font-weight: 700;
  color: var(--text);
}
.rate-speed {
  font-size: 0.65rem;
  color: var(--muted);
}
.rate-price-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.rate-price {
  font-weight: 800;
  color: var(--text);
}
.shipping-method-row.active .rate-price {
  color: var(--accent);
}
.rate-badge-cheap {
  font-size: 0.55rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--green);
  padding: 1px 4px;
  border-radius: 3px;
}
.shipping-method-row.font-faint {
  opacity: 0.65;
}

/* Cell 4: Sourcing List Calculator */
.list-mock {
  padding: 0;
}
.margin-calculator-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  align-items: center;
  box-sizing: border-box;
}
.margin-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.circular-chart {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 8px rgba(22, 163, 74, 0.15));
}
.circle-bg {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 3;
}
.circle {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
  animation: dialGrow 1.5s ease-out;
}
@keyframes dialGrow {
  from { stroke-dasharray: 0, 100; }
  to { stroke-dasharray: 52, 100; }
}
.percentage {
  fill: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  text-anchor: middle;
  transform: rotate(90deg);
  transform-origin: 50% 50%;
}
.margin-dial-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-top: 12px;
  white-space: nowrap;
}
.margin-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.margin-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 6px;
}
.margin-details-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.sourcing-qty-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.cost-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-2);
}
.cost-item-label {
  font-weight: 500;
  color: var(--muted);
}
.cost-item-value {
  font-weight: 700;
  color: var(--text);
}
.cost-item.divider {
  height: 1px;
  background: var(--border-mid);
  margin: 2px 0;
}
.cost-item.highlight {
  font-size: 0.8rem;
  font-weight: 700;
}
.cost-item.highlight .cost-item-label {
  color: var(--text);
  font-weight: 700;
}
.cost-item.highlight .cost-item-value {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Cell 5: WhatsApp Chat Card */
.whatsapp-mock {
  padding: 0;
}
.whatsapp-dialog-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}
.whatsapp-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #00a884;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .whatsapp-dialog-header {
  background: #202c33;
  border-bottom: 1px solid var(--border-mid);
}

.whatsapp-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px #ffffff;
}
[data-theme="dark"] .whatsapp-status-dot {
  background: #00e676;
  box-shadow: 0 0 4px #00e676;
}

.whatsapp-avatar-mock {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
}
.whatsapp-header-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.whatsapp-header-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}
.whatsapp-header-status {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .whatsapp-header-status {
  color: #00e676;
}

.whatsapp-dialog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: #efeae2;
  height: calc(100% - 48px);
  overflow-y: hidden;
  justify-content: flex-start;
  box-sizing: border-box;
}
[data-theme="dark"] .whatsapp-dialog-body {
  background: #0b141a;
}

.chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 0.7rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  box-sizing: border-box;
}
.chat-bubble p {
  margin: 0;
}
.user-bubble {
  background: #d9fdd3;
  color: #111b21;
  align-self: flex-end;
  border-top-right-radius: 0;
}
[data-theme="dark"] .user-bubble {
  background: #005c4b;
  color: #e9edef;
}
.chat-time {
  display: block;
  text-align: right;
  font-size: 0.55rem;
  color: #667781;
  margin-top: 4px;
}
[data-theme="dark"] .chat-time {
  color: #8696a0;
}
.agent-bubble {
  background: #ffffff;
  color: #111b21;
  align-self: flex-start;
  border-top-left-radius: 0;
}
[data-theme="dark"] .agent-bubble {
  background: #202c33;
  color: #e9edef;
}

/* Sourcing catalog card attachment in WhatsApp chat */
.sourcing-catalog-card {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #d9fdd3;
  border: 1px solid #c7ebd0;
  border-radius: var(--r-md);
  max-width: 80%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  margin-top: -4px;
  box-sizing: border-box;
}
[data-theme="dark"] .sourcing-catalog-card {
  background: #005c4b;
  border-color: #004d3e;
}
.catalog-card-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
.catalog-card-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.catalog-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #111b21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .catalog-card-title {
  color: #e9edef;
}
.catalog-card-cost {
  font-size: 0.6rem;
  color: #667781;
  margin-top: 1px;
}
[data-theme="dark"] .catalog-card-cost {
  color: #8696a0;
}
.catalog-card-status {
  font-size: 0.55rem;
  font-weight: 700;
  color: #ffffff;
  background: #00a884;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   SCREENSHOTS GALLERY (full-width)
════════════════════════════════════════ */
#gallery {
  padding: var(--section-py) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border); /* Divider color */
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 0; /* Merges directly into body card */
}
.gallery-tab-btn {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 64px;
}
.gallery-tab-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.gallery-tab-btn.active {
  background: var(--surface);
  color: var(--text);
}
.gallery-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  overflow: hidden;
}
.gallery-tab-btn.active .gallery-progress-bar {
  background: var(--bg-subtle);
}
.gallery-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent); /* Premium blue/dark accent indicator */
  transition: width 100ms linear;
}
.gallery-card-body {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--surface);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.gallery-panel-wrap {
  position: relative;
}
.gallery-panel {
  display: none;
  animation: fadeIn 350ms var(--ease-out);
}
.gallery-panel.active {
  display: block;
}
.gallery-panel-header {
  margin-bottom: 24px;
  max-width: 800px;
}
.gallery-panel-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.gallery-panel-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.gallery-screen {
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.gallery-screen img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .gallery-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }
  .gallery-tab-btn {
    flex: 1 0 auto;
    padding: 12px 16px;
    height: 52px;
    font-size: 0.8125rem;
  }
  .gallery-card-body {
    padding: 20px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
}

/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
#faq {
  padding: var(--section-py) 0;
}
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  width: 100%;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--t-fast) ease;
}
.faq-q:hover { color: var(--accent); }

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base) var(--ease-out),
              background var(--t-fast) ease;
}
.faq-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--muted);
  transition: stroke var(--t-fast) ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.faq-item.open .faq-icon svg { stroke: var(--accent); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms var(--ease-out);
}
.faq-body-inner {
  padding-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ════════════════════════════════════════
   FINAL CTA
════════════════════════════════════════ */
#cta {
  padding: var(--section-py) 0;
}
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 52px 40px;
  background: rgba(59, 130, 246, 0.04) !important;
  border: 1px solid rgba(59, 130, 246, 0.12) !important;
  border-radius: var(--r-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .cta-card {
  background: rgba(59, 130, 246, 0.04) !important;
  border: 1px solid rgba(59, 130, 246, 0.12) !important;
}

/* Subtle radial glow inside CTA */
.cta-card::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text) !important;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .cta-title { color: var(--text) !important; }

.cta-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted) !important;
  max-width: 440px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .cta-sub { color: var(--muted) !important; }

.cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--accent) !important;
  color: #ffffff !important;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn-cta-primary:hover { opacity: 0.9; transform: translateY(-1px); }
[data-theme="dark"] .btn-cta-primary { background: var(--accent) !important; color: #ffffff !important; }

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  color: var(--text-2) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
  background: transparent !important;
}
.btn-cta-ghost:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}
[data-theme="dark"] .btn-cta-ghost { color: var(--text-2) !important; border-color: var(--border-strong) !important; }
[data-theme="dark"] .btn-cta-ghost:hover { color: #ffffff !important; border-color: var(--accent) !important; background: var(--accent-soft) !important; }

@media (max-width: 600px) {
  .cta-card { padding: 48px 24px; }
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
#footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 24px;
}
.footer-brand-name {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.footer-brand-desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--faint);
  max-width: 280px;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-link {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color var(--t-fast) ease;
}
.footer-link:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--faint);
}
.footer-legal {
  display: flex;
  gap: 16px;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--faint);
  transition: color var(--t-fast) ease;
}
.footer-legal a:hover { color: var(--muted); }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ════════════════════════════════════════
   LEGAL PAGES
════════════════════════════════════════ */
.legal-page {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 120px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}
.legal-toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  padding-left: 16px;
}
.legal-toc-links {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-strong);
  padding: 4px 0;
}
.legal-toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 0;
  padding-left: 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.legal-toc-link:hover {
  color: var(--text);
}
.legal-toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.legal-header {
  margin-bottom: 56px;
}
.legal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}
.legal-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.legal-section {
  margin-bottom: 72px;
  text-align: left;
}
.legal-section:last-of-type {
  margin-bottom: 0;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 12px;
  line-height: 1.3;
}
.legal-section p, .legal-section li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-section ul, .legal-section ol {
  padding-left: 0 !important;
  margin-bottom: 24px !important;
  margin-top: 16px !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-section li {
  list-style: none !important;
  padding-left: 24px !important;
  position: relative !important;
  margin-bottom: 0 !important;
}
.legal-section li::before {
  content: "—" !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.legal-section strong {
  color: var(--text-2);
  font-weight: 700;
}
.legal-section a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-border);
  transition: border-color var(--t-fast) ease;
}
.legal-section a:hover {
  border-bottom-color: var(--accent);
}

/* Redesigned Contact / Help Info Card */
#terms-contact div, #contact div {
  padding: 28px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-xl) !important;
  margin-top: 20px !important;
  box-shadow: var(--shadow-sm) !important;
  box-sizing: border-box;
}
#terms-contact div div, #contact div div {
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 10px !important;
  font-size: 1rem !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#terms-contact div a, #contact div a {
  color: var(--accent) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border-bottom: 1px solid var(--accent-border) !important;
  text-decoration: none !important;
  transition: border-color var(--t-fast) ease;
}
#terms-contact div a:hover, #contact div a:hover {
  border-bottom-color: var(--accent) !important;
}
#terms-contact div p, #contact div p {
  margin-top: 10px !important;
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}

@media (max-width: 760px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-toc { display: none; }
  .legal-title { font-size: 2rem; }
}

/* ════════════════════════════════════════
   SUPPORT PAGE
════════════════════════════════════════ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.support-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}
.support-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-sm);
}
.support-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.support-card-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   COMPARISON SECTION
   Vercel-style clean card layout
   ════════════════════════════════════════ */
#comparison {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.traditional-sourcing {
  background: var(--bg-soft);
  opacity: 0.72;
  border-color: var(--border);
}
.traditional-sourcing:hover {
  opacity: 0.92;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.gp-sourcing-glow {
  border-color: rgba(59, 130, 246, 0.4);
  position: relative;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.08);
}
[data-theme="dark"] .gp-sourcing-glow {
  background: rgba(17, 15, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.12), 0 0 24px rgba(59, 130, 246, 0.04);
}
.gp-sourcing-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.15);
}
[data-theme="dark"] .gp-sourcing-glow:hover {
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.18), 0 0 32px rgba(59, 130, 246, 0.08);
}
.gp-sourcing-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.comparison-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 16px;
}
.card-header-titles {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.comparison-card-subtitle {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
  opacity: 0.8;
}
.comparison-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.red-dot { background: rgb(239, 68, 68); }
.green-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseGreenDot 2s infinite;
}
@keyframes pulseGreenDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.comparison-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.comparison-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.comparison-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.comparison-list li:first-child {
  padding-top: 0;
}
.comparison-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.07);
  color: rgb(239, 68, 68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comp-icon-svg {
  width: 10px;
  height: 10px;
}
.check-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}
.gp-list li {
  color: var(--text-2);
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comparison-card {
    padding: 22px 18px;
  }
  .comparison-list li {
    font-size: 0.84rem;
  }
}

/* ════════════════════════════════════════
   WORKFLOW STEPS SECTION
   Horizontal 4-column timeline cards
   ════════════════════════════════════════ */
#workflow {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
  background: transparent;
  position: relative;
  overflow: hidden;
}
#workflow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] #workflow::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 75%);
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.workflow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
[data-theme="dark"] .workflow-step {
  background: rgba(17, 15, 24, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(59, 130, 246, 0.1);
}

.workflow-step-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.workflow-step-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.3s var(--ease-smooth);
}
.workflow-step:hover .workflow-step-glow::before {
  width: 100%;
}

.workflow-step:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .workflow-step:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08), 0 0 24px rgba(59, 130, 246, 0.02);
}

/* Connecting dashed lines between step cards on desktop */
@media (min-width: 1025px) {
  .workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(100% + 2px);
    width: 24px;
    height: 2px;
    border-top: 2px dashed var(--border-strong);
    z-index: 1;
    opacity: 0.8;
  }
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 20px;
  text-align: left;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  text-align: left;
}
.step-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

@media (max-width: 900px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ════════════════════════════════════════
   RAYCAST-STYLE INTERACTIVE WINDOW
   ════════════════════════════════════════ */
.hero-screen-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0 auto;
  animation: raycastReveal 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 10;
  overflow: visible;
}

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

/* Shifting Neon Aurora Backdrop Glow */
.hero-screen-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(59, 130, 246, 0.08) 30%,
    transparent 100%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  border-radius: var(--r-full);
}

[data-theme="dark"] .hero-screen-glow {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(130, 87, 255, 0.12) 30%,
    transparent 100%
  );
  filter: blur(90px);
}

/* Centered Raycast Palette Window (Direct-to-Page Layout) */
.raycast-window {
  width: 100%;
  height: 580px;
  border-radius: var(--r-xl);
  transition: all var(--t-base) ease;
  z-index: 50;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  
  /* Dark Glassmorphism */
  background: rgba(18, 18, 22, 0.94);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 48px -8px rgba(0, 0, 0, 0.6),
    0 40px 80px -16px rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .raycast-window {
  background: rgba(252, 252, 253, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 20px 48px -8px rgba(0, 0, 0, 0.08),
    0 40px 80px -16px rgba(0, 0, 0, 0.12);
}

/* Header bar */
.raycast-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  gap: 12px;
  height: 48px;
  box-sizing: border-box;
  flex-shrink: 0;
}

[data-theme="light"] .raycast-search-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mac-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.mac-dot.red    { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green  { background: #27c93f; }

.raycast-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.raycast-search-input-wrap .search-icon {
  position: absolute;
  left: 0;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

#raycast-search-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  padding: 0 0 0 24px;
  color: var(--text);
  outline: none;
  font-family: var(--font-sans);
  font-weight: 500;
}

#raycast-search-input::placeholder {
  color: var(--faint);
}

.raycast-cursor {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 14px;
  background: var(--accent);
  pointer-events: none;
  animation: raycastCaretBlink 0.8s step-end infinite;
}

@keyframes raycastCaretBlink {
  50% { opacity: 0; }
}

.raycast-glob-shortcut {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  user-select: none;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  color: #a1a1aa;
}

[data-theme="light"] .raycast-glob-shortcut {
  background: linear-gradient(to bottom, #ffffff, #f3f4f6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  color: #4b5563;
}

/* Split-Pane Body */
.raycast-split-body {
  display: flex;
  flex-direction: row;
  height: calc(100% - 48px);
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar */
.raycast-sidebar {
  width: 240px;
  min-width: 240px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

[data-theme="light"] .raycast-sidebar {
  border-right-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.015);
}

.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 14px 8px;
  opacity: 0.6;
}

.sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 1px 6px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: background 0.12s ease;
  width: calc(100% - 12px);
  box-sizing: border-box;
  color: var(--text);
  outline: none;
}

.sidebar-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sidebar-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-row.active {
  background: rgba(59, 130, 246, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .sidebar-row.active {
  background: rgba(59, 130, 246, 0.1) !important;
}

.sidebar-row-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.sidebar-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-row-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-row.active .sidebar-row-name {
  color: #60a5fa;
}

[data-theme="light"] .sidebar-row.active .sidebar-row-name {
  color: var(--accent-2);
}

.sidebar-row-sub {
  font-size: 0.65rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Right Preview Pane — fills remaining space */
.raycast-preview {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .raycast-preview {
  background: rgba(0, 0, 0, 0.02);
}

.ray-sim-view {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.ray-sim-view.active {
  display: block;
}

/* Mock Browser inside preview */
.mock-browser-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  height: 30px;
  box-sizing: border-box;
}

[data-theme="light"] .mock-browser-bar {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.mock-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

[data-theme="light"] .mock-browser-url {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mock-lock-icon {
  width: 9px;
  height: 9px;
  opacity: 0.5;
  color: currentColor;
}

.mock-browser-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: calc(100% - 30px);
}

/* Left: Simulated Webpage */
.mock-web-page {
  flex: 1;
  min-width: 0;
  background: rgba(18, 18, 22, 0.4);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .mock-web-page {
  background: rgba(255, 255, 255, 0.5);
}

/* Right: Extension Panel Viewport (Locked to exact native width) */
.extension-scroll-viewport {
  width: 380px;
  min-width: 380px;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  background: rgba(20, 20, 25, 0.96);
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

[data-theme="light"] .extension-scroll-viewport {
  border-left-color: rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.extension-scroll-img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(0);
  animation: autoscrollExtension 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes autoscrollExtension {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(0); }
  88%  { transform: translateY(calc(-100% + 466px)); }
  100% { transform: translateY(calc(-100% + 466px)); }
}

/* Simulated Webpage Elements (High Fidelity) */
.mock-product-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  margin: auto 0;
  position: relative;
}

.mock-product-img {
  width: 140px;
  height: 140px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.mock-product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mock-product-details.dimmed {
  opacity: 0.55;
}

.mock-product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.mock-product-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

[data-theme="light"] .mock-product-price {
  color: var(--accent-2);
}

.mock-product-specs {
  font-size: 0.725rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.spec-label {
  font-weight: 600;
}

.mock-product-cta {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .mock-product-cta {
  background: var(--accent-2);
}

/* Crop overlay representation */
.mock-crop-overlay-wrap {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.mock-crop-selection-box {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--accent);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
  position: relative;
  animation: mockCropPulse 2.5s ease-in-out infinite;
}

@keyframes mockCropPulse {
  0%, 100% { border-color: var(--accent); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }
  50% { border-color: #60a5fa; box-shadow: 0 0 25px rgba(59, 130, 246, 0.6); }
}

.crop-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
}

.crop-handle.top-left     { top: -4px; left: -4px; }
.crop-handle.top-right    { top: -4px; right: -4px; }
.crop-handle.bottom-left  { bottom: -4px; left: -4px; }
.crop-handle.bottom-right { bottom: -4px; right: -4px; }

.crop-dimensions {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

[data-theme="light"] .crop-dimensions {
  background: var(--accent-2);
}

/* Sourcing dashboard simulated page (View 2 & 3) */
.mock-sourcing-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: auto 0;
}

.dashboard-header {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

[data-theme="light"] .dashboard-card {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-card-title,
.table-card-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 10px;
}

.mock-form-group {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.725rem;
}

[data-theme="light"] .mock-form-group {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.mock-form-label {
  color: var(--muted);
}

.mock-form-value {
  color: var(--text);
  font-weight: 600;
}

.dashboard-table-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

[data-theme="light"] .dashboard-table-card {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mock-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 6px;
  font-size: 0.725rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  align-items: center;
}

[data-theme="light"] .mock-table-row {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.mock-table-row.header {
  font-weight: 700;
  color: var(--muted);
  border-bottom-width: 1.5px;
}

.margin-badge {
  font-weight: 700;
  color: #10b981;
}

/* WhatsApp Chat Mockup (View 4) */
.whatsapp-mock {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #0b141a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 250px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: auto 0;
}

[data-theme="light"] .whatsapp-mock {
  background: #efeae2;
  border-color: rgba(0, 0, 0, 0.08);
}

.whatsapp-header {
  background: #1f2c34;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .whatsapp-header {
  background: #008069;
  color: #ffffff;
}

.whatsapp-name {
  font-size: 0.775rem;
  font-weight: 700;
  color: #e9edef;
}

[data-theme="light"] .whatsapp-name {
  color: #ffffff;
}

.whatsapp-chat-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.whatsapp-bubble {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.725rem;
  max-width: 80%;
  line-height: 1.35;
  box-shadow: 0 1px 1px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.whatsapp-bubble.chat-visible {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-bubble.user-bubble {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 0;
}

[data-theme="light"] .whatsapp-bubble.user-bubble {
  background: #d9fdd3;
  color: #111b21;
}

.whatsapp-bubble.agent-bubble {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 0;
}

[data-theme="light"] .whatsapp-bubble.agent-bubble {
  background: #ffffff;
  color: #111b21;
}

.whatsapp-bubble.sourcing-catalog-card {
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .whatsapp-bubble.sourcing-catalog-card {
  border-color: rgba(0, 0, 0, 0.05);
}

.whatsapp-bubble.typing-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 8px 12px;
  width: fit-content;
}

.whatsapp-bubble.typing-indicator span {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: typing-bounce 1.3s infinite;
}

[data-theme="light"] .whatsapp-bubble.typing-indicator span {
  background: rgba(0,0,0,0.3);
}

.whatsapp-bubble.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.whatsapp-bubble.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* macOS footer bar inside window */
.raycast-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  font-size: 0.7rem;
  color: var(--muted);
  height: 36px;
  box-sizing: border-box;
  flex-shrink: 0;
}

[data-theme="light"] .raycast-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.raycast-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.raycast-key-divider {
  color: var(--border-hover);
  margin: 0 4px;
}

/* macOS floating Dock positioning */
.ray-dock {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 6px;
  display: flex;
  gap: 6px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

[data-theme="light"] .ray-dock {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ray-dock-item {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  position: relative;
  outline: none;
}

.ray-dock-item:hover {
  transform: scale(1.15) translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .ray-dock-item:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.03);
}

.ray-dock-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .ray-dock-item.active {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

.dock-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.dock-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: var(--r-full);
  background: #3b82f6;
  opacity: 0;
  transition: opacity 0.2s;
}

.ray-dock-item.active .dock-indicator {
  opacity: 1;
}

/* Captions Section below mockup screen */
.ray-captions {
  margin-top: 20px;
  width: 100%;
}

.ray-caption-item {
  display: none;
  text-align: center;
}

.ray-caption-item.active {
  display: block;
  animation: captionFadeIn 0.3s ease-out;
}

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

.caption-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.caption-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .sim-browser-body {
    height: 480px;
    --browser-body-h: 480px;
  }
  .caption-title {
    font-size: 1.25rem;
  }
  .caption-desc {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .sim-browser-body {
    height: 360px;
    --browser-body-h: 360px;
  }
  .sim-browser-address-bar {
    min-width: 200px;
    font-size: 0.65rem;
  }
  .ray-dock {
    margin-top: 16px;
    gap: 4px;
  }
  .ray-dock-item {
    width: 32px;
    height: 32px;
  }
  .dock-icon { font-size: 1rem; }
  .caption-title { font-size: 1.125rem; }
  .caption-desc { font-size: 0.8125rem; }
}

@media (max-width: 540px) {
  .sim-browser-body {
    height: auto;
    aspect-ratio: 1.6; /* Maintain proportion, let image fit */
  }
  .ext-full-img {
    height: 100%;
    object-fit: cover;
    animation: none; /* Disable scroll on small screens */
  }
  .sim-browser-address-bar {
    display: none;
  }
  .ray-dock { gap: 3px; padding: 4px 8px; }
  .ray-dock-item { width: 28px; height: 28px; }
  .dock-icon { font-size: 0.875rem; }
}

.mock-browser-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.mac-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.raycast-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  position: relative;
}

.raycast-search-input-wrap .search-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}

#raycast-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text);
  padding: 0 0 0 2px;
  outline: none;
  pointer-events: none;
}

#raycast-search-input::placeholder {
  color: var(--faint);
}

.raycast-cursor {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 14px;
  background: var(--accent);
  pointer-events: none;
  animation: raycastCaretBlink 0.8s step-end infinite;
}

@keyframes raycastCaretBlink {
  50% { opacity: 0; }
}

.raycast-glob-shortcut,
.raycast-key-pill {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  user-select: none;
  line-height: 1.2;
}

[data-theme="light"] .raycast-glob-shortcut,
[data-theme="light"] .raycast-key-pill {
  background: linear-gradient(to bottom, #ffffff, #f3f4f6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  color: #4b5563;
}

.raycast-glob-shortcut,
.raycast-key-pill {
  background: linear-gradient(to bottom, #2d2d30, #1e1e20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  color: #a1a1aa;
}

/* Window Body */
.raycast-window-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 0;
}

/* Split-Pane Body */
.raycast-split-body {
  display: flex;
  flex-direction: row;
  height: 100%;
}

/* Left Sidebar — command list */
.raycast-sidebar {
  width: 220px;
  min-width: 220px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .raycast-sidebar {
  border-right-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.02);
}

.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 14px 8px;
  opacity: 0.6;
}

.sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 1px 6px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: background 0.12s ease;
  width: calc(100% - 12px);
  box-sizing: border-box;
  color: var(--text);
}

.sidebar-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sidebar-row:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-row.active {
  background: rgba(59, 130, 246, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .sidebar-row.active {
  background: rgba(59, 130, 246, 0.1) !important;
}

.sidebar-row-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.sidebar-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-row-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-row.active .sidebar-row-name {
  color: #60a5fa;
}

[data-theme="light"] .sidebar-row.active .sidebar-row-name {
  color: var(--accent-2);
}

.sidebar-row-sub {
  font-size: 0.65rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Right Preview Pane — fills remaining space */
.raycast-preview {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .raycast-preview {
  background: rgba(0,0,0,0.02);
}

.ray-sim-view {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0; left: 0;
}

.ray-sim-view.active {
  display: block;
}

/* Full-width extension screenshot inside preview pane */
.ext-full-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  /* Soft fade at the bottom edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.ext-full-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
  transform: translateY(0);
  animation: extPanelScroll 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes extPanelScroll {
  0%   { transform: translateY(0); }
  10%  { transform: translateY(0); }
  90%  { transform: translateY(calc(-100% + 614px)); }
  100% { transform: translateY(calc(-100% + 614px)); }
}

/* Mock Browser Frame */
.mock-browser-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  height: 30px;
  box-sizing: border-box;
}

[data-theme="light"] .mock-browser-bar {
  background: rgba(0, 0, 0, 0.015);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.mock-browser-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

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

.mock-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  color: var(--faint);
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .mock-browser-url {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}

.mock-lock-icon {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  opacity: 0.5;
}


.mock-browser-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* Light/dark image helpers for mock browser thumbnails */
/* By default (light mode): show light-only, hide dark-only */
.dark-only { display: none !important; }
.light-only { display: block !important; }
/* When dark theme is applied: flip them */
[data-theme="dark"] .light-only { display: none !important; }
[data-theme="dark"] .dark-only  { display: block !important; }


/* Left: mini product page mockup */
.mock-web-page-mini {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  background: rgba(255,255,255,0.01);
  position: relative;
}

[data-theme="light"] .mock-web-page-mini {
  background: rgba(0,0,0,0.01);
}

.mock-product-img-placeholder {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-sm);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mock-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-sm);
  display: block;
}

/* Screenshot crop overlay */
.mock-crop-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-crop-box {
  width: 60%;
  height: 50%;
  border: 2px dashed #3b82f6;
  background: rgba(59, 130, 246, 0.07);
  box-shadow: 0 0 10px rgba(59,130,246,0.3);
  position: relative;
  animation: cropBoxPulse 3s ease-in-out infinite;
}

@keyframes cropBoxPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 20px rgba(59,130,246,0.6); }
}

.mock-crop-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border: 1.5px solid #3b82f6;
  border-radius: 1px;
}
.mock-crop-handle.tl { top: -4px; left: -4px; }
.mock-crop-handle.tr { top: -4px; right: -4px; }
.mock-crop-handle.bl { bottom: -4px; left: -4px; }
.mock-crop-handle.br { bottom: -4px; right: -4px; }

/* Right: Extension panel scroll viewport */
.extension-scroll-viewport {
  width: 210px;
  min-width: 210px;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  position: relative;
  /* Fade out at bottom to hint at scrolling */
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

[data-theme="light"] .extension-scroll-viewport {
  border-left-color: rgba(0,0,0,0.05);
}

.extension-scroll-img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(0);
  animation: autoscrollExtension 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes autoscrollExtension {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(0); }
  85%  { transform: translateY(calc(-100% + 360px)); }
  100% { transform: translateY(calc(-100% + 360px)); }
}



.ray-view-header {
  margin-bottom: 12px;
}

.ray-view-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  width: fit-content;
}

[data-theme="light"] .ray-view-category {
  color: var(--accent-2);
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

/* View 1: Main Image Search */
.ray-search-target-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 14px;
}

[data-theme="light"] .ray-search-target-box {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

.target-img-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .target-img-wrap {
  border-color: rgba(0, 0, 0, 0.08);
}

.target-img-blur {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: scanVertical 2s linear infinite;
}

@keyframes scanVertical {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.target-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.target-sub {
  font-size: 0.725rem;
  color: var(--muted);
}

.ray-list-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ray-list-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ray-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 0.775rem;
  transition: background 0.15s;
}

.ray-list-row.active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .ray-list-row.active {
  background: rgba(59, 130, 246, 0.06);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.row-left, .row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

[data-theme="light"] .row-badge {
  background: rgba(0, 0, 0, 0.05);
}

.row-badge.recommended {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

[data-theme="light"] .row-badge.recommended {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.row-name {
  font-weight: 600;
}

.row-price {
  font-weight: 700;
  color: var(--text);
}

.row-rating {
  color: var(--faint);
  font-size: 0.7rem;
}

/* View 2: Screenshot Crop Sourcing */
.ray-crop-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  overflow: hidden;
  background: #0d0d11;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

[data-theme="light"] .ray-crop-container {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.05);
}

.ray-crop-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crop-backdrop {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.ray-crop-selection {
  position: absolute;
  top: 25%;
  left: 20%;
  width: 160px;
  height: 100px;
  border: 2px dashed #3b82f6;
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.crop-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border: 1px solid #3b82f6;
}
.crop-handle.tl { top: -4px; left: -4px; cursor: nwse-resize; }
.crop-handle.tr { top: -4px; right: -4px; cursor: nesw-resize; }
.crop-handle.bl { bottom: -4px; left: -4px; cursor: nesw-resize; }
.crop-handle.br { bottom: -4px; right: -4px; cursor: nwse-resize; }

.crop-tooltip {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.crop-scan-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(59, 130, 246, 0) 100%);
  animation: cropShimmer 1.5s linear infinite;
}

@keyframes cropShimmer {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* View 3: Shipping Quote */
.shipping-inputs-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.ship-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ship-input label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
}

.ship-select, .ship-field {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  height: 32px;
  box-sizing: border-box;
}

[data-theme="light"] .ship-select, 
[data-theme="light"] .ship-field {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

.shipping-methods-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ship-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 0.775rem;
  transition: background 0.15s;
}

.ship-row.active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .ship-row.active {
  background: rgba(59, 130, 246, 0.06);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.ship-method {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-carrier {
  font-weight: 600;
}

.ship-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

[data-theme="light"] .ship-badge {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.ship-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ship-price {
  font-weight: 700;
  color: var(--text);
}

.ship-time {
  font-size: 0.7rem;
  color: var(--faint);
}

/* View 4: Sourcing List */
.sourcing-table-wrapper {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 4px;
}

[data-theme="light"] .sourcing-table-wrapper {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.05);
}

.sourcing-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.sourcing-grid th, .sourcing-grid td {
  padding: 10px 14px;
}

.sourcing-grid th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .sourcing-grid th {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

.sourcing-grid tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

[data-theme="light"] .sourcing-grid tr {
  border-color: rgba(0, 0, 0, 0.03);
}

.sourcing-grid tr:last-child {
  border-bottom: none;
}

.sourcing-grid tr.active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

[data-theme="light"] .sourcing-grid tr.active {
  background: rgba(59, 130, 246, 0.06);
  color: var(--accent-2);
}

.sourcing-grid tr.active td {
  color: inherit;
}

.profit-highlight {
  font-weight: 700;
  color: #34d399 !important;
}

[data-theme="light"] .profit-highlight {
  color: #059669 !important;
}

/* View 5: WhatsApp Inquiry */
.whatsapp-mock-container {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 245px;
  display: flex;
  flex-direction: column;
  background: #0b141a;
}

[data-theme="light"] .whatsapp-mock-container {
  background: #f0f2f5;
  border-color: rgba(0, 0, 0, 0.05);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #202c33;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

[data-theme="light"] .chat-header {
  background: #f0f2f5;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.chat-avatar {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.08);
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-theme="light"] .chat-avatar {
  background: rgba(0,0,0,0.05);
}

.chat-name {
  font-size: 0.775rem;
  font-weight: 700;
  color: #fff;
}

[data-theme="light"] .chat-name {
  color: #111b21;
}

.chat-status {
  font-size: 0.6rem;
  color: #00a884;
}

.chat-body {
  flex-grow: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-bubble.user {
  align-self: flex-end;
  background: #005c4b;
  border-radius: 8px 0 8px 8px;
  max-width: 85%;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  padding: 10px;
}

[data-theme="light"] .chat-bubble.user {
  background: #d9fdd3;
}

.inquiry-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #e9edef;
  font-size: 0.7rem;
}

[data-theme="light"] .inquiry-card {
  color: #111b21;
}

.inquiry-card-header {
  font-weight: 700;
  color: #53bdeb;
  margin-bottom: 2px;
}

[data-theme="light"] .inquiry-card-header {
  color: #008069;
}

.inquiry-item strong {
  color: #fff;
}

[data-theme="light"] .inquiry-item strong {
  color: #111b21;
}

.inquiry-send-btn {
  background: #00a884;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 6px 12px;
  margin-top: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.inquiry-send-btn:hover {
  opacity: 0.9;
}

/* Raycast Footer */
.raycast-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  font-size: 0.7rem;
  color: var(--muted);
  height: 36px;
  box-sizing: border-box;
}

[data-theme="light"] .raycast-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.raycast-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.raycast-key-divider {
  color: var(--border-hover);
  margin: 0 4px;
}

/* Active floating label above dock */
.ray-active-label {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ray-desktop-screen:hover .ray-active-label {
  opacity: 1;
}

/* macOS floating Dock */
.ray-dock {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 20px auto 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 6px;
  display: flex;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  width: fit-content;
}

[data-theme="light"] .ray-dock {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ray-dock-item {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  position: relative;
  outline: none;
}

.ray-dock-item:hover {
  transform: scale(1.15) translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .ray-dock-item:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.03);
}

.ray-dock-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .ray-dock-item.active {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

.dock-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.dock-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: var(--r-full);
  background: #3b82f6;
  opacity: 0;
  transition: opacity 0.2s;
}

.ray-dock-item.active .dock-indicator {
  opacity: 1;
}

/* Captions Section below mockup screen */
.ray-captions {
  margin-top: 20px;
  width: 100%;
}

.ray-caption-item {
  display: none;
  text-align: center;
}

.ray-caption-item.active {
  display: block;
  animation: captionFadeIn 0.3s ease-out;
}

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

.caption-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.caption-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .ray-desktop-screen {
    height: 580px;
    border-width: 8px;
  }
  .raycast-window {
    width: calc(100% - 20px);
    height: 490px;
  }
  .raycast-window-body {
    flex: 1;
  }
  .raycast-sidebar {
    width: 190px;
    min-width: 190px;
  }
  .ray-dock {
    bottom: 10px;
  }
  .caption-title {
    font-size: 1.25rem;
  }
  .caption-desc {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .ray-desktop-screen {
    height: 460px;
    border-width: 6px;
  }
  .raycast-window {
    width: calc(100% - 16px);
    height: 380px;
    transform: translate(-50%, -50%);
  }
  .raycast-sidebar {
    width: 160px;
    min-width: 160px;
  }
  .sidebar-row-sub { display: none; }
  .sidebar-section-label { display: none; }
  .ray-dock {
    bottom: 8px;
    gap: 4px;
  }
  .ray-dock-item {
    width: 32px;
    height: 32px;
  }
  .dock-icon { font-size: 1rem; }
  .caption-title { font-size: 1.125rem; }
  .caption-desc { font-size: 0.8125rem; }
}

@media (max-width: 540px) {
  .ray-desktop-screen {
    height: 380px;
    border-width: 5px;
  }
  .raycast-window {
    height: 310px;
  }
  .raycast-sidebar { display: none; }
  .ray-dock { gap: 3px; padding: 4px 8px; }
  .ray-dock-item { width: 28px; height: 28px; }
  .dock-icon { font-size: 0.875rem; }
}



/* ── Infinite Logo Cloud Ticker ── */
.logo-ticker-wrap {
  margin-top: 64px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}
.logo-ticker-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 24px;
  font-weight: 700;
}
.logo-ticker-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.logo-ticker-track {
  display: flex;
  flex-shrink: 0;
  gap: 40px;
  animation: logoMarquee 50s linear infinite; /* Doubled duration for 8 sets to maintain speed */
  width: max-content;
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--muted);
  opacity: 0.6;
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease, color 0.3s ease;
  user-select: none;
}
.ticker-item:hover {
  opacity: 1;
  color: var(--accent);
}

@keyframes logoMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-12.5% - 5px)); } /* 12.5% matches 1 set of 8. Gap offset is 40px / 8 = 5px */
}

/* ── Antigravity-Inspired Feature Wave Ribbon ── */
.feature-ribbon-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: transparent;
  margin-top: -32px;
  margin-bottom: -32px;
}

.feature-ribbon-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  padding: 64px 0; /* Vertical breathing room so tooltips are never cut off */
}

.feature-ribbon-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 48px; /* Separated spacing, no overlap */
  animation: ribbonMarqueeDesktop 56s linear infinite; /* Marquee loops over 3 sets of 36 items */
  width: max-content;
}

/* Pause scroll when hovering over the track */
.feature-ribbon-track:hover {
  animation-play-state: paused;
}

/* Bobbing wrapper to separate wave motion from scaling hover */
.ribbon-circle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0; /* Prevents circles from squishing/overlapping */
  animation: waveBobDesktop 16s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1s - 144s); /* Precise standing wave delay with positive phase propagation */
}

.ribbon-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); /* Translucent glassy white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(228, 230, 235, 0.6); /* Subtle light border */
  color: var(--text-2); /* Dark, crisp charcoal-black outlines */
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.02), var(--shadow-xs);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  user-select: none;
}

[data-theme="dark"] .ribbon-circle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}

.ribbon-circle svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: stroke var(--t-base) ease, transform 0.3s var(--ease-out);
}

.ribbon-circle:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-soft), var(--shadow-lg);
  transform: scale(1.15);
  z-index: 100;
}

.ribbon-circle:hover svg {
  transform: scale(1.05);
}

/* Tooltip container */
.ribbon-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -8px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 10px 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  width: 230px;
  z-index: 200;
  text-align: center;
}

/* Tooltip arrow points down */
.ribbon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--surface) transparent transparent transparent;
}

.ribbon-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: var(--border-strong) transparent transparent transparent;
  z-index: -1;
  margin-top: 1px;
}

.ribbon-circle:hover .ribbon-tooltip {
  opacity: 1;
  transform: translate(-50%, -14px) scale(1);
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tooltip-desc {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Wave Bobbing (Sequenced heights) */
@keyframes waveBobDesktop {
  0%, 100% {
    transform: translateY(18px); /* Gentle wave height */
  }
  50% {
    transform: translateY(-18px);
  }
}

/* Horizontal scrolling loop */
@keyframes ribbonMarqueeDesktop {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-33.3333% - 16px)); } /* Translates 1 set of 36 items. Gap is 48px, offset calc */
}

/* Mobile responsive adaptions */
@media (max-width: 768px) {
  .feature-ribbon-section {
    padding: 30px 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .feature-ribbon-container {
    padding: 20px 0;
  }
  .feature-ribbon-track {
    gap: 32px; /* Separated spacing on mobile */
    animation: ribbonMarqueeMobile 40s linear infinite;
  }
  .ribbon-circle-wrap {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    animation: waveBobMobile 12s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.75s - 108s); /* Precise standing wave delay with positive phase propagation */
  }
  .ribbon-circle {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(228, 230, 235, 0.6);
  }
  .ribbon-circle svg {
    width: 22px;
    height: 22px;
  }
  @keyframes waveBobMobile {
    0%, 100% {
      transform: translateY(10px); /* Gentle wave height on mobile */
    }
    50% {
      transform: translateY(-10px);
    }
  }
  @keyframes ribbonMarqueeMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-33.3333% - 10.67px)); } /* Translates 1 set of 36 items. Gap is 32px, offset calc */
  }
  /* Disable tooltips on mobile since there is no hover state */
  .ribbon-tooltip {
    display: none !important;
  }
}

/* ── Sourcing Collaboration Canvas ── */
#collaboration {
  border-top: 1px solid var(--border);
  padding: 0;
  position: relative;
  height: 240vh; /* Large scroll tracks on desktop */
}
.collab-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 1025px) {
  .collab-sticky-wrap {
    padding-top: var(--header-height);
  }
}
.collab-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: stretch;
  width: 100%;
}
.collab-left {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.collab-step {
  position: relative;
  z-index: 11;
  pointer-events: auto !important;
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s ease, background-color 0.3s ease, transform 0.2s var(--ease-out);
  opacity: 0.7;
  flex: 1;
  min-height: 0; /* Forces all flex items to have exactly the same height */
}

.collab-step:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  border-color: var(--accent);
}


.collab-step.active {
  opacity: 1;
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.collab-progress-bar {
  position: relative;
  width: 4px;
  align-self: stretch;
  background: var(--border-mid);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.collab-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.1s linear;
}
.collab-step-content {
  flex: 1;
}
.collab-step h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.collab-step p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.collab-right {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}
.collab-canvas {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* Height is driven by the left column via align-items: stretch on the grid */
  height: auto;
  min-height: 460px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  box-sizing: border-box;
}
[data-theme="dark"] .collab-canvas {
  background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 65%),
              rgba(14, 12, 20, 0.92);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), var(--shadow-lg);
}

/* Dot-grid background SVG overlay */
.collab-grid-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.collab-board-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}

/* ── Node cards (enlarged, 2-line) ── */
.collab-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(59,130,246,0.07);
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.6s ease, background-color 0.6s ease;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 190px;
  height: 60px;
  box-sizing: border-box;
}
.collab-node.active {
  transform: scale(1.05) translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.22), 0 0 0 1px rgba(59,130,246,0.35);
  background: rgba(255, 255, 255, 0.98);
}
[data-theme="dark"] .collab-node {
  background: rgba(24, 18, 40, 0.88);
  border-color: rgba(59, 130, 246, 0.18);
}
[data-theme="dark"] .collab-node.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: var(--accent);
  box-shadow: 0 10px 36px rgba(59, 130, 246, 0.32);
}
.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(248, 247, 252, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-mid);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

[data-theme="dark"] .node-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.node-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8px;
}
.node-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.node-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: normal;
  line-height: 1.1;
  word-break: break-word;
}
.node-tag {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.node-pulse {
  display: none !important;
}

/* ── Center Hub ── */
.collab-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
}
.hub-ring-outer {
  width: 96px;
  height: 96px;
  opacity: 0.15;
  animation: hubRingPulse 3.5s ease-in-out infinite;
}
.hub-ring-inner {
  width: 72px;
  height: 72px;
  opacity: 0.28;
  animation: hubRingPulse 3.5s ease-in-out infinite 0.7s;
}
@keyframes hubRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.14); opacity: 0.06; }
}
.hub-core {
  position: relative;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.45), 0 0 48px rgba(59, 130, 246, 0.16);
}
.hub-icon {
  font-size: 1.15rem;
  line-height: 1;
}
.hub-label {
  font-size: 0.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* ── SVG Paths ── */
.collab-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}
/* Junction dots on circuit corners */
.collab-junction {
  fill: var(--accent);
  opacity: 0.2;
  transition: opacity 0.5s ease;
}
.collab-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  opacity: 0.18;
  transition: opacity 0.4s ease;
}
.collab-path.active {
  stroke-dashoffset: 0;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(59,130,246,0.55));
}
.collab-path-head {
  filter: drop-shadow(0 0 5px var(--accent));
  transition: opacity 0.3s ease;
}

/* ── Activity Badges ── */
.collab-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  z-index: 15;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.badge-violet {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.25);
  animation: badgeFloatTop 4s ease-in-out infinite;
}
.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
  animation: badgeFloatRight 4s ease-in-out infinite 1.3s;
}
.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
  animation: badgeFloatBottom 4s ease-in-out infinite 2.6s;
}
[data-theme="dark"] .badge-violet { background: rgba(59, 130, 246, 0.18); }
[data-theme="dark"] .badge-green  { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(52,211,153,0.3); }
[data-theme="dark"] .badge-amber  { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border-color: rgba(251,191,36,0.3); }
/* Each badge floats ±4px from its inline-transform base */
@keyframes badgeFloatTop {
  0%, 100% { transform: translate(-50%,-50%) translateY(-70px); }
  50%       { transform: translate(-50%,-50%) translateY(-76px); }
}
@keyframes badgeFloatRight {
  0%, 100% { transform: translate(-50%,-50%) translateX(90px); }
  50%       { transform: translate(-50%,-50%) translateX(90px) translateY(-5px); }
}
@keyframes badgeFloatBottom {
  0%, 100% { transform: translate(-50%,-50%) translateY(70px); }
  50%       { transform: translate(-50%,-50%) translateY(76px); }
}

/* ── Testimonials Grid ── */
#testimonials {
  border-top: 1px solid var(--border);
  padding: var(--section-py) 0;
}
.testimonials-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  display: flex;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.testimonials-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  outline: none;
}
.testimonials-marquee-wrap.scroll-left .testimonials-marquee-track {
  animation: testimonialScrollLeft 45s linear infinite;
}
.testimonials-marquee-wrap.scroll-right .testimonials-marquee-track {
  animation: testimonialScrollRight 45s linear infinite;
}
.testimonials-marquee-wrap:hover .testimonials-marquee-track {
  animation-play-state: paused;
}
.testimonials-marquee-track .testimonial-card {
  flex-shrink: 0;
  width: 360px;
}
@keyframes testimonialScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes testimonialScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.testimonial-card {
  height: 170px;
  box-sizing: border-box;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-md);
}
.testimonial-card:focus,
.testimonial-card:focus-visible {
  outline: none;
}
[data-theme="dark"] .testimonial-card {
  background: rgba(255, 255, 255, 0.015);
}
.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.testimonial-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
/* Brand colors for initials logos */
.testimonial-card-logo.shopify { color: #96bf48; background: rgba(150, 191, 72, 0.08); border-color: rgba(150, 191, 72, 0.15); }
.testimonial-card-logo.amazon { color: #ff9900; background: rgba(255, 153, 0, 0.08); border-color: rgba(255, 153, 0, 0.15); }
.testimonial-card-logo.woocommerce { color: #96588a; background: rgba(150, 88, 138, 0.08); border-color: rgba(150, 88, 138, 0.15); }
.testimonial-card-logo.ebay { color: #0064d2; background: rgba(0, 100, 210, 0.08); border-color: rgba(0, 100, 210, 0.15); }
.testimonial-card-logo.tiktok { color: #fe2c55; background: rgba(254, 44, 85, 0.08); border-color: rgba(254, 44, 85, 0.15); }
.testimonial-card-logo.mercadolibre { color: #2d3277; background: rgba(255, 230, 0, 0.15); border-color: rgba(255, 230, 0, 0.3); }
.testimonial-card-logo.shopee { color: #ff5722; background: rgba(255, 87, 34, 0.08); border-color: rgba(255, 87, 34, 0.15); }
.testimonial-card-logo.lazada { color: #0f146d; background: rgba(15, 20, 109, 0.08); border-color: rgba(15, 20, 109, 0.15); }
.testimonial-card-logo.shopify-plus { color: #5c6ac4; background: rgba(92, 106, 196, 0.08); border-color: rgba(92, 106, 196, 0.15); }

.testimonial-card-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}
.author-role {
  font-size: 0.75rem;
  color: var(--muted);
}
.testimonial-card .quote-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
  font-style: normal;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive adjustments for new sections */
@media (max-width: 1024px) {
  #collaboration {
    height: auto;
    padding: var(--section-py) 0;
  }
  .collab-sticky-wrap {
    position: static;
    height: auto;
    overflow: visible;
  }
  .collab-board-inner {
    transform: none !important;
  }
  .collab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .collab-left {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .collab-left::-webkit-scrollbar { display: none; }
  .collab-step {
    flex: 1 0 240px;
    padding-bottom: 24px;
  }
  .collab-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    top: auto;
    right: auto;
    align-self: auto;
    border-radius: 0 0 2px 2px;
  }
  .collab-progress-fill {
    width: 0%;
    height: 100%;
    transition: width 0.1s linear;
  }
}

@media (max-width: 768px) {
  .collab-left {
    flex-direction: column;
  }
  .collab-step {
    flex: none;
    padding-bottom: 20px;
  }
  .collab-progress-bar {
    position: relative;
    width: 4px;
    align-self: stretch;
    height: auto;
    border-radius: 2px;
    bottom: auto;
  }
  .collab-progress-fill {
    width: 100%;
    height: 0%;
    transition: height 0.1s linear;
  }
  .testimonials-marquee-track .testimonial-card {
    width: 290px !important;
    height: 190px !important;
    padding: 16px 20px !important;
  }
}

/* ============================================================
   GP Sourcing — Premium Micro-Animations for Features Stack
   ============================================================ */

/* ── Card 1: Product Image Search ── */
.stack-card .crop-overlay-selector {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
/* Trigger crop box entrance when active */
.stack-card.active .crop-overlay-selector {
  animation: cropBoxEntrance 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             cropPulse 3s infinite ease-in-out 0.85s;
}
.stack-card:not(.active) .crop-overlay-selector {
  opacity: 0;
  transform: scale(0.6);
}
/* Laser line active scan and hover speed-up */
.stack-card:not(.active) .crop-laser-line {
  opacity: 0;
  animation: none;
}
.stack-card.active .crop-laser-line {
  animation: laserScan 2.4s infinite linear;
}
.stack-card.active:hover .crop-laser-line {
  animation: laserScan 1.1s infinite linear;
}
/* Tooltip entrance and hover bounce */
.stack-card:not(.active) .crop-tooltip {
  opacity: 0;
  transform: translateX(-50%) scale(0.7);
}
.stack-card.active .crop-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  transition: opacity 0.5s ease 0.6s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
}
/* Status Badge Pulse entrance */
.stack-card:not(.active) .sourcing-status-badge {
  opacity: 0;
  transform: translateY(12px);
}
.stack-card.active .sourcing-status-badge {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.5s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

@keyframes cropBoxEntrance {
  0% { top: 45%; left: 45%; right: 45%; bottom: 45%; opacity: 0; transform: scale(0.7); }
  100% { top: 15%; left: 15%; right: 15%; bottom: 15%; opacity: 1; transform: scale(1); }
}


/* ── Card 2: Extension Panel (Supplier Deck) ── */
/* Base styles and staggered entrance keyframes when active */
.stack-card:not(.active) .supplier-row {
  opacity: 0;
  transform: translateY(60px) scale(0.85);
  pointer-events: none;
}
.stack-card.active .supplier-row {
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.65s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.stack-card.active .supplier-row:nth-child(1) {
  animation: supplierRow1 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}
.stack-card.active .supplier-row:nth-child(2) {
  animation: supplierRow2 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}
.stack-card.active .supplier-row:nth-child(3) {
  animation: supplierRow3 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}
.stack-card.active .supplier-row:nth-child(4) {
  animation: supplierRow4 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards;
}
.stack-card.active .supplier-row:nth-child(5) {
  animation: supplierRow5 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

/* Hover Spread + 3D Tilt Fan */
.stack-card.active:hover .supplier-row {
  animation: none !important; /* stop active entry animation once hovered */
  transition-delay: 0s !important;
}
.stack-card.active:hover .supplier-row:nth-child(1) {
  transform: translateY(-170px) scale(0.92) rotate(-2deg) !important;
  opacity: 0.75 !important;
}
.stack-card.active:hover .supplier-row:nth-child(2) {
  transform: translateY(-100px) scale(0.95) rotate(2deg) !important;
  opacity: 0.85 !important;
}
.stack-card.active:hover .supplier-row:nth-child(3) {
  transform: translateY(-30px) scale(0.98) rotate(-1deg) !important;
  opacity: 0.92 !important;
}
.stack-card.active:hover .supplier-row:nth-child(4) {
  transform: translateY(40px) scale(1.01) rotate(1.5deg) !important;
  opacity: 0.98 !important;
}
.stack-card.active:hover .supplier-row:nth-child(5) {
  transform: translateY(110px) scale(1.04) rotate(-1.5deg) !important;
  opacity: 1 !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25) !important;
  border-color: var(--accent) !important;
}

@keyframes supplierRow1 {
  0% { opacity: 0; transform: translateY(60px) scale(0.85); }
  100% { opacity: 0.4; transform: translateY(-100px) scale(0.84); }
}
@keyframes supplierRow2 {
  0% { opacity: 0; transform: translateY(60px) scale(0.85); }
  100% { opacity: 0.6; transform: translateY(-60px) scale(0.88); }
}
@keyframes supplierRow3 {
  0% { opacity: 0; transform: translateY(60px) scale(0.85); }
  100% { opacity: 0.8; transform: translateY(-20px) scale(0.92); }
}
@keyframes supplierRow4 {
  0% { opacity: 0; transform: translateY(60px) scale(0.85); }
  100% { opacity: 0.95; transform: translateY(20px) scale(0.96); }
}
@keyframes supplierRow5 {
  0% { opacity: 0; transform: translateY(60px) scale(0.85); }
  100% { opacity: 1; transform: translateY(60px) scale(1); }
}

@keyframes bestMatchGlow {
  0%, 100% { border-color: var(--accent); box-shadow: var(--shadow-xl); }
  50% { border-color: var(--accent-2); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25); }
}


/* ── Card 3: Shipping Engine ── */
/* Set up slider dynamic transition on load */
.stack-card.active .weight-slider-mock-fill {
  animation: fillSlider 1.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.stack-card.active .weight-slider-mock-thumb {
  animation: moveThumb 1.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Slide methods list entries in sequentially via keyframes */
.stack-card:not(.active) .shipping-method-row {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
}
.stack-card.active .shipping-method-row {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.stack-card.active .shipping-method-row:nth-child(1) {
  animation: shipMethod1 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}
.stack-card.active .shipping-method-row:nth-child(2) {
  animation: shipMethod2 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

/* Pulse active option glow */
.stack-card.active .shipping-method-row.active {
  animation: activeShipGlow 2.5s infinite ease-in-out 1.3s;
}

/* Hover Interaction: Slider micro-adjust feedback */
.stack-card.active:hover .weight-slider-mock-thumb {
  animation: sliderHoverAdjust 2.2s infinite ease-in-out;
}
.stack-card.active:hover .weight-slider-mock-fill {
  animation: fillHoverAdjust 2.2s infinite ease-in-out;
}

@keyframes fillSlider {
  from { width: 0%; }
  to { width: 60%; }
}
@keyframes moveThumb {
  from { left: 0%; }
  to { left: 60%; }
}
@keyframes shipMethod1 {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shipMethod2 {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 0.65; transform: scale(1) translateY(0); }
}
@keyframes sliderHoverAdjust {
  0%, 100% { transform: translate(-50%, -50%) scale(1); left: 60%; }
  50% { transform: translate(-50%, -50%) scale(1.2); left: 75%; }
}
@keyframes fillHoverAdjust {
  0%, 100% { width: 60%; }
  50% { width: 75%; }
}
@keyframes activeShipGlow {
  0%, 100% { border-color: var(--accent); box-shadow: 0 2px 6px rgba(59, 130, 246, 0.05); }
  50% { border-color: var(--accent-2); box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2); }
}


/* ── Card 4: Sourcing List (Margin Calculator) ── */
/* Draw circular chart dial on active */
.stack-card:not(.active) .circle {
  stroke-dasharray: 0, 100;
}
.stack-card.active .circle {
  animation: dialGrow 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered load for detailed statistics */
.stack-card:not(.active) .percentage {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.stack-card.active .percentage {
  opacity: 1;
  transform: rotate(90deg) scale(1);
  transition: opacity 0.5s ease 0.4s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}
.stack-card:not(.active) .margin-dial-title {
  opacity: 0;
  transform: translateY(8px);
}
.stack-card.active .margin-dial-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.6s, transform 0.5s var(--ease-spring) 0.6s;
}
.stack-card:not(.active) .cost-item {
  opacity: 0;
  transform: translateX(20px);
}
.stack-card.active .cost-item:nth-child(1) {
  animation: costItemEnter 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}
.stack-card.active .cost-item:nth-child(2) {
  animation: costItemEnter 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.35s forwards;
}
.stack-card.active .cost-item:nth-child(3) {
  animation: costItemEnter 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}
.stack-card.active .cost-item:nth-child(4) {
  animation: costItemEnter 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.65s forwards;
}
.stack-card.active .cost-item:nth-child(5) {
  animation: costItemEnter 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.35s forwards;
}
.stack-card.active .cost-item:nth-child(6) {
  animation: costItemEnter 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.65s forwards;
}

.stack-card.active .cost-item.highlight .cost-item-value {
  animation: textSuccessGlow 2.5s infinite ease-in-out 1.2s;
}

/* Hover optimization toggles */
.stack-card.active:hover .circle {
  animation: dialGrowHover 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.stack-card.active:hover .pct-default {
  display: none !important;
}
.stack-card.active:hover .pct-hover {
  display: block !important;
}
.stack-card.active:hover .default-title {
  display: none !important;
}
.stack-card.active:hover .hover-title {
  display: block !important;
  color: var(--cyan) !important;
  background: var(--cyan-soft) !important;
}
.stack-card.active:hover .default-cost {
  display: none !important;
}
.stack-card.active:hover .hover-cost {
  display: flex !important;
}
.stack-card.active:hover .default-profit {
  display: none !important;
}
.stack-card.active:hover .hover-profit {
  display: flex !important;
}

@keyframes dialGrowHover {
  from { stroke-dasharray: 52, 100; }
  to { stroke-dasharray: 65, 100; }
}

@keyframes costItemEnter {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes textSuccessGlow {
  0%, 100% { color: var(--green); text-shadow: none; }
  50% { color: #22c55e; text-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
}


/* Sequential bubble keyframes starting with empty chat box */
.stack-card:not(.active) .user-bubble,
.stack-card:not(.active) .sourcing-catalog-card,
.stack-card:not(.active) .agent-bubble:not(.typing-indicator),
.stack-card:not(.active) .typing-indicator {
  opacity: 0 !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0 !important;
  overflow: hidden !important;
}

.stack-card.active .user-bubble {
  animation: userBubbleEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}
.stack-card.active .sourcing-catalog-card {
  animation: catalogCardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s both;
}
.stack-card.active .typing-indicator {
  display: inline-flex !important;
  animation: typingIndicatorEnter 0.9s ease 1.5s both;
}
.stack-card.active .agent-bubble:not(.typing-indicator) {
  animation: agentBubbleEnter 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 2.4s both;
}

@keyframes userBubbleEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
  1% {
    max-height: 120px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    overflow: hidden;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    overflow: visible;
  }
}

@keyframes catalogCardEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
  }
  1% {
    max-height: 120px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-width: 1px;
    overflow: hidden;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    overflow: visible;
  }
}

@keyframes typingIndicatorEnter {
  0% {
    opacity: 0;
    transform: translateY(15px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
  15% {
    opacity: 1;
    transform: translateY(0);
    max-height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    overflow: hidden;
  }
  85% {
    opacity: 1;
    transform: translateY(0);
    max-height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    overflow: hidden;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
}

@keyframes agentBubbleEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
  1% {
    max-height: 180px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    overflow: hidden;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 250px;
    overflow: visible;
  }
}

/* Typing Dot animation */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
[data-theme="dark"] .typing-indicator {
  background: #202c33;
}
.typing-indicator .dot {
  width: 6px;
  height: 6px;
  background: var(--text-2);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingDot 1.4s infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

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


/* WhatsApp Blue Checkmarks */
.wa-checkmarks {
  color: #53bdeb;
  font-weight: bold;
  margin-left: 2px;
  display: inline-block;
  vertical-align: bottom;
}


/* ════════════════════════════════════════
   PREMIUM INTERACTIVE FEATURES
   ════════════════════════════════════════ */

/* 1. Live Sourcing Ticker */
.sourcing-ticker-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  margin: 32px 0;
  border-top: 1px solid rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid rgba(59, 130, 246, 0.05);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  z-index: 5;
}
[data-theme="light"] .sourcing-ticker-container {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}
.sourcing-ticker-track {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 48s linear infinite;
  will-change: transform;
}
.sourcing-ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s;
}
[data-theme="light"] .ticker-item {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.ticker-item:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] .ticker-item:hover {
  background: rgba(255, 255, 255, 0.9);
}
.ticker-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
[data-theme="light"] .ticker-badge {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}
.ticker-saving {
  color: #10b981;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}
.ticker-status {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 2. Sourcing Price & Volume Curve Chart */
.cost-chart-container {
  margin-top: 56px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
}
.cost-chart-container .chart-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-display);
}
.cost-chart-container .chart-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.5;
}
.line-chart-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  border-bottom: 1px solid var(--border-strong);
}
.line-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-guide-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.15s ease, left 0.15s ease;
}
.chart-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.chart-marker.active {
  transform: translate(-50%, -50%) scale(1.6);
  background: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.chart-tooltip {
  position: absolute;
  width: 170px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  transition: opacity 0.15s ease, left 0.15s ease, top 0.15s ease;
  font-size: 0.725rem;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}
.tooltip-vol {
  font-weight: 800;
  font-size: 0.775rem;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  color: var(--text);
}
.tooltip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tooltip-row span {
  color: var(--muted);
}
.tooltip-row strong {
  color: var(--text);
}
.tooltip-row .old-price {
  text-decoration: line-through;
  opacity: 0.6;
}
.tooltip-row .new-price {
  color: var(--accent);
}
.tooltip-row.saving-row {
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
}
.savings-badge {
  background: var(--green-soft);
  color: var(--green);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}
.chart-axis-x {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 8.33%;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.savings-calculator-card {
  padding: 40px;
  background: rgba(15, 15, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .savings-calculator-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.calculator-title {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr;
  gap: 40px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.sliders-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slider-group {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color 0.3s, background-color 0.3s;
}

[data-theme="light"] .slider-group {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.03);
}

.slider-group:hover {
  border-color: rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.005);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slider-label {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.slider-value-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 4px 12px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .slider-value-badge {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.06);
}

.calculator-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  outline: none;
  transition: background 0.3s;
}

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

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(59, 130, 246, 0);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s;
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3), 0 0 0 4px rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
}

.savings-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.savings-stat-card {
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .savings-stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01);
}

.savings-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.04);
}

.stat-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.stat-sub {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.savings-stat-label {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.01em;
}

.savings-stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@keyframes cardUpdatePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.04);
  }
  30% {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.04);
  }
}

.savings-stat-card.highlight {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #4f46e5 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(59, 130, 246, 0.1) !important;
}

.savings-stat-card.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.savings-stat-card.highlight.pulse-updated {
  animation: cardUpdatePulse 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.savings-stat-card.highlight .savings-stat-label {
  color: #ffffff !important;
}

.savings-stat-card.highlight .savings-stat-number {
  color: #ffffff !important;
  font-size: 1.6rem;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-sub-highlight {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}ground: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.calculator-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-full);
  outline: none;
  transition: background 0.3s;
}

[data-theme="light"] .calculator-slider {
  background: rgba(0, 0, 0, 0.04);
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s;
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.savings-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.savings-stat-card {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .savings-stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.savings-stat-card:hover {
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.04);
}

.stat-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.stat-sub {
  font-size: 0.65rem;
  color: var(--muted);
}

.savings-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.savings-stat-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@keyframes cardUpdatePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.05);
  }
  30% {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2), 0 0 15px rgba(59, 130, 246, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.05);
  }
}

.savings-stat-card.highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.savings-stat-card.highlight:hover {
  transform: translateX(4px) translateY(-1px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.savings-stat-card.highlight.pulse-updated {
  animation: cardUpdatePulse 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.savings-stat-card.highlight .savings-stat-label {
  color: #ffffff !important;
}

.stat-sub-highlight {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
}

.savings-stat-number.highlight {
  color: #ffffff !important;
  font-size: 1.45rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 4. Radial Gauges */
.radial-gauges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .radial-gauges-grid {
    grid-template-columns: 1fr;
  }
}
.gauge-item {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gauge-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gauge-circle-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}
.gauge-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.gauge-bg-circle {
  fill: none;
  stroke: var(--bg-soft);
  stroke-width: 8px;
}
.gauge-fill-circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
}
.gauge-fill-circle.secondary {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.45));
}
.gauge-fill-circle.accent {
  stroke: var(--green);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}
.gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  white-space: nowrap;
}
.gauge-item h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-2);
}
.gauge-item p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* 5. High-Tech SVG Flowcharts */
.flow-chart-card {
  margin-top: 48px;
  padding: 32px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.flow-chart-card .flow-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  font-family: var(--font-display);
  text-align: center;
}
.flow-diagram-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0;
}
.flow-diagram-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
}
.flow-diagram-svg foreignObject {
  overflow: visible;
}
.flow-html-card {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.flow-html-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}
.flow-card-icon {
  font-size: 26px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1;
  flex-shrink: 0;
}
.flow-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.flow-card-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
}
.flow-card-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
}

/* Mobile vertical stacked flow pipeline style */
.flow-mobile-container {
  display: none;
}
@media (max-width: 768px) {
  .flow-diagram-container {
    display: none;
  }
  .flow-mobile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 16px auto 0;
  }
  .flow-mobile-card {
    width: 100%;
    height: 76px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .flow-mobile-card:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12);
  }
  .flow-mobile-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 100%;
    position: relative;
  }
  .flow-mobile-line {
    width: 2px;
    height: 100%;
    background: var(--border-strong);
  }
  .flow-mobile-connector.hub-connector {
    height: 54px;
  }
  .flow-mobile-hub-badge {
    background: var(--accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 2px solid var(--surface);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    font-family: var(--font-sans);
  }
}
.flow-hub-circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2.5;
}
.flow-hub-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.6;
  animation: hubPulse 2.8s infinite;
}
.flow-line-back {
  stroke: var(--border-strong);
  stroke-width: 2;
  fill: none;
}
.flow-dash-animation {
  stroke-dasharray: 6 5;
  animation: flowDashAnimation 1.5s linear infinite;
  stroke-width: 2;
  fill: none;
}
.flow-path-left-top {
  stroke: url(#flowGradLeftTop);
}
.flow-path-left-bottom {
  stroke: url(#flowGradLeftBottom);
}
.flow-path-right-top {
  stroke: url(#flowGradRightTop);
}
.flow-path-right-bottom {
  stroke: url(#flowGradRightBottom);
}
@keyframes flowDashAnimation {
  to { stroke-dashoffset: -22; }
}
@keyframes hubPulse {
  0% { r: 22; opacity: 0.7; }
  100% { r: 32; opacity: 0; }
}





/* ============================================================
   Help Center — Miro-inspired Design
   ============================================================ */

.help-center-section {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}

/* ── Search Header ── */
.help-header {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.help-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.help-search-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

.help-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: 48px;
  padding: 12px 20px 12px 48px;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.help-search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.help-search-box:focus-within .search-icon {
  color: var(--accent);
}

.help-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  font-family: var(--font-sans);
}

.help-search-box input::placeholder {
  color: var(--muted);
}

#help-search-clear {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

#help-search-clear:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ── Category Grid ── */
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

.help-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.help-card:focus,
.help-card:focus-visible {
  outline: none;
}

.help-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  background: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.06), transparent 60%);
  transition: opacity 0.3s ease;
}

.help-card:hover::before {
  opacity: 1;
}

.help-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.help-card.active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

[data-theme="dark"] .help-card.active {
  background: rgba(59, 130, 246, 0.08);
}

.help-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.help-card-icon svg {
  width: 52px;
  height: 52px;
}

.help-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.help-card-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── SVG Micro-animations on hover ── */

/* Card 1: waving hand wave */
@keyframes handWave {
  0%, 100% { transform: rotate(0deg); }
  20%       { transform: rotate(12deg); }
  40%       { transform: rotate(-8deg); }
  60%       { transform: rotate(10deg); }
  80%       { transform: rotate(-4deg); }
}
.help-card:hover .waving-hand {
  animation: handWave 0.8s ease-in-out;
}

/* Card 2: magnifier float */
@keyframes magnifierFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-5px) scale(1.08); }
}
.help-card:hover .laptop-magnifier {
  animation: magnifierFloat 0.9s ease-in-out infinite;
}

/* Card 3: coin pulse/bounce */
@keyframes coinBounce {
  0%   { transform: scale(1) translateY(0); }
  35%  { transform: scale(1.15) translateY(-4px); }
  60%  { transform: scale(0.95) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}
.help-card:hover .invoice-coin {
  animation: coinBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card 4: team front avatar slide */
@keyframes teamSlide {
  0%, 100% { transform: translateX(0) scale(1); }
  50%       { transform: translateX(4px) scale(1.05); }
}
.help-card:hover .team-avatar-front {
  animation: teamSlide 0.7s ease-in-out;
}

/* Card 5: integration arrows spin */
@keyframes arrowSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.help-card:hover .integration-arrow {
  animation: arrowSpin 1.2s linear;
}

/* Card 6: shield wobble/scale */
@keyframes shieldWobble {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.06) rotate(-3deg); }
  50%  { transform: scale(1.06) rotate(3deg); }
  75%  { transform: scale(1.03) rotate(-1.5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.help-card:hover .enterprise-shield {
  animation: shieldWobble 0.65s ease-in-out;
}

/* ── Articles / Accordion Section ── */
.help-articles-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.help-no-results-view {
  font-size: 0.9375rem;
}

/* Re-use existing .faq-list, .faq-item, .faq-q, .faq-body styles from faq.js */
/* Override heading styling to be inside help */
.help-articles-section .faq-item {
  border-bottom: 1px solid var(--border);
}

.help-articles-section .faq-item:first-child {
  border-top: none;
}

.help-articles-section .faq-q {
  padding: 18px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: color 0.2s;
}

.help-articles-section .faq-q:hover {
  color: var(--accent);
}

.help-articles-section .faq-q .category-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--muted);
  flex-shrink: 0;
  margin-left: auto;
}

.help-articles-section .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
}

.help-articles-section .faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.help-articles-section .faq-item.open .faq-icon svg path {
  stroke: #fff;
}

.help-articles-section .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-articles-section .faq-body.expanded {
  max-height: 400px;
}

.help-articles-section .faq-body-inner {
  padding-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ════════════════════════════════════════
   SOURCING COLLABORATION CANVAS STYLES
   ════════════════════════════════════════ */
#collaboration {
  border-top: 1px solid var(--border);
  padding: 0;
  position: relative;
  height: 240vh; /* Large scroll tracks on desktop */
}
.collab-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 1025px) {
  .collab-sticky-wrap {
    padding-top: var(--header-height);
  }
}
.collab-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
  width: 100%;
}
.collab-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.collab-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), opacity 0.4s ease, background-color 0.4s ease;
  opacity: 0.4;
  position: relative;
}
.collab-step.active {
  opacity: 1;
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.collab-progress-bar {
  position: relative;
  width: 4px;
  align-self: stretch;
  background: var(--border-mid);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.collab-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.1s linear;
}
.collab-step-content {
  flex: 1;
}
.collab-step h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.collab-step p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.collab-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.collab-canvas {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 380px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  box-sizing: border-box;
}
[data-theme="dark"] .collab-canvas {
  background: radial-gradient(circle at top, rgba(124, 93, 250, 0.05) 0%, transparent 60%),
              rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.collab-board-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}
.collab-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.6s ease, background-color 0.6s ease;
  user-select: none;
}
.collab-node.active {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(124, 93, 250, 0.22);
  background: var(--accent-soft);
}
[data-theme="dark"] .collab-node {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .collab-node.active {
  background: rgba(124, 93, 250, 0.1);
  border-color: var(--accent);
}
/* Styling handled by main .node-icon styles above */
.node-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.node-pulse {
  position: absolute;
  top: -4px; right: -4px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.node-pulse::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  border-radius: 50%;
  animation: pulsePin 2s infinite ease-out;
}
@keyframes pulsePin {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.collab-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}
.collab-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 0.8s var(--ease-out);
  opacity: 0.25;
}
.collab-path.active {
  stroke-dashoffset: 0;
  opacity: 1;
  stroke: var(--accent);
  filter: drop-shadow(0 0 3px var(--accent));
}
.collab-path-head {
  filter: drop-shadow(0 0 4px var(--accent));
  transition: opacity 0.3s ease;
}

.collab-cursor {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8) translate(10px, 10px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.collab-cursor.active {
  opacity: 1;
  transform: scale(1) translate(0, 0);
}
.collab-cursor svg {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  #collaboration {
    height: auto;
    padding: var(--section-py) 0;
  }
  .collab-sticky-wrap {
    position: static;
    height: auto;
    overflow: visible;
  }
  .collab-board-inner {
    transform: none !important;
  }
  .collab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .collab-left {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .collab-left::-webkit-scrollbar { display: none; }
  .collab-step {
    flex: 1 0 240px;
    padding-bottom: 24px;
  }
  .collab-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    top: auto;
    right: auto;
    align-self: auto;
    border-radius: 0 0 2px 2px;
  }
  .collab-progress-fill {
    width: 0%;
    height: 100%;
    transition: width 0.1s linear;
  }
}

@media (max-width: 768px) {
  .collab-left {
    flex-direction: column;
  }
  .collab-step {
    flex: none;
    padding-bottom: 20px;
  }
  .collab-progress-bar {
    position: relative;
    width: 4px;
    align-self: stretch;
    height: auto;
    border-radius: 2px;
    bottom: auto;
  }
  .collab-progress-fill {
    width: 100%;
    height: 0%;
    transition: height 0.1s linear;
  }
}

/* ════════════════════════════════════════════════════════════
   SIMULATOR OVERRIDES  v1.0.63
   Full-width · Animated · Responsive
   ════════════════════════════════════════════════════════════ */

/* Hide panels we don't need */
.mock-web-page    { display: none !important; }
.raycast-sidebar  { display: none !important; }

/* ── Window shell: full width, height driven by children ── */
.raycast-window {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  position: relative !important;
  transform: none !important;
}

/* ── Body wrappers: block so they don't impose height ── */
.raycast-window-body,
.raycast-split-body {
  display: block !important;
  height: auto !important;
  flex: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/*
 * ── Preview pane: THE key sizing anchor ──────────────────
 *  We use aspect-ratio on desktop to display the full widescreen mockup
 */
.raycast-preview {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  height: auto !important;
  aspect-ratio: 1586 / 992 !important;
  width: 100% !important;
  background: transparent !important;
  overflow: hidden !important;
  flex: none !important;
}

/* ── Sim views: keep original display:none / display:block ──
   Just ensure they fill the preview container */
.ray-sim-view {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  display: none;
}
.ray-sim-view.active {
  display: block !important;
}

/* ── Browser frame: full width on desktop ── */
.mock-browser-frame {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important; /* Stretch to fill container on desktop */
  height: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  background: rgba(18, 18, 22, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .mock-browser-frame {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 20px 25px -5px rgba(0, 0, 0, 0.05) !important;
}

/* ── Mock browser bar: hidden to avoid overlaps with baked-in headers ── */
.mock-browser-bar {
  display: none !important;
}

/* ── Body fills remaining height after browser bar ── */
.mock-browser-body {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Viewport: the clip box ── */
.extension-scroll-viewport {
  display: block !important;
  width: 100% !important;
  min-width: unset !important;
  height: 100% !important;
  border-left: none !important;
  background: transparent !important;
  overflow: hidden !important;
  position: relative !important;
}

/* ── Screenshot image: fits width and height statically on desktop ── */
.extension-scroll-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  will-change: unset !important;
  transform: none !important;
  animation: none !important;
}

/* ── Global keyframe animation leveraging CSS variables ── */
@keyframes autoscrollExtension {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(0); }
  88%  { transform: translateY(calc(-100% + var(--sim-viewport-height))); }
  100% { transform: translateY(calc(-100% + var(--sim-viewport-height))); }
}

/* ── Active label styling ── */
.ray-active-label {
  display: block !important;
  position: absolute !important;
  bottom: 74px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  opacity: 1 !important;
  background: rgba(30, 30, 35, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  pointer-events: none !important;
  z-index: 100 !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="light"] .ray-active-label {
  background: rgba(252, 252, 253, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1e1e20 !important;
}

/* ── Captions below the window ── */
.ray-captions {
  margin-top: 36px !important;
}

/* ── Gallery section background ── */
#gallery {
  background: transparent !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* ── Title bar glass ── */
.raycast-search-header {
  background: rgba(18, 18, 22, 0.85) !important;
  border-radius: 12px 12px 0 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  flex-shrink: 0 !important;
}
[data-theme="light"] .raycast-search-header {
  background: rgba(252, 252, 253, 0.92) !important;
  border-bottom: 1px solid rgba(0,0,0,0.07) !important;
}

/* ── Footer bar glass ── */
.raycast-footer {
  background: rgba(18, 18, 22, 0.85) !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  flex-shrink: 0 !important;
}
[data-theme="light"] .raycast-footer {
  background: rgba(252, 252, 253, 0.92) !important;
  border-top: 1px solid rgba(0,0,0,0.07) !important;
}

.ray-dock { flex-shrink: 0 !important; }

/* ════════════════════════════════════════════════════════════
   MOBILE — tablet  ≤ 768px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .raycast-preview {
    height: 480px !important;
    aspect-ratio: auto !important;
    --sim-viewport-height: 480px; /* Full height since mock-browser-bar is hidden */
  }

  .raycast-search-header {
    border-radius: 8px 8px 0 0 !important;
  }

  /* Constraint mock browser on tablet to 380px centered crop view */
  .mock-browser-frame {
    max-width: 380px !important;
  }

  /* Enable scrolling animation for tablet vertical cropped view */
  .extension-scroll-img {
    height: auto !important;
    object-fit: unset !important;
    will-change: transform !important;
    transform: translateY(0) !important;
  }
  .ray-sim-view.active .extension-scroll-img {
    animation: autoscrollExtension 16s ease-in-out infinite alternate !important;
  }

  .ray-dock { gap: 8px !important; }
  .ray-captions { margin-top: 24px !important; }
  .caption-title { font-size: 1.1rem !important; }
  .caption-desc  { font-size: 0.875rem !important; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE — phone  ≤ 480px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .raycast-preview {
    height: 400px !important;
    aspect-ratio: auto !important;
    --sim-viewport-height: 400px; /* Full height since mock-browser-bar is hidden */
  }

  .mock-browser-frame {
    max-width: 100% !important;
  }

  .raycast-search-header {
    padding: 8px 12px !important;
    border-radius: 8px 8px 0 0 !important;
  }

  .raycast-footer {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
  }

  .raycast-key-pill {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
  }

  .ray-dock {
    gap: 6px !important;
    padding: 6px 12px !important;
  }

  .ray-dock-item {
    width: 36px !important;
    height: 36px !important;
  }

  .ray-captions {
    margin-top: 20px !important;
    padding: 0 16px !important;
  }

  .caption-title { font-size: 1rem !important; }
  .caption-desc  { font-size: 0.8rem !important; }
}

/* ── Raycast Search Bar Overlay Fixes ── */
.raycast-search-input-wrap {
  position: relative !important;
}
.raycast-search-input-wrap .search-icon {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  pointer-events: none !important;
}
#raycast-search-input {
  padding-left: 24px !important;
}

/* ── Chinese Typography Optimizations (Applied when HTML lang starts with zh) ── */
html[lang^="zh"] body,
html[lang^="zh"] button,
html[lang^="zh"] input,
html[lang^="zh"] textarea,
html[lang^="zh"] select {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", "STXihei", "Heiti SC", "STHeiti Light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] h4,
html[lang^="zh"] h5,
html[lang^="zh"] h6,
html[lang^="zh"] .hero-title,
html[lang^="zh"] .text-hero,
html[lang^="zh"] .text-h1,
html[lang^="zh"] .text-h2,
html[lang^="zh"] .text-h3,
html[lang^="zh"] .caption-title,
html[lang^="zh"] .footer-col-title,
html[lang^="zh"] .nav-link,
html[lang^="zh"] .faq-question {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", "STXihei", "Heiti SC", "STHeiti Light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important; /* Slightly lighter bold weight for clean Chinese display */
  letter-spacing: normal !important; /* Chinese characters do not need negative letter spacing */
}

/* Glassmorphic Icons for Dock and Sidebar */
.dock-icon, .sidebar-row-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .dock-icon,
[data-theme="light"] .sidebar-row-icon {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

.dock-icon svg, .sidebar-row-icon svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2px !important;
}

/* Hover and active states */
.ray-dock-item:hover .dock-icon,
.sidebar-row:hover .sidebar-row-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .ray-dock-item:hover .dock-icon,
[data-theme="light"] .sidebar-row:hover .sidebar-row-icon {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: var(--accent-2) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.ray-dock-item.active .dock-icon,
.sidebar-row.active .sidebar-row-icon {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #3b82f6 !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="light"] .ray-dock-item.active .dock-icon,
[data-theme="light"] .sidebar-row.active .sidebar-row-icon {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
  color: var(--accent-2) !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Responsiveness overrides for glassmorphic icons */
@media (max-width: 768px) {
  .dock-icon, .sidebar-row-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 5px !important;
  }
  .dock-icon svg, .sidebar-row-icon svg {
    width: 12px !important;
    height: 12px !important;
  }
}

@media (max-width: 480px) {
  .dock-icon, .sidebar-row-icon {
    width: 22px !important;
    height: 22px !important;
  }
}

/* Live Simulated Browser Webpage & Extension Layout overrides for Desktop */
@media (min-width: 769px) {
  .mock-web-page {
    display: flex !important;
    background: rgba(18, 18, 22, 0.4) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  
  [data-theme="light"] .mock-web-page {
    background: rgba(255, 255, 255, 0.5) !important;
    border-right-color: rgba(0, 0, 0, 0.06) !important;
  }

  .extension-scroll-viewport {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(20, 20, 25, 0.98) !important;
    display: block !important;
  }
  
  [data-theme="light"] .extension-scroll-viewport {
    border-left-color: rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
  }

  .extension-scroll-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: translateY(0) !important;
    animation: none !important;
  }

  .ray-sim-view.active .extension-scroll-img {
    animation: autoscrollExtensionDesktop 18s ease-in-out infinite alternate !important;
  }
}

@keyframes autoscrollExtensionDesktop {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(0); }
  85%  { transform: translateY(calc(-100% + var(--sim-viewport-height, 520px))); }
  100% { transform: translateY(calc(-100% + var(--sim-viewport-height, 520px))); }
}

/* Custom styles for live mock page components */
.mock-product-img-container {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.mock-find-source-btn-glowing {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  animation: btnGlowPulse 2s infinite alternate;
  white-space: nowrap;
  pointer-events: auto;
}

[data-theme="light"] .mock-find-source-btn-glowing {
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

@keyframes btnGlowPulse {
  0% { box-shadow: 0 0 6px rgba(59, 130, 246, 0.4); transform: translateX(-50%) scale(1); }
  100% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.8); transform: translateX(-50%) scale(1.05); }
}

.mock-web-page .whatsapp-mock {
  height: 100% !important;
  margin: 0 !important;
}

/* Set variable sizing on desktop window */
.raycast-preview {
  --sim-viewport-height: 520px;
}
@media (max-width: 1200px) {
  .raycast-preview {
    --sim-viewport-height: 440px;
  }
}
@media (max-width: 992px) {
  .raycast-preview {
    --sim-viewport-height: 360px;
  }
}




/* ══════════════════════════════════════════════════════════════
   DEMO SHOWCASE — Premium Tabbed Screenshot Section
   ══════════════════════════════════════════════════════════════ */

.demo-showcase-wrap {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
}

/* ── Eyebrow pill ── */
.demo-section-eyebrow {
  text-align: center;
  margin-bottom: 20px;
}
.demo-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 180, 255, 0.25);
  background: rgba(0, 180, 255, 0.07);
  color: var(--brand-primary, #00b4ff);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-eyebrow-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: demo-dot-pulse 2s ease-in-out infinite;
}
@keyframes demo-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Tab bar ── */
.demo-tab-bar {
  max-width: 960px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.demo-tab-track {
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
}
.demo-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
  min-width: 0;
}
.demo-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}
.demo-tab.active {
  background: rgba(0, 180, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.25) inset;
}
.demo-tab-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s;
  font-variant-numeric: tabular-nums;
}
.demo-tab.active .demo-tab-num {
  color: var(--brand-primary, #00b4ff);
}
.demo-tab-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.demo-tab.active .demo-tab-label {
  color: #fff;
}

/* Progress rail */
.demo-tab-progress-rail {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.demo-tab-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #00b4ff, #8b5cf6);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}

/* ── Screenshot frame ── */
.demo-frame-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.demo-browser-chrome {
  display: flex;
  align-items: center;
  gap: 0;
  height: 38px;
  background: rgba(28, 28, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 0 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.demo-chrome-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.demo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.demo-dot.red    { background: #ff5f57; }
.demo-dot.yellow { background: #febc2e; }
.demo-dot.green  { background: #28c840; }

.demo-chrome-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 10px;
  margin: 0 14px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.35);
}
.demo-chrome-bar svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}
.demo-chrome-url {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
  transition: color 0.3s;
}
.demo-chrome-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Panel area ── */
.demo-panels {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: #0a0a0f;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: stretch;
}
.demo-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: stretch;
}
.demo-panel.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.demo-panel-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 11px 11px;
  object-fit: cover;
}

/* Light mode overrides */
:root:not([data-theme="dark"]) .demo-browser-chrome {
  background: rgba(240, 240, 245, 0.97);
  border-color: rgba(0, 0, 0, 0.12);
}
:root:not([data-theme="dark"]) .demo-chrome-bar {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}
:root:not([data-theme="dark"]) .demo-chrome-url {
  color: rgba(0, 0, 0, 0.5);
}
:root:not([data-theme="dark"]) .demo-chrome-actions {
  color: rgba(0, 0, 0, 0.3);
}
:root:not([data-theme="dark"]) .demo-panels {
  background: #f5f5f8;
  border-color: rgba(0, 0, 0, 0.1);
}
:root:not([data-theme="dark"]) .demo-tab-track {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
:root:not([data-theme="dark"]) .demo-tab.active {
  background: rgba(0, 130, 200, 0.1);
}
:root:not([data-theme="dark"]) .demo-tab-label {
  color: rgba(0, 0, 0, 0.5);
}
:root:not([data-theme="dark"]) .demo-tab.active .demo-tab-label {
  color: #000;
}
:root:not([data-theme="dark"]) .demo-tab-num {
  color: rgba(0, 0, 0, 0.25);
}
:root:not([data-theme="dark"]) .demo-eyebrow-pill {
  border-color: rgba(0, 130, 200, 0.25);
  background: rgba(0, 130, 200, 0.07);
}

/* ── Caption area ── */
.demo-captions {
  max-width: 700px;
  margin: 32px auto 0;
  padding: 0 24px;
  text-align: center;
  min-height: 90px;
  position: relative;
}
.demo-caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-caption.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.demo-caption-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 10px;
  line-height: 1.3;
}
.demo-caption-desc {
  font-size: 14.5px;
  color: var(--text-secondary, rgba(255,255,255,0.55));
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .demo-showcase-wrap {
    padding: 60px 0 70px;
  }
  .demo-tab-label {
    font-size: 11px;
  }
  .demo-tab {
    padding: 10px 6px;
  }
  .demo-tab-num {
    display: none;
  }
  .demo-panels {
    min-height: 240px;
  }
  .demo-caption-title {
    font-size: 17px;
  }
  .demo-chrome-bar {
    margin: 0 8px;
  }
  .demo-chrome-actions {
    display: none;
  }
}

/* =============================================================================
   DEMO SECTION — Pure CSS/HTML UI Mockups
   Replaces rasterized screenshots — infinitely sharp at any display resolution
   ============================================================================= */

/* ── Mockup Layout Container ── */
.demo-mockup-layout {
  display: flex;
  width: 100%;
  min-height: 500px;
  align-items: stretch;
}

/* ── Left: CSS Product Page Simulation ── */
.demo-page-sim {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f7f7fa;
  overflow: hidden;
}
[data-theme="dark"] .demo-page-sim { background: #0d0d14; }
.demo-page-sim--dimmed { filter: brightness(0.6); }

/* Nav bar skeleton */
.demo-page-sim-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
[data-theme="dark"] .demo-page-sim-nav {
  background: rgba(16,16,22,0.97);
  border-bottom-color: rgba(255,255,255,0.05);
}
.demo-sim-logo {
  width: 88px;
  height: 13px;
  border-radius: 3px;
  background: rgba(0,0,0,0.16);
}
[data-theme="dark"] .demo-sim-logo { background: rgba(255,255,255,0.16); }
.demo-sim-navlinks { display: flex; gap: 14px; margin: 0 auto; }
.demo-sim-navlinks span {
  display: block;
  width: 38px;
  height: 8px;
  border-radius: 3px;
  background: rgba(0,0,0,0.09);
}
[data-theme="dark"] .demo-sim-navlinks span { background: rgba(255,255,255,0.09); }
.demo-sim-navactions { display: flex; gap: 8px; align-items: center; }
.demo-sim-navactions span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.07);
}
[data-theme="dark"] .demo-sim-navactions span { background: rgba(255,255,255,0.07); }

/* Page body */
.demo-page-sim-body {
  flex: 1;
  display: flex;
  gap: 18px;
  padding: 18px 18px 14px;
  overflow: hidden;
  position: relative;
}

/* Product image */
.demo-sim-product-img-wrap { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.demo-sim-product-photo {
  width: 190px;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.demo-sim-product-thumbs { display: flex; gap: 5px; }
.demo-sim-product-thumbs div {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: rgba(0,0,0,0.09);
}
[data-theme="dark"] .demo-sim-product-thumbs div { background: rgba(255,255,255,0.07); }

/* Product info skeleton */
.demo-sim-product-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.demo-sim-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(59,130,246,0.11);
  color: #3b82f6;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 100px;
  font-family: var(--font-sans);
  width: fit-content;
}
.demo-sim-skel {
  height: 10px;
  border-radius: 3px;
  background: rgba(0,0,0,0.1);
  width: 100%;
}
[data-theme="dark"] .demo-sim-skel { background: rgba(255,255,255,0.09); }
.demo-sim-skel--title-lg { height: 15px; width: 88%; }
.demo-sim-skel--title-md { width: 68%; }
.demo-sim-skel--60 { width: 60%; }
.demo-sim-skel--75 { width: 75%; }
.demo-sim-skel--80 { width: 80%; }
.demo-sim-price-row { display: flex; align-items: baseline; gap: 8px; }
.demo-sim-price { font-size: 19px; font-weight: 700; color: #09090b; font-family: var(--font-sans); }
[data-theme="dark"] .demo-sim-price { color: #fafafa; }
.demo-sim-price-orig { font-size: 12px; color: rgba(0,0,0,0.32); text-decoration: line-through; font-family: var(--font-sans); }
[data-theme="dark"] .demo-sim-price-orig { color: rgba(255,255,255,0.28); }
.demo-sim-stars { font-size: 11.5px; color: #f59e0b; font-family: var(--font-sans); display: flex; align-items: center; gap: 6px; }
.demo-sim-stars span { color: rgba(0,0,0,0.38); font-size: 10px; }
[data-theme="dark"] .demo-sim-stars span { color: rgba(255,255,255,0.32); }
.demo-sim-btn {
  display: flex; align-items: center; justify-content: center;
  width: 114px; height: 32px;
  background: #09090b; color: #fff;
  font-size: 10.5px; font-weight: 600;
  border-radius: 6px; font-family: var(--font-sans); margin-top: 2px;
}
[data-theme="dark"] .demo-sim-btn { background: rgba(255,255,255,0.9); color: #09090b; }
.demo-sim-sep { height: 1px; background: rgba(0,0,0,0.06); margin: 2px 0; }
[data-theme="dark"] .demo-sim-sep { background: rgba(255,255,255,0.06); }

/* Screenshot mode overlay */
.demo-page-sim-body--ss { position: relative; }
.demo-screenshot-sel-box {
  position: absolute;
  top: 16px; left: 8px;
  width: 170px; height: 195px;
  border: 2px solid #3b82f6;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
  animation: ssPulse 2.4s ease-in-out infinite;
}
.demo-screenshot-sel-box::before, .demo-screenshot-sel-box::after {
  content: ''; position: absolute;
  width: 8px; height: 8px;
  background: #3b82f6; border-radius: 50%;
}
.demo-screenshot-sel-box::before { top: -4px; left: -4px; }
.demo-screenshot-sel-box::after  { bottom: -4px; right: -4px; }
@keyframes ssPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(59,130,246,0.08); }
}

/* WhatsApp page background */
.demo-page-sim--wa { flex-direction: row !important; background: #f0f2f5 !important; }
[data-theme="dark"] .demo-page-sim--wa { background: #111b21 !important; }
.demo-wa-sidebar {
  width: 130px; flex-shrink: 0;
  background: white;
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0; overflow: hidden;
}
[data-theme="dark"] .demo-wa-sidebar { background: #202c33; border-right-color: rgba(255,255,255,0.05); }
.demo-wa-search { height: 26px; background: rgba(0,0,0,0.06); border-radius: 6px; margin: 0 8px 6px; }
[data-theme="dark"] .demo-wa-search { background: rgba(255,255,255,0.06); }
.demo-wa-chat-item { display: flex; align-items: center; gap: 7px; padding: 7px 10px; }
.demo-wa-chat-item--active { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .demo-wa-chat-item--active { background: rgba(255,255,255,0.05); }
.demo-wa-avatar { width: 26px; height: 26px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; }
.demo-wa-chat-meta { flex: 1; min-width: 0; }
.demo-wa-chat-name { font-size: 9px; font-weight: 600; color: #09090b; font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .demo-wa-chat-name { color: #e9edef; }
.demo-wa-chat-preview { font-size: 8px; color: rgba(0,0,0,0.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-sans); margin-top: 1px; }
[data-theme="dark"] .demo-wa-chat-preview { color: rgba(255,255,255,0.38); }
.demo-wa-unread { width: 13px; height: 13px; background: #25d366; border-radius: 50%; font-size: 7.5px; font-weight: 700; color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); flex-shrink: 0; }
.demo-wa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #efeae2; }
[data-theme="dark"] .demo-wa-main { background: #0b141a; }
.demo-wa-main-hdr { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border-bottom: 1px solid rgba(0,0,0,0.05); }
[data-theme="dark"] .demo-wa-main-hdr { background: #202c33; border-bottom-color: rgba(255,255,255,0.04); }
.demo-wa-status { font-size: 8.5px; color: #25d366; font-family: var(--font-sans); }
.demo-wa-messages { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.demo-wa-bubble { max-width: 85%; }
.demo-wa-bubble--out { align-self: flex-end; background: #d9fdd3; border-radius: 10px 10px 2px 10px; padding: 7px 10px 4px; }
[data-theme="dark"] .demo-wa-bubble--out { background: #025144; }
.demo-wa-bubble-text { font-size: 10px; color: #111; line-height: 1.45; font-family: var(--font-sans); }
[data-theme="dark"] .demo-wa-bubble-text { color: #e9edef; }
.demo-wa-bubble-time { font-size: 8px; color: rgba(0,0,0,0.38); text-align: right; margin-top: 2px; font-family: var(--font-sans); }
[data-theme="dark"] .demo-wa-bubble-time { color: rgba(255,255,255,0.32); }
.demo-wa-input-bar { height: 38px; background: white; border-top: 1px solid rgba(0,0,0,0.05); }
[data-theme="dark"] .demo-wa-input-bar { background: #202c33; border-top-color: rgba(255,255,255,0.04); }

/* Extension Panel Simulation */
.demo-ext-sim {
  width: 310px; flex-shrink: 0;
  background: white;
  border-left: 1px solid rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
}
[data-theme="dark"] .demo-ext-sim { background: #18181f; border-left-color: rgba(255,255,255,0.07); }

.demo-ext-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  background: rgba(250,250,252,1);
}
[data-theme="dark"] .demo-ext-hdr { background: rgba(20,20,28,1); border-bottom-color: rgba(255,255,255,0.06); }
.demo-ext-brand { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #09090b; font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-brand { color: #f4f4f5; }
.demo-ext-ico { width: 17px; height: 17px; border-radius: 4px; }
.demo-ext-x { font-size: 11px; color: rgba(0,0,0,0.28); width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
[data-theme="dark"] .demo-ext-x { color: rgba(255,255,255,0.22); }

.demo-ext-tabs { display: flex; border-bottom: 1px solid rgba(0,0,0,0.06); background: rgba(248,248,250,1); flex-shrink: 0; }
[data-theme="dark"] .demo-ext-tabs { background: rgba(19,19,26,1); border-bottom-color: rgba(255,255,255,0.05); }
.demo-ext-tab {
  flex: 1; padding: 7px 3px;
  border: none; background: transparent;
  font-size: 10.5px; font-weight: 500;
  color: rgba(0,0,0,0.38); cursor: pointer;
  font-family: var(--font-sans); position: relative; transition: color 0.2s;
}
[data-theme="dark"] .demo-ext-tab { color: rgba(255,255,255,0.3); }
.demo-ext-tab.on { color: #3b82f6; font-weight: 700; }
.demo-ext-tab.on::after {
  content: ''; position: absolute; bottom: -1px; left: 18%; right: 18%;
  height: 2px; background: #3b82f6; border-radius: 1px;
}

.demo-ext-body {
  flex: 1; overflow-y: auto; padding: 9px;
  display: flex; flex-direction: column; gap: 7px;
  scrollbar-width: none;
}
.demo-ext-body::-webkit-scrollbar { display: none; }

/* Detected product card */
.demo-ext-detected-card {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.14);
  border-radius: 8px;
}
.demo-ext-det-thumb { width: 34px; height: 34px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.demo-ext-det-thumb img { width: 100%; height: 100%; object-fit: cover; }
.demo-ext-det-name { font-size: 11px; font-weight: 600; color: #09090b; font-family: var(--font-sans); line-height: 1.2; }
[data-theme="dark"] .demo-ext-det-name { color: #f4f4f5; }
.demo-ext-det-sub { font-size: 9.5px; color: rgba(0,0,0,0.38); font-family: var(--font-sans); margin-top: 2px; }
[data-theme="dark"] .demo-ext-det-sub { color: rgba(255,255,255,0.32); }

/* CTA button */
.demo-ext-cta {
  width: 100%; padding: 7.5px 12px;
  background: #3b82f6; color: white;
  border: none; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: opacity 0.15s;
}
.demo-ext-cta:hover { opacity: 0.88; }
.demo-ext-cta--green { background: #10b981; }
.demo-ext-cta--wa    { background: #25d366; }
.demo-ext-cta--outline { background: transparent; color: #3b82f6; border: 1px solid rgba(59,130,246,0.28); }
[data-theme="dark"] .demo-ext-cta--outline { border-color: rgba(59,130,246,0.38); }

/* Section header */
.demo-ext-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 600; color: rgba(0,0,0,0.42);
  font-family: var(--font-sans); padding: 2px 1px 0;
}
[data-theme="dark"] .demo-ext-section-hdr { color: rgba(255,255,255,0.38); }
.demo-ext-pill {
  background: rgba(59,130,246,0.1); color: #3b82f6;
  font-size: 9.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 100px;
}

/* Result items */
.demo-ext-result-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.018);
  border: 1px solid transparent; border-radius: 7px;
}
[data-theme="dark"] .demo-ext-result-item { background: rgba(255,255,255,0.022); }
.demo-ext-result-item--sel { background: rgba(59,130,246,0.055); border-color: rgba(59,130,246,0.16); }
.demo-ext-rthumb { width: 34px; height: 34px; border-radius: 5px; flex-shrink: 0; }
.demo-ext-rinfo { flex: 1; min-width: 0; }
.demo-ext-rname { font-size: 10.5px; font-weight: 600; color: #09090b; font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
[data-theme="dark"] .demo-ext-rname { color: #f4f4f5; }
.demo-ext-rprice { font-size: 11.5px; font-weight: 700; color: #ef4444; font-family: var(--font-sans); }
.demo-ext-rmeta { font-size: 9px; color: rgba(0,0,0,0.38); font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-rmeta { color: rgba(255,255,255,0.32); }
.demo-ext-radd {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(59,130,246,0.32);
  background: transparent; color: #3b82f6;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-sans); line-height: 1; transition: all 0.15s;
}
.demo-ext-radd--saved { background: #10b981; border-color: #10b981; color: white; font-size: 10px; }

/* Screenshot mode card */
.demo-ext-ss-mode { text-align: center; padding: 14px 8px; background: rgba(59,130,246,0.05); border: 1px dashed rgba(59,130,246,0.28); border-radius: 8px; }
.demo-ext-ss-icon { font-size: 22px; margin-bottom: 5px; }
.demo-ext-ss-title { font-size: 11.5px; font-weight: 700; color: #3b82f6; font-family: var(--font-sans); margin-bottom: 3px; }
.demo-ext-ss-hint { font-size: 9.5px; color: rgba(0,0,0,0.42); font-family: var(--font-sans); line-height: 1.4; }
[data-theme="dark"] .demo-ext-ss-hint { color: rgba(255,255,255,0.34); }

/* Shipping route */
.demo-ext-route { display: flex; align-items: center; gap: 8px; padding: 9px; background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.11); border-radius: 8px; }
.demo-ext-route-node { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 600; color: #09090b; font-family: var(--font-sans); flex: 1; }
[data-theme="dark"] .demo-ext-route-node { color: #f4f4f5; }
.demo-ext-route-flag { font-size: 17px; }
.demo-ext-route-arrow { font-size: 13px; color: rgba(0,0,0,0.28); flex-shrink: 0; }
[data-theme="dark"] .demo-ext-route-arrow { color: rgba(255,255,255,0.28); }
.demo-ext-weight-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 1px; font-family: var(--font-sans); }
.demo-ext-weight-label { font-size: 10px; color: rgba(0,0,0,0.42); }
[data-theme="dark"] .demo-ext-weight-label { color: rgba(255,255,255,0.38); }
.demo-ext-weight-val { font-size: 10.5px; font-weight: 600; color: #09090b; background: rgba(0,0,0,0.045); padding: 2px 8px; border-radius: 4px; }
[data-theme="dark"] .demo-ext-weight-val { color: #f4f4f5; background: rgba(255,255,255,0.07); }
.demo-ext-ship-method { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border: 1px solid rgba(0,0,0,0.07); border-radius: 7px; cursor: pointer; transition: all 0.15s; }
[data-theme="dark"] .demo-ext-ship-method { border-color: rgba(255,255,255,0.07); }
.demo-ext-ship-method--sel { border-color: rgba(59,130,246,0.38); background: rgba(59,130,246,0.055); }
.demo-ext-ship-info { display: flex; flex-direction: column; gap: 2px; }
.demo-ext-ship-name { font-size: 10.5px; font-weight: 600; color: #09090b; font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-ship-name { color: #f4f4f5; }
.demo-ext-ship-days { font-size: 9px; color: rgba(0,0,0,0.38); font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-ship-days { color: rgba(255,255,255,0.32); }
.demo-ext-ship-cost { font-size: 11px; font-weight: 700; color: #3b82f6; font-family: var(--font-sans); }
.demo-ext-summary { padding: 9px; background: rgba(0,0,0,0.022); border-radius: 8px; display: flex; flex-direction: column; gap: 5px; }
[data-theme="dark"] .demo-ext-summary { background: rgba(255,255,255,0.03); }
.demo-ext-sum-row { display: flex; justify-content: space-between; font-size: 10px; color: rgba(0,0,0,0.48); font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-sum-row { color: rgba(255,255,255,0.4); }
.demo-ext-sum-row--profit { font-weight: 700; color: #09090b; padding-top: 5px; border-top: 1px solid rgba(0,0,0,0.07); }
[data-theme="dark"] .demo-ext-sum-row--profit { color: #f4f4f5; border-top-color: rgba(255,255,255,0.06); }
.demo-ext-profit-val { color: #10b981; font-weight: 700; }

/* Sourcing list */
.demo-ext-list-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; background: rgba(0,0,0,0.018); border-radius: 7px; }
[data-theme="dark"] .demo-ext-list-item { background: rgba(255,255,255,0.022); }
.demo-ext-list-thumb { width: 30px; height: 30px; border-radius: 5px; flex-shrink: 0; }
.demo-ext-list-info { flex: 1; min-width: 0; }
.demo-ext-list-name { font-size: 10.5px; font-weight: 600; color: #09090b; font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .demo-ext-list-name { color: #f4f4f5; }
.demo-ext-list-meta { font-size: 9px; color: rgba(0,0,0,0.38); font-family: var(--font-sans); margin-top: 1px; }
[data-theme="dark"] .demo-ext-list-meta { color: rgba(255,255,255,0.32); }
.demo-ext-list-profit { font-size: 11px; font-weight: 700; font-family: var(--font-sans); flex-shrink: 0; }
.demo-ext-list-profit--green { color: #10b981; }
.demo-ext-list-profit--amber { color: #f59e0b; }
.demo-ext-list-total { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; background: rgba(16,185,129,0.07); border-radius: 7px; font-family: var(--font-sans); }
.demo-ext-list-total > span:first-child { font-size: 10px; color: rgba(0,0,0,0.48); }
[data-theme="dark"] .demo-ext-list-total > span:first-child { color: rgba(255,255,255,0.42); }
.demo-ext-total-num { font-size: 13.5px; font-weight: 800; color: #10b981; }

/* WhatsApp panel */
.demo-ext-wa-header-card { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: rgba(37,211,102,0.07); border: 1px solid rgba(37,211,102,0.18); border-radius: 8px; }
.demo-ext-wa-icon { font-size: 18px; }
.demo-ext-wa-title { font-size: 11.5px; font-weight: 700; color: #09090b; font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-wa-title { color: #f4f4f5; }
.demo-ext-wa-sub { font-size: 9.5px; color: rgba(0,0,0,0.42); font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-wa-sub { color: rgba(255,255,255,0.38); }
.demo-ext-wa-preview { background: rgba(0,0,0,0.022); border-radius: 8px; padding: 8px; }
[data-theme="dark"] .demo-ext-wa-preview { background: rgba(255,255,255,0.03); }
.demo-ext-wa-bubble { background: #dcf8c6; border-radius: 8px 8px 2px 8px; padding: 7px 9px 4px; }
[data-theme="dark"] .demo-ext-wa-bubble { background: #025144; }
.demo-ext-wa-bubble p { font-size: 9.5px; color: #111; line-height: 1.55; margin: 0 0 1px; font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-wa-bubble p { color: #e9edef; }
.demo-ext-wa-time { font-size: 8px; color: rgba(0,0,0,0.38); text-align: right; margin-top: 3px; font-family: var(--font-sans); }
[data-theme="dark"] .demo-ext-wa-time { color: rgba(255,255,255,0.3); }
.demo-ext-wa-btns { display: flex; flex-direction: column; gap: 6px; }

/* Responsive */
@media (max-width: 900px) {
  .demo-ext-sim { width: 270px; }
  .demo-sim-product-photo { width: 150px; height: 168px; }
}
@media (max-width: 768px) {
  .demo-mockup-layout { flex-direction: column; min-height: auto; }
  .demo-page-sim { display: none; }
  .demo-page-sim--wa { display: none; }
  .demo-ext-sim { width: 100%; border-left: none; max-height: 400px; }
}

/* ╠═══════════════════════════════════════════════════════════
   MIRO-STYLE FEATURE SHOWCASE
   Pill tab switcher · Left text / Right SVG · Auto-advance
   ╠═══════════════════════════════════════════════════════════ */

.miro-showcase {
  padding: 80px 0 96px;
  background: transparent;
  position: relative;
  transform-origin: center center;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden; /* Prevent horizontal scrolling from active panel translations */
}
.miro-showcase.lang-switching { opacity: 0; transform: scale(0.985); }

.miro-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 64px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  box-shadow: 
    0 24px 80px -15px rgba(0, 0, 0, 0.03), 
    0 4px 20px -2px rgba(0, 0, 0, 0.01),
    0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
}
[data-theme="dark"] .miro-showcase-inner {
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 
    0 40px 100px -20px rgba(0, 0, 0, 0.35), 
    0 4px 30px -4px rgba(0, 0, 0, 0.2),
    0 0 1px 1px rgba(255, 255, 255, 0.04) inset;
}

/* ── Pill Tab Navigation ──────────────────────────────────────────── */
.miro-tabs-wrap { display: flex; justify-content: center; margin-bottom: 56px; }

.miro-tabs-track {
  position: relative; display: inline-flex; align-items: center;
  background: rgba(24, 24, 27, 0.03);
  border: 1px solid rgba(24, 24, 27, 0.06);
  border-radius: 999px; padding: 4px; gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}
[data-theme="dark"] .miro-tabs-track {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

/* Sliding indicator — size/position set by JS inline style */
.miro-tab-indicator {
  position: absolute; top: 4px; left: 0;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.06);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.06), 0 2px 6px -1px rgba(0,0,0,0.04);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              width   0.32s cubic-bezier(0.16, 1, 0.3, 1),
              height  0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none; z-index: 0; will-change: transform, width;
  box-sizing: border-box;
}
[data-theme="dark"] .miro-tab-indicator {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.miro-tab {
  position: relative; z-index: 1; border: none; background: transparent;
  border-radius: 999px; padding: 10px 24px; font-size: 0.9rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: color 0.25s ease, font-weight 0.25s ease;
  white-space: nowrap; outline: none; -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans); letter-spacing: -0.01em; flex-shrink: 0;
}
.miro-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.miro-tab:hover { color: var(--text); }
.miro-tab.active { color: var(--text); font-weight: 600; }
[data-theme="light"] .miro-tab.active { color: #09090b; }

/* ── Panels ─────────────────────────────────────────────────────────── */
.miro-panels-wrap { position: relative; }

.miro-panel {
  display: flex; justify-content: center; align-items: center;
  position: absolute; inset: 0; opacity: 0; transform: translateX(32px);
  pointer-events: none; will-change: opacity, transform;
}
.story-visual.active { position: relative; opacity: 1; transform: translateX(0); pointer-events: auto; }

/* Stagger: initial hidden state — JS applies per-element transitions */
.miro-panel [data-stagger] { opacity: 0; transform: translateY(18px); }

/* ── Panel Text ───────────────────────────────────────────────────── */
.miro-panel-text { display: flex; flex-direction: column; gap: 16px; }
.miro-panel-kicker {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0;
  margin-bottom: -4px;
}
.miro-panel-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
[data-theme="dark"] .miro-panel-title {
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.miro-panel-desc {
  font-size: 1.02rem; line-height: 1.75;
  color: var(--muted); margin: 0; max-width: 440px;
  min-height: auto;
}
.miro-panel-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 99px; background: var(--text); color: var(--bg);
  font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-start; margin-top: 12px;
}
.miro-panel-cta:hover { 
  transform: translateY(-2px) scale(1.02); 
  box-shadow: 0 12px 24px -8px var(--accent); 
  background: var(--accent); 
  color: #ffffff; 
}
[data-theme="light"] .miro-panel-cta { background: #18181b; color: #fff; }
[data-theme="light"] .miro-panel-cta:hover { background: var(--accent); }

/* ── Panel Visual ────────────────────────────────────────────────── */
.miro-panel-visual {
  position: relative; overflow: visible;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient Radial Glow Behind the Visual Panel */
.miro-panel-visual::after {
  content: '';
  position: absolute;
  top: 10%; left: 10%; right: 10%; bottom: -5%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.08;
  filter: blur(48px);
  pointer-events: none;
  transition: all 0.4s ease;
}
[data-theme="dark"] .miro-panel-visual::after {
  opacity: 0.16;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
}

/* ── Showcase Container Flexbox Layout ────────────────────────────── */
.showcase-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.showcase-container.vertical-stack {
  flex-direction: column;
  gap: 20px;
}

.showcase-card {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 
    0 20px 40px -15px rgba(0,0,0,0.06),
    0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

[data-theme="dark"] .showcase-card {
  box-shadow: 
    0 20px 50px -15px rgba(0, 0, 0, 0.35),
    0 0 1px 1px rgba(255, 255, 255, 0.04) inset;
  border-color: rgba(255, 255, 255, 0.04);
}

.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.showcase-card.base-card {
  max-width: 520px;
}

#miro-panel-2 .showcase-card.base-card {
  max-width: 520px;
}

.showcase-card.overlay-card {
  max-width: 520px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
}

#miro-panel-2 .showcase-card.overlay-card {
  max-width: 520px;
}

.story-visual.active .showcase-card.overlay-card {
  opacity: 1;
  transform: translateX(0);
}

.showcase-card.summary-card {
  max-width: 520px;
}

.showcase-card.table-card {
  max-width: 520px;
}

.showcase-card.fade-up-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card.fade-up-card.delay-1 {
  transition-delay: 0.25s;
}

.story-visual.active .showcase-card.fade-up-card {
  opacity: 1;
  transform: translateY(0);
}

.arrow-container {
  width: 60px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.35s;
}

.arrow-container img {
  width: 100%;
  height: auto;
}

.story-visual.active .arrow-container {
  opacity: 1;
  transform: scale(1);
}

.pulse-arrow {
  animation: arrow-pulse 2s infinite ease-in-out;
}

@keyframes arrow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* ── Progress Dots ─────────────────────────────────────────────── */
.miro-progress-dots { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.miro-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--border-mid);
  transition: width 0.35s ease, background 0.35s ease;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.miro-dot.active { width: 24px; background: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .miro-showcase-inner { padding: 48px 36px; border-radius: 24px; }
  .miro-panel { grid-template-columns: 1fr; gap: 40px; }
  .miro-panel-visual { max-width: 680px; margin: 0 auto; width: 100%; }
  .miro-panel-desc { max-width: 100%; }
  .miro-panel-text { align-items: center; text-align: center; }
  .miro-panel-cta { align-self: center; }
}

@media (max-width: 768px) {
  .showcase-container {
    gap: 12px;
    padding: 0 4px;
  }
  .arrow-container {
    width: 36px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  .miro-showcase-inner { padding: 36px 20px; border-radius: 20px; }
  .miro-tabs-wrap { overflow-x: auto; justify-content: flex-start; padding: 0 4px; margin-bottom: 36px; }
  .miro-tabs-track { border-radius: 14px; }
  .miro-tab-indicator { border-radius: 10px; top: 4px; }
  .miro-tab { padding: 8px 16px; font-size: 0.825rem; border-radius: 10px; }
  .miro-showcase { padding: 48px 0; }
  .miro-panel-title { font-size: 1.75rem !important; }
  .miro-panel-desc { font-size: 0.925rem !important; }
  .miro-panel-cta { padding: 11px 22px; font-size: 0.85rem; }
}

/* ==========================================================================
   PREMIUM SAAS SHOWCASE v2.0
   Unified 460px height · Stripe/Linear quality · Side-by-side layout
   ========================================================================== */

/* ── Panel wrapper ─────────────────────────────────────────────────────────── */
.miro-panels-wrap {
  position: relative;
}

/* ── sc-wrap: the flex row that holds 2 (or 3) cards ──────────────────────── */
.sc-wrap {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  height: 460px; /* SINGLE SOURCE OF TRUTH for panel height */
  box-sizing: border-box;
}

/* ── sc-card: base card styles ────────────────────────────────────────────── */
.sc-card {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 14px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border);
  box-shadow:
    0 4px 24px -6px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.03),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.story-visual.active .sc-card {
  opacity: 1;
  transform: translateY(0);
}
.story-visual.active .sc-card:first-of-type {
  transition-delay: 0.05s;
}
.story-visual.active .sc-card:nth-of-type(2) {
  transition-delay: 0.18s;
}
[data-theme="dark"] .sc-card {
  background: var(--bg-soft, #0f0f18);
  border-color: rgba(255,255,255,0.07);
  box-shadow:
    0 8px 32px -8px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* Panel 4 WhatsApp card shouldn't grow too wide */
.sc-card--whatsapp { max-width: 300px; flex-shrink: 0; }
.sc-card--inquiry  { flex: 1.1; }
/* Shipping panels: equal split */
.sc-card--shipping-left  { flex: 1; }
.sc-card--shipping-right { flex: 1; }
/* Summary stays slightly narrower than table */
.sc-card--summary { flex: 0.85; }
.sc-card--table   { flex: 1.15; }

/* ── sc-browser-bar ───────────────────────────────────────────────────────── */
.sc-browser-bar {
  background: var(--bg-soft, #f8f8f8);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
[data-theme="dark"] .sc-browser-bar {
  background: rgba(255,255,255,0.03);
}
.sc-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.sc-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-mid);
}
.sc-url {
  font-size: 9px;
  color: var(--muted, #71717a);
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}
[data-theme="dark"] .sc-url {
  background: rgba(255,255,255,0.03);
}

/* ── sc-browser-body ──────────────────────────────────────────────────────── */
.sc-browser-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Product image scan area (Panel 0 left) ─────────────────────────────────  */
.sc-product-img-area {
  position: relative;
  flex: 1;
  background: var(--bg-soft, #f4f4f5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="dark"] .sc-product-img-area {
  background: rgba(255,255,255,0.02);
}
.sc-product-img-area img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 16px;
}
.sc-scan-line {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px 2px var(--accent);
  animation: sc-scan 3.5s ease-in-out infinite;
}
@keyframes sc-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 0.9; }
  95%  { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}
.sc-scan-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.92);
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.sc-scan-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: sc-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes sc-pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

/* ── Product meta (below image) ─────────────────────────────────────────────  */
.sc-product-meta {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sc-product-brand {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #71717a);
  margin-bottom: 2px;
}
.sc-product-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.3;
}
.sc-product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-retail-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sc-product-stars {
  font-size: 9px;
  color: #f59e0b;
}
.sc-product-stars em {
  color: var(--muted);
  font-style: normal;
}

/* ── Ext topbar ──────────────────────────────────────────────────────────── */
.sc-ext-topbar {
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
[data-theme="dark"] .sc-ext-topbar {
  background: transparent;
}
.sc-ext-logo-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.sc-ext-logo {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-ext-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.sc-ext-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--accent-soft, rgba(59,130,246,0.08));
  color: var(--accent);
  border: 1px solid var(--accent-border, rgba(59,130,246,0.15));
  white-space: nowrap;
}
.sc-badge--green {
  background: rgba(16,185,129,0.08);
  color: var(--green, #10b981);
  border-color: rgba(16,185,129,0.2);
}

.sc-ext-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #71717a);
  padding: 6px 14px 2px;
  flex-shrink: 0;
}

/* ── Supplier list ────────────────────────────────────────────────────────── */
.sc-supplier-list {
  flex: 1;
  overflow: hidden;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-supplier-row {
  background: var(--bg-soft, #f8f8f8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  box-sizing: border-box;
  flex-shrink: 0;
}
[data-theme="dark"] .sc-supplier-row {
  background: rgba(255,255,255,0.03);
}
.sc-supp-thumb {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sc-supp-thumb img {
  width: 28px; height: 28px;
  object-fit: contain;
}
.sc-supp-info { flex: 1; min-width: 0; }
.sc-supp-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-supp-price {
  font-size: 10px;
  font-weight: 700;
  color: var(--green, #10b981);
  margin: 0 0 1px;
}
.sc-supp-price span { font-weight: 400; color: var(--muted); font-size: 9px; }
.sc-supp-moq {
  font-size: 8.5px;
  color: var(--muted, #71717a);
  margin: 0;
}
.sc-rep-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.sc-rep--high { background: rgba(16,185,129,0.1); color: var(--green); }
.sc-rep--mid  { background: rgba(245,158,11,0.1);  color: #d97706; }

/* ── CTA Button ──────────────────────────────────────────────────────────── */
.sc-cta-btn {
  margin: auto 10px 10px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  width: calc(100% - 20px);
  position: relative;
  height: 36px;
  overflow: hidden;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-sans);
  box-sizing: border-box;
}
.sc-btn-default,
.sc-btn-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.sc-btn-success { opacity: 0; }

/* ── Supplier animations (active panel) ─────────────────────────────────── */
/* ── Supplier transitions (active panel) ─────────────────────────────────── */
.sc-supplier-row {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background 0.2s;
}
.story-visual.active .sc-supplier-row {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}
.story-visual.active .sc-supplier-row--delay1 { transition-delay: 0.38s; }
.story-visual.active .sc-supplier-row--delay2 { transition-delay: 0.5s; }

/* ── Panel 1: Crop selector ─────────────────────────────────────────────── */
.sc-browser-body--crop {
  position: relative;
}
.sc-crop-image-area {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--bg-soft, #f4f4f5);
  min-height: 0;
}
.sc-crop-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
}
.sc-crop-selector {
  position: absolute;
  top: 44%;
  left: 7%;
  width: 45%;
  height: 20%;
  border: 2.5px solid var(--accent);
  border-radius: 4px;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  overflow: hidden;
  z-index: 10;
}
.story-visual.active .sc-crop-selector {
  opacity: 1;
  transform: scale(1);
}

/* Crop selection shine sweep animation */
.sc-crop-selector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-100%);
}
.story-visual.active .sc-crop-selector::after {
  animation: sc-crop-shine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.0s;
}
@keyframes sc-crop-shine {
  to { transform: translateX(100%); }
}

/* clip-path background dim overlay */
.sc-crop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 24, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 100%, 0% 100%,
    0% 0%,
    7% 44%, 7% 64%, 52% 64%, 52% 44%, 7% 44%
  );
}
.story-visual.active .sc-crop-overlay {
  opacity: 1;
}

.sc-crop-handle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 1px;
  background: var(--accent);
  z-index: 11;
}
.sc-crop-handle--tl { top: -4px; left: -4px; }
.sc-crop-handle--tr { top: -4px; right: -4px; }
.sc-crop-handle--bl { bottom: -4px; left: -4px; }
.sc-crop-handle--br { bottom: -4px; right: -4px; }
.sc-crop-label {
  position: absolute;
  bottom: -22px;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(59,130,246,0.3);
  pointer-events: none;
  z-index: 12;
}

/* Loading & Results states */
.sc-crop-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}
.sc-loading-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-loading-bars { width: 80%; display: flex; flex-direction: column; gap: 6px; }
.sc-loading-bar {
  height: 8px; border-radius: 4px;
  background: var(--bg-subtle, #e4e4e7);
  animation: sc-shimmer 1.4s ease-in-out infinite;
}
[data-theme="dark"] .sc-loading-bar { background: rgba(255,255,255,0.06); }
@keyframes sc-shimmer {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.sc-loading-text {
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}
.sc-crop-results {
  flex: 1;
  padding: 6px 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

/* Panel 1 animation states */
/* Crop loading/results: use visibility+opacity (display can't be animated) */
.sc-crop-loading {
  display: flex;   /* always flex, controlled by opacity/visibility */
}
.sc-crop-results {
  display: flex;   /* always flex, controlled by opacity/visibility */
}
.story-visual.active .sc-crop-loading {
  animation: sc-one-shot-loading-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}
@keyframes sc-one-shot-loading-fade {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
.story-visual.active .sc-crop-results {
  animation: sc-one-shot-results-fade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.4s;
}
@keyframes sc-one-shot-results-fade {
  from { opacity: 0; transform: translateY(8px); visibility: hidden; }
  to { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
}

/* ── Panel 2: Shipping ──────────────────────────────────────────────────────  */
.sc-ship-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sc-ship-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sc-ship-thumb img { width: 36px; height: 36px; object-fit: contain; }
.sc-ship-product-info { flex: 1; min-width: 0; }
.sc-ship-product-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.sc-ship-product-price {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.sc-ship-specs {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.sc-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sc-spec-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.sc-spec-val {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}
.sc-dest-selector {
  margin: 6px 14px;
  border: 1.5px solid var(--accent-border, rgba(59,130,246,0.25));
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--accent-soft, rgba(59,130,246,0.04));
  position: relative;
  flex-shrink: 0;
}
.sc-dest-text {
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}
.sc-dest-arrow {
  font-size: 9px;
  color: var(--muted);
}
.sc-dest-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 10;
  overflow: hidden;
}
.sc-dest-opt {
  padding: 7px 12px;
  font-size: 10px;
  color: var(--text);
  cursor: pointer;
}
.sc-dest-opt--active {
  background: var(--accent-soft, rgba(59,130,246,0.06));
  color: var(--accent);
  font-weight: 600;
}

/* Rates panel */
.sc-rates-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sc-rates-header h5 {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.sc-rates-dest-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.sc-rates-list {
  flex: 1;
  overflow: hidden;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sc-rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg, #fff);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background 0.2s;
}
.story-visual.active .sc-rate-row {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}
.story-visual.active .sc-rate-row:nth-child(2) { transition-delay: 0.38s; }
.story-visual.active .sc-rate-row:nth-child(3) { transition-delay: 0.5s; }
[data-theme="dark"] .sc-rate-row { background: rgba(255,255,255,0.02); }
.sc-rate-row--selected {
  border-color: var(--accent);
  background: var(--accent-soft, rgba(59,130,246,0.04));
}
.sc-rate-radio {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-rate-row--selected .sc-rate-radio {
  border-color: var(--accent);
}
.sc-rate-radio-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.sc-rate-row--selected .sc-rate-radio-dot { opacity: 1; }
.sc-rate-info { flex: 1; min-width: 0; }
.sc-rate-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.sc-rate-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-rate-tag {
  font-size: 7.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.sc-rate-tag--fast   { background: rgba(59,130,246,0.1); color: var(--accent); }
.sc-rate-tag--value  { background: rgba(16,185,129,0.1); color: var(--green); }
.sc-rate-tag--budget { background: rgba(245,158,11,0.1);  color: #d97706; }
.sc-rate-eta {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.sc-rate-price {
  text-align: right;
  flex-shrink: 0;
}
.sc-rate-price strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.sc-rate-price span {
  font-size: 8.5px;
  color: var(--muted);
}

/* Panel 2 destination selector highlight transition */
.story-visual.active .sc-dest-selector {
  border-color: var(--accent);
  background: rgba(59,130,246,0.08);
  transition: border-color 0.6s ease 0.15s, background 0.6s ease 0.15s;
}

/* ── Panel 3: Summary Dashboard ─────────────────────────────────────────── */
.sc-summary-header {
  padding: 10px 14px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sc-summary-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-summary-status {
  font-size: 9px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sc-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: sc-live-pulse 2s ease-in-out infinite;
}
@keyframes sc-live-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%      { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}
.sc-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 10px 8px;
  flex-shrink: 0;
}
.sc-stat-card {
  background: var(--bg-soft, #f8f8f8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
[data-theme="dark"] .sc-stat-card { background: rgba(255,255,255,0.03); }
.sc-stat-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 3px;
}
.sc-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-family: var(--font-display);
  margin-bottom: 3px;
}
.sc-stat-val small { font-size: 11px; font-weight: 600; color: var(--muted); }
.sc-stat-val--accent { color: var(--accent); }
.sc-stat-trend {
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
}
.sc-trend--up { color: var(--green); }

/* Mini chart */
.sc-mini-chart {
  flex: 1;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sc-chart-label {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 5px;
}
.sc-mini-chart svg {
  flex: 1;
  width: 100%;
  min-height: 0;
}

/* ── Panel 3: Table ─────────────────────────────────────────────────────── */
.sc-table-topbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}
.sc-table-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-table-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.sc-shopify-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.sc-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--green);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.sc-card--table > .sc-table-topbar ~ * {
  overflow-x: auto;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  table-layout: fixed;
}
.sc-table tbody tr {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-visual.active .sc-table tbody tr {
  opacity: 1;
  transform: translateY(0);
}
.story-visual.active .sc-table tbody tr:nth-child(1) { transition-delay: 0.26s; }
.story-visual.active .sc-table tbody tr:nth-child(2) { transition-delay: 0.38s; }
.story-visual.active .sc-table tbody tr:nth-child(3) { transition-delay: 0.5s; }
.sc-table th {
  padding: 5px 8px;
  text-align: left;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.sc-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  vertical-align: middle;
}
.sc-table tbody tr:last-child td { border-bottom: none; }
.sc-check {
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Checkboxes — static checked state */
.sc-check--all,
.sc-check--row {
  background: var(--accent);
  border-color: var(--accent);
}
.sc-check--row svg {
  opacity: 1;
}
.sc-table-product {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-table-thumb {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sc-table-thumb img { width: 18px; height: 18px; object-fit: contain; }
.sc-margin-cell {
  color: var(--green) !important;
  font-weight: 700 !important;
}

/* Panel 3 animations: one-shot export notification */
.story-visual.active .sc-shopify-btn {
  animation: sc-one-shot-export-click 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.4s;
}
@keyframes sc-one-shot-export-click {
  0% { transform: scale(1); }
  30% { transform: scale(0.94); }
  70% { background: var(--green); transform: scale(1); }
  100% { background: var(--green); transform: scale(1); }
}
.story-visual.active .sc-toast {
  animation: sc-one-shot-toast-fly 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.6s;
}
@keyframes sc-one-shot-toast-fly {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  15%, 85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* ── Panel 4: Inquiry ───────────────────────────────────────────────────── */
.sc-arrow-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}
.story-visual.active .sc-arrow-mid {
  opacity: 1;
  transform: scale(1);
}
.sc-pulse-arrow {
  animation: sc-arrow-pulse 2s ease-in-out infinite;
}
@keyframes sc-arrow-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.sc-inquiry-body {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.sc-inq-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0;
}
.sc-inq-product-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft, #f8f8f8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
[data-theme="dark"] .sc-inq-product-card { background: rgba(255,255,255,0.03); }
.sc-inq-text {
  flex: 1;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg-soft, #f8f8f8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
[data-theme="dark"] .sc-inq-text { background: rgba(255,255,255,0.03); }
.sc-inq-float-bubble {
  position: absolute;
  bottom: 55px;
  left: 20%;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
}

/* WhatsApp card */
.sc-phone-status {
  background: #1a7a65;
  color: rgba(255,255,255,0.9);
  padding: 4px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
[data-theme="dark"] .sc-phone-status {
  background: #182229;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sc-phone-time {
  font-size: 9px;
  font-weight: 700;
}
.sc-phone-icons {
  display: flex;
  gap: 4px;
  opacity: 0.85;
}
.sc-wa-header {
  background: #128c7e;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
[data-theme="dark"] .sc-wa-header { background: #1f2c34; }
.sc-wa-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #075e54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sc-wa-contact h6 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1px;
}
.sc-wa-contact p {
  font-size: 8.5px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.sc-wa-messages {
  flex: 1;
  background: #e5ddd5;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}
[data-theme="dark"] .sc-wa-messages { background: #0d1418; }
.sc-wa-bubble {
  max-width: 88%;
  font-size: 9.5px;
  line-height: 1.5;
  padding: 7px 9px;
  border-radius: 10px;
  position: relative;
}
.sc-wa-bubble--sent {
  background: #dcf8c6;
  color: #1a1a1a;
  align-self: flex-end;
  border-radius: 10px 10px 3px 10px;
}
[data-theme="dark"] .sc-wa-bubble--sent { background: #025144; color: #e9edef; }
.sc-wa-bubble--recv {
  background: #fff;
  color: #1a1a1a;
  align-self: flex-start;
  border-radius: 10px 10px 10px 3px;
}
[data-theme="dark"] .sc-wa-bubble--recv { background: #1f2c34; color: #e9edef; }
.sc-wa-time {
  display: block;
  font-size: 7.5px;
  color: rgba(0,0,0,0.38);
  text-align: right;
  margin-top: 3px;
}
[data-theme="dark"] .sc-wa-time { color: rgba(255,255,255,0.3); }
.sc-wa-invoice {
  margin-top: 7px;
  background: var(--bg-soft, #f8f8f8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
[data-theme="dark"] .sc-wa-invoice { background: rgba(255,255,255,0.04); }
.sc-wa-inv-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}
.sc-wa-inv-detail {
  font-size: 8.5px;
  color: var(--muted);
}
.sc-wa-inv-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}
.sc-wa-pay-btn {
  background: var(--green, #10b981);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-top: 4px;
  transition: background 0.2s, transform 0.1s;
}

.sc-wa-input {
  background: #f0f2f5;
  border-top: 1px solid var(--border);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
[data-theme="dark"] .sc-wa-input { background: #1f2c34; border-color: rgba(255,255,255,0.06); }
.sc-wa-clip { font-size: 13px; cursor: pointer; }
.sc-wa-input-field {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 9.5px;
  color: var(--muted);
  font-family: var(--font-sans);
}
[data-theme="dark"] .sc-wa-input-field { background: #2a3942; border-color: transparent; color: #8696a0; }
.sc-wa-send {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sc-wa-send svg { color: #fff; }

/* Payment popover */
.sc-payment-popover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(16,185,129,0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  z-index: 20;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 80%;
  box-shadow: 0 8px 32px rgba(16,185,129,0.4);
  pointer-events: none;
}
.sc-payment-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}
.sc-payment-title {
  font-size: 13px;
  font-weight: 800;
  display: block;
}
.sc-payment-desc {
  font-size: 9.5px;
  opacity: 0.88;
  display: block;
}

/* Panel 4 animations: one-shot storyline flow */
.story-visual.active .sc-inq-float-bubble {
  animation: sc-one-shot-bubble-fly 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}
@keyframes sc-one-shot-bubble-fly {
  0% { opacity: 0; bottom: 55px; left: 20%; transform: scale(0.5); }
  20% { opacity: 1; bottom: 55px; left: 20%; transform: scale(1); }
  80% { opacity: 1; bottom: 55%; left: 70%; transform: scale(0.8); }
  100% { opacity: 0; bottom: 55%; left: 80%; transform: scale(0.6); }
}
.story-visual.active #sc-wa-sent {
  animation: sc-one-shot-wa-sent 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}
@keyframes sc-one-shot-wa-sent {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.story-visual.active #sc-wa-recv {
  animation: sc-one-shot-wa-recv 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.2s;
}
@keyframes sc-one-shot-wa-recv {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.story-visual.active .sc-wa-pay-btn {
  animation: sc-one-shot-pay-click 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 3.2s;
}
@keyframes sc-one-shot-pay-click {
  0% { transform: scale(1); }
  30% { transform: scale(0.93); }
  70% { background: var(--accent); transform: scale(1); }
  100% { background: var(--accent); transform: scale(1); }
}
.story-visual.active .sc-payment-popover {
  animation: sc-one-shot-payment-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 3.6s;
}
@keyframes sc-one-shot-payment-pop {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sc-wrap {
    gap: 12px;
    height: auto;
    min-height: 380px;
  }
  .sc-card--whatsapp { max-width: 100%; }
  .sc-arrow-mid { width: 24px; }
}
@media (max-width: 640px) {
  .sc-wrap {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .sc-card {
    height: 340px;
    flex: none;
  }
  .sc-card--whatsapp { max-width: 100%; }
  .sc-arrow-mid { display: none; }
  .sc-card--summary { flex: none; }
  .sc-card--table   { flex: none; }
}

/* ═══════════════════════════════════════════════════════
   SHOWCASE v2 — SUPPLEMENTAL FIXES
   ═══════════════════════════════════════════════════════ */

/* Ensure browser body properly chains flex children */
.sc-browser-body {
  min-height: 0;
  flex: 1;
}

/* sc-product-img-area must have position:relative for scan badge */
.sc-product-img-area { position: relative; }

/* Prevent table from overflowing card */
.sc-card--table {
  overflow: hidden;
}
.sc-table-topbar {
  flex-shrink: 0;
}

/* Table wrapper for horizontal scroll if needed */
.sc-table-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
}
.sc-table {
  table-layout: auto;
}
/* Column width constraints */
.sc-table th:nth-child(2),
.sc-table td:nth-child(2) { max-width: 80px; }

/* Supplier list overflow fix */
.sc-supplier-list {
  overflow: hidden;
  min-height: 0;
}

/* Fix ext card to use full height correctly */
.sc-card--ext {
  display: flex;
  flex-direction: column;
}

/* Shipping left card spec rows */
.sc-ship-specs {
  flex: 1;
  justify-content: center;
}

/* Crop: initial states — loading visible, results hidden */
.sc-crop-results {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  flex-direction: column;
}
.sc-crop-loading {
  opacity: 1;
  visibility: visible;
  flex-direction: column;
}

/* Ensure panel-4 arrow stays vertically centered */
.sc-arrow-mid {
  align-self: center;
}

/* WhatsApp card: make messages area fill remaining space */
.sc-card--whatsapp {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Payment popover background overlay fix */
.sc-card--whatsapp {
  overflow: hidden; /* clip popover nicely */
}

/* Fix sc-inq-text to not overflow */
.sc-inquiry-body {
  min-height: 0;
  overflow: hidden;
}



/* Rates list - initial blurred state for non-active panel */
.sc-rates-list {
  filter: blur(0);
  transition: filter 0.4s ease, opacity 0.4s ease;
}

/* ── Panel 3: table in wrapper ─────────────────────────────────────── */
/* Summary card min-height fix */
.sc-card--summary {
  overflow: hidden;
  min-height: 0;
}
.sc-mini-chart {
  overflow: hidden;
  min-height: 0;
}

/* ── Ensure scan line stays within image area ── */
.sc-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  pointer-events: none;
}

/* ── Virtual cursor: ensure it's inside its card ── */
/* NOTE: overflow:hidden is set per-card where needed, not globally */
.sc-card--table,
.sc-card--whatsapp,
.sc-card--summary,
.sc-card--ext,
.sc-card--inquiry { overflow: hidden; }

/* ── WhatsApp bubble initial states (non-animated) ── */
#sc-wa-sent,
#sc-wa-recv {
  opacity: 0;
}

/* Browser card height distribution */
.sc-card--browser {
  display: flex;
  flex-direction: column;
}


/* ── GP Sourcing Premium Redesign Additions ─────────────────────────────── */

/* Proportional desktop widths for mockups (60:40) */
@media (min-width: 901px) {
  .sc-card--browser {
    flex: 1.65 !important;
  }
  .sc-card--ext {
    flex: 1 !important;
    max-width: 380px !important;
  }
}

/* Frosted glass backdrop styling for cards */
.sc-card {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(24, 24, 27, 0.05) !important;
}
[data-theme="dark"] .sc-card {
  background: rgba(15, 15, 24, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* SVG icon standard styles inside mockups */
.sc-card svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.sc-icon-chevron {
  width: 10px;
  height: 10px;
  margin-left: 6px;
  opacity: 0.7;
  transition: transform 0.2s ease;
  color: var(--text-2);
}
.sc-icon-external {
  width: 11px;
  height: 11px;
  margin-left: 6px;
  opacity: 0.8;
  display: inline-block;
  position: relative;
  top: -1px;
}
.sc-icon-check {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  stroke: currentColor;
  display: inline-block;
}
.sc-icon-wa {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: #fff;
}
.sc-icon-clip {
  width: 15px;
  height: 15px;
  opacity: 0.65;
  color: var(--muted);
  cursor: pointer;
}
.sc-icon-double-check {
  width: 14px;
  height: 14px;
  color: #3b82f6;
  margin-left: 3px;
  display: inline-block;
  vertical-align: middle;
}

/* Ticker badges for country labels */
.ticker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(24, 24, 27, 0.05);
  color: var(--text-2);
  border: 1px solid rgba(24, 24, 27, 0.08);
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .ticker-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.ticker-arrow {
  margin: 0 8px;
  opacity: 0.4;
  color: var(--accent);
  font-weight: bold;
}

/* Destination dropdown chevron layout */
.sc-dest-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sc-dest-arrow svg {
  width: 9px;
  height: 9px;
  color: var(--muted);
}


/* ── Custom Vector SVG Product Styling ────────────────────────────────────── */

.sc-svg-product {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 130px;
  max-height: 130px;
  margin: auto;
}

/* Thumbs constraints */
.sc-supp-thumb .sc-svg-product,
.sc-table-thumb .sc-svg-product,
.sc-ship-thumb .sc-svg-product {
  max-width: 100%;
  max-height: 100%;
}

/* MagSafe Stand classes */
.prod-magsafe .p-bg {
  fill: #f4f4f5;
  stroke: rgba(24, 24, 27, 0.08);
  stroke-width: 0.75px;
  transition: fill var(--t-base) ease;
}
.prod-magsafe .p-stem {
  stroke: #d4d4d8;
  transition: stroke var(--t-base) ease;
}
.prod-magsafe .p-core-bg {
  fill: #e4e4e7;
  stroke: rgba(24, 24, 27, 0.08);
  stroke-width: 0.75px;
  transition: fill var(--t-base) ease;
}
.prod-magsafe .p-ring {
  stroke: var(--accent);
  stroke-width: 1.5px;
  stroke-dasharray: 4 2;
}
.prod-magsafe .p-core {
  fill: #fafafa;
  stroke: #d4d4d8;
  stroke-width: 0.5px;
  transition: fill var(--t-base) ease;
}
.prod-magsafe .p-plus {
  stroke: #60a5fa;
}

/* Dark mode overrides for MagSafe */
[data-theme="dark"] .prod-magsafe .p-bg {
  fill: #27272a !important;
  stroke: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .prod-magsafe .p-stem {
  stroke: #52525b !important;
}
[data-theme="dark"] .prod-magsafe .p-core-bg {
  fill: #18181b !important;
  stroke: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .prod-magsafe .p-core {
  fill: #27272a !important;
  stroke: #3f3f46 !important;
}

/* Leather Sleeve classes */
.prod-leather .p-body {
  fill: #ea580c; /* Elegant warm amber leather */
  stroke: rgba(24, 24, 27, 0.08);
  stroke-width: 0.75px;
  transition: fill var(--t-base) ease;
}
.prod-leather .p-line {
  stroke: rgba(0, 0, 0, 0.12);
  stroke-width: 1px;
}
.prod-leather .p-stitch {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1px;
}
.prod-leather .p-badge-bg {
  fill: rgba(0, 0, 0, 0.15);
  transition: fill var(--t-base) ease;
}
.prod-leather .p-badge-cross {
  stroke: rgba(255, 255, 255, 0.4);
}
.prod-leather .p-zipper {
  fill: #fafafa;
  stroke: #d4d4d8;
  stroke-width: 0.5px;
  transition: fill var(--t-base) ease, stroke var(--t-base) ease;
}

/* Dark mode overrides for Leather */
[data-theme="dark"] .prod-leather .p-body {
  fill: #9a3412 !important; /* Deeper amber-brown */
  stroke: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .prod-leather .p-badge-bg {
  fill: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .prod-leather .p-badge-cross {
  stroke: rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .prod-leather .p-zipper {
  fill: #27272a !important;
  stroke: #52525b !important;
}

/* ── GP Sourcing Simulated Main Image Container ── */
.sc-main-image-wrap {
  width: 170px;
  height: 170px;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: auto;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-main-image-wrap::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  box-shadow: 0 0 12px var(--accent);
  transition: opacity 0.8s ease 0.4s;
  pointer-events: none;
}
.story-visual.active .sc-main-image-wrap {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
.story-visual.active .sc-main-image-wrap::after {
  opacity: 0.4;
}
[data-theme="dark"] .sc-main-image-wrap {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Similar Product Variations: MagSafe Stands ── */
/* Walnut Variation */
.magsafe-walnut .p-bg {
  fill: #78350f !important;
  stroke: rgba(0, 0, 0, 0.15) !important;
}
.magsafe-walnut .p-stem {
  stroke: #78716c !important;
}
.magsafe-walnut .p-core-bg {
  fill: #44403c !important;
}
[data-theme="dark"] .magsafe-walnut .p-bg {
  fill: #451a03 !important;
}

/* Maple Variation */
.magsafe-maple .p-bg {
  fill: #fef08a !important;
  stroke: rgba(24, 24, 27, 0.08) !important;
}
.magsafe-maple .p-stem {
  stroke: #d4d4d8 !important;
}
.magsafe-maple .p-core-bg {
  fill: #e4e4e7 !important;
}
[data-theme="dark"] .magsafe-maple .p-bg {
  fill: #ca8a04 !important;
}

/* Bamboo Variation */
.magsafe-bamboo .p-bg {
  fill: #d97706 !important;
  stroke: rgba(0, 0, 0, 0.12) !important;
}
.magsafe-bamboo .p-stem {
  stroke: #fdba74 !important;
}
.magsafe-bamboo .p-core-bg {
  fill: #fafaf9 !important;
}
[data-theme="dark"] .magsafe-bamboo .p-bg {
  fill: #b45309 !important;
}

/* ── Similar Product Variations: Leather Folios ── */
/* Walnut Leather */
.leather-walnut .p-body {
  fill: #78350f !important;
}
[data-theme="dark"] .leather-walnut .p-body {
  fill: #451a03 !important;
}

/* Tan Leather */
.leather-tan .p-body {
  fill: #ea580c !important;
}
[data-theme="dark"] .leather-tan .p-body {
  fill: #9a3412 !important;
}

/* Charcoal Leather */
.leather-charcoal .p-body {
  fill: #27272a !important;
}
[data-theme="dark"] .leather-charcoal .p-body {
  fill: #09090b !important;
}

/* Glass Dome Lamp classes */
.prod-glass .p-shadow {
  fill: rgba(0, 0, 0, 0.05);
}
.prod-glass .p-base {
  fill: #eab308; /* Brass gold */
  transition: fill var(--t-base) ease;
}
.prod-glass .p-rod {
  stroke: #ca8a04;
}
.prod-glass .p-glow {
  fill: radial-gradient(circle, rgba(253, 186, 116, 0.7) 0%, rgba(253, 186, 116, 0) 70%);
}
.prod-glass .p-shade {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(24, 24, 27, 0.15);
  stroke-width: 0.75px;
  transition: fill var(--t-base) ease, stroke var(--t-base) ease;
}
.prod-glass .p-core {
  fill: #f97316;
  stroke: #fff;
  stroke-width: 0.75px;
}
.prod-glass .p-filament {
  stroke: #fff;
}

/* Dark mode overrides for Glass Lamp */
[data-theme="dark"] .prod-glass .p-base {
  fill: #ca8a04 !important;
}
[data-theme="dark"] .prod-glass .p-shade {
  fill: rgba(255, 255, 255, 0.06) !important;
  stroke: rgba(255, 255, 255, 0.25) !important;
}

/* Screenshot crop abstract vector workspace styles */
.sc-crop-bg {
  width: 100%;
  height: 100%;
  display: block;
}
.c-canvas {
  transition: fill var(--t-base) ease;
}
.c-line, .c-object {
  transition: stroke var(--t-base) ease;
}
[data-theme="dark"] .c-canvas {
  fill: url(#cBgGradDark) !important;
}
[data-theme="dark"] .c-line {
  stroke: #27272a !important;
}
[data-theme="dark"] .c-object {
  stroke: #3f3f46 !important;
}

/* SVG sharp stars styling */
.sc-star {
  width: 10px;
  height: 10px;
  color: #fbbf24;
  margin-right: 2px;
  display: inline-block;
  vertical-align: middle;
}


/* ── Abstract Wireframes & Nodes Redesign ────────────────────────────────── */

/* Card width ratio on desktop (60:40 browser equivalent) */
@media (min-width: 901px) {
  .sc-card--abstract-left {
    flex: 1.65 !important;
  }
  .sc-card--abstract-right {
    flex: 1 !important;
    max-width: 380px !important;
    position: relative;
  }
}

.sc-card--abstract-left,
.sc-card--abstract-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.sc-abstract-visual {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 24px;
}

/* Abstract Node Base */
.sc-node {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-strong);
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.sc-node svg {
  width: 26px;
  height: 26px;
}

/* Left product node */
.sc-node--product {
  animation: floatNode 4s ease-in-out infinite alternate;
}
@keyframes floatNode {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.02); }
}

/* Center node in network */
.sc-node--center {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow-sm);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.sc-node-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: block;
}

/* Scanning Sweep Laser Beam */
.sc-scan-beam {
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.04) 70%, rgba(59, 130, 246, 0.12) 98%, transparent 100%);
  border-bottom: 1.5px solid var(--accent);
  pointer-events: none;
  animation: laserSweep 3.5s ease-in-out infinite;
}
@keyframes laserSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.sc-scan-label-abstract {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.85;
}

/* Connecting rays (SVG path lines) */
.sc-node-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.ray-line {
  stroke: var(--border-strong);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 4;
  animation: rayFlow 15s linear infinite;
}
@keyframes rayFlow {
  to { stroke-dashoffset: -100; }
}

/* Ray highlights when active */
.story-visual.active .ray-line--1 { stroke: var(--accent); opacity: 0.45; animation: rayFlow 10s linear infinite; }
.story-visual.active .ray-line--2 { stroke: var(--accent); opacity: 0.45; animation: rayFlow 8s linear infinite; }
.story-visual.active .ray-line--3 { stroke: var(--accent); opacity: 0.45; animation: rayFlow 12s linear infinite; }

/* Target matched nodes */
.sc-node-target {
  position: absolute;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.target-1 { top: 12%; }
.target-2 { top: 40%; }
.target-3 { top: 68%; }

.target-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--border-strong);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}
.story-visual.active .target-circle {
  border-color: var(--accent);
}
.target-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: block;
}
.story-visual.active .target-pulse {
  animation: pulseTarget 1.8s infinite;
}
@keyframes pulseTarget {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59,130,246,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

.target-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Abstract Cropping Wireframe */
.sc-wireframe-grid {
  position: absolute;
  inset: 24px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
  opacity: 0.5;
}
.grid-line {
  width: 1px;
  height: 100%;
  background: var(--border);
}

.sc-crop-box-abstract {
  position: absolute;
  width: 120px;
  height: 90px;
  border: 2.5px solid var(--accent);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 20px rgba(59,130,246,0.1), inset 0 0 20px rgba(59,130,246,0.05);
}
.crop-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1.5px;
}
.crop-corner.tl { top: -4px; left: -4px; }
.crop-corner.tr { top: -4px; right: -4px; }
.crop-corner.bl { bottom: -4px; left: -4px; }
.crop-corner.br { bottom: -4px; right: -4px; }

.crop-label-abstract {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Single connection ray */
.sc-visual-single {
  position: relative;
}
.sc-node--start {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.sc-single-ray {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ray-single-line {
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 6 4;
  animation: rayFlow 8s linear infinite;
  opacity: 0.55;
}
.target-center {
  right: auto;
  left: 140px;
  top: 50%;
  transform: translateY(-50%);
}

/* Spec Wireframe Left side */
.sc-spec-wireframe {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px !important;
}
.spec-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.spec-icon-box svg {
  width: 20px;
  height: 20px;
}
.spec-skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.skeleton-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border-strong);
  opacity: 0.55;
}

/* Route map styles */
.sc-route-map {
  flex-direction: column;
  gap: 12px;
}
.map-globe {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-svg {
  width: 100%;
  height: 100%;
}
.route-arc {
  animation: pulseArc 2.5s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes pulseArc {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 40; }
}
.route-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
  opacity: 0.55;
}

/* Dashboard Header skeleton */
.dashboard-header-skeleton {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.skeleton-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Table Skeleton */
.sc-table-skeleton {
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 30px !important;
  width: 100%;
}
.skeleton-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.skeleton-row.header {
  border-bottom: 2px solid var(--border-strong);
  opacity: 0.65;
}
.sk-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-soft);
  transition: border-color 0.3s ease;
}
.story-visual.active .sk-checkbox {
  border-color: var(--accent);
}
.sk-cell {
  height: 8px;
  border-radius: 4px;
  background: var(--border-strong);
  opacity: 0.55;
}
.sk-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--green, #10b981);
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Node Flow Panel 4 */
.sc-node-flow {
  flex-direction: column;
  gap: 16px;
}
.sc-node--inquiry {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}
.sc-node--whatsapp-abstract {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--green);
}
.flow-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sc-payment-badge-abstract {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.story-visual.active .sc-payment-badge-abstract {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2s;
}
.sc-payment-badge-abstract svg {
  width: 10px;
  height: 10px;
}

/* Abstract CTA Button overlay */
.sc-cta-btn-abstract {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 280px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59,130,246,0.25);
  cursor: pointer;
  z-index: 10;
  overflow: hidden;
  box-sizing: border-box;
}
.sc-cta-btn-abstract span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.sc-cta-btn-abstract .sc-btn-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Sourcing export Toast abstract */
.sc-toast-abstract {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sc-toast-abstract svg {
  width: 12px;
  height: 12px;
  color: var(--green);
}

/* ── Product High-Fidelity Image Styling ───────────────────────────────────── */
.sc-prod-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
  transition: filter var(--t-base) ease;
}

/* Wood and leather color variant filters */
.sc-prod-img--walnut {
  filter: brightness(0.85) sepia(0.18) contrast(1.05);
}
.sc-prod-img--maple {
  filter: hue-rotate(-15deg) sepia(0.35) brightness(1.2) contrast(0.95);
}
.sc-prod-img--bamboo {
  filter: hue-rotate(15deg) sepia(0.4) brightness(1.1) contrast(1);
}
.sc-prod-img--tan {
  filter: sepia(0.6) hue-rotate(20deg) brightness(1.2) contrast(1.1);
}
.sc-prod-img--charcoal {
  filter: grayscale(1) brightness(0.4) contrast(1.2);
}

/* Screenshot crop workspace photo background */
.sc-crop-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SVG sharp stars styling */
.sc-star {
  width: 10px;
  height: 10px;
  color: #fbbf24;
  margin-right: 2px;
  display: inline-block;
  vertical-align: middle;
}




/* ── Bento Grid Section ────────────────────────────────────────── */
#features-bento {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

#features-bento::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 28px 28px, 84px 84px, 84px 84px;
  background-position: center;
  mask-image: radial-gradient(circle 500px at center, black, transparent);
  -webkit-mask-image: radial-gradient(circle 500px at center, black, transparent);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] #features-bento::before {
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
}

.bento-glow-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .bento-card {
  background: var(--surface);
  border-color: var(--border);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(59, 130, 246, 0.12), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(59, 130, 246, 0.03);
}

[data-theme="light"] .bento-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.bento-card--large {
  grid-column: span 7;
}

.bento-card--medium {
  grid-column: span 5;
}

.bento-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.bento-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bento-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.bento-card-visual {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}

/* Card 1: Abstract Sourcing diagram styling */
.abstract-scanner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  height: 200px;
}

.vision-scan-box {
  width: 110px;
  height: 110px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(59, 130, 246, 0.02);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05), inset 0 0 12px rgba(59, 130, 246, 0.05);
}

[data-theme="light"] .vision-scan-box {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.02);
}

.scan-reticle {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background: 
    linear-gradient(to right, var(--accent) 1.5px, transparent 1.5px) 0 0,
    linear-gradient(to bottom, var(--accent) 1.5px, transparent 1.5px) 0 0,
    linear-gradient(to left, var(--accent) 1.5px, transparent 1.5px) 100% 0,
    linear-gradient(to bottom, var(--accent) 1.5px, transparent 1.5px) 100% 0,
    linear-gradient(to right, var(--accent) 1.5px, transparent 1.5px) 0 100%,
    linear-gradient(to top, var(--accent) 1.5px, transparent 1.5px) 0 100%,
    linear-gradient(to left, var(--accent) 1.5px, transparent 1.5px) 100% 100%,
    linear-gradient(to top, var(--accent) 1.5px, transparent 1.5px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 8px 8px;
}

.laser-scanner-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  animation: laserSweep 3s ease-in-out infinite;
}

@keyframes laserSweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.abstract-connection-lines {
  flex-grow: 1;
  max-width: 100px;
  margin: 0 12px;
}

.connection-path-glow {
  stroke: rgba(59, 130, 246, 0.12);
  stroke-width: 1.5;
}

.connection-path-pulse {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 20 80;
  animation: connectionPulse 3s infinite linear;
}

.connection-path-pulse.pulse-delay {
  animation-delay: 1.5s;
}

@keyframes connectionPulse {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.ping-node {
  animation: pulseNode 2s infinite alternate;
}

@keyframes pulseNode {
  0% { r: 2px; opacity: 0.4; }
  100% { r: 3.5px; opacity: 1; }
}

.matched-sourcing-nodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .node-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
}

.node-card:hover {
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.08);
}

.badge-source {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.12);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.price-match {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.node-card-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .node-card-thumb {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.node-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.node-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-rating {
  font-size: 0.6rem;
  font-weight: 600;
  color: #fbbf24;
}

.usd-price {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

/* Card 2: Abstract Shipping Arc diagram styling */
.abstract-shipping-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.01);
}

[data-theme="light"] .abstract-shipping-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
}

.abstract-routing-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin-bottom: 24px;
  position: relative;
}

.route-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1.5px solid var(--accent);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
  z-index: 2;
}

[data-theme="light"] .route-node {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.point-dest-glow {
  border-color: var(--accent-2);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
  position: relative;
}

.pulse-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: destPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes destPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.route-arc-svg {
  position: absolute;
  left: 32px;
  right: 32px;
  width: calc(100% - 64px);
  z-index: 1;
  overflow: visible;
}

.shipping-selectors-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

[data-theme="light"] .shipping-selectors-row {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.selector-field-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selector-field-compact label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.minimal-select-wrap {
  position: relative;
}

.minimal-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.shipping-selectors-row select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 14px;
  padding-right: 36px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .shipping-selectors-row select {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.shipping-selectors-row select:focus {
  border-color: var(--accent);
}

.slider-val-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glowing-value {
  color: var(--accent);
  font-weight: 700;
}

.minimal-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

[data-theme="light"] .minimal-slider {
  background: rgba(0, 0, 0, 0.04);
}

.minimal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s;
}

.minimal-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.shipping-price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.price-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

[data-theme="light"] .price-row-item {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.carrier-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrier-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrier-label-group {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.label-desc {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.label-sub {
  font-size: 0.6rem;
  color: var(--muted);
}

.value-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Card 3: Abstract Margin Estimator (Donut visual) styling */
.abstract-margin-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .abstract-margin-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}

.margin-slider-wrap-v4 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.slider-header-v4 {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-2);
}

.margin-value-tag {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-size: 0.6rem;
  padding: 1px 6px;
}

.margin-donut-text-layout {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 20px;
}

[data-theme="light"] .margin-donut-text-layout {
  border-bottom-color: rgba(0,0,0,0.03);
}

.margin-chart-ring-container {
  position: relative;
  width: 90px;
  height: 90px;
}

.margin-donut-svg {
  transform: rotate(-90deg);
}

.margin-donut-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.donut-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.donut-label {
  font-size: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.breakdown-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item-v4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.legend-color-v4 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-color-v4.cost { background: #64748b; }
.legend-color-v4.freight { background: #818cf8; }
.legend-color-v4.profit { background: #10b981; }

.margin-data-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}

.sheet-row.highlight {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 8px;
  margin-top: 2px;
  font-weight: 700;
  color: var(--text);
}

[data-theme="light"] .sheet-row.highlight {
  border-top-color: rgba(0,0,0,0.03);
}

.sheet-row.profit {
  font-weight: 700;
}

.green-profit-text {
  color: #10b981 !important;
}

/* Card 4: Abstract Pipeline styling */
.inquiry-pipeline-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  min-height: 180px;
  position: relative;
}

.source-items-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 32%;
}

.source-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .source-item-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.source-item-card:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.05);
}

.item-img-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.06);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.item-name {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text);
}

.item-meta {
  display: flex;
  gap: 8px;
  font-size: 0.6rem;
}

.qty-badge {
  color: var(--muted);
}

.price-badge {
  color: var(--text-2);
  font-weight: 600;
}

.flow-bridge-column {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30%;
}

.pulse-bridge-arrow {
  flex-grow: 1;
  display: flex;
  align-items: center;
  overflow: visible;
}

.moving-laser-dot {
  filter: drop-shadow(0 0 4px var(--accent));
}

.converter-node-glow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  animation: pulseConverter 2s infinite alternate;
  z-index: 2;
}

@keyframes pulseConverter {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  }
}

.spin-slow {
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.output-previews-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 38%;
}

.whatsapp-preview-card {
  width: 100%;
  max-width: 185px;
  background: rgba(18, 140, 126, 0.03);
  border: 1px solid rgba(18, 140, 126, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: left;
}

[data-theme="light"] .whatsapp-preview-card {
  background: rgba(18, 140, 126, 0.01);
  border-color: rgba(18, 140, 126, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.wa-header {
  background: rgba(18, 140, 126, 0.08);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #128c7e;
  border-bottom: 1px solid rgba(18, 140, 126, 0.04);
}

.wa-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 4px #25d366;
}

.wa-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.55rem;
  line-height: 1.4;
  color: var(--text);
}

[data-theme="light"] .wa-bubble {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
}

.wa-text-inquiry strong {
  color: var(--text);
}

.wa-text-inquiry em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.csv-export-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
  transition: all 0.2s ease;
  cursor: pointer;
}

.csv-export-tag:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bento-card--large, .bento-card--medium {
    grid-column: span 12;
  }
}

@media (max-width: 800px) {
  .bento-card {
    padding: 24px;
    overflow: visible; /* Allow stacked content to show beyond card height */
  }
  .abstract-scanner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    height: auto;      /* Remove fixed 200px desktop height */
    width: 100%;
  }
  .abstract-connection-lines {
    display: none;     /* Hide instead of rotating — cleaner on mobile */
  }
  /* Only stretch layout for the scanner bento card on mobile */
  .bento-card--scanner .bento-card-visual {
    height: auto;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
  }
  /* Keep standard centering for other bento visuals */
  .bento-card-visual {
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }
  .vision-scan-box {
    width: 100%;
    height: 140px;
  }
  .scanner-left-pane {
    width: 100%;
  }
  .matched-sourcing-nodes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}


/* ══════════════════════════════════════════════════════════
   HERO INTERACTIVE BROWSER & EXTENSION MOCKUP STYLING
   ══════════════════════════════════════════════════════════ */
.hero-mockup-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 56px auto 0 auto;
  padding: 0 16px;
  perspective: 1200px;
}

.premium-browser-mockup {
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(2deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.premium-browser-mockup:hover {
  transform: rotateX(0deg) translateY(-4px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .premium-browser-mockup {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.06);
}

.browser-chrome {
  height: 42px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

[data-theme="light"] .browser-chrome {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.chrome-address-bar {
  flex-grow: 1;
  max-width: 460px;
  height: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-sans);
}

[data-theme="light"] .chrome-address-bar {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.chrome-extension-wrap {
  display: flex;
  align-items: center;
}

.gp-extension-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.browser-viewport {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  height: 380px;
}

@media (max-width: 768px) {
  .browser-viewport {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Mock Shopify Page */
.mock-shopify-page {
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mock-shopify-page {
  background: rgba(0, 0, 0, 0.01);
}

.shopify-product-preview {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .shopify-product-preview {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.product-image-box {
  height: 170px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  color: var(--text-2);
}

[data-theme="light"] .product-image-box {
  background: rgba(0, 0, 0, 0.01);
}

.hover-action-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.mock-product-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-align: left;
}

.mock-product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-retail-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
}

.mock-tag-dropship {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mock GP Sourcing Sidebar */
.mock-gp-sidebar {
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .mock-gp-sidebar {
  border-left-color: rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.45);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .sidebar-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.sidebar-logo {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sidebar-version {
  font-size: 0.55rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="light"] .sidebar-version {
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.section-title-row .section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-percentage {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green);
}

.supplier-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supplier-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

[data-theme="light"] .supplier-mini-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
}

.supplier-index {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.supplier-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  text-align: left;
}

.sup-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
}

.sup-price-row {
  display: flex;
  gap: 6px;
  font-size: 0.6rem;
}

.sup-price-cny {
  color: var(--text-2);
  font-weight: 600;
}

.sup-price-usd {
  color: var(--muted);
}

.sup-action-go {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.margin-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.matrix-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

[data-theme="light"] .matrix-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
}

.matrix-label {
  font-size: 0.55rem;
  color: var(--muted);
}

.matrix-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}

.matrix-item.highlight {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.matrix-item.highlight .matrix-label {
  color: var(--green);
}

.matrix-item.highlight .matrix-value {
  color: var(--green);
}

/* ── Hero Actions & Trust Badging ── */
.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.btn-chrome-hero {
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn-chrome-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.45);
}

.hero-trust-line {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  z-index: 10;
}

@media (max-width: 600px) {
  .hero-trust-line {
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }
  .trust-bullet {
    display: none;
  }
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-bullet {
  color: var(--border-strong);
}
