/* ==========================================================================
   BEPLUS SITE ASSISTANT — V4 HIGH-READABILITY BESPOKE DESIGN SYSTEM
   Carbon Obsidian / Warm Porcelain + Analogous Emerald & BePlus Orange
   ========================================================================== */
:root,
[data-theme="dark"] {
  --bg: #09090b;
  --surface: rgba(20, 20, 24, 0.80);
  --surface-strong: rgba(25, 25, 31, 0.94);
  --surface-card: linear-gradient(160deg, rgba(24, 24, 30, 0.88), rgba(13, 13, 17, 0.94));
  --surface-inner: rgba(11, 11, 15, 0.84);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text: #fafafa;
  --text-secondary: #e4e4e7;
  --text-muted: #b4b4bd;
  --text-dim: #71717a;

  --pro: #ff5a1f;
  --pro-soft: #fb923c;
  --pro-bg: rgba(255, 90, 31, 0.15);
  --pro-border: rgba(255, 90, 31, 0.44);

  --free: #10b981;
  --free-soft: #34d399;
  --free-bg: rgba(16, 185, 129, 0.14);
  --free-border: rgba(16, 185, 129, 0.42);

  --solid-bg: #fafafa;
  --solid-text: #09090b;

  --orb-a: #059669;
  --orb-b: #6ee7b7;

  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.54);
  --vignette:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 58%),
    radial-gradient(ellipse 65% 45% at 85% 95%, rgba(255, 90, 31, 0.07), transparent 55%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(9, 9, 11, 0.72) 100%);
}

[data-theme="light"] {
  --bg: #f6f5f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-card: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 247, 244, 0.98));
  --surface-inner: rgba(243, 242, 238, 0.94);
  --border: rgba(24, 24, 27, 0.12);
  --border-strong: rgba(24, 24, 27, 0.24);

  --text: #111113;
  --text-secondary: #27272a;
  --text-muted: #4b4b53;
  --text-dim: #71717a;

  --pro: #e04610;
  --pro-soft: #c2410c;
  --pro-bg: rgba(224, 70, 16, 0.10);
  --pro-border: rgba(224, 70, 16, 0.38);

  --free: #059669;
  --free-soft: #047857;
  --free-bg: rgba(5, 150, 105, 0.10);
  --free-border: rgba(5, 150, 105, 0.36);

  --solid-bg: #111113;
  --solid-text: #fafafa;

  --shadow-lg: 0 18px 42px rgba(17, 17, 19, 0.09);
  --vignette:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(5, 150, 105, 0.06), transparent 60%),
    radial-gradient(ellipse 65% 45% at 85% 95%, rgba(224, 70, 16, 0.06), transparent 55%),
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(236, 234, 228, 0.65) 100%);
}

:root {
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.58;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code, pre { font-family: var(--font-mono); }

/* CONTINUOUS FULL-PAGE THREE.JS UNIVERSE */
.universe-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.stage-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--vignette); transition: background 0.3s ease; }
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--free), var(--pro));
}

.page-main, .site-footer { position: relative; z-index: 2; }
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; padding: 0 20px; pointer-events: none; }
.header-shell {
  pointer-events: auto; max-width: 1380px; margin: 0 auto; height: 62px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
}

.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-orb {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ecfdf5 0%, var(--orb-a) 55%, var(--orb-b) 100%);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.42), inset 0 2px 4px rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.brand-eye { width: 4.5px; height: 8.5px; border-radius: 999px; background: #09090b; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.7); }
.brand-text { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 7px; }
.version-pill { font-family: var(--font-mono); font-size: 0.76rem; padding: 2px 8px; border-radius: 999px; background: var(--free-bg); border: 1px solid var(--free-border); color: var(--free-soft); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.nav-dot.free { background: var(--free); }
.nav-dot.pro { background: var(--pro); }

.header-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-inner); border: 1px solid var(--border); color: var(--text); font-size: 0.84rem; font-weight: 600;
}
.theme-toggle:hover { border-color: var(--border-strong); }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* BUTTONS — CLEAR READABLE SIZES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-size: 0.94rem; font-weight: 600;
  border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.86rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-solid { background: var(--solid-bg); color: var(--solid-text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.btn-solid:hover { opacity: 0.92; }
.btn-pro { background: linear-gradient(135deg, #ff5a1f 0%, #ea580c 100%); color: #ffffff; box-shadow: 0 8px 26px rgba(255, 90, 31, 0.34); }
.btn-pro:hover { box-shadow: 0 12px 32px rgba(255, 90, 31, 0.5); }
.btn-ghost { background: var(--surface-inner); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }

/* ==========================================================================
   2. FULL-BLEED HERO
   ========================================================================== */
.hero-section {
  position: relative; min-height: 100vh; width: 100%;
  padding: 92px clamp(16px, 3vw, 44px) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}

.hero-top-bar { width: 100%; max-width: 1440px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero-headline-wrap { max-width: 760px; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 10px var(--free); animation: pulseBeat 2.2s infinite; }
.eyebrow-pill .sep { color: var(--text-dim); }

.hero-title { margin: 0; font-family: var(--font-display); font-size: clamp(2.15rem, 3.8vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.accent-text { background: linear-gradient(95deg, #10b981 0%, #34d399 48%, #ff5a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 10px 0 0; color: var(--text-muted); font-size: 1.06rem; }
.hero-lead strong { color: var(--text); }
.hero-actions-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions-wrap.center { justify-content: center; }

.hero-stage { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; min-height: 550px; display: flex; flex-direction: column; justify-content: space-between; padding-top: 8px; }
.companion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.beam-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.beam-track { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 5 7; }
.beam-glow-path { fill: none; stroke-width: 8; stroke-linecap: round; opacity: 0; filter: url(#beam-glow-soft); transition: opacity 0.45s ease; }
.beam-glow-path.lit { opacity: 0.54; }
.beam-active-path { fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity 0.4s ease; }
.beam-active-path.lit { opacity: 1; }
.beam-socket { fill: var(--bg); stroke: var(--free); stroke-width: 2.2; opacity: 0.45; }
.hero-stage.is-pro .beam-socket { stroke: var(--pro); }
.beam-socket.lit { opacity: 1; }

.story-constellation {
  position: relative; z-index: 4; flex: 1;
  display: grid; grid-template-columns: minmax(310px, 1fr) minmax(250px, 330px) minmax(320px, 1.06fr);
  grid-template-rows: auto auto; column-gap: clamp(18px, 3vw, 48px); row-gap: clamp(22px, 3.2vh, 42px);
  align-items: center; padding: 10px 0 18px;
}
.node-visitor { grid-column: 1; grid-row: 1; align-self: start; }
.companion-hub { grid-column: 2; grid-row: 1 / span 2; justify-self: center; align-self: center; }
.node-ai { grid-column: 3; grid-row: 1; align-self: start; }
.node-outcome-left { grid-column: 1; grid-row: 2; align-self: end; }
.node-outcome-right { grid-column: 3; grid-row: 2; align-self: end; }

.story-bubble {
  position: relative; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface-card); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
  opacity: 0.64; transform: translateY(4px) scale(0.988);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}
.story-bubble.passed { opacity: 0.90; transform: translateY(0) scale(1); }
.story-bubble.active, .story-bubble:hover, .story-bubble:focus-visible {
  opacity: 1; transform: translateY(-3px) scale(1.012);
  border-color: var(--free-border); box-shadow: var(--shadow-lg), 0 0 28px rgba(16, 185, 129, 0.16); outline: none;
}
.hero-stage.is-pro .story-bubble.active, .hero-stage.is-pro .story-bubble:hover {
  border-color: var(--pro-border); box-shadow: var(--shadow-lg), 0 0 28px rgba(255, 90, 31, 0.18);
}

.bubble-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.step-chip { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; }
.chip-neutral { background: var(--surface-inner); color: var(--text); border-color: var(--border-strong); }
.chip-free { background: var(--free-bg); color: var(--free-soft); border-color: var(--free-border); }
.chip-pro { background: var(--pro-bg); color: var(--pro-soft); border-color: var(--pro-border); }
.meta-mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

.bubble-quote { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.bubble-rich p { margin: 0 0 10px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
.bubble-rich strong { color: var(--text); }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.c-pill { font-family: var(--font-mono); font-size: 0.76rem; padding: 4px 9px; border-radius: 7px; background: var(--surface-inner); border: 1px solid var(--border); color: var(--text-secondary); }
.source-pill { font-family: var(--font-mono); font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: var(--free-bg); border: 1px solid var(--free-border); color: var(--free-soft); }

.hero-mini-prod { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-inner); border: 1px solid var(--pro-border); }
.hmp-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--pro-bg); border: 1px solid var(--pro-border); display: grid; place-items: center; flex-shrink: 0; }
.hmp-meta { display: flex; flex-direction: column; gap: 3px; }
.hmp-meta strong { font-size: 0.94rem; color: var(--text); }
.hmp-row { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-family: var(--font-mono); }
.hmp-price { color: var(--pro); font-weight: 700; }
.hmp-stock { color: var(--free); }

.outcome-heading { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.outcome-sub { margin: 0 0 11px; font-size: 0.9rem; color: var(--text-muted); }
.live-indicator { width: 9px; height: 9px; border-radius: 50%; }
.live-indicator.free { background: var(--free); box-shadow: 0 0 10px var(--free); }
.live-indicator.pro { background: var(--pro); box-shadow: 0 0 10px var(--pro); }

/* ICONIC BEPLUS TWO-EYE GAZE ON HARMONIOUS 3D ORB */
.companion-hub { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; cursor: pointer; }
.companion-shell { position: relative; width: 190px; height: 190px; display: grid; place-items: center; border-radius: 50%; transition: transform 0.4s ease; }
.companion-hub:hover .companion-shell, .companion-hub.active .companion-shell { transform: scale(1.05); }

.beplus-eyes {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 24px;
  transform: translate(var(--look-x, 0px), var(--look-y, 0px));
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none;
}
.bp-eye {
  position: relative; width: 17px; height: 31px; border-radius: 999px;
  background: linear-gradient(180deg, #09090b 0%, #18181b 70%, #27272a 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.28);
  overflow: hidden; animation: smartBlink 4.8s infinite; transition: height 0.3s ease;
}
.bp-iris { position: absolute; bottom: 3px; left: 3px; right: 3px; height: 8px; border-radius: 999px; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.45), transparent 72%); }
.bp-glint-lg { position: absolute; top: 5px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 6px #ffffff; }
.bp-glint-sm { position: absolute; top: 14px; left: 3.5px; width: 2.5px; height: 2.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.beplus-eyes.focused .bp-eye { height: 26px; transform: scaleX(1.06); }

.companion-orbit-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border); backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); white-space: nowrap; box-shadow: var(--shadow-lg);
}
.status-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 10px var(--free); animation: pulseBeat 1.8s infinite; }
.hero-stage.is-pro .status-pulse { background: var(--pro); box-shadow: 0 0 10px var(--pro); }

/* HERO BOTTOM DOCK */
.hero-dock {
  position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
}
.dock-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dock-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px;
  background: transparent; border: 1px solid transparent; color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
}
.dock-tab:hover { color: var(--text); background: var(--surface-inner); }
.dock-tab.active { color: var(--text); background: var(--surface-inner); border-color: var(--border-strong); }

.tag-pill { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em; }
.tag-pill.free { background: var(--free-bg); color: var(--free-soft); border: 1px solid var(--free-border); }
.tag-pill.pro { background: var(--pro-bg); color: var(--pro-soft); border: 1px solid var(--pro-border); }

.dock-steps { display: flex; align-items: center; gap: 6px; }
.beat-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-inner); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; }
.beat-dot.active { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-text); }
.beat-line { width: 16px; height: 1px; background: var(--border-strong); }
.dock-right { display: flex; align-items: center; gap: 8px; }
.hero-lang-pills { display: flex; gap: 5px; }
.hero-lang-pills[hidden] { display: none; }
.lang-mini { height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-inner); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.lang-mini.active { border-color: var(--pro-border); color: var(--pro); background: var(--pro-bg); }
.replay-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-inner); color: var(--text); font-size: 0.84rem; font-weight: 600; }

.telemetry-ribbon { width: 100%; max-width: 1440px; margin: 4px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tele-item { padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); display: flex; align-items: baseline; gap: 10px; }
.tele-item strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--free); }
.tele-item strong.pro-num { color: var(--pro); }
.tele-item span { font-size: 0.88rem; color: var(--text-muted); }

/* 3. ECOSYSTEM TICKER */
.eco-strip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); overflow: hidden; }
.eco-label { text-align: center; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marqueeScroll 28s linear infinite; }
.eco-node { padding: 8px 16px; border-radius: 999px; background: var(--surface-inner); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.eco-node.highlight { border-color: var(--pro-border); color: var(--pro); background: var(--pro-bg); }

/* ==========================================================================
   CHAPTERS & TYPOGRAPHY (EASY TO READ!)
   ========================================================================== */
.chapter-section { padding: 80px 0; }
.chapter-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius-xl); background: var(--surface-card);
  border: 1px solid var(--border); backdrop-filter: blur(18px); margin-bottom: 30px; box-shadow: var(--shadow-lg);
}
.banner-free { border-left: 5px solid var(--free); }
.banner-pro { border-left: 5px solid var(--pro); }
.chapter-num { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 999px; margin-bottom: 8px; }
.chapter-num.free { background: var(--free-bg); color: var(--free-soft); border: 1px solid var(--free-border); }
.chapter-num.pro { background: var(--pro-bg); color: var(--pro-soft); border: 1px solid var(--pro-border); }
.chapter-num.neutral { background: var(--surface-inner); color: var(--text-muted); border: 1px solid var(--border); }

.chapter-banner h2, .section-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
.cb-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cb-scope { font-size: 0.95rem; color: var(--text-muted); }

.sub-chapter { margin-top: 72px; }
.sub-head { text-align: center; margin-bottom: 28px; }
.sub-head h3 { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.section-head { text-align: center; margin-bottom: 36px; }

.edition-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.edition-row.center { justify-content: center; }
.micro-tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.micro-tag.pro { color: var(--pro); }

.glass-card {
  position: relative; border-radius: var(--radius-xl); padding: 26px;
  background: var(--surface-card); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
  transition: border-color 0.3s ease, transform 0.25s ease;
}
.glass-card:hover { border-color: var(--border-strong); }
.pro-framed { border-color: var(--pro-border); }
.glass-card h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }

/* ==========================================================================
   UPGRADED SHOWPIECE LIVE CHAT PLAYGROUND (IMAGE 3 FIX!)
   ========================================================================== */
.playground-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.15fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 24px;
  border-color: var(--free-border);
}

.pg-left { display: flex; flex-direction: column; gap: 18px; }
.pg-desc { margin: -6px 0 0; font-size: 0.98rem; color: var(--text-muted); }
.pg-block { display: flex; flex-direction: column; gap: 10px; }
.pg-label { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }

.preset-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.preset-dot {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 6px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface-inner);
  color: var(--text-secondary); font-size: 0.84rem; font-weight: 600; transition: all 0.2s ease;
}
.preset-dot::before {
  content: ''; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2)); display: block;
}
.preset-dot:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.preset-dot.active { border-color: var(--text); color: var(--text); box-shadow: 0 0 16px rgba(16, 185, 129, 0.25); }

.hex-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-inner); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.82rem; cursor: pointer;
}
.hex-chip input { width: 20px; height: 20px; border: none; background: none; cursor: pointer; padding: 0; }

.theme-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-inner); color: var(--text-muted); font-size: 0.86rem; font-weight: 600; }
.mini-pill.active { border-color: var(--text); color: var(--text); }

.prompt-starters { display: flex; flex-direction: column; gap: 8px; }
.starter-btn {
  text-align: left; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-inner); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease;
}
.starter-btn:hover { border-color: var(--free-border); color: var(--text); transform: translateX(4px); }

.sync-btn, .copy-pill {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--free-border); background: var(--free-bg);
  color: var(--free-soft); font-size: 0.88rem; font-weight: 700; transition: all 0.2s ease;
}
.sync-btn:hover, .copy-pill:hover { background: var(--free); color: #ffffff; }

/* LARGE REALISTIC INTERACTIVE CHAT WINDOW */
.pg-right { display: flex; flex-direction: column; }
.live-chat-window {
  flex: 1; min-height: 460px; border-radius: 20px; padding: 18px;
  background: #131318; color: #fafafa; border: 1.5px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
}
.live-chat-window.expanded { transform: scale(1.025); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62); }
.live-chat-window.theme-light { background: #ffffff; color: #111113; border-color: #d4d4d8; }
.live-chat-window.theme-sync { border-color: var(--orb-a); box-shadow: 0 0 32px rgba(16, 185, 129, 0.22); }
.live-chat-window.theme-dark { background: #09090b; border-color: #27272a; }
.live-chat-window.theme-custom { background: linear-gradient(160deg, #18181b, #1c1917); border-color: var(--orb-b); }

.lcw-header { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.mw-orb {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ecfdf5, var(--orb-a) 55%, var(--orb-b));
  display: flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0;
}
.mw-eye { width: 4.5px; height: 9px; border-radius: 99px; background: #09090b; display: block; }
.lcw-title { display: flex; flex-direction: column; line-height: 1.25; }
.lcw-title strong { font-size: 0.98rem; }
.lcw-title span { font-size: 0.8rem; opacity: 0.78; display: inline-flex; align-items: center; gap: 6px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; display: inline-block; }
.lcw-expand-btn {
  margin-left: auto; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.26); background: rgba(148, 163, 184, 0.12);
  color: inherit; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
}

.lcw-messages { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 310px; padding-right: 4px; }
.lcw-msg { font-size: 0.94rem; line-height: 1.5; padding: 12px 15px; border-radius: 15px; max-width: 88%; animation: fadeIn 0.25s ease; }
.lcw-msg.user { align-self: flex-end; background: var(--orb-a); color: #ffffff; font-weight: 600; border-bottom-right-radius: 4px; }
.lcw-msg.bot { align-self: flex-start; background: rgba(148, 163, 184, 0.14); border-bottom-left-radius: 4px; }
.lcw-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lcw-sources span { font-family: var(--font-mono); font-size: 0.74rem; padding: 3px 9px; border-radius: 999px; background: rgba(16, 185, 129, 0.16); color: #34d399; }
.live-chat-window.theme-light .lcw-sources span { color: #047857; }

.typing-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: typingBounce 1.1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.18s; }
.typing-dots i:nth-child(3) { animation-delay: 0.36s; }

.lcw-input-bar { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, 0.18); }
.lcw-input-bar input {
  flex: 1; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26); background: rgba(148, 163, 184, 0.08);
  color: inherit; font-size: 0.92rem;
}
.lcw-send-btn {
  width: 42px; height: 42px; border-radius: 12px; border: none;
  background: var(--orb-a); color: #ffffff; display: grid; place-items: center;
}
.lcw-foot { text-align: center; font-size: 0.76rem; opacity: 0.65; font-family: var(--font-mono); }

/* ==========================================================================
   21ST.DEV ARCHITECTURAL HAIRLINE 6-CELL FEATURE GRID (FREE CORE)
   ========================================================================== */
.bento-hairline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
  box-shadow: var(--shadow-lg);
}

.bento-cell {
  min-width: 0;
  background: var(--surface-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s ease;
}
.bento-cell:hover { background: var(--surface-strong); }

.bento-cell-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bento-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-inner); color: var(--text);
}
.bento-icon.free { color: var(--free-soft); border-color: var(--free-border); background: var(--free-bg); }
.bento-meta { margin-top: 2px; }
.bento-cell h3 { margin: 0; font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
.bento-cell p { margin: 0; font-size: 0.94rem; line-height: 1.55; color: var(--text-muted); }
.bento-cell p code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text-secondary); }

.bento-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.bento-chips span {
  font-family: var(--font-mono); font-size: 0.76rem; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-inner); border: 1px solid var(--border); color: var(--text-secondary);
}

.bento-mini-gaps { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding-top: 4px; }
.bento-mini-gaps > div {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 9px; background: var(--surface-inner); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-secondary);
}
.gap-pill {
  font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; background: var(--free-bg); color: var(--free-soft); white-space: nowrap;
}
.gap-pill.hot { background: var(--pro-bg); color: var(--pro); }

.code-hud { padding: 12px 14px; border-radius: 10px; background: var(--surface-inner); border: 1px solid var(--border); overflow-x: hidden; }
.code-hud.compact { margin: 2px 0; }
.code-hud pre { margin: 0; font-size: 0.78rem; line-height: 1.5; color: var(--free-soft); white-space: pre-wrap; word-break: break-all; }

/* ==========================================================================
   ARCHITECTURAL FREE -> PRO BRIDGE
   ========================================================================== */
.upgrade-portal-wrap { padding: 16px 0 24px; }
.upgrade-portal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 32px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.portal-glow-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--free) 0%, #34d399 42%, #ff5a1f 68%, #fbbf24 100%);
}
.portal-grid {
  display: grid;
  grid-template-columns: 0.9fr auto 1.35fr;
  gap: 24px;
  align-items: center;
}
.portal-node h4 { margin: 10px 0 12px; font-family: var(--font-display); font-size: 1.25rem; }
.portal-mini-list { display: flex; flex-direction: column; gap: 8px; }
.portal-mini-list span {
  padding: 10px 14px; border-radius: 10px; background: var(--surface-inner);
  border: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; color: var(--text-secondary);
}

.portal-conduit { display: flex; align-items: center; gap: 10px; }
.conduit-track {
  position: relative; width: 42px; height: 2px; border-radius: 99px;
  background: var(--border-strong); overflow: hidden;
}
.conduit-track i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--pro), transparent);
  animation: conduitFlow 1.6s linear infinite;
}
.conduit-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, #ff5a1f, #ea580c); color: #ffffff;
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.32);
}
.conduit-plus { font-size: 1.45rem; font-weight: 800; line-height: 1; }
.conduit-chip strong { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; }

.portal-unlock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pu-item {
  padding: 13px 15px; border-radius: 12px; background: var(--surface-inner);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px;
  transition: border-color 0.2s ease;
}
.pu-item:hover { border-color: var(--pro-border); }
.pu-item strong { font-size: 0.95rem; color: var(--text); }
.pu-item span { font-size: 0.84rem; color: var(--text-muted); }

/* ==========================================================================
   WOOCOMMERCE PRO STUDIO STOREFRONT (REAL PHOTOGRAPHY)
   ========================================================================== */
.pro-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pro-tab {
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease;
}
.pro-tab:hover { color: var(--text); border-color: var(--pro-border); }
.pro-tab.active { background: var(--pro-bg); border-color: var(--pro); color: var(--pro); }

.pro-stage {
  position: relative; border-radius: var(--radius-xl); padding: 24px 28px 28px;
  background: var(--surface-card); border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
}
.pro-stage.pro-framed { border-color: var(--pro-border); }
.pro-stage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.psb-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.psb-hint { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.psb-cart {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface-inner); border: 1px solid var(--pro-border); font-size: 0.88rem;
}
.psb-cart strong { color: var(--pro); font-family: var(--font-mono); }

.pro-panel { display: none; }
.pro-panel.active { display: block; animation: fadeIn 0.3s ease; }

.pro-commerce-grid { display: grid; grid-template-columns: 0.95fr 1.12fr; gap: 28px; align-items: stretch; }

.product-studio-stage {
  position: relative;
  min-height: 450px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #141418;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.studio-photo-stack { position: relative; width: 100%; height: 100%; }
.studio-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.035);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.studio-photo.active { opacity: 1; transform: scale(1); }
.product-studio-stage:hover .studio-photo.active { transform: scale(1.03); }

.studio-badge-tl, .studio-badge-br {
  position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(9, 9, 11, 0.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #f4f4f5;
  display: inline-flex; align-items: center; gap: 7px;
}
.studio-badge-tl { top: 14px; left: 14px; color: #6ee7b7; border-color: rgba(16, 185, 129, 0.38); }
.studio-badge-br { bottom: 14px; right: 14px; color: #d4d4d8; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; display: inline-block; box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
.live-dot.pro { background: #ff5a1f; box-shadow: 0 0 8px rgba(255, 90, 31, 0.8); }

.studio-swatches-bl {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  display: inline-flex; gap: 8px; padding: 6px 10px; border-radius: 999px;
  background: rgba(9, 9, 11, 0.78); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.14);
}
.swatch-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--sw);
  border: 2px solid rgba(255, 255, 255, 0.25); transition: transform 0.2s ease, border-color 0.2s ease;
}
.swatch-dot:hover { transform: scale(1.12); }
.swatch-dot.active { border-color: #ffffff; transform: scale(1.12); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

.product-chat-col { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.pro-chat-bubble-user {
  align-self: flex-end; max-width: 94%; padding: 13px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--pro-bg); border: 1px solid var(--pro-border); font-size: 0.96rem; font-weight: 600; color: var(--text);
}
.pro-chat-card {
  padding: 22px; border-radius: 16px; background: var(--surface-inner); border: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 16px;
}
.pcc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pcc-top h4 { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
.pcc-price { font-family: var(--font-mono); font-size: 1.35rem; color: var(--pro); }

.variant-picker { display: flex; flex-direction: column; gap: 12px; }
.vp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vp-lbl { font-size: 0.86rem; color: var(--text-muted); font-family: var(--font-mono); font-weight: 600; }
.vp-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.vp-chip { height: 35px; padding: 0 13px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.86rem; font-weight: 600; transition: all 0.2s ease; }
.vp-chip:hover { border-color: var(--border-strong); color: var(--text); }
.vp-chip.active { border-color: var(--pro); color: var(--pro); background: var(--pro-bg); }

.atc-feedback { min-height: 22px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--free); font-weight: 600; }
.atc-feedback.center { text-align: center; margin-top: 12px; }

.spec-pills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-tile { padding: 14px; border-radius: 12px; background: var(--surface-inner); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.spec-tile strong { font-size: 0.94rem; color: var(--text); }
.spec-tile span { font-size: 0.84rem; color: var(--text-muted); }

.pro-split { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 28px; align-items: center; }
.pro-top-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pro-top-caption h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }

.compare-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cmp-card { padding: 18px; border-radius: 16px; background: var(--surface-inner); border: 1px solid var(--border); display: flex; flex-direction: column; }
.cmp-card.featured { border-color: var(--pro-border); }
.cmp-thumb-wrap { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: #141418; }
.cmp-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-tag {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(9, 9, 11, 0.82); color: #e4e4e7; border: 1px solid rgba(255, 255, 255, 0.14);
}
.cmp-tag.pro { color: #ff8a5b; border-color: rgba(255, 90, 31, 0.45); }
.cmp-card h4 { margin: 0 0 4px; font-size: 1.12rem; }
.cmp-price { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--pro); margin-bottom: 14px; }
.cmp-specs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cmp-specs li { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; }
.cmp-specs strong { color: var(--text); }
.cmp-specs strong.ok { color: var(--free); }

.bundle-flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bundle-item { flex: 1; min-width: 156px; padding: 16px; border-radius: 14px; background: var(--surface-inner); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; font-size: 0.96rem; }
.bundle-item.main-item { flex: 1.45; border-color: var(--pro-border); flex-direction: row; align-items: center; gap: 14px; }
.bundle-item.main-item > div { display: flex; flex-direction: column; gap: 4px; }
.bundle-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-strong); }
.b-price { font-family: var(--font-mono); color: var(--pro); font-size: 0.94rem; font-weight: 700; }
.bundle-plus { font-family: var(--font-display); font-size: 1.6rem; color: var(--pro); }

.offer-card-demo, .track-form-demo { padding: 22px; border-radius: 16px; background: var(--surface-inner); border: 1px solid var(--pro-border); display: flex; flex-direction: column; gap: 14px; }
.offer-badge-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-card-demo h4 { margin: 0; font-size: 1.15rem; }
.offer-code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--pro-border); font-size: 0.84rem; color: var(--pro); }

.track-inputs { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.track-inputs input { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 0.9rem; }
.track-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 8px; }
.tr-step { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tr-step i { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); display: block; }
.tr-step.done { color: var(--free); }
.tr-step.done i { background: var(--free); }
.tr-step.active { color: var(--pro); }
.tr-step.active i { background: var(--pro); animation: pulseBeat 1.5s infinite; }

/* ==========================================================================
   21ST.DEV @LUMESEC/GEO-GLOBE & SECURITY ARCHITECTURE FLOW
   ========================================================================== */
.globe-layout, .vault-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; }

.geo-globe-card, .lang-console, .sec-arch-card, .cc-hud {
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.geo-globe-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  min-height: 490px;
}
.geo-globe-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.geo-live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface-inner); border: 1px solid var(--border); color: var(--text);
}
.geo-live-pill.muted { color: var(--text-muted); }

.geo-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 330px;
  margin: 8px 0;
  cursor: grab;
  touch-action: none;
}
.geo-canvas-wrap:active { cursor: grabbing; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.geo-globe-foot {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.geo-status-text { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.geo-region-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.geo-chip {
  height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-inner);
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s ease;
}
.geo-chip:hover { color: var(--text); border-color: var(--border-strong); }
.geo-chip.active { border-color: var(--pro); color: var(--pro); background: var(--pro-bg); }

.lang-console { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px 26px; }
.lang-switch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-tab { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-inner); color: var(--text-muted); font-size: 0.88rem; font-weight: 600; transition: all 0.2s ease; }
.lang-tab:hover { color: var(--text); border-color: var(--border-strong); }
.lang-tab.active { border-color: var(--pro); color: var(--pro); background: var(--pro-bg); }

.lang-chat-box { padding: 20px; border-radius: 16px; background: var(--surface-inner); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 13px; }
.lcb-header { display: flex; align-items: center; justify-content: space-between; }
.lcb-msg { font-size: 0.96rem; padding: 12px 15px; border-radius: 14px; max-width: 92%; }
.lcb-msg.user { align-self: flex-end; background: var(--pro-bg); border: 1px solid var(--pro-border); color: var(--text); font-weight: 600; }
.lcb-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }
.lcb-product { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--pro-border); }
.lcb-prod-left { display: flex; align-items: center; gap: 12px; }
.lcb-thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.lcb-product strong { display: block; font-size: 0.96rem; }
.lcb-product span { font-family: var(--font-mono); font-size: 0.84rem; color: var(--pro); }

.pack-list-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.pack-list-strip span { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--surface-inner); border: 1px solid var(--border); color: var(--text-muted); }
.pack-list-strip span.rtl { border-color: var(--pro-border); color: var(--pro); }

/* 21ST.DEV SECURITY ARCHITECTURE PIPELINE */
.sec-arch-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.sec-arch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-pipeline { display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.sec-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-inner); border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}
.sec-node.active-guard { border-color: var(--free-border); }
.sec-node:hover { border-color: var(--border-strong); }
.sec-step {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  background: var(--free-bg); border: 1px solid var(--free-border); color: var(--free-soft);
}
.sec-step.pro { background: var(--pro-bg); border-color: var(--pro-border); color: var(--pro); }
.sec-node-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sec-node-body strong { font-size: 0.96rem; color: var(--text); }
.sec-node-body span { font-size: 0.84rem; color: var(--text-muted); }
.sec-status {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.sec-status.ok { background: var(--free-bg); color: var(--free-soft); border: 1px solid var(--free-border); }
.sec-status.pro { background: var(--pro-bg); color: var(--pro); border: 1px solid var(--pro-border); }

.sec-wire {
  position: relative; width: 2px; height: 18px; margin-left: 32px;
  background: var(--border-strong); overflow: hidden;
}
.sec-wire i {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, var(--free), transparent);
  animation: wirePulseDown 1.7s linear infinite;
}
.sec-wire.pro i { background: linear-gradient(180deg, transparent, var(--pro), transparent); }

.cc-hud { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-tab-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-inner); color: var(--text-muted); font-size: 0.86rem; font-weight: 600; transition: all 0.2s ease; }
.cc-tab:hover { color: var(--text); border-color: var(--border-strong); }
.cc-tab.active { border-color: var(--pro); color: var(--pro); background: var(--pro-bg); }
.cc-body { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cc-tile { padding: 16px; border-radius: 14px; background: var(--surface-inner); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.cc-tile strong { font-size: 0.98rem; color: var(--text); }
.cc-tile span { font-size: 0.88rem; color: var(--text-muted); }

/* ==========================================================================
   PART III — COMPARISON, FAQ & FOOTER (LARGER READABLE FONT!)
   ========================================================================== */
.tier-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 26px; }
.tier-card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.tier-card.pro-tier { border-color: var(--pro-border); }
.tier-head h3 { margin: 12px 0 6px; font-size: 1.6rem; }
.tier-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.tier-price span { font-family: var(--font-mono); font-size: 0.84rem; font-weight: 500; color: var(--text-muted); }
.tier-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tier-list li { position: relative; padding-left: 22px; font-size: 0.98rem; color: var(--text-secondary); }
.tier-list li::before { content: '✦'; position: absolute; left: 0; color: var(--free); }
.pro-tier .tier-list li::before { color: var(--pro); }

.matrix-wrap { overflow-x: auto; padding: 16px 24px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.compare-table th, .compare-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.yes { font-family: var(--font-mono); font-size: 0.86rem; color: var(--free); font-weight: 600; }
.compare-table td.pro-yes { font-family: var(--font-mono); font-size: 0.86rem; color: var(--pro); font-weight: 600; }
.compare-table td.no { color: var(--text-dim); }
.compare-table td.muted-cell { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-muted); }

.faq-cta-section { padding-top: 10px; }
.faq-list { max-width: 860px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 16px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.faq-item summary { font-weight: 600; font-size: 1.04rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--pro); font-size: 1.25rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; font-size: 0.96rem; color: var(--text-muted); }

.final-portal { text-align: center; padding: 48px 28px; border-color: var(--pro-border); }
.final-portal h2 { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.35rem); }

.site-footer { padding: 30px 0 44px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--pro); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes pulseBeat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes smartBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typingBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes conduitFlow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes wirePulseDown { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.glass-card, .pro-stage, .geo-globe-card, .lang-console, .sec-arch-card, .cc-hud, .upgrade-portal, .story-bubble { min-width: 0; }

@media (max-width: 1180px) {
  .nav-links { display: none; }
}

@media (max-width: 1080px) {
  .story-constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .node-visitor { grid-column: 1; grid-row: 1; }
  .node-ai { grid-column: 2; grid-row: 1; }
  .companion-hub { grid-column: 1 / span 2; grid-row: 2; margin: 12px 0; }
  .node-outcome-left { grid-column: 1; grid-row: 3; }
  .node-outcome-right { grid-column: 2; grid-row: 3; }
  .playground-stage, .portal-grid, .pro-commerce-grid, .pro-split, .globe-layout, .vault-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-conduit { justify-content: center; }
  .bento-hairline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-studio-stage { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; aspect-ratio: 1 / 1; }
}

@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .site-header { top: 10px; padding: 0 12px; }
  .header-shell { height: 54px; padding: 0 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-orb { width: 28px; height: 28px; }
  .brand-text { font-size: 0.94rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-sm { height: 34px; padding: 0 12px; font-size: 0.8rem; }
  .theme-toggle { height: 34px; padding: 0 10px; font-size: 0.8rem; }

  .hero-section { padding: 78px 14px 24px; min-height: auto; gap: 14px; }
  .hero-top-bar { gap: 14px; }
  .eyebrow-pill { flex-wrap: wrap; row-gap: 4px; border-radius: 14px; font-size: 0.74rem; padding: 7px 12px; line-height: 1.35; }
  .hero-title { font-size: clamp(1.85rem, 7.6vw, 2.35rem); }
  .hero-lead { font-size: 0.96rem; }
  .hero-actions-wrap { width: 100%; }
  .hero-actions-wrap .btn { flex: 1 1 auto; height: 44px; padding: 0 16px; font-size: 0.88rem; }

  .hero-stage { min-height: auto; padding-top: 4px; }
  .story-constellation { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 18px; padding: 10px 0 14px; }
  .node-visitor, .companion-hub, .node-ai, .node-outcome-left, .node-outcome-right { grid-column: 1; grid-row: auto; align-self: stretch; }
  .story-bubble { padding: 16px; }
  .bubble-quote { font-size: 0.98rem; }
  .companion-hub { margin: 6px 0; gap: 12px; align-items: center; }
  .companion-shell { width: 152px; height: 152px; }
  .companion-orbit-label { white-space: normal; text-align: center; font-size: 0.74rem; padding: 6px 12px; max-width: 100%; }

  .hero-dock { border-radius: 18px; padding: 12px; gap: 10px; flex-direction: column; align-items: stretch; }
  .dock-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dock-tab { justify-content: flex-start; height: 38px; padding: 0 12px; font-size: 0.84rem; width: 100%; }
  .dock-steps { display: none; }
  .dock-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }

  .telemetry-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tele-item { flex-direction: column; gap: 3px; padding: 12px 14px; }
  .tele-item strong { font-size: 1.12rem; }
  .tele-item span { font-size: 0.8rem; }

  .chapter-section { padding: 52px 0; }
  .chapter-banner { padding: 18px 16px; gap: 14px; margin-bottom: 20px; border-radius: 18px; }
  .chapter-banner h2, .section-head h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .cb-right { width: 100%; justify-content: space-between; gap: 12px; }
  .cb-scope { font-size: 0.86rem; }
  .sub-chapter { margin-top: 48px; }
  .sub-head { margin-bottom: 20px; }
  .sub-head h3 { font-size: clamp(1.35rem, 5.6vw, 1.75rem); }

  .glass-card, .pro-stage, .geo-globe-card, .lang-console, .sec-arch-card, .cc-hud, .upgrade-portal {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .playground-stage { gap: 20px; }
  .preset-dots { gap: 7px; }
  .preset-dot { height: 34px; padding: 0 10px 0 5px; font-size: 0.8rem; }
  .preset-dot::before { width: 20px; height: 20px; }
  .sync-btn { width: 100%; }
  .live-chat-window { min-height: 390px; padding: 14px; }
  .lcw-msg { max-width: 94%; font-size: 0.9rem; padding: 10px 12px; }
  .lcw-expand-btn { padding: 0 9px; font-size: 0.72rem; }

  .bento-hairline-grid, .compare-3-grid, .spec-pills-grid, .tier-cards, .cc-body, .portal-unlock-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-cell { padding: 20px 18px; }

  .pro-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }
  .pro-tabs::-webkit-scrollbar { display: none; }
  .pro-tab { flex: 0 0 auto; height: 38px; padding: 0 14px; font-size: 0.84rem; }

  .pro-stage-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; }
  .psb-cart { width: 100%; justify-content: space-between; font-size: 0.84rem; }
  .product-studio-stage { max-width: none; min-height: 0; aspect-ratio: 1 / 1; }
  .studio-badge-tl, .studio-badge-br { font-size: 0.7rem; padding: 5px 10px; }
  .pro-chat-card { padding: 16px; gap: 12px; }
  .pcc-top { flex-direction: column; gap: 4px; }
  .vp-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  .bundle-flow { flex-direction: column; align-items: stretch; gap: 8px; }
  .bundle-plus { text-align: center; line-height: 1; font-size: 1.3rem; }
  .offer-code-box { flex-direction: column; align-items: stretch; text-align: center; }
  .track-inputs { grid-template-columns: minmax(0, 1fr); }
  .track-result { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .geo-globe-card { min-height: 410px; }
  .geo-canvas-wrap { min-height: 270px; }
  .geo-live-pill { font-size: 0.7rem; padding: 4px 10px; }
  .lang-chat-box { padding: 14px; }
  .lcb-header { flex-wrap: wrap; gap: 8px; }
  .lcb-product { flex-direction: column; align-items: stretch; gap: 12px; }
  .lcb-product .btn { width: 100%; }

  .sec-node { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .sec-node-body { flex: 1 1 180px; }
  .sec-status { margin-left: 44px; }
  .sec-wire { margin-left: 28px; height: 14px; }
  .cc-top { flex-wrap: wrap; gap: 8px; }

  .tier-price { flex-direction: column; gap: 4px; font-size: 1.65rem; }
  .matrix-wrap { padding: 10px 12px; }
  .compare-table { font-size: 0.84rem; min-width: 520px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
  .faq-item { padding: 14px 16px; }
  .faq-item summary { font-size: 0.96rem; gap: 12px; }
  .final-portal { padding: 32px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .version-pill { display: none; }
  #theme-label { display: none; }
  .theme-toggle { width: 34px; padding: 0; justify-content: center; }
  .brand-text { font-size: 0.88rem; }
  .header-actions .btn-sm { padding: 0 10px; font-size: 0.76rem; }
  .studio-badge-br { display: none; }
  .telemetry-ribbon { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
