/* ==========================================================================
   OMNIWOOSYNC — BRAND DESIGN SYSTEM
   Brand palette derived from the official logo:
     Teal   #40A8B8  ("Woo", data streams)
     Purple #785090  (product box, "every product")
     Navy   #1E2433  (wordmark, backgrounds)
   Day / Night themes via [data-theme] on <html>.
   ========================================================================== */

/* --- 1. DESIGN TOKENS --- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Brand (constant) */
  --brand-teal: #40A8B8;
  --brand-teal-strong: #2E93A3;
  --brand-purple: #785090;
  --brand-purple-soft: #9670B0;
  --brand-navy: #1E2433;

  --grad-brand: linear-gradient(135deg, #40A8B8 0%, #5A86B0 50%, #8A5CA8 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(64, 168, 184, 0.14) 0%, rgba(120, 80, 144, 0.14) 100%);

  /* Code panels stay dark in both themes (IDE look) */
  --code-bg: #121725;
  --code-border: rgba(255, 255, 255, 0.07);
  --code-text: #8FDCE6;
  --code-dim: #6B7891;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease);
  --transition-smooth: 0.35s var(--ease);
}

/* NIGHT (default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E121C;
  --bg-alt: #121726;
  --surface: rgba(28, 34, 50, 0.72);
  --surface-solid: #1A2030;
  --surface-hover: rgba(36, 44, 64, 0.9);
  --surface-sunken: rgba(8, 11, 18, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #EEF2F8;
  --text-heading: #FFFFFF;
  --text-muted: #A5AFC2;
  --text-dim: #6F7B91;

  --primary: #40A8B8;
  --primary-hover: #55BCCB;
  --primary-text: #6CC7D4;
  --primary-glow: rgba(64, 168, 184, 0.35);
  --accent: #9670B0;
  --accent-text: #B293CC;

  /* Legacy accent names mapped to brand */
  --accent-cyan: #6CC7D4;
  --accent-emerald: #4CC3A6;
  --accent-purple: #B293CC;
  --accent-blue: #6CA4D8;
  --accent-amber: #E8B04A;
  --accent-rose: #E86A86;

  --header-bg: rgba(14, 18, 28, 0.78);
  --header-bg-scrolled: rgba(14, 18, 28, 0.94);
  --grid-line: rgba(255, 255, 255, 0.035);
  --glow-opacity: 0.32;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* DAY */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F8FB;
  --bg-alt: #EEF2F7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #FFFFFF;
  --surface-hover: #FFFFFF;
  --surface-sunken: #F1F4F8;
  --border: rgba(30, 36, 51, 0.09);
  --border-strong: rgba(30, 36, 51, 0.18);

  --text-main: #2A3144;
  --text-heading: #1E2433;
  --text-muted: #556078;
  --text-dim: #8590A5;

  --primary: #2E93A3;
  --primary-hover: #257F8E;
  --primary-text: #227F8E;
  --primary-glow: rgba(46, 147, 163, 0.25);
  --accent: #785090;
  --accent-text: #6A4482;

  --accent-cyan: #227F8E;
  --accent-emerald: #1E9A7C;
  --accent-purple: #6A4482;
  --accent-blue: #3B6FA8;
  --accent-amber: #B57A12;
  --accent-rose: #C8435F;

  --header-bg: rgba(246, 248, 251, 0.78);
  --header-bg-scrolled: rgba(255, 255, 255, 0.95);
  --grid-line: rgba(30, 36, 51, 0.045);
  --glow-opacity: 0.18;

  --shadow-sm: 0 1px 3px rgba(30, 36, 51, 0.06), 0 1px 2px rgba(30, 36, 51, 0.04);
  --shadow-md: 0 8px 28px rgba(30, 36, 51, 0.08), 0 2px 6px rgba(30, 36, 51, 0.04);
  --shadow-lg: 0 24px 56px rgba(30, 36, 51, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button, input, select { font-family: inherit; }
code { font-family: var(--font-mono); font-size: 0.92em; }
p code, li code, .feature-text code, .section-subtitle code {
  background: var(--grad-brand-soft);
  color: var(--primary-text);
  padding: 1px 6px;
  border-radius: 5px;
}
::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Theme-aware logos */
.logo-on-light { display: none !important; }
[data-theme="light"] .logo-on-dark { display: none !important; }
[data-theme="light"] .logo-on-light { display: block !important; }

/* Ambient background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
}

.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -1;
  opacity: var(--glow-opacity);
  transition: opacity 0.4s ease;
}
.glow-1 { width: 520px; height: 520px; background: var(--brand-teal); top: -160px; left: 6%; animation: floatOrb 22s ease-in-out infinite alternate; }
.glow-2 { width: 560px; height: 560px; background: var(--brand-purple); top: 30%; right: -180px; animation: floatOrb 26s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 420px; height: 420px; background: #3E7FB0; bottom: -120px; left: 10%; opacity: calc(var(--glow-opacity) * 0.6); }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 60px) scale(1.06); }
  100% { transform: translate(-20px, -30px) scale(0.96); }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 200;
  box-shadow: 0 0 12px var(--primary-glow);
  transition: width 0.08s linear;
}

/* Layout */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-blue { color: var(--primary-text) !important; }
.text-purple { color: var(--accent-text) !important; }
.text-cyan { color: var(--primary-text) !important; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header { margin-bottom: 8px; }

.sub-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-text);
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 44px auto;
  line-height: 1.65;
}

/* Surfaces */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color 0.4s ease;
}

/* Cursor spotlight on interactive cards */
.interactive-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(64, 168, 184, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.interactive-hover:hover::before { opacity: 1; }
.interactive-hover:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: var(--shadow-lg);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 6px 20px -4px var(--primary-glow);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 10px 28px -4px rgba(120, 80, 144, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--surface-solid);
  color: var(--text-heading);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-1px); }

.btn-glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--text-heading);
  border-color: var(--border-strong);
}
.btn-glass:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-2px); }

.btn-accent {
  background: linear-gradient(135deg, #40A8B8, #2E93A3);
  color: #fff;
  box-shadow: 0 4px 14px -2px var(--primary-glow);
}
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-lg { padding: 15px 28px; font-size: 1.02rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 3px 8px; font-size: 0.75rem; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary-text); cursor: pointer; padding: 0; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

.live-dot, .btn-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 10px var(--brand-teal);
  display: inline-block;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ==========================================================================
   3. ANNOUNCEMENT + HEADER
   ========================================================================== */
.announcement-bar {
  background: var(--brand-navy);
  color: #E6EBF3;
  padding: 9px 0;
  font-size: 0.82rem;
  position: relative;
  overflow: hidden;
}
.announcement-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(64, 168, 184, 0.25), rgba(120, 80, 144, 0.25), transparent);
  animation: shimmer 6s linear infinite;
  pointer-events: none;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.announcement-content { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.badge-pulse {
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}
.announcement-link { color: #8FDCE6; font-weight: 650; }
.announcement-link:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { background: var(--header-bg-scrolled); box-shadow: var(--shadow-md); }

.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo-img { height: 36px; width: auto; object-fit: contain; }

.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover { color: var(--text-heading); background: var(--surface-sunken); }
.nav-link.active { color: var(--primary-text); background: var(--grad-brand-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary-text); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; transition: transform 0.5s var(--ease), opacity 0.3s ease; }
.theme-toggle .icon-sun { transform: translateY(0) rotate(0); opacity: 1; }
.theme-toggle .icon-moon { transform: translateY(30px) rotate(-90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .icon-sun { transform: translateY(-30px) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .icon-moon { transform: translateY(0) rotate(0); opacity: 1; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text-heading); border-radius: 2px; transition: transform var(--transition-fast), opacity var(--transition-fast); }
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 72px; left: 0;
  width: 100%;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px 28px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  z-index: 99;
}
.mobile-drawer.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-drawer-content { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link { font-size: 1.05rem; font-weight: 600; color: var(--text-heading); padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-drawer-actions { margin-top: 16px; }

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero-section { padding: 80px 0 70px; position: relative; }
.hero-container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.badge-icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-bottom: 22px;
}
.type-rotator { min-height: 1.15em; transition: opacity 0.28s ease, transform 0.28s ease; }

.hero-description { font-size: 1.12rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 34px; max-width: 580px; }
.hero-description strong { color: var(--text-heading); font-weight: 650; }

.hero-cta-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.87rem; color: var(--text-muted); font-weight: 500; }
.trust-freemius-icon { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }

/* Hero simulator */
.hero-visual { position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--grad-brand);
  filter: blur(60px);
  opacity: 0.22;
  border-radius: 40px;
  z-index: -1;
}
.simulator-card { background: var(--surface-solid); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-sunken);
}
.window-dots { display: flex; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #F26B6B; }
.dot-yellow { background: #F4BE4F; }
.dot-green { background: #4CC3A6; }

.simulator-title { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 650; color: var(--text-muted); }
.sim-status-pill {
  padding: 2px 9px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.sim-status-pill.active { background: rgba(64, 168, 184, 0.15); color: var(--primary-text); border-color: var(--primary); }

.simulator-body { padding: 18px; }

.sim-stream-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.sim-node { display: flex; align-items: center; gap: 10px; }
.node-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.supplier-icon { background: rgba(64, 168, 184, 0.15); color: var(--primary-text); }
.woo-icon { background: rgba(120, 80, 144, 0.16); color: var(--accent-text); }
.node-meta { display: flex; flex-direction: column; }
.node-label { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.node-name { font-size: 0.85rem; font-weight: 700; color: var(--text-heading); }

.sim-pipeline { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sim-flow-gif { height: 30px; width: 100%; max-width: 170px; object-fit: contain; border-radius: 6px; mix-blend-mode: normal; }
.sim-pipeline-label { font-size: 0.7rem; color: var(--primary-text); font-family: var(--font-mono); text-align: center; }

.sim-split-view { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }

.sim-console {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.console-top {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-size: 0.66rem; font-family: var(--font-mono); color: var(--code-dim);
  border-bottom: 1px solid var(--code-border);
  padding-bottom: 6px; margin-bottom: 8px;
}
.console-output {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--code-text);
  line-height: 1.6;
  white-space: pre-wrap;
  height: 220px;
  overflow-y: auto;
}
.console-output code { background: none; padding: 0; color: inherit; }

.sim-product-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.sim-product-card.flash { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.sim-prod-badge {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(30, 36, 51, 0.75); color: #fff;
}
.sim-prod-img-box { width: 100%; height: 110px; border-radius: 9px; overflow: hidden; position: relative; margin-bottom: 10px; background: var(--surface-sunken); }
.sim-prod-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.sim-product-card:hover .sim-prod-img { transform: scale(1.06); }
.sim-sync-tag {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(30, 36, 51, 0.8);
  font-size: 0.66rem; font-weight: 700;
  padding: 2px 7px; border-radius: 5px; color: #fff;
}
.sim-prod-title { font-size: 0.88rem; font-weight: 700; color: var(--text-heading); margin-bottom: 2px; line-height: 1.3; }
.sim-prod-sku { font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 10px; }
.sim-prod-meta-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: var(--surface-sunken); padding: 8px; border-radius: 8px; margin-bottom: 10px;
}
.sim-stat .lbl { font-size: 0.58rem; color: var(--text-dim); display: block; text-transform: uppercase; letter-spacing: 0.03em; }
.sim-stat .val { font-size: 0.84rem; font-weight: 750; font-family: var(--font-mono); }
.supplier-cost { color: var(--text-muted); }
.margin-add { color: var(--accent-text); }
.woo-price { color: var(--primary-text); }

.sim-stock-bar-header { display: flex; justify-content: space-between; font-size: 0.68rem; margin-bottom: 5px; }
.stock-status.in-stock { color: var(--accent-emerald); font-weight: 650; }
.stock-sync-time { color: var(--text-dim); }
.sim-stock-bar { height: 6px; background: var(--surface-sunken); border-radius: var(--radius-full); overflow: hidden; }
.sim-stock-fill { height: 100%; background: var(--grad-brand); transition: width 0.6s var(--ease); }

/* ==========================================================================
   5. STATS STRIP + MARQUEE
   ========================================================================== */
.stats-strip { padding: 10px 0 50px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  padding: 0;
  overflow: hidden;
}
.stat-item { padding: 28px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.marquee-section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-tagline { text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text-dim); margin-bottom: 16px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marqueeScroll 40s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.brand-chip {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.brand-chip:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-2px); }

/* ==========================================================================
   6. FEATURES
   ========================================================================== */
.features-section { padding: 110px 0 90px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 32px 28px; display: flex; flex-direction: column; }
.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease);
}
.feature-card:hover .feature-icon-wrap { transform: rotate(-8deg) scale(1.08); }

.icon-purple, .icon-blue, .icon-emerald, .icon-amber, .icon-cyan, .icon-rose { border: 1px solid var(--border); }
.icon-purple { background: rgba(120, 80, 144, 0.14); color: var(--accent-text); }
.icon-blue { background: rgba(64, 168, 184, 0.14); color: var(--primary-text); }
.icon-emerald { background: rgba(76, 195, 166, 0.14); color: var(--accent-emerald); }
.icon-amber { background: rgba(120, 80, 144, 0.14); color: var(--accent-text); }
.icon-cyan { background: rgba(64, 168, 184, 0.14); color: var(--primary-text); }
.icon-rose { background: var(--grad-brand-soft); color: var(--accent-text); }

.feature-title { font-size: 1.2rem; font-weight: 750; color: var(--text-heading); margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; flex-grow: 1; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags span {
  font-size: 0.72rem; font-weight: 600;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* ==========================================================================
   7. FIELD MAPPER
   ========================================================================== */
.interactive-section { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.dataset-switcher-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.switcher-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.preset-buttons {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.btn-preset { background: transparent; border: none; color: var(--text-muted); border-radius: var(--radius-full); padding: 8px 16px; }
.btn-preset:hover { color: var(--text-heading); }
.btn-preset.active { background: var(--grad-brand); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -2px var(--primary-glow); }

.mapper-playground { padding: 22px; }
.mapper-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.mapper-col {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.mapper-col-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 14px; gap: 8px; }
.col-title { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-heading); }
.indicator-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-blue { background: var(--brand-teal); }
.dot-purple { background: var(--brand-purple-soft); }
.dot-emerald { background: #4CC3A6; }

.badge-mini { font-size: 0.62rem; font-weight: 700; background: var(--surface-solid); border: 1px solid var(--border); padding: 2px 7px; border-radius: 5px; color: var(--text-dim); letter-spacing: 0.04em; }
.badge-status-live {
  font-size: 0.64rem; font-weight: 800;
  background: rgba(64, 168, 184, 0.14);
  color: var(--primary-text);
  border: 1px solid var(--primary);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.mapper-keys-list { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.source-key-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.source-key-item:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.source-key-item.mapped { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: color-mix(in srgb, var(--primary) 8%, var(--surface-solid)); }
.source-key-item.mapped .key-code::before { content: '✓ '; color: var(--accent-emerald); }
.key-code { font-family: var(--font-mono); font-size: 0.76rem; color: var(--primary-text); font-weight: 600; }
.key-val-preview { font-size: 0.74rem; color: var(--text-dim); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mapper-connections-list { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-height: 240px; }
.connection-item {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.74rem;
  animation: slideIn 0.35s var(--ease);
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.src-tag { font-family: var(--font-mono); color: var(--primary-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow-icon { color: var(--accent-text); font-weight: 700; }
.target-select {
  background: var(--surface-sunken);
  color: var(--text-heading);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.7rem;
  width: 100%;
  min-width: 0;
}
.mapper-quick-actions { margin-top: 14px; }

.woo-preview-wrapper { flex-grow: 1; display: flex; flex-direction: column; }
.woo-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column; flex-grow: 1;
  box-shadow: var(--shadow-sm);
}
.woo-card-image-box { width: 100%; height: 140px; position: relative; background: var(--surface-sunken); overflow: hidden; }
.woo-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s ease; }
.woo-card:hover .woo-card-img { transform: scale(1.05); }
.woo-stock-tag { position: absolute; top: 8px; left: 8px; background: #2E93A3; color: #fff; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.woo-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.woo-category-crumb { font-size: 0.7rem; color: var(--text-dim); }
.woo-title { font-size: 0.95rem; font-weight: 750; line-height: 1.3; color: var(--text-heading); }
.woo-sku-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary-text); }
.woo-price-block { display: flex; align-items: baseline; gap: 8px; }
.woo-regular-price { font-size: 0.85rem; text-decoration: line-through; color: var(--text-dim); }
.woo-sale-price { font-size: 1.3rem; font-weight: 800; color: var(--text-heading); }
.woo-discount-badge { font-size: 0.68rem; font-weight: 700; background: rgba(120, 80, 144, 0.16); color: var(--accent-text); padding: 2px 7px; border-radius: 5px; }
.woo-specs-box { background: var(--surface-sunken); padding: 8px 10px; border-radius: 8px; font-size: 0.74rem; display: flex; flex-direction: column; gap: 4px; }
.woo-spec-row { display: flex; justify-content: space-between; gap: 10px; }
.spec-k { color: var(--text-dim); }
.spec-v { font-weight: 650; color: var(--text-heading); text-align: right; }
.woo-button-sim { margin-top: auto; padding-top: 6px; }
.woo-cart-btn { display: block; text-align: center; background: var(--grad-brand); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 9px; border-radius: 9px; }

.flash-update { animation: flashUpdate 0.6s var(--ease); }
@keyframes flashUpdate { 0% { background: rgba(64, 168, 184, 0.35); } 100% { background: transparent; } }

/* ==========================================================================
   8. CALCULATOR
   ========================================================================== */
.calculator-section { padding: 100px 0; }
.calculator-widget { padding: 36px; }
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.calc-title { font-size: 1.2rem; font-weight: 750; color: var(--text-heading); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.calc-group { margin-bottom: 22px; }
.calc-group > label { display: block; font-size: 0.88rem; font-weight: 650; color: var(--text-heading); margin-bottom: 8px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.88rem; font-weight: 650; color: var(--text-heading); gap: 10px; }
.calc-label-row strong { color: var(--primary-text); }
.calc-hint { font-size: 0.74rem; color: var(--text-dim); font-weight: 400; }

.input-prefix-wrap { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.input-prefix-wrap .prefix { position: absolute; left: 14px; color: var(--text-dim); font-weight: 700; }
.calc-input {
  width: 100%;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 14px 11px 30px;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.calc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-purple-soft) var(--fill, 50%), var(--surface-sunken) var(--fill, 50%));
  border: 1px solid var(--border);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-teal);
  cursor: grab;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: transform var(--transition-fast);
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-teal); cursor: grab; }

.btn-group-segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--surface-sunken);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.btn-segment { background: transparent; color: var(--text-muted); border: none; padding: 9px 10px; font-size: 0.82rem; font-weight: 650; border-radius: 9px; cursor: pointer; transition: all var(--transition-fast); }
.btn-segment:hover { color: var(--text-heading); }
.btn-segment.active { background: var(--surface-solid); color: var(--primary-text); box-shadow: var(--shadow-sm); }

.radio-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.radio-card {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.radio-card:hover { border-color: var(--border-strong); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card.active { background: var(--grad-brand-soft); border-color: var(--primary); }
.radio-card .card-title { font-size: 0.84rem; font-weight: 700; color: var(--text-heading); }
.radio-card .card-desc { font-size: 0.7rem; color: var(--text-dim); }

.pricing-card-preview {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.price-flow-chart {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.flow-step { display: flex; flex-direction: column; }
.flow-lbl { font-size: 0.66rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.flow-val { font-size: 1.1rem; font-weight: 750; font-family: var(--font-mono); color: var(--text-heading); }
.flow-operator { font-size: 1.2rem; color: var(--text-dim); font-weight: 700; }

.profit-highlight-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.profit-highlight-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(64, 168, 184, 0.35), transparent 55%), radial-gradient(circle at 100% 100%, rgba(120, 80, 144, 0.4), transparent 55%);
}
.profit-metric { position: relative; }
.metric-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: #9AA6BC; margin-bottom: 4px; }
.metric-huge { font-size: 1.9rem; font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.02em; }
.profit-highlight-card .text-emerald { color: #6CD5E1 !important; }
.profit-highlight-card .text-purple { color: #C4A3DE !important; }

.projection-box { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.proj-header { display: flex; justify-content: space-between; font-size: 0.76rem; font-weight: 650; color: var(--text-muted); margin-bottom: 12px; gap: 10px; }
.proj-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }
.annual-profit-sum { font-size: 1.4rem; font-weight: 800; font-family: var(--font-mono); }

/* ==========================================================================
   9. FORMATS TABS
   ========================================================================== */
.formats-section { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.formats-tabs-widget { padding: 26px; }
.format-nav-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: thin; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.88rem; font-weight: 650;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition-fast);
}
.tab-btn:hover { color: var(--text-heading); border-color: var(--border-strong); }
.tab-btn.active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -4px var(--primary-glow); }
.tab-badge { font-size: 0.62rem; font-weight: 800; background: var(--surface-solid); color: var(--text-muted); padding: 2px 6px; border-radius: 5px; }
.tab-btn.active .tab-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }

.format-tab-display { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; animation: fadeUp 0.45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-info-col h3 { font-size: 1.4rem; font-weight: 750; color: var(--text-heading); margin-bottom: 12px; }
.tab-info-col p { color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.tab-feature-points { display: flex; flex-direction: column; gap: 12px; }
.tab-point-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-main); }
.tab-point-row svg { flex-shrink: 0; margin-top: 2px; }

.tab-code-col { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius-md); padding: 16px; position: relative; box-shadow: var(--shadow-md); }
.code-header-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-family: var(--font-mono); color: var(--code-dim); border-bottom: 1px solid var(--code-border); padding-bottom: 8px; margin-bottom: 12px; }
.tab-code-col pre { font-family: var(--font-mono); font-size: 0.78rem; color: var(--code-text); line-height: 1.65; overflow-x: auto; }
.tab-code-col pre code { background: none; padding: 0; color: inherit; }

/* ==========================================================================
   10. PERFORMANCE
   ========================================================================== */
.performance-section { padding: 100px 0; }
.perf-dashboard { padding: 36px; }
.perf-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.perf-title { font-size: 1.3rem; font-weight: 750; color: var(--text-heading); margin-bottom: 8px; }
.perf-desc { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 24px; }
.stress-slider-wrap { background: var(--surface-sunken); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 20px; }
.stress-label-row { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; color: var(--text-heading); margin-bottom: 12px; }
.perf-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.p-stat-box { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.p-lbl { font-size: 0.72rem; color: var(--text-dim); display: block; margin-bottom: 2px; }
.p-val { font-size: 1.08rem; font-weight: 750; font-family: var(--font-mono); color: var(--text-heading); }
.perf-features-checklist { display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--text-muted); }
.check-row svg { flex-shrink: 0; margin-top: 2px; }

.perf-visual {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #DCE3EE;
}
.visual-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--code-dim); border-bottom: 1px solid var(--code-border); padding-bottom: 10px; margin-bottom: 16px; }
.pulse-status { color: #6CD5E1; font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 6px; }
.pulse-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6CD5E1; animation: pulseDot 1.6s infinite; }
.batch-pipeline-track { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.chunk-item { padding: 9px 12px; border-radius: 9px; font-size: 0.76rem; font-family: var(--font-mono); display: flex; align-items: center; justify-content: space-between; transition: all 0.4s var(--ease); }
.chunk-done { background: rgba(76, 195, 166, 0.1); color: #6FD6BC; border: 1px solid rgba(76, 195, 166, 0.22); }
.chunk-active { background: rgba(64, 168, 184, 0.16); color: #A6E6EE; border: 1px solid #40A8B8; animation: pulseActiveChunk 1.4s infinite alternate; }
@keyframes pulseActiveChunk { 0% { box-shadow: 0 0 4px rgba(64, 168, 184, 0.2); } 100% { box-shadow: 0 0 16px rgba(64, 168, 184, 0.55); } }
.chunk-queued { background: rgba(255, 255, 255, 0.02); color: #6B7891; border: 1px solid rgba(255, 255, 255, 0.06); }
.resource-meters { display: flex; flex-direction: column; gap: 12px; background: rgba(0, 0, 0, 0.25); padding: 14px; border-radius: var(--radius-md); }
.meter-box { display: flex; flex-direction: column; gap: 5px; }
.meter-lbl { display: flex; justify-content: space-between; font-size: 0.74rem; color: #A5AFC2; }
.perf-visual .text-emerald { color: #6FD6BC !important; }
.perf-visual .text-cyan { color: #8FDCE6 !important; }
.meter-track { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-full); overflow: hidden; }
.meter-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.5s var(--ease); }
.meter-ram { background: linear-gradient(90deg, #40A8B8, #6CA4D8); }
.meter-cpu { background: linear-gradient(90deg, #6CA4D8, #9670B0); }

/* ==========================================================================
   11. TEMPLATES
   ========================================================================== */
.templates-section { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.template-card { padding: 26px; display: flex; flex-direction: column; }
.template-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.template-logo-badge { font-size: 0.72rem; font-weight: 800; padding: 4px 11px; border-radius: var(--radius-full); border: 1px solid currentColor; }
.shopify-badge { background: rgba(120, 170, 60, 0.12); color: #6E9E35; }
.magento-badge { background: rgba(236, 104, 40, 0.12); color: #DD6A2E; }
.presta-badge { background: rgba(214, 40, 125, 0.12); color: #C8307C; }
.bigcommerce-badge { background: rgba(64, 168, 184, 0.12); color: var(--primary-text); }
.generic-badge { background: rgba(120, 80, 144, 0.12); color: var(--accent-text); }
.simple-badge { background: var(--grad-brand-soft); color: var(--primary-text); }
.template-type { font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-dim); }
.template-name { font-size: 1.12rem; font-weight: 750; color: var(--text-heading); margin-bottom: 10px; }
.template-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; flex-grow: 1; }
.template-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.template-features span { font-size: 0.7rem; font-weight: 600; background: var(--surface-sunken); border: 1px solid var(--border); padding: 2px 9px; border-radius: var(--radius-full); color: var(--text-muted); }
.template-actions { display: flex; gap: 10px; }
.template-actions .btn { flex: 1; }

/* ==========================================================================
   12. COMPARISON
   ========================================================================== */
.comparison-section { padding: 100px 0; }
.comparison-table-wrap { padding: 8px; overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; min-width: 820px; }
.comparison-table th, .comparison-table td { padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); vertical-align: middle; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr { transition: background var(--transition-fast); }
.comparison-table tbody tr:hover { background: var(--surface-sunken); }
.comparison-table th { font-weight: 700; color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.comparison-table small { color: var(--text-dim); font-weight: 500; text-transform: none; letter-spacing: 0; }
.feature-name { font-weight: 650; color: var(--text-heading) !important; }
.th-brand { display: flex; align-items: center; gap: 8px; color: var(--text-heading); text-transform: none; font-size: 0.95rem; letter-spacing: 0; }
.th-brand-logo { height: 28px; width: 28px; object-fit: contain; }
.highlight-col, .highlight-cell { background: var(--grad-brand-soft); }
.highlight-col { border-top-left-radius: 14px; border-top-right-radius: 14px; }
.highlight-cell { color: var(--text-heading) !important; }
.badge-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-text); }
.badge-check::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-size: 0.65rem; }

/* ==========================================================================
   13. PRICING
   ========================================================================== */
.pricing-section { padding: 110px 0; position: relative; }
.billing-toggle-wrap {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 52px;
  padding: 8px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.billing-lbl { font-size: 0.92rem; font-weight: 650; color: var(--text-muted); transition: color var(--transition-fast); }
.billing-lbl.is-active { color: var(--text-heading); }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--surface-sunken); border: 1px solid var(--border-strong); transition: 0.3s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; box-shadow: var(--shadow-sm); transition: 0.35s var(--ease); }
input:checked + .slider { background: var(--grad-brand); border-color: transparent; }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.badge-save { background: rgba(76, 195, 166, 0.14); color: var(--accent-emerald); border: 1px solid currentColor; font-size: 0.64rem; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); margin-left: 4px; }

.pricing-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; margin-bottom: 40px; }
.pricing-card { padding: 36px 30px; display: flex; flex-direction: column; overflow: visible; }
.popular-plan {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad-brand) border-box;
  box-shadow: 0 24px 60px -12px rgba(64, 168, 184, 0.35);
  transform: scale(1.04);
}
.popular-plan.interactive-hover:hover, .popular-plan:hover { transform: scale(1.04) translateY(-5px); }
.popular-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  padding: 5px 16px; border-radius: var(--radius-full);
  letter-spacing: 0.1em;
  box-shadow: 0 6px 16px -2px var(--primary-glow);
  white-space: nowrap;
}
.pricing-plan-badge { font-size: 0.72rem; font-weight: 800; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 8px; }
.plan-pro-badge { color: var(--primary-text); }
.plan-title { font-size: 1.45rem; font-weight: 800; color: var(--text-heading); margin-bottom: 8px; }
.plan-description { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 24px; min-height: 42px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid var(--border); padding-bottom: 22px; color: var(--text-heading); }
.plan-price .currency { font-size: 1.5rem; font-weight: 700; }
.plan-price .amount { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; display: inline-block; transition: transform 0.35s var(--ease), opacity 0.2s ease; }
.plan-price .amount.bump { transform: translateY(-6px); opacity: 0.2; }
.plan-price .period { font-size: 0.9rem; color: var(--text-dim); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex-grow: 1; }
.plan-features li { font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; color: var(--text-main); }
.plan-features li svg { flex-shrink: 0; margin-top: 2px; }
.plan-features li strong { color: var(--text-heading); }
.plan-features li.disabled { color: var(--text-dim); text-decoration: line-through; }
.plan-features li .cross { color: var(--accent-rose); font-weight: 700; font-size: 1.1rem; line-height: 1; width: 16px; text-align: center; }

.freemius-guarantee-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.freemius-badge-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.guarantee-text { font-size: 0.85rem; color: var(--text-muted); }
.guarantee-text strong { color: var(--text-heading); }

/* ==========================================================================
   14. BLOG PREVIEW
   ========================================================================== */
.blog-preview-section { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { padding: 28px; display: flex; flex-direction: column; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.blog-tag { font-size: 0.7rem; font-weight: 700; background: var(--grad-brand-soft); color: var(--primary-text); padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--border); }
.blog-date { font-size: 0.74rem; color: var(--text-dim); }
.blog-title { font-size: 1.12rem; font-weight: 750; line-height: 1.4; margin-bottom: 12px; color: var(--text-heading); }
.blog-link:hover { color: var(--primary-text); }
.blog-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.read-more { font-size: 0.86rem; font-weight: 700; color: var(--primary-text); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--transition-fast); }
.blog-card:hover .read-more, .blog-article-card:hover .read-more { gap: 10px; }

/* ==========================================================================
   15. FAQ
   ========================================================================== */
.faq-section { padding: 100px 0; }
.faq-search-wrap { position: relative; max-width: 560px; margin: 0 auto 36px; display: flex; align-items: center; }
.faq-search-wrap svg { position: absolute; left: 18px; color: var(--text-dim); }
#faqSearchInput {
  width: 100%;
  padding: 15px 18px 15px 48px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-heading);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
#faqSearchInput::placeholder { color: var(--text-dim); }
#faqSearchInput:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.faq-accordion-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.active { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: var(--shadow-md); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: none; border: none; color: var(--text-heading); font-size: 1.02rem; font-weight: 650; text-align: left; cursor: pointer; }
.faq-question .chevron { flex-shrink: 0; transition: transform var(--transition-smooth); color: var(--text-dim); }
.faq-item.active .chevron { transform: rotate(180deg); color: var(--primary-text); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s var(--ease); padding: 0 24px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 420px; padding: 0 24px 22px; }
.faq-answer ul { padding-left: 20px; margin-top: 10px; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer strong { color: var(--text-heading); }
.faq-empty { text-align: center; color: var(--text-dim); padding: 24px; display: none; }

/* ==========================================================================
   16. CTA
   ========================================================================== */
.cta-banner-section { padding: 90px 0; }
.cta-banner {
  padding: 70px 40px;
  text-align: center;
  background: var(--brand-navy);
  border: none;
  color: #fff;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(64, 168, 184, 0.45), transparent 45%), radial-gradient(circle at 85% 80%, rgba(120, 80, 144, 0.5), transparent 45%);
  pointer-events: none;
}
.cta-content { position: relative; }
.cta-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-subtitle { font-size: 1.1rem; color: #B8C2D4; max-width: 680px; margin: 0 auto 36px; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-banner .btn-outline { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.cta-banner .btn-outline:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cta-micro-guarantee { font-size: 0.82rem; color: #9AA6BC; }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 70px 0 30px; }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo-img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-bio { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; max-width: 380px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pill { font-size: 0.7rem; font-weight: 600; background: var(--surface-solid); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-full); color: var(--text-muted); }
.footer-heading { font-size: 0.92rem; font-weight: 750; margin-bottom: 18px; color: var(--text-heading); }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.88rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--primary-text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner a:hover { color: var(--primary-text); }
.footer-social-meta { display: flex; gap: 16px; }
.footer-social-meta strong { color: var(--text-muted); }

/* ==========================================================================
   18. MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 13, 22, 0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-dialog {
  width: 100%; max-width: 680px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  max-height: 85vh;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-smooth);
}
.modal-overlay.active .modal-dialog { transform: none; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-badge { font-size: 0.66rem; font-weight: 800; background: var(--grad-brand); color: #fff; padding: 3px 8px; border-radius: 5px; }
.modal-title { font-size: 1.12rem; font-weight: 750; color: var(--text-heading); }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.8rem; cursor: pointer; line-height: 1; transition: color var(--transition-fast), transform var(--transition-fast); }
.modal-close:hover { color: var(--text-heading); transform: rotate(90deg); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex-grow: 1; }
.modal-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.modal-code-wrapper { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 10px; padding: 16px; }
.modal-code { font-family: var(--font-mono); font-size: 0.77rem; color: var(--code-text); white-space: pre-wrap; max-height: 320px; overflow-y: auto; }
.modal-code code { background: none; padding: 0; color: inherit; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
.justify-center { justify-content: center !important; }

.checkout-dialog { max-width: 500px; }
.checkout-modal-icon { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.checkout-highlight-box { background: var(--grad-brand-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px; }
.checkout-highlight-box h4 { font-size: 1.15rem; font-weight: 750; color: var(--text-heading); margin-bottom: 6px; }
.checkout-price-tag { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); color: var(--primary-text); margin-bottom: 6px; }
.checkout-guarantee-note { font-size: 0.78rem; color: var(--text-dim); }
.checkout-instruction { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.checkout-instruction strong { color: var(--text-heading); }
.code-snippet-box { background: var(--code-bg); border: 1px solid var(--code-border); padding: 10px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--code-text); margin-top: 10px; overflow-x: auto; }
.code-snippet-box code { background: none; color: inherit; padding: 0; }

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px var(--primary-glow);
  opacity: 0; transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* Smooth theme switch helper */
html.theme-transition, html.theme-transition *, html.theme-transition *::before, html.theme-transition *::after {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, fill 0.45s ease !important;
}

/* ==========================================================================
   19. BLOG PAGES
   ========================================================================== */
.blog-hub-hero { padding: 60px 0 40px; text-align: center; }
.blog-article-card { margin-bottom: 24px; padding: 28px; display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.blog-thumb { width: 100%; height: 180px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-article-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-article-card .blog-title { font-size: 1.45rem; margin: 10px 0; }

.article-container { max-width: 800px; margin: 0 auto; padding: 60px 24px 100px; }
.article-header { margin-bottom: 40px; }
.article-header .hero-title { font-size: clamp(2rem, 4vw, 2.7rem); }
.article-header .section-subtitle { margin: 0; text-align: left; }
.article-content { font-size: 1.07rem; line-height: 1.85; color: var(--text-main); }
.article-content h2 { font-size: 1.75rem; color: var(--text-heading); margin: 44px 0 16px; letter-spacing: -0.02em; }
.article-content h3 { font-size: 1.3rem; color: var(--text-heading); margin: 28px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 24px; }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: var(--text-heading); }
.article-content a { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.callout-box { background: var(--grad-brand-soft); border-left: 4px solid var(--primary); padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 30px 0; }
.article-cta { text-align: center; margin-top: 44px; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-cta h3 { margin-top: 0; }
.article-cta p { color: var(--text-muted); margin-bottom: 24px; }
.article-cta .btn { text-decoration: none; color: #fff; }

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
  .desktop-nav .nav-link { padding: 8px 9px; font-size: 0.86rem; }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-description { max-width: none; }
  .features-grid, .templates-grid, .blog-grid, .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .mapper-grid { grid-template-columns: 1fr; }
  .calc-grid, .perf-grid, .format-tab-display { grid-template-columns: 1fr; gap: 30px; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
  .popular-plan, .popular-plan:hover, .popular-plan.interactive-hover:hover { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  .nav-btn-primary span { display: none; }
  .nav-btn-primary { padding: 10px 12px; }
  .hero-section { padding: 50px 0; }
  .features-grid, .templates-grid, .blog-grid, .pricing-cards-grid { grid-template-columns: 1fr; }
  .sim-split-view { grid-template-columns: 1fr; }
  .sim-stream-container { grid-template-columns: 1fr; text-align: center; }
  .sim-node { justify-content: center; }
  .footer-container { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .radio-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-widget, .perf-dashboard { padding: 22px; }
  .price-flow-chart { flex-wrap: wrap; }
  .blog-article-card { grid-template-columns: 1fr; }
  .freemius-guarantee-bar { border-radius: var(--radius-lg); flex-direction: column; text-align: center; }
  .simulator-header { flex-wrap: wrap; }
  .announcement-text { font-size: 0.78rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
