/* ==========================================================================
   Rummaan MShop — Pomegranate Design System
   "Every Seed of Your Business, Connected."
   Light theme default · Dark via prefers-color-scheme OR data-theme override
   (manual navbar toggle, persisted in localStorage as `mshop_theme`).
   Fonts are loaded via <link> in the HTML head (not @import) so the
   stylesheet itself never blocks on a second round-trip.
   ========================================================================== */

/* ---------- Design Tokens (Light Theme) ---------- */
:root {
  color-scheme: light;

  /* Pomegranate Palette — shared across themes, sole accent color family */
  --pomegranate-deep:    #9B1B30;
  --pomegranate-core:    #C41E3A;
  --pomegranate-bright:  #E8384F;
  --pomegranate-light:   #FF6B7A;
  --pomegranate-glow:    #FF8A98;

  /* Seed / Gold Accent */
  --seed-gold:           #B8860B;
  --seed-gold-light:     #D4A373;
  --seed-gold-bright:    #F0D9B5;

  /* ---- Light Theme Functional — cool slate neutrals, accent stays pomegranate ---- */
  --text-primary:        #0F172A;
  --text-secondary:      #475569;
  --text-accent:         var(--pomegranate-core);
  --text-muted:          #64748B;

  --bg-primary:          #FFFFFF;
  --bg-surface:          #FFFFFF;
  --bg-elevated:         #FFFFFF;

  /* Pure-white theme: sections tint via subtle pomegranate gradients,
     never gray surfaces */
  --section-tint:        linear-gradient(180deg, rgba(196, 30, 58, 0.035), rgba(212, 163, 115, 0.018) 50%, rgba(196, 30, 58, 0) 100%);
  --stats-tint:          radial-gradient(ellipse 70% 90% at 50% 0%, rgba(196, 30, 58, 0.04), transparent 65%);

  /* Bento card surface (solid, not glass) */
  --card-bg:             #FFFFFF;
  --card-border:         #E2E8F0;

  /* Glass — reserved for navbar + small chips only */
  --glass-bg:            rgba(255, 255, 255, 0.75);
  --glass-border:        rgba(15, 23, 42, 0.08);
  --glass-highlight:     rgba(196, 30, 58, 0.03);

  /* Shadows (light) */
  --shadow-glow:    0 0 40px rgba(196, 30, 58, 0.15);
  --shadow-glow-sm: 0 0 20px rgba(196, 30, 58, 0.1);
  --shadow-glow-lg: 0 0 80px rgba(196, 30, 58, 0.2);
  --shadow-card:    0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-elevated:0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06);

  /* Nav */
  --nav-bg:              rgba(255, 255, 255, 0.85);
  --nav-border:          rgba(15, 23, 42, 0.06);

  /* Hero gradient */
  --hero-radial-1:       rgba(196, 30, 58, 0.04);
  --hero-radial-2:       rgba(155, 27, 48, 0.03);
  --hero-radial-3:       rgba(212, 163, 115, 0.04);

  /* Section divider fill — matches the top of the features tint wash */
  --divider-fill:        #FDF3F5;

  /* CTA section bg */
  --cta-bg-from:         #FFFFFF;
  --cta-bg-to:           #FFF6F7;
  --cta-radial-1:        rgba(196, 30, 58, 0.05);
  --cta-radial-2:        rgba(212, 163, 115, 0.04);

  /* Footer */
  --footer-bg:           #FFFFFF;
  --footer-border:       rgba(0, 0, 0, 0.06);

  /* Gate */

  /* Seed canvas */
  --seed-opacity:        0.5;
  --seed-line-opacity:   0.04;

  /* Stat / counter — solid bento surface */
  --stat-bg:             #FFFFFF;

  /* Btn secondary */
  --btn-secondary-bg:    #FFFFFF;
  --btn-secondary-color: var(--text-primary);
  --btn-secondary-hover-bg: rgba(196, 30, 58, 0.06);

  /* Testimonial quote color */
  --testimonial-color:   #1E293B;
  --quote-mark-opacity:  0.2;

  /* Per-component theme tokens (were scattered dark-mode blocks; now the
     ONLY place light/dark differ so data-theme can override them) */
  --gradient-text:       linear-gradient(135deg, var(--pomegranate-core), var(--pomegranate-glow), var(--pomegranate-deep));
  --text-glow-shadow:    0 0 30px rgba(196, 30, 58, 0.25);
  --feature-icon-bg:     linear-gradient(135deg, rgba(255, 107, 122, 0.15), rgba(196, 30, 58, 0.06));
  --global-icon-color:   var(--seed-gold);
  --global-icon-bg:      linear-gradient(135deg, rgba(212, 163, 115, 0.2), rgba(255, 107, 122, 0.08));
  /* Gold used as SMALL TEXT needs deeper ink than the decorative gold to
     clear WCAG 4.5:1 on white (#B8860B was ~3.8:1) */
  --gold-text:           #8A6A0B;
  --city-dot:            var(--seed-gold);
  --city-dot-night:      #5B6B9E;
  --hero-img-filter:     drop-shadow(0 20px 40px rgba(196, 30, 58, 0.15));
  --hero-glow-bg:        radial-gradient(circle, rgba(196, 30, 58, 0.1), transparent 70%);
  --dot-inactive:        #64748B;
  --error-color:         #DC2626;

  /* Theme toggle shows the icon of the theme you'd switch TO */
  --theme-icon-sun:      none;
  --theme-icon-moon:     inline-flex;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Typography Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  /* Fonts */
  --font-heading: 'Calistoga', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Border Radius */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:  150ms;
  --duration-base:  300ms;
  --duration-slow:  500ms;
  --duration-slower: 800ms;
}

/* ---------- Dark Theme Tokens ----------
   Desaturated tonal slate surfaces (not just darkened reds) with pomegranate
   as the sole accent. The SAME token list appears twice on purpose:
   once for system dark (unless the user forced light) and once for the
   manual data-theme="dark" override. KEEP BOTH BLOCKS IDENTICAL. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --text-primary:        #F1F5F9;
    --text-secondary:      #CBD5E1;
    --text-accent:         var(--pomegranate-light);
    --text-muted:          #94A3B8;

    --bg-primary:          #0B1120;
    --bg-surface:          #131B2E;
    --bg-elevated:         #1B2438;

    --section-tint:        none;
    --stats-tint:          linear-gradient(180deg, var(--bg-surface), var(--bg-primary));

    --card-bg:             #161F33;
    --card-border:         #263049;

    --glass-bg:            rgba(22, 31, 51, 0.7);
    --glass-border:        rgba(226, 232, 240, 0.1);
    --glass-highlight:     rgba(255, 107, 122, 0.08);

    --shadow-glow:    0 0 40px rgba(196, 30, 58, 0.3);
    --shadow-glow-sm: 0 0 20px rgba(196, 30, 58, 0.2);
    --shadow-glow-lg: 0 0 80px rgba(196, 30, 58, 0.4);
    --shadow-card:    0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-elevated:0 16px 48px rgba(0, 0, 0, 0.45);

    --nav-bg:              rgba(11, 17, 32, 0.85);
    --nav-border:          rgba(226, 232, 240, 0.08);

    --hero-radial-1:       rgba(196, 30, 58, 0.18);
    --hero-radial-2:       rgba(155, 27, 48, 0.12);
    --hero-radial-3:       rgba(212, 163, 115, 0.08);

    --divider-fill:        #131B2E;

    --cta-bg-from:         #131B2E;
    --cta-bg-to:           #1B2438;
    --cta-radial-1:        rgba(196, 30, 58, 0.15);
    --cta-radial-2:        rgba(212, 163, 115, 0.1);

    --footer-bg:           #0B1120;
    --footer-border:       rgba(226, 232, 240, 0.08);

    --seed-opacity:        0.7;
    --seed-line-opacity:   0.05;

    --stat-bg:             #161F33;

    --btn-secondary-bg:    #161F33;
    --btn-secondary-color: #F1F5F9;
    --btn-secondary-hover-bg: rgba(196, 30, 58, 0.1);

    --testimonial-color:   #E2E8F0;
    --quote-mark-opacity:  0.3;

    --gradient-text:       linear-gradient(135deg, var(--pomegranate-bright), var(--pomegranate-light), var(--seed-gold-light));
    --text-glow-shadow:    0 0 30px rgba(196, 30, 58, 0.4);
    --feature-icon-bg:     linear-gradient(135deg, rgba(255, 107, 122, 0.25), rgba(196, 30, 58, 0.15));
    --global-icon-color:   var(--seed-gold-light);
    --global-icon-bg:      linear-gradient(135deg, rgba(212, 163, 115, 0.3), rgba(255, 107, 122, 0.12));
    --gold-text:           var(--seed-gold-light);
    --city-dot:            var(--seed-gold-light);
    --city-dot-night:      #7C8BC0;
    --hero-img-filter:     drop-shadow(0 0 60px rgba(196, 30, 58, 0.3));
    --hero-glow-bg:        radial-gradient(circle, rgba(196, 30, 58, 0.25), transparent 70%);
    --dot-inactive:        #94A3B8;
    --error-color:         #F87171;

    --theme-icon-sun:      inline-flex;
    --theme-icon-moon:     none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --text-primary:        #F1F5F9;
  --text-secondary:      #CBD5E1;
  --text-accent:         var(--pomegranate-light);
  --text-muted:          #94A3B8;

  --bg-primary:          #0B1120;
  --bg-surface:          #131B2E;
  --bg-elevated:         #1B2438;

  --section-tint:        none;
  --stats-tint:          linear-gradient(180deg, var(--bg-surface), var(--bg-primary));

  --card-bg:             #161F33;
  --card-border:         #263049;

  --glass-bg:            rgba(22, 31, 51, 0.7);
  --glass-border:        rgba(226, 232, 240, 0.1);
  --glass-highlight:     rgba(255, 107, 122, 0.08);

  --shadow-glow:    0 0 40px rgba(196, 30, 58, 0.3);
  --shadow-glow-sm: 0 0 20px rgba(196, 30, 58, 0.2);
  --shadow-glow-lg: 0 0 80px rgba(196, 30, 58, 0.4);
  --shadow-card:    0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-elevated:0 16px 48px rgba(0, 0, 0, 0.45);

  --nav-bg:              rgba(11, 17, 32, 0.85);
  --nav-border:          rgba(226, 232, 240, 0.08);

  --hero-radial-1:       rgba(196, 30, 58, 0.18);
  --hero-radial-2:       rgba(155, 27, 48, 0.12);
  --hero-radial-3:       rgba(212, 163, 115, 0.08);

  --divider-fill:        #131B2E;

  --cta-bg-from:         #131B2E;
  --cta-bg-to:           #1B2438;
  --cta-radial-1:        rgba(196, 30, 58, 0.15);
  --cta-radial-2:        rgba(212, 163, 115, 0.1);

  --footer-bg:           #0B1120;
  --footer-border:       rgba(226, 232, 240, 0.08);

  --seed-opacity:        0.7;
  --seed-line-opacity:   0.05;

  --stat-bg:             #161F33;

  --btn-secondary-bg:    #161F33;
  --btn-secondary-color: #F1F5F9;
  --btn-secondary-hover-bg: rgba(196, 30, 58, 0.1);

  --testimonial-color:   #E2E8F0;
  --quote-mark-opacity:  0.3;

  --gradient-text:       linear-gradient(135deg, var(--pomegranate-bright), var(--pomegranate-light), var(--seed-gold-light));
  --text-glow-shadow:    0 0 30px rgba(196, 30, 58, 0.4);
  --feature-icon-bg:     linear-gradient(135deg, rgba(255, 107, 122, 0.25), rgba(196, 30, 58, 0.15));
  --global-icon-color:   var(--seed-gold-light);
  --global-icon-bg:      linear-gradient(135deg, rgba(212, 163, 115, 0.3), rgba(255, 107, 122, 0.12));
  --gold-text:           var(--seed-gold-light);
  --city-dot:            var(--seed-gold-light);
  --city-dot-night:      #7C8BC0;
  --hero-img-filter:     drop-shadow(0 0 60px rgba(196, 30, 58, 0.3));
  --hero-glow-bg:        radial-gradient(circle, rgba(196, 30, 58, 0.25), transparent 70%);
  --dot-inactive:        #94A3B8;
  --error-color:         #F87171;

  --theme-icon-sun:      inline-flex;
  --theme-icon-moon:     none;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Native anchor scrolling clears the fixed navbar (replaces JS offset math) */
  scroll-padding-top: 5.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background var(--duration-base), color var(--duration-base);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

/* Kill the 300ms double-tap-zoom delay on interactive elements */
a, button, input {
  touch-action: manipulation;
}

/* ---------- Focus States (keyboard navigation) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.testimonial-dot:focus-visible {
  outline: 2px solid var(--pomegranate-core);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400; /* Calistoga is a single-weight display face */
  line-height: 1.15;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

h1, h2 {
  text-wrap: balance;
}

::selection {
  background: var(--pomegranate-core);
  color: #FFFFFF;
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-xl); }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow {
  text-shadow: var(--text-glow-shadow);
}

/* ---------- Layout (Spacious & Modern) ---------- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
  scroll-margin-top: 6rem;
}

/* Below-the-fold sections skip layout/paint until scrolled near — big
   first-render + scroll-perf win on this animation-heavy page. */
.features,
.stats,
.platforms,
.global,
.industries,
.testimonials,
.cta-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10001;
  padding: var(--space-sm) var(--space-lg);
  background: var(--pomegranate-core);
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-elevated);
  transform: translateY(calc(-100% - var(--space-xl)));
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--pomegranate-core), var(--pomegranate-glow), var(--seed-gold-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--duration-base), backdrop-filter var(--duration-base);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
}

.nav-brand svg,
.footer-brand-name svg {
  color: var(--text-accent);
  flex-shrink: 0;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-brand-rummaan {
  color: var(--text-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
  /* Without this a two-word label ("Learning Kit", "Get the Beta") breaks across
     two lines as soon as the bar tightens, so the items grow taller than the bar
     and the nav looks broken rather than merely cramped. The bar collapses to
     the drawer at <=1024px, so nowrap never causes a horizontal overflow. */
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pomegranate-core);
  transition: width var(--duration-base) var(--ease-out-expo);
  border-radius: var(--radius-full);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* Scrollspy — the section currently in view keeps its underline lit */
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  white-space: nowrap;
  padding: var(--space-sm) var(--space-lg) !important;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core)) !important;
  border-radius: var(--radius-full) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) !important;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-sm);
}

.nav-cta::after {
  display: none !important;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Theme toggle — shows the icon of the theme it will switch TO */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: color var(--duration-fast),
              background var(--duration-base),
              transform var(--duration-base) var(--ease-spring);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--btn-secondary-hover-bg);
  transform: rotate(15deg);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun  { display: var(--theme-icon-sun); }
.theme-toggle .icon-moon { display: var(--theme-icon-moon); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: var(--radius-full);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out-expo),
              opacity var(--duration-fast);
}

/* Hamburger → X morph, driven by the aria state itself */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* mobile URL bar-aware */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--hero-radial-1), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, var(--hero-radial-2), transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%, var(--hero-radial-3), transparent 50%);
  pointer-events: none;
}

#seed-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

/* Grid items default to min-width:auto, which lets a wide image/heading
   block the track from shrinking below its content size and blow out the
   layout horizontally — min-width:0 lets the track (and text) wrap/shrink
   to the actual available column width. */
.hero-content,
.hero-image {
  min-width: 0;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  outline: none; /* receives programmatic focus */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--pomegranate-bright);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 56, 79, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(232, 56, 79, 0); }
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base);
  box-shadow: var(--shadow-glow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--btn-secondary-color);
  background: var(--btn-secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base),
              background var(--duration-base),
              box-shadow var(--duration-base);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--pomegranate-core);
  background: var(--btn-secondary-hover-bg);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-image picture {
  display: block;
  width: 100%;
  min-width: 0;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-2xl);
  filter: var(--hero-img-filter);
  animation: heroFloat 6s ease-in-out infinite;
}

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

.hero-image-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--hero-glow-bg);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* ---------- Section Divider ---------- */
.section-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.section-divider svg path {
  fill: var(--divider-fill);
}

/* ---------- Features ---------- */
.features {
  background-color: var(--bg-surface);
  background-image: var(--section-tint);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4.5rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--pomegranate-core), var(--seed-gold-light));
  border-radius: var(--radius-full);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.section-label-line {
  width: 28px;
  height: 2px;
  background: var(--pomegranate-core);
  border-radius: var(--radius-full);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-top: 1rem;
  line-height: 1.75;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pomegranate-core), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(196, 30, 58, 0.45);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 25px rgba(196, 30, 58, 0.12);
  outline: none;
}

.feature-card:hover::before,
.feature-card:focus-visible::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--feature-icon-bg);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  color: var(--pomegranate-core);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-spring),
              background var(--duration-base);
}

.feature-card:hover .feature-icon,
.feature-card:focus-visible .feature-icon {
  transform: scale(1.1) rotate(-3deg);
  background: linear-gradient(135deg, rgba(255, 107, 122, 0.25), rgba(196, 30, 58, 0.15));
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Stats ---------- */
.stats {
  background-color: var(--bg-primary);
  background-image: var(--stats-tint);
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--stat-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base);
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Platforms ---------- */
.platforms {
  background: var(--bg-primary);
  text-align: center;
}

.platforms-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

.platform-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: 2.25rem 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  min-width: 160px;
}

.platform-badge:hover,
.platform-badge:focus-visible {
  transform: translateY(-6px);
  border-color: var(--pomegranate-core);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 25px rgba(196, 30, 58, 0.08);
}

.platform-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.platform-soon {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ---------- Global by Design ---------- */
.global {
  background: var(--bg-primary);
}

.global-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

.global-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.global-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--seed-gold-light), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.global-card:hover,
.global-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: var(--shadow-card), 0 0 20px rgba(212, 163, 115, 0.15);
  outline: none;
}

.global-card:hover::before,
.global-card:focus-visible::before {
  opacity: 1;
}

.global-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--global-icon-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--global-icon-color);
  flex-shrink: 0;
}

.global-card-icon svg {
  width: 28px;
  height: 28px;
}

.global-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.global-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Marquees wrapper — hosts the shared pause/play control (WCAG 2.2.2:
   auto-moving content needs an explicit user control, hover isn't enough) */
.marquees {
  position: relative;
}

.marquee-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: color var(--duration-fast),
              border-color var(--duration-base),
              transform var(--duration-base) var(--ease-spring);
}

.marquee-toggle:hover {
  color: var(--pomegranate-core);
  border-color: rgba(196, 30, 58, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.marquee-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.marquee-toggle svg {
  width: 16px;
  height: 16px;
}

.marquee-toggle .icon-play { display: none; }

.marquees.paused .marquee-track {
  animation-play-state: paused;
}

.marquees.paused .marquee-toggle .icon-play  { display: inline; }
.marquees.paused .marquee-toggle .icon-pause { display: none; }

/* Language Marquee */
.languages-marquee {
  overflow: hidden;
  padding: var(--space-lg) 0;
  position: relative;
}

.languages-marquee::before,
.languages-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.languages-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.languages-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-xl);
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-track > span {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: color var(--duration-fast);
  text-align: center;
}

/* Pause both marquees on hover so the chips are readable */
.languages-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Language chip: native greeting speaks, language name whispers */
.marquee-greeting {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.marquee-lang-name {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cities × currencies marquee — second row, opposite drift, live local time */
.marquee-cities {
  padding-top: 0;
}

.marquee-cities .marquee-track {
  animation-direction: reverse;
  animation-duration: 52s;
}

.marquee-cities .marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
}

.marquee-cities .marquee-currency {
  color: var(--gold-text);
  font-weight: 600;
}

/* Day/night pulse: gold while the city is awake, indigo while it sleeps */
.city-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--city-dot);
  flex-shrink: 0;
}

.is-night .city-dot {
  background: var(--city-dot-night);
}

.marquee-time {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Global-card soul line — the human vignette under each capability */
.global-soul {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--gold-text);
  margin-top: var(--space-md);
  line-height: 1.5;
}

/* ---------- Industries ---------- */
.industries {
  background-color: var(--bg-surface);
  background-image: var(--section-tint);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 2.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  text-align: center;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
}

.industry-card:hover,
.industry-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(196, 30, 58, 0.45);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 25px rgba(196, 30, 58, 0.12);
  outline: none;
}

.industry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--pomegranate-core);
}

.industry-icon svg {
  width: 100%;
  height: 100%;
}

.industry-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.industry-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--bg-primary);
}

.testimonials-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.testimonial-viewport {
  overflow: hidden;
  cursor: grab;
}

.testimonial-viewport.dragging {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  transition: transform var(--duration-slower) var(--ease-out-expo);
  touch-action: pan-y;
}

.testimonial-track.dragging {
  transition: none;
  user-select: none;
  -webkit-user-select: none;
}

.testimonial-slide {
  min-width: 100%;
  padding: var(--space-2xl) calc(var(--space-2xl) + var(--space-md));
  text-align: center;
}

.testimonial-quote {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-style: italic;
  color: var(--testimonial-color);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-top: 56px; /* clears the decorative quote mark above the text */
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 80px;
  color: var(--pomegranate-core);
  opacity: var(--quote-mark-opacity);
  line-height: 1;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.testimonial-attribution::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--seed-gold-light);
  border-radius: var(--radius-full);
}

/* Prev/next arrows — full 44px touch targets */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  transition: color var(--duration-fast),
              border-color var(--duration-base),
              transform var(--duration-base) var(--ease-spring);
}

.testimonial-nav:hover {
  color: var(--pomegranate-core);
  border-color: rgba(196, 30, 58, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.testimonial-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.testimonial-nav svg {
  width: 18px;
  height: 18px;
}

.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

/* Each dot is a 44px touch target with a 10px visible dot inside */
.testimonial-dot {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.testimonial-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-inactive);
  transition: background var(--duration-base), transform var(--duration-base);
}

.testimonial-dot:hover::before {
  background: var(--pomegranate-core);
}

.testimonial-dot.active::before {
  background: var(--pomegranate-core);
  transform: scale(1.3);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--cta-bg-from), var(--cta-bg-to));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 50%, var(--cta-radial-1), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, var(--cta-radial-2), transparent);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-lg);
}

.cta-content p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-secondary-row {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cta-secondary-row .btn-secondary {
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-lg);
}

.cta-note {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-column h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast);
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--text-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--footer-border);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.footer-arabic {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: calc(var(--space-lg) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  z-index: 1050;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--duration-base),
              transform var(--duration-base) var(--ease-out-expo),
              visibility var(--duration-base),
              color var(--duration-fast),
              border-color var(--duration-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--pomegranate-core);
  border-color: rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Legal / Policy Page ---------- */
.legal-main {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-4xl);
  min-height: 70vh;
  min-height: 70dvh;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--pomegranate-core);
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

.legal-container h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-sm);
}

.legal-updated {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2xl);
}

.legal-container h2 {
  font-size: var(--text-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal-container p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.75;
}

.legal-container ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-container li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.legal-container b,
.legal-container strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  padding: var(--space-xl) 0;
}

.legal-footer .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* ---------- Responsive ---------- */
/* The desktop bar needs ~1250px for the logo, six links and two pill CTAs.
   It used to collapse only at 768px, leaving a ~500px band where every label
   wrapped onto two lines. Collapse at 1024 instead, before it is cramped. */
@media (max-width: 1024px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--nav-border);
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out-expo),
                transform var(--duration-base) var(--ease-out-expo),
                visibility var(--duration-base);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .global-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .global-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image img {
    max-width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .platforms-row {
    gap: var(--space-md);
  }

  .platform-badge {
    min-width: 100px;
    padding: var(--space-md) var(--space-lg);
  }

  .testimonial-slide {
    padding: var(--space-2xl) var(--space-2xl);
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Demos Showcase Section
   Map demo-section tokens to the pomegranate design system so cards render
   correctly instead of falling back to browser defaults.
   ========================================================================== */
.demos-section {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.demo-preview-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  position: relative;
  overflow: hidden;
}

.demo-preview-card:hover {
  transform: translateY(-6px);
  border-color: var(--pomegranate-core);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 25px rgba(196, 30, 58, 0.1);
}

.demo-preview-card.featured-demo {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
  border-color: rgba(2, 132, 199, 0.3);
}

.demo-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-accent);
  margin-bottom: var(--space-sm);
}

.demo-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.demo-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.demo-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.demo-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color var(--duration-fast);
}

.demo-preview-card:hover .demo-card-link {
  color: var(--pomegranate-bright);
}

.demos-hub-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ==========================================================================
   DOWNLOADS PAGE (downloads.html)
   --------------------------------------------------------------------------
   Token-driven like the rest of the sheet: every colour resolves through the
   :root / [data-theme="dark"] variables above, so the page themes itself with
   no dark-mode-specific rules of its own.
   ========================================================================== */

/* Hero — the MShop app icon, not the pomegranate brand mark. This is the
   artwork users will look for on their home screen, so it is the thing to
   show on the page that installs it. */
.dl-hero {
  text-align: center;
  padding: 3rem 0 1rem;
}

.dl-app-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: var(--shadow-elevated);
  /* margin-inline, not text-align: the global `img { display: block }` rule
     above takes images out of the inline flow, so the parent's text-align
     cannot centre them. */
  margin: 0 auto 1.25rem;
}

.dl-version {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pomegranate-core);
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}

/* Grid of platform cards. auto-fit + minmax so it reflows from 3-up to 1-up
   without width media queries. */
.dl-grid {
  display: grid;
  /* Capped at 3 columns rather than auto-fitting to the container: with five
     cards a 4-wide container leaves a lone orphan on the second row. 3+2 is
     the balanced arrangement, and it still collapses to 2 and 1 on narrower
     screens. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 960px;
  margin: 2.5rem auto;
  gap: 1.25rem;
}

.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  scroll-margin-top: 100px;
}

.dl-card:target {
  border-color: var(--pomegranate-core);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.3), var(--shadow-elevated);
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--pomegranate-light);
}

/* A card for a platform we cannot ship yet must not look clickable. */
.dl-card.is-soon,
.dl-card.is-soon:hover {
  opacity: 0.62;
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--card-border);
  border-style: dashed;
}

.dl-card-icon {
  color: var(--pomegranate-core);
  margin-bottom: 0.9rem;
}

.dl-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
}

.dl-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Pushes the button to the bottom so buttons align across cards of
   differing text length. */
.dl-card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.dl-card-actions .btn-primary,
.dl-card-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  /* Keep two-word labels ("Download DMG") on one line -- wrapping made that
     one card taller than its siblings and broke the row's baseline. */
  white-space: nowrap;
}

.dl-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Per-platform install notes. macOS in particular NEEDS this: an unsigned,
   un-notarized .app is blocked by Gatekeeper with a message that reads like
   the download is corrupt, and users give up rather than right-click->Open. */
.dl-notes {
  margin: 2.5rem 0 1rem;
}

.dl-note {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--pomegranate-core);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.dl-note h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dl-note p,
.dl-note li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0.3rem 0;
}

.dl-note ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.dl-note code {
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
}


/* ==========================================================================
   NEW SECTIONS — Company / Product Restructure (September 2026)
   --------------------------------------------------------------------------
   Rummaan LLP (Company) → MShop (Product) clear separation.
   All colours resolve through the existing :root / [data-theme="dark"]
   design tokens above.
   ========================================================================== */

/* ---------- About Rummaan Section ---------- */
.about-rummaan {
  background-color: var(--bg-surface);
  background-image: var(--section-tint);
  content-visibility: auto;
  contain-intrinsic-size: auto 650px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.about-value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.about-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--seed-gold-light), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.about-value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 20px rgba(212, 163, 115, 0.12);
}

.about-value-card:hover::before {
  opacity: 1;
}

.about-value-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--global-icon-bg);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  color: var(--seed-gold);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-spring);
}

.about-value-card:hover .about-value-icon {
  transform: scale(1.1) rotate(-3deg);
}

.about-value-icon svg {
  width: 30px;
  height: 30px;
}

.about-value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.about-value-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ---------- Product Intro Section ---------- */
.product-intro {
  background: var(--bg-primary);
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.product-intro-content {
  max-width: 760px;
  margin: 0 auto;
}

.product-intro-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-elevated);
  margin: 0 auto 1.5rem;
  animation: heroFloat 6s ease-in-out infinite;
}

.product-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.product-intro h2 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  margin-bottom: var(--space-md);
}

.product-intro-tagline {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.product-intro-desc {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}


/* ---------- Technology Bento Grid ---------- */
.technology {
  background-color: var(--bg-surface);
  background-image: var(--section-tint);
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.tech-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* First card spans two columns */
.tech-card-lg {
  grid-column: span 2;
}

.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--tech-border, var(--card-border));
  border-radius: var(--radius-2xl);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tech-accent, transparent);
  border-radius: var(--radius-2xl);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 25px var(--tech-accent, rgba(196, 30, 58, 0.1));
}

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

.tech-card-icon {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.tech-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--pomegranate-core);
  opacity: 0.7;
  transition: transform var(--duration-base) var(--ease-spring);
}

.tech-card:hover .tech-card-icon svg {
  transform: scale(1.1);
  opacity: 1;
}

.tech-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}


/* ---------- Personas Section (Apex / Horizon) ---------- */
.personas {
  background: var(--bg-primary);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.persona-card {
  position: relative;
  padding: 2.5rem 2.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  overflow: hidden;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  transition: opacity var(--duration-base);
}

.persona-apex::before {
  background: linear-gradient(90deg, var(--pomegranate-core), var(--pomegranate-glow));
}

.persona-horizon::before {
  background: linear-gradient(90deg, #0284c7, #06b6d4);
}

.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

.persona-apex:hover {
  border-color: rgba(196, 30, 58, 0.35);
}

.persona-horizon:hover {
  border-color: rgba(2, 132, 199, 0.35);
}

.persona-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.persona-badge-apex {
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
}

.persona-badge-horizon {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.persona-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.persona-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.persona-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.persona-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.persona-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.persona-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.persona-apex .persona-features li svg {
  color: var(--pomegranate-core);
}

.persona-horizon .persona-features li svg {
  color: #0284c7;
}


/* ---------- Responsive: New Sections ---------- */
@media (max-width: 1024px) {
  .tech-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-card-lg {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .tech-bento-grid {
    grid-template-columns: 1fr;
  }

  .tech-card-lg {
    grid-column: span 1;
  }

  .personas-grid {
    grid-template-columns: 1fr;
  }

  .product-intro-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
}

/* ---------- Rummaan Company Page: MShop Spotlight Card Link ---------- */
.product-spotlight-section {
  position: relative;
  padding: 6rem 0 8rem;
  background: var(--bg-surface);
  background-image: var(--section-tint);
  overflow: hidden;
}

.product-spotlight-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 56, 79, 0.12), rgba(212, 163, 115, 0.08), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.product-spotlight-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), 0 0 60px rgba(232, 56, 79, 0.08);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(232, 56, 79, 0.6), rgba(212, 163, 115, 0.4), rgba(56, 189, 248, 0.2), transparent 70%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-spotlight-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 56, 79, 0.4);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15), 0 0 80px rgba(232, 56, 79, 0.18);
}

.product-spotlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.product-spotlight-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-spotlight-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(232, 56, 79, 0.25);
  animation: heroFloat 6s ease-in-out infinite;
  transition: transform var(--duration-base) var(--ease-spring);
}

.product-spotlight-card:hover .product-spotlight-logo {
  transform: scale(1.06) rotate(-2deg);
}

.product-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(232, 56, 79, 0.1);
  border: 1px solid rgba(232, 56, 79, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pomegranate-core);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-spotlight-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pomegranate-core);
  box-shadow: 0 0 10px var(--pomegranate-core);
  animation: pulseDot 2s infinite;
}

.product-spotlight-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.product-spotlight-tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.product-spotlight-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-spotlight-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--duration-fast);
}

.spotlight-pill svg {
  width: 15px;
  height: 15px;
  color: var(--pomegranate-core);
}

.spotlight-pill:hover {
  border-color: rgba(232, 56, 79, 0.4);
  background: rgba(232, 56, 79, 0.08);
  transform: translateY(-2px);
}

.product-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-spotlight-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(232, 56, 79, 0.35);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base);
}

.btn-spotlight-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(232, 56, 79, 0.5);
}

.btn-spotlight-primary svg {
  transition: transform var(--duration-fast) ease-out;
}

.btn-spotlight-primary:hover svg {
  transform: translateX(4px);
}

.btn-spotlight-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.8rem;
  background: var(--btn-secondary-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
}

.btn-spotlight-secondary:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: rgba(212, 163, 115, 0.4);
  color: var(--seed-gold);
  transform: translateY(-2px);
}

/* Right teaser column: mini bento highlights */
.spotlight-teaser-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spotlight-teaser-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-base);
  text-decoration: none;
}

.spotlight-teaser-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(232, 56, 79, 0.35);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.spotlight-teaser-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--feature-icon-bg);
  color: var(--pomegranate-core);
}

.spotlight-teaser-icon svg {
  width: 22px;
  height: 22px;
}

.spotlight-teaser-info {
  flex: 1;
}

.spotlight-teaser-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-teaser-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.spotlight-teaser-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, rgba(232, 56, 79, 0.08), rgba(212, 163, 115, 0.08));
  border: 1px dashed rgba(232, 56, 79, 0.3);
  border-radius: var(--radius-xl);
  color: var(--pomegranate-core);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration-fast);
  text-decoration: none;
}

.spotlight-teaser-link:hover {
  background: linear-gradient(135deg, rgba(232, 56, 79, 0.15), rgba(212, 163, 115, 0.12));
  border-color: var(--pomegranate-core);
  transform: translateX(4px);
}

/* Nav back company button in mshop.html */
.nav-back-company {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.nav-back-company:hover {
  color: var(--text-primary);
  border-color: var(--pomegranate-core);
  background: rgba(232, 56, 79, 0.08);
}

.nav-brand-sub {
  font-size: 0.68rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .product-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-spotlight-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .product-spotlight-card {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
  .product-spotlight-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .product-spotlight-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-spotlight-primary,
  .btn-spotlight-secondary {
    justify-content: center;
  }
}

/* ==========================================================================
   Advanced Interactive Polish & Micro-interactions
   ========================================================================== */

/* Dynamic Spotlight Cursor Glow */
.product-spotlight-card,
.tech-card,
.persona-card,
.demo-preview-card,
.about-value-card {
  --mouse-x: -500px;
  --mouse-y: -500px;
}

.product-spotlight-card::after,
.tech-card::after,
.demo-preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(232, 56, 79, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-spotlight-card:hover::after,
.tech-card:hover::after,
.demo-preview-card:hover::after {
  opacity: 1;
}

/* Company Philosophy Banner (index.html) */
.company-philosophy {
  margin: 3.5rem auto 0;
  max-width: 860px;
  padding: 2.25rem 2.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--pomegranate-core);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.company-philosophy blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.company-philosophy cite {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-accent);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* System Live Telemetry Pill */
.system-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.telemetry-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.8s infinite;
}

/* Interactive Spotlight Capability Tabs (index.html) */
.spotlight-tabs-container {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.spotlight-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spotlight-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.spotlight-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(232, 56, 79, 0.4);
  background: rgba(232, 56, 79, 0.06);
}

.spotlight-tab-btn.active {
  background: linear-gradient(135deg, rgba(232, 56, 79, 0.18), rgba(212, 163, 115, 0.12));
  border-color: var(--pomegranate-core);
  color: var(--pomegranate-core);
  box-shadow: 0 2px 10px rgba(232, 56, 79, 0.15);
}

.spotlight-tab-btn svg {
  width: 14px;
  height: 14px;
}

.spotlight-preview-panel {
  padding: 1.2rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  transition: all var(--duration-base);
}

.spotlight-preview-panel strong {
  color: var(--text-primary);
}

.spotlight-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

:root[data-theme="light"] .spotlight-telemetry-bar {
  background: rgba(0, 0, 0, 0.03);
}

.spotlight-telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* ==========================================================================
   Bento Grid Interactive Visual Mockups (mshop.html)
   ========================================================================== */
.bento-mockup {
  margin-top: 1.5rem;
  padding: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* 1. OmniCommerce Pipeline */
.bento-pipeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pipeline-node {
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
}

.pipeline-arrow {
  color: var(--pomegranate-core);
  font-weight: 700;
}

.pipeline-result {
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, rgba(232, 56, 79, 0.15), rgba(212, 163, 115, 0.12));
  border: 1px solid rgba(232, 56, 79, 0.35);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--pomegranate-core);
}

/* 2. TrueStock Movement Badge */
.bento-stock-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.stock-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stock-badge-fefo {
  padding: 0.2rem 0.55rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-weight: 700;
  font-size: 0.7rem;
}

.stock-trace-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* 3. PulseSync Cascade */
.bento-pulse-cascade {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cascade-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.cascade-bar {
  flex: 1;
  margin: 0 0.75rem;
  height: 4px;
  background: rgba(232, 56, 79, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.cascade-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: var(--pomegranate-core);
  border-radius: 2px;
  animation: pulseBar 2s infinite ease-in-out;
}

@keyframes pulseBar {
  0% { left: -50%; width: 30%; }
  50% { width: 60%; }
  100% { left: 120%; width: 30%; }
}

.cascade-latency {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: #22c55e;
  font-size: 0.72rem;
}

/* 4. IronLedger T-Account */
.bento-ledger-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.ledger-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.ledger-dr {
  color: #38bdf8;
}

.ledger-cr {
  color: #eab308;
}

.ledger-status {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #22c55e;
  font-weight: 600;
}

/* 5. OmniLingual Interactive Language Switcher */
.bento-lang-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lang-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-chip-btn {
  padding: 0.25rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.lang-chip-btn:hover {
  color: var(--text-primary);
  border-color: #06b6d4;
}

.lang-chip-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #06b6d4;
}

.lang-preview-output {
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-direction-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border-radius: 4px;
}

/* 6. AdaptiveCanvas Universal Devices */
.bento-canvas-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.canvas-device-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  flex: 1;
  text-align: center;
}

.canvas-device-badge svg {
  width: 18px;
  height: 18px;
  color: #a855f7;
}

/* ==========================================================================
   Persona Switcher Filter Tabs (mshop.html)
   ========================================================================== */
.persona-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.persona-toggle-btn {
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-base);
}

.persona-toggle-btn:hover {
  color: var(--text-primary);
  border-color: rgba(232, 56, 79, 0.3);
}

.persona-toggle-btn.active {
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(232, 56, 79, 0.3);
}

.persona-card.is-persona-hidden {
  display: none !important;
}

/* ==========================================================================
   Demo Filter Tabs (mshop.html)
   ========================================================================== */
.demo-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.demo-filter-pill {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.demo-filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(232, 56, 79, 0.4);
}

.demo-filter-pill.active {
  background: var(--btn-primary-bg);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(232, 56, 79, 0.25);
}

.demo-preview-card.is-filtered-out {
  display: none !important;
}

/* Hero Architecture Ribbon */
.hero-architecture-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.85rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-architecture-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.hero-architecture-item strong {
  color: var(--text-primary);
}

.hero-architecture-divider {
  opacity: 0.3;
}

/* ==========================================================================
   Smooth Filter Animations & Micro-Transitions
   ========================================================================== */
@keyframes filterFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.spotlight-preview-panel {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#lang-preview-text,
#lang-direction-tag {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tactile Active States on Buttons */
.spotlight-tab-btn:active,
.lang-chip-btn:active,
.persona-toggle-btn:active,
.demo-filter-pill:active,
.btn-spotlight-primary:active,
.btn-spotlight-secondary:active,
.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.975);
}

/* WCAG 2.2 AA Focus Visibility */
.spotlight-tab-btn:focus-visible,
.lang-chip-btn:focus-visible,
.persona-toggle-btn:focus-visible,
.demo-filter-pill:focus-visible,
.nav-back-company:focus-visible,
.btn-spotlight-primary:focus-visible,
.btn-spotlight-secondary:focus-visible {
  outline: 2px solid var(--pomegranate-core);
  outline-offset: 3px;
}

/* Responsive Refinements */
@media (max-width: 768px) {
  .hero-architecture-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
  .hero-architecture-divider {
    display: none;
  }
  .demo-filter-bar {
    gap: 0.4rem;
  }
  .demo-filter-pill {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Command Palette (⌘K / Ctrl+K)
   ========================================================================== */
.cmd-k-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cmd-k-trigger svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.cmd-k-trigger:hover {
  color: var(--text-primary);
  border-color: var(--pomegranate-core);
  background: rgba(232, 56, 79, 0.08);
}

.cmd-k-trigger:hover svg {
  color: var(--pomegranate-core);
}

.cmd-k-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 900px) {
  .cmd-k-label,
  .cmd-k-kbd {
    display: none;
  }
  .cmd-k-trigger {
    padding: 0.45rem;
  }
}

/* Command Palette Modal Backdrop */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 8, 16, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.cmd-palette-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cmd-palette-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 56, 79, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.active .cmd-palette-dialog {
  transform: translateY(0) scale(1);
}

.cmd-palette-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.cmd-search-icon {
  width: 20px;
  height: 20px;
  color: var(--pomegranate-core);
  flex-shrink: 0;
}

.cmd-palette-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}

.cmd-palette-search input::placeholder {
  color: var(--text-muted);
}

.cmd-esc-kbd {
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
}

.cmd-palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  scroll-behavior: smooth;
}

.cmd-category-header {
  padding: 0.5rem 0.75rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-primary);
  text-decoration: none;
}

.cmd-item:hover,
.cmd-item.active {
  background: rgba(232, 56, 79, 0.12);
  color: var(--pomegranate-glow);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cmd-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.cmd-item-text {
  min-width: 0;
}

.cmd-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-item.active .cmd-item-desc {
  color: var(--text-secondary);
}

.cmd-item-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cmd-footer-hint span {
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Bento Simulators (mshop.html)
   ========================================================================== */
.bento-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.bento-subtab {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.bento-subtab:hover {
  color: var(--text-primary);
  border-color: rgba(232, 56, 79, 0.4);
}

.bento-subtab.active {
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(232, 56, 79, 0.3);
}

.bento-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--duration-fast);
  box-shadow: 0 3px 12px rgba(232, 56, 79, 0.25);
}

.bento-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.bento-action-btn:active {
  transform: scale(0.98);
}

.bento-action-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.4rem;
  display: block;
  text-align: center;
}

.bento-action-link:hover {
  color: var(--text-primary);
}

/* FEFO Simulator */
.fefo-batch-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.fefo-batch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.fefo-batch-row.is-priority {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.fefo-batch-row.is-depleted {
  opacity: 0.45;
  text-decoration: line-through;
  border-color: transparent;
}

.fefo-toast {
  margin-top: 0.6rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.2s ease;
}

/* PulseSync Live Beam */
.cascade-step.pulse-beam-active {
  background: rgba(232, 56, 79, 0.18);
  border-color: var(--pomegranate-core);
  box-shadow: 0 0 15px rgba(232, 56, 79, 0.35);
  transform: scale(1.02);
}

.pulse-revenue-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.78rem;
  margin-top: 0.6rem;
}

.pulse-rev-val {
  font-weight: 700;
  color: #22c55e;
  font-family: monospace;
  font-size: 0.9rem;
}

/* IronLedger Multi-Entry */
.ledger-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ledger-variance-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* AdaptiveCanvas Mini Wireframe */
.adaptive-viewport-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.adaptive-mini-frame {
  width: 100%;
  max-width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.65rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-grid {
  display: grid;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.mini-grid.layout-mobile {
  grid-template-columns: 1fr;
}

.mini-grid.layout-tablet {
  grid-template-columns: 1fr 1fr;
}

.mini-grid.layout-desktop {
  grid-template-columns: 0.8fr 1.6fr 1fr;
}

.mini-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--glass-border);
  border-radius: 6px;
  padding: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Architecture Stack Explorer (index.html)
   ========================================================================== */
.arch-stack-section {
  padding: 6rem 0;
  position: relative;
}

.arch-stack-container {
  max-width: 960px;
  margin: 0 auto;
}

.arch-stack-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.arch-tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.arch-tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--tier-accent, var(--pomegranate-core));
  opacity: 0.6;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.arch-tier-card:hover {
  border-color: var(--tier-accent, var(--pomegranate-core));
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.03);
}

.arch-tier-card:hover::before {
  width: 8px;
  opacity: 1;
}

.arch-tier-card.active {
  border-color: var(--tier-accent, var(--pomegranate-core));
  background: rgba(232, 56, 79, 0.06);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.arch-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.arch-tier-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.arch-tier-number {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--tier-accent, var(--pomegranate-core));
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.arch-tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-tier-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--tier-accent, var(--pomegranate-core));
}

.arch-tier-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.arch-tier-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.arch-spec-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}


/* ==========================================================================
   PREMIUM ENHANCEMENTS — Phase 3
   Page entrance, cursor trail, magnetic hover, social proof, guided tour,
   micro-interaction polish for Apple/Stripe-tier experience.
   ========================================================================== */

/* ---------- Page Entrance Curtain ---------- */
@keyframes pageEntranceFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pageEntranceSlide {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageEntranceFade 0.6s var(--ease-out-expo) both;
}

.hero-content > * {
  animation: pageEntranceSlide 0.8s var(--ease-out-expo) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5) { animation-delay: 0.55s; }

.hero-image {
  animation: pageEntranceSlide 1s var(--ease-out-expo) both;
  animation-delay: 0.3s;
}

/* ---------- Cursor Trail / Glow ---------- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor-glow.active {
  opacity: 1;
}

[data-theme="dark"] .cursor-glow,
:root:not([data-theme="light"]) .cursor-glow {
  background: radial-gradient(circle, rgba(232, 56, 79, 0.08) 0%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cursor-glow {
    background: radial-gradient(circle, rgba(232, 56, 79, 0.08) 0%, transparent 70%);
  }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- Magnetic Hover Card Effect ---------- */
.magnetic-card {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  will-change: transform;
}

.magnetic-card:hover {
  box-shadow: var(--shadow-elevated), var(--shadow-glow-sm);
}

/* ---------- Enhanced Reveal Stagger ---------- */
@keyframes revealStagger {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.reveal.revealed {
  animation: revealStagger 0.7s var(--ease-out-expo) both;
}

.reveal.revealed.reveal-delay-1 { animation-delay: 0.08s; }
.reveal.revealed.reveal-delay-2 { animation-delay: 0.16s; }
.reveal.revealed.reveal-delay-3 { animation-delay: 0.24s; }
.reveal.revealed.reveal-delay-4 { animation-delay: 0.32s; }
.reveal.revealed.reveal-delay-5 { animation-delay: 0.40s; }
.reveal.revealed.reveal-delay-6 { animation-delay: 0.48s; }

/* ---------- Parallax Hero Image ---------- */
.hero-image {
  transition: transform 0.1s linear;
}

.hero-image.parallax-active {
  will-change: transform;
}

/* ---------- Section Progress Indicators ---------- */
.section-progress-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.section-progress-dots.visible {
  opacity: 1;
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-inactive);
  opacity: 0.35;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  padding: 0;
}

.section-dot:hover {
  opacity: 0.7;
  transform: scale(1.3);
}

.section-dot.active {
  opacity: 1;
  background: var(--pomegranate-core);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(196, 30, 58, 0.4);
}

.section-dot[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.section-dot:hover::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .section-progress-dots { display: none; }
}

/* ---------- Social Proof & Testimonials Section ---------- */
.social-proof-section {
  background: var(--section-tint), var(--bg-primary);
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.trust-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.65;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.trust-badge:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.trust-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.trust-badge-icon svg {
  width: 28px;
  height: 28px;
  color: var(--pomegranate-core);
}

.trust-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s var(--ease-out-expo);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 1.25rem;
  font-size: 5rem;
  font-family: var(--font-heading);
  line-height: 1;
  opacity: var(--quote-mark-opacity);
  color: var(--pomegranate-core);
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--testimonial-color);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pomegranate-light), var(--pomegranate-core));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-meta {
  text-align: left;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Carousel Navigation */
.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.testimonial-dots-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-inactive);
  opacity: 0.4;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  width: 24px;
  border-radius: 4px;
  opacity: 1;
  background: var(--pomegranate-core);
}

.testimonial-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.testimonial-arrow:hover {
  border-color: var(--pomegranate-core);
  color: var(--pomegranate-core);
  transform: scale(1.1);
}

.testimonial-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Guided Product Tour ---------- */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tour-spotlight {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  transition: all 0.5s var(--ease-out-expo);
  z-index: 10001;
  pointer-events: none;
}

.tour-tooltip {
  position: absolute;
  z-index: 10002;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.tour-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tour-step-number {
  background: var(--pomegranate-core);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tour-tooltip h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.tour-tooltip p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tour-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tour-btn-primary {
  background: var(--pomegranate-core);
  color: white;
}

.tour-btn-primary:hover {
  background: var(--pomegranate-bright);
  transform: translateY(-1px);
}

.tour-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.tour-btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.tour-btn-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.tour-btn-skip:hover {
  color: var(--text-primary);
}

.tour-progress-bar {
  display: flex;
  gap: 4px;
}

.tour-progress-segment {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--glass-border);
  transition: background 0.3s ease;
}

.tour-progress-segment.completed {
  background: var(--pomegranate-core);
}

.tour-progress-segment.current {
  background: var(--pomegranate-light);
}

/* Tour Start Button */
.tour-start-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pomegranate-core);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  transition: all 0.3s var(--ease-out-expo);
  animation: tourPulse 2s ease-in-out infinite;
}

.tour-start-btn:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-elevated), var(--shadow-glow-lg);
}

.tour-start-btn svg {
  width: 22px;
  height: 22px;
}

.tour-start-btn .tour-tooltip-hint {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tour-start-btn:hover .tour-tooltip-hint {
  opacity: 1;
}

@keyframes tourPulse {
  0%, 100% { box-shadow: var(--shadow-elevated), 0 0 0 0 rgba(196, 30, 58, 0.4); }
  50%      { box-shadow: var(--shadow-elevated), 0 0 0 12px rgba(196, 30, 58, 0); }
}

.tour-start-btn.tour-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* ---------- Loading Skeleton ---------- */
@keyframes skeletonShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.skeleton-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: pageEntranceSlide 0.6s var(--ease-out-expo) both;
}

.skeleton-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--card-border) 25%, rgba(196, 30, 58, 0.08) 50%, var(--card-border) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--card-border) 25%, rgba(196, 30, 58, 0.06) 50%, var(--card-border) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-line:nth-child(1) { width: 120px; animation-delay: 0.1s; }
.skeleton-line:nth-child(2) { width: 80px; animation-delay: 0.2s; }

.skeleton-dots {
  display: flex;
  gap: 6px;
  animation: pageEntranceSlide 0.6s var(--ease-out-expo) 0.2s both;
}

.skeleton-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pomegranate-core);
  animation: skeletonDotPulse 1.4s ease-in-out infinite;
}
.skeleton-dots span:nth-child(2) { animation-delay: 0.15s; }
.skeleton-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes skeletonDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1.2); }
}

/* ---------- Smooth Section Transitions ---------- */
.section {
  transition: opacity 0.3s ease;
}

/* ---------- Interactive Hover: Feature Cards Float ---------- */
.feature-card,
.global-card,
.industry-card,
.persona-card,
.demo-preview-card,
.platform-badge {
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover,
.global-card:hover,
.industry-card:hover {
  transform: translateY(-6px) scale(1.015);
}

.persona-card:hover {
  transform: translateY(-4px);
}

.demo-preview-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* ---------- Floating Action Hint ---------- */
@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-actions .btn-primary {
  animation: floatHint 3s ease-in-out infinite;
  animation-delay: 2s;
}

/* Disable heavy animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  body,
  .hero-content > *,
  .hero-image,
  .reveal.revealed,
  .hero-actions .btn-primary,
  .tour-start-btn {
    animation: none !important;
  }
  .cursor-glow { display: none; }
  .tour-tooltip,
  .tour-overlay {
    transition: none !important;
  }
}


/* ==========================================================================
   WORLD-CLASS ENHANCEMENTS — Phase 1 & 2
   Added 2026-09 to bring the site to Stripe/Linear/Vercel tier.
   ========================================================================== */

/* ---------- Animated Gradient Shimmer on Hero Text ---------- */
@keyframes textShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero h1 .text-gradient {
  background: linear-gradient(
    90deg,
    var(--pomegranate-core) 0%,
    var(--pomegranate-glow) 25%,
    var(--seed-gold-light) 50%,
    var(--pomegranate-glow) 75%,
    var(--pomegranate-core) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s linear infinite;
}

/* ---------- Hero Entrance Stagger ---------- */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-content > * {
  opacity: 0;
  animation: heroSlideUp 0.8s var(--ease-out-expo) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }
.hero-content > *:nth-child(5) { animation-delay: 0.75s; }
.hero-content > *:nth-child(6) { animation-delay: 0.9s; }
.hero-content > *:nth-child(7) { animation-delay: 1.05s; }

/* ---------- Enhanced Hero Pomegranate Glow ---------- */
@keyframes pomGlowOrbit {
  0%   { box-shadow: 0 0 60px rgba(196, 30, 58, 0.2), 0 0 120px rgba(196, 30, 58, 0.1); }
  33%  { box-shadow: 0 0 80px rgba(232, 56, 79, 0.25), 0 0 160px rgba(212, 163, 115, 0.08); }
  66%  { box-shadow: 0 0 60px rgba(155, 27, 48, 0.2), 0 0 120px rgba(196, 30, 58, 0.1); }
  100% { box-shadow: 0 0 60px rgba(196, 30, 58, 0.2), 0 0 120px rgba(196, 30, 58, 0.1); }
}

.hero-image img {
  animation: heroFloat 6s ease-in-out infinite, pomGlowOrbit 8s ease-in-out infinite;
  border-radius: 50%;
}

/* ---------- Scroll Down Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s 2s var(--ease-out-expo) forwards;
}

.scroll-indicator-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  opacity: 0.6;
}

.scroll-indicator-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--pomegranate-core);
  border-radius: var(--radius-full);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%  { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Animated Gradient Border on Tech Cards ---------- */
@keyframes borderGlow {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.tech-card {
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 40%,
    var(--tech-border) 50%,
    transparent 60%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tech-card:hover::before {
  opacity: 1;
  animation: borderGlow 3s linear infinite;
}

/* ---------- Enhanced Button Hover: Glow Ring ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core), var(--seed-gold-light));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(12px);
}

.btn-primary:hover::before {
  opacity: 0.6;
}

/* Button press spring */
.btn-primary:active {
  transform: translateY(0) scale(0.97) !important;
  transition-duration: 0.1s;
}

.btn-secondary:active {
  transform: translateY(0) scale(0.97) !important;
  transition-duration: 0.1s;
}

/* ---------- Social Proof Ribbon ---------- */
.social-proof-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-3xl);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  opacity: 0;
  animation: heroSlideUp 0.8s 1.2s var(--ease-out-expo) forwards;
}

.social-proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 100px;
}

.social-proof-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-proof-stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-proof-divider {
  width: 1px;
  height: 36px;
  background: var(--card-border);
}

/* ---------- How It Works Section ---------- */
.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  position: relative;
}

/* Connecting line between steps */
.how-it-works-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--pomegranate-core), var(--seed-gold-light), var(--pomegranate-core));
  opacity: 0.35;
  z-index: 0;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--pomegranate-core), var(--pomegranate-glow));
  box-shadow: var(--shadow-glow-sm);
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Pulse ring on step numbers */
.how-step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--pomegranate-core);
  opacity: 0.3;
  animation: stepPulseRing 2.5s ease-in-out infinite;
}

.how-step:nth-child(2) .how-step-number::after { animation-delay: 0.4s; }
.how-step:nth-child(3) .how-step-number::after { animation-delay: 0.8s; }

@keyframes stepPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.2); opacity: 0; }
}

.how-step-icon {
  width: 48px;
  height: 48px;
  color: var(--pomegranate-core);
  margin-bottom: var(--space-md);
}

.how-step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.how-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.6;
}

/* ---------- Newsletter CTA Section ---------- */
.newsletter-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-inner h3 {
  font-size: var(--text-3xl);
}

.newsletter-inner p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  width: 100%;
  max-width: 460px;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.newsletter-input:focus {
  border-color: var(--pomegranate-core);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-btn {
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base);
  box-shadow: var(--shadow-glow-sm);
}

.newsletter-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

.newsletter-btn:active {
  transform: translateY(0) scale(0.97);
}

.newsletter-privacy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Social Links in Footer ---------- */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: color var(--duration-fast),
              background var(--duration-base),
              transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base);
}

.footer-social a:hover {
  color: var(--text-accent);
  border-color: var(--pomegranate-core);
  background: rgba(196, 30, 58, 0.08);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

/* ---------- Enhanced Reveal Animations ---------- */
@keyframes revealBlurUp {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes revealScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.reveal.revealed {
  animation: revealBlurUp 0.7s var(--ease-out-expo) forwards;
}

.stat-item.reveal.revealed {
  animation: revealScaleUp 0.6s var(--ease-out-expo) forwards;
}

/* Deeper stagger for grid items */
.reveal-delay-1.revealed { animation-delay: 0.05s; }
.reveal-delay-2.revealed { animation-delay: 0.12s; }
.reveal-delay-3.revealed { animation-delay: 0.19s; }
.reveal-delay-4.revealed { animation-delay: 0.26s; }
.reveal-delay-5.revealed { animation-delay: 0.33s; }
.reveal-delay-6.revealed { animation-delay: 0.40s; }

/* ---------- Animated Architecture Ribbon on Hero ---------- */
.hero-architecture-ribbon {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  animation: heroSlideUp 0.8s 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

.hero-architecture-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.hero-architecture-divider {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ---------- System Telemetry Badge ---------- */
.system-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.03em;
}

.telemetry-pulse-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: telemetryPulse 2s ease-in-out infinite;
}

@keyframes telemetryPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ---------- Glassmorphic Card Enhancement ---------- */
.about-value-card,
.feature-card,
.global-card,
.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.about-value-card::after,
.feature-card::after,
.global-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-value-card:hover::after,
.feature-card:hover::after,
.global-card:hover::after {
  opacity: 1;
}

/* ---------- Responsive: How It Works ---------- */
@media (max-width: 768px) {
  .how-it-works-steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .how-it-works-steps::before {
    display: none;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .social-proof-ribbon {
    gap: var(--space-md);
  }

  .social-proof-divider {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .social-proof-stat {
    min-width: 70px;
  }

  .social-proof-stat-number {
    font-size: var(--text-xl);
  }
}

/* ==========================================================================
   WORLD-CLASS ENHANCEMENTS — Phase 3 & 4
   Cross-document view transitions, content-visibility, dynamic rotator,
   and interactive Glassmorphic OS Console Window.
   ========================================================================== */

/* ---------- Native Cross-Document View Transitions ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: pageFadeOut 0.22s var(--ease-out-expo) forwards;
}

::view-transition-new(root) {
  animation: pageFadeIn 0.28s var(--ease-out-expo) forwards;
}

@keyframes pageFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.995); }
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(1.005); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- Performance: Content-Visibility Optimization ---------- */
.about-values-section,
.arch-stack-section,
#how-it-works,
.product-spotlight-section,
.philosophy-section,
.technology,
.personas,
.features,
.social-proof-section,
.platforms,
.global,
.industries,
.demos-section,
.cta-section,
.newsletter-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* ---------- Dynamic Hero Word Rotator ---------- */
.hero-rotating-word {
  display: inline-block;
  color: var(--text-accent);
  font-weight: 600;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
  border-bottom: 2px solid rgba(196, 30, 58, 0.4);
  padding-bottom: 1px;
}

.hero-rotating-word.flip-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

.hero-rotating-word.flip-in {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
}

/* ---------- Interactive Glassmorphic OS Console Window ---------- */
.app-console-section {
  position: relative;
  z-index: 2;
}

.app-window-frame {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--card-border);
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
  transition: box-shadow var(--duration-base);
}

.app-window-frame:hover {
  box-shadow: 0 32px 80px -16px rgba(196, 30, 58, 0.16), 0 0 0 1px rgba(196, 30, 58, 0.25);
}

.app-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--card-border);
  gap: var(--space-md);
  flex-wrap: wrap;
}

[data-theme="dark"] .app-window-titlebar {
  background: rgba(255, 255, 255, 0.03);
}

.app-window-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.app-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close { background: #ff5f56; border: 1px solid #e0443e; }
.dot-minimize { background: #ffbd2e; border: 1px solid #dea123; }
.dot-maximize { background: #27c93f; border: 1px solid #1aab29; }

.app-window-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.app-window-address svg {
  color: #22c55e;
}

.app-window-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #22c55e;
}

/* OS Window Tabs */
.app-window-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.app-window-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast);
}

.app-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .app-tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.app-tab-btn.active {
  color: var(--pomegranate-core);
  border-bottom-color: var(--pomegranate-core);
  background: var(--card-bg);
}

.app-window-body {
  padding: var(--space-xl);
}

.app-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.app-tab-panel.active {
  display: block;
}

/* Simulator Grid: Tab 1 POS */
.pos-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
}

.pos-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pos-catalog-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--space-md);
}

.pos-item-card {
  padding: var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--duration-fast), border-color var(--duration-fast);
}

.pos-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--pomegranate-core);
}

.pos-item-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pomegranate-core);
  margin-bottom: 0.25rem;
}

.pos-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.pos-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
}

.pos-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.pos-add-btn {
  padding: 0.3rem 0.75rem;
  background: var(--pomegranate-core);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.pos-add-btn:hover {
  background: var(--pomegranate-glow);
  transform: scale(1.05);
}

/* POS Cart Panel */
.pos-cart-panel {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.pos-cart-header h4 {
  font-size: var(--text-base);
  font-weight: 700;
}

.pos-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 120px;
  max-height: 180px;
  overflow-y: auto;
}

.pos-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--card-border);
}

.pos-cart-row-title {
  color: var(--text-primary);
  font-weight: 500;
}

.pos-cart-row-price {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.pos-cart-breakdown {
  border-top: 1px solid var(--card-border);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.pos-breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.pos-breakdown-total {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--card-border);
  padding-top: 0.4rem;
  margin-top: 0.25rem;
}

.pos-checkout-btn {
  margin-top: var(--space-md);
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--pomegranate-glow), var(--pomegranate-core));
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow-sm);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.pos-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.pos-status-banner {
  margin-top: var(--space-sm);
  padding: 0.5rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: #22c55e;
  display: none;
  align-items: center;
  gap: 0.4rem;
}

/* Simulator Tab 2: FEFO Table */
.fefo-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.fefo-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.fefo-table-wrap {
  overflow-x: auto;
}

.fefo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.fefo-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 2px solid var(--card-border);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .fefo-table th {
  background: rgba(255, 255, 255, 0.03);
}

.fefo-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-primary);
}

.fefo-status-urgent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.fefo-status-normal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.fefo-status-reserve {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.fefo-audit-guard {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-md);
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Simulator Tab 3: Appointments */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.cal-slot-card {
  padding: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--duration-fast);
}

.cal-slot-card.available {
  cursor: pointer;
  border-color: rgba(34, 197, 94, 0.3);
}

.cal-slot-card.available:hover {
  transform: translateY(-2px);
  border-color: #22c55e;
  box-shadow: 0 8px 24px -6px rgba(34, 197, 94, 0.2);
}

.cal-slot-card.booked {
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.02);
}

.cal-time {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cal-tag-booked {
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
}

.cal-tag-available {
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Simulator Tab 4: IronLedger */
.ledger-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ledger-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 600;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
}

.ledger-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ledger-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

.ledger-num {
  text-align: right;
  font-weight: 600;
}

.ledger-table tfoot td {
  border-top: 2px solid var(--card-border);
  font-weight: 700;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .pos-grid {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   PINGLE CROSS-LINK — Second product in the estate (September 2026)
   --------------------------------------------------------------------------
   Pingle is a separate product on its own subdomain, so this strip deliberately
   does NOT reuse the MShop spotlight classes: it is a sibling pointer, not a
   second flagship. Its one accent is Pingle's own operational green, which is
   why that single value is hard-coded rather than drawn from the pomegranate
   tokens; everything else resolves through the existing :root /
   [data-theme="dark"] tokens so it themes itself with the rest of the page.
   ========================================================================== */

.sibling-product {
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.sibling-product:hover {
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-2px);
}

.sibling-product-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16A34A;
}

.sibling-product-body {
  flex: 1 1 320px;
  min-width: 0;
}

.sibling-product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #16A34A;
  margin-bottom: 0.4rem;
}

.sibling-product-body h3 {
  font-size: 1.4rem;
  margin: 0 0 0.45rem;
  color: var(--text-primary);
}

.sibling-product-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 62ch;
}

.sibling-product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-sibling-primary,
.btn-sibling-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-sibling-primary {
  background: #16A34A;
  color: #FFFFFF;
}

.btn-sibling-primary:hover { background: #15803D; }

.btn-sibling-secondary {
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.btn-sibling-secondary:hover { border-color: rgba(34, 197, 94, 0.45); }

/* Dark mode needs a lighter green: #16A34A on a dark surface falls below the
   4.5:1 text contrast the rest of this stylesheet holds itself to. */
:root:not([data-theme="light"]) .sibling-product-mark,
:root:not([data-theme="light"]) .sibling-product-eyebrow { color: #4ADE80; }

:root[data-theme="dark"] .sibling-product-mark,
:root[data-theme="dark"] .sibling-product-eyebrow { color: #4ADE80; }

@media (max-width: 768px) {
  .sibling-product { padding: 1.5rem; gap: 1.25rem; }
  .sibling-product-actions { width: 100%; }
  .btn-sibling-primary, .btn-sibling-secondary { flex: 1 1 auto; justify-content: center; }
}
