/* ==========================================================================
   MarginPulse FBA by DexLabs — Flagship Dark-Craft Stylesheet
   Obsidian (#09090b) • Zinc Surfaces (#111115 / #18181b) • Amber Gold & Violet (#f59e0b -> #8b5cf6); green kept only for profit-positive indicators
   ========================================================================== */

:root {
  --bg-obsidian: #09090b;
  --bg-surface: #111115;
  --bg-elevated: #18181b;
  --bg-card-hover: #1d1d22;
  --bg-glass: rgba(9, 9, 11, 0.78);
  --bg-glass-strong: rgba(17, 17, 21, 0.92);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.16);

  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-glow: rgba(139, 92, 246, 0.16);

  --good-400: #34d399;

  --danger-400: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.12);

  --brand-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 45%, #8b5cf6 100%);
  --text-gradient: linear-gradient(125deg, #ffffff 15%, #fde68a 58%, #a78bfa 100%);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-amber: 0 12px 34px -10px rgba(245, 158, 11, 0.42);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Architecture */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-canvas::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 140vw);
  height: 680px;
  background:
    radial-gradient(ellipse 52% 48% at 36% 32%, rgba(245, 158, 11, 0.14), transparent 70%),
    radial-gradient(ellipse 48% 46% at 66% 38%, rgba(139, 92, 246, 0.12), transparent 72%);
  filter: blur(44px);
  animation: ambientDrift 14s ease-in-out infinite alternate;
}

.ambient-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, #000 25%, transparent 80%);
}

@keyframes ambientDrift {
  0% { transform: translateX(-50%) scale(1) translateY(0); opacity: 0.9; }
  100% { transform: translateX(-48%) scale(1.06) translateY(18px); opacity: 1; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

button, input, select {
  font-family: inherit;
  color: inherit;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Sticky Glassmorphic Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-gradient);
  color: #09090b;
  font-weight: 900;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: var(--amber-400);
}

.brand-studio {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

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

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass-strong);
  padding: 18px 24px 24px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-bottom: 16px;
}

.mobile-drawer-links a {
  display: block;
  padding: 8px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.83rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.96rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #09090b;
  font-weight: 750;
  box-shadow: var(--shadow-amber);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.btn-emerald {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.38);
  color: var(--violet-400);
}

.btn-emerald:hover {
  background: rgba(139, 92, 246, 0.22);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge-pill.amber {
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(245, 158, 11, 0.34);
  color: var(--amber-400);
}

.badge-pill.emerald {
  background: rgba(139, 92, 246, 0.11);
  border-color: rgba(139, 92, 246, 0.34);
  color: var(--violet-400);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 10px var(--violet-400);
}

/* ==========================================================================
   Hero Section & Verifiable Specs Bar
   ========================================================================== */
.hero-section {
  padding: 68px 0 56px;
}

.hero-header {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

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

.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 550;
}

.store-chip:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.specs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
}

.spec-cell {
  background: var(--bg-surface);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Browser + MarginPulse FBA Side Panel Simulator
   ========================================================================== */
.simulator-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-chrome-bar {
  background: #0d0d11;
  border-bottom: 1px solid var(--border-subtle);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #8b5cf6; }

.browser-url-bar {
  flex: 1;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.sim-live-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--violet-400);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.simulator-workspace {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 540px;
}

/* Left Mock Amazon Listing Context */
.amz-context-pane {
  padding: 24px;
  background: linear-gradient(180deg, #0e0e13 0%, #0a0a0d 100%);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.amz-breadcrumb {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.amz-product-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.amz-prod-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.amz-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.22), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-medium);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--amber-400);
}

.amz-prod-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.amz-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.amz-meta-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 12px;
}

.amz-meta-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.amz-meta-box strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.amz-architecture-note {
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 11px;
  padding: 13px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.amz-architecture-note strong {
  color: var(--violet-400);
}

/* Right Interactive MarginPulse Side Panel */
.sidepanel-sim-pane {
  background: #111115;
  display: flex;
  flex-direction: column;
}

.sp-sim-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-sim-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.sp-mkt-switcher {
  display: inline-flex;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.sp-mkt-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.sp-mkt-btn.active {
  background: var(--bg-elevated);
  color: var(--amber-400);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sp-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: #0d0d11;
}

.sp-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 11px 6px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

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

.sp-tab-btn.active {
  color: var(--amber-400);
  border-bottom-color: var(--amber-500);
  background: rgba(245, 158, 11, 0.05);
}

.sp-tab-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.sp-panel-body {
  padding: 18px;
  flex: 1;
}

.sp-panel {
  display: none;
  gap: 14px;
}

.sp-panel.active {
  display: grid;
}

.sp-toggles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seg-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-muted);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--bg-elevated);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.sim-sliders-grid {
  display: grid;
  gap: 11px;
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.sim-control-row {
  display: grid;
  gap: 5px;
}

.sim-control-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.sim-control-top label {
  color: var(--text-secondary);
  font-weight: 600;
}

.sim-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.sim-num-input {
  width: 62px;
  background: transparent;
  border: none;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  outline: none;
}

input[type="range"].sim-range {
  width: 100%;
  accent-color: var(--amber-500);
  cursor: pointer;
  height: 5px;
}

.sp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sp-kpi-card {
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-kpi-card.good {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.34);
}

.sp-kpi-card.bad {
  background: var(--danger-bg);
  border-color: rgba(248, 113, 113, 0.35);
}

.sp-kpi-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sp-kpi-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
}

.sp-kpi-card.good .sp-kpi-val {
  color: var(--good-400);
}

.sp-kpi-card.bad .sp-kpi-val {
  color: var(--danger-400);
}

.sp-reverse-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-reverse-bar strong {
  font-family: var(--font-mono);
  color: var(--amber-400);
  font-size: 0.95rem;
}

.sp-Subgrid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sp-mini-box {
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.76rem;
  display: grid;
  gap: 5px;
}

.sp-fee-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.sp-fee-line span:last-child {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Simulator Variations, Risk & Leads */
.sim-var-list,
.sim-leads-list {
  display: grid;
  gap: 8px;
  max-height: 370px;
  overflow-y: auto;
}

.sim-var-item,
.sim-lead-item {
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sim-var-item.best-seller {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.06);
}

.var-share-bar {
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.var-share-fill {
  height: 100%;
  background: var(--brand-gradient);
}

.risk-banner-ok {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: var(--good-400);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.risk-pill-box {
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 0.77rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qlinks-sim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   Section Headers & Bento Grid
   ========================================================================== */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mouse-x) var(--mouse-y),
    rgba(245, 158, 11, 0.11),
    rgba(139, 92, 246, 0.05) 38%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

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

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-400);
  display: grid;
  place-items: center;
}

.bento-icon.emerald {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--violet-400);
}

.bento-card h3 {
  font-size: 1.22rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.mini-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   How It Works — 3-Step Flow
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 780;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   Pricing Section & Creem.io MoR Disclosure
   ========================================================================== */
.trial-banner-card {
  max-width: 920px;
  margin: 0 auto 26px;
  background: radial-gradient(ellipse 80% 90% at 15% 50%, rgba(139, 92, 246, 0.14), transparent 65%), var(--bg-surface);
  border: 1px solid rgba(139, 92, 246, 0.36);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pricing-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.price-card.featured {
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(245, 158, 11, 0.14), transparent 68%), var(--bg-surface);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 24px 60px -20px rgba(245, 158, 11, 0.22);
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
}

.price-big {
  font-size: 2.9rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.price-sub-note {
  font-size: 0.85rem;
  color: var(--violet-400);
  font-weight: 600;
}

.price-features {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-top: 18px;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-mark {
  color: var(--violet-400);
  font-weight: 800;
  flex-shrink: 0;
}

.mor-compliance-strip {
  max-width: 920px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mor-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.mor-box strong {
  color: var(--text-primary);
}

/* ==========================================================================
   FAQ Accordion & Support Card
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: var(--border-medium);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--amber-400);
}

.faq-panel {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item.is-open .faq-panel {
  display: block;
}

.support-card {
  max-width: 840px;
  margin: 0 auto;
  background: radial-gradient(ellipse 75% 75% at 100% 0%, rgba(245, 158, 11, 0.12), transparent 65%), var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Legal Pages Layout (Sticky TOC + Structured Compliance Prose)
   ========================================================================== */
.legal-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  padding: 44px 0 88px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: block;
}

.legal-toc ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--amber-500);
}

.legal-article {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.summary-callout {
  background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(139, 92, 246, 0.14), transparent 65%), var(--bg-surface);
  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  gap: 10px;
}

.summary-callout.amber {
  background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(245, 158, 11, 0.14), transparent 65%), var(--bg-surface);
  border-color: rgba(245, 158, 11, 0.38);
}

.summary-callout h2 {
  font-size: 1.14rem;
  color: var(--violet-400);
}

.summary-callout.amber h2 {
  color: var(--amber-400);
}

.legal-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  gap: 14px;
  scroll-margin-top: 96px;
}

.legal-section h2 {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber-400);
  margin-top: 6px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.72;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-section code {
  font-size: 0.84em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.13);
  color: var(--amber-400);
}

.inline-link {
  color: var(--amber-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.inline-link:hover {
  color: #fde68a;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Footer & Trademark Disclaimer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #070709;
  padding: 48px 0 40px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding-top: 22px;
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Toast & Scroll Reveal
   ========================================================================== */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.site-toast {
  background: var(--bg-elevated);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ==========================================================================
   Responsive Breakpoints (375px -> 1440px+) & Reduced Motion
   ========================================================================== */
@media (max-width: 1024px) {
  .simulator-workspace {
    grid-template-columns: 1fr;
  }
  .amz-context-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .span-7, .span-5, .span-6, .span-4 {
    grid-column: span 6;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .specs-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid,
  .pricing-grid,
  .mor-compliance-strip {
    grid-template-columns: 1fr;
  }
  .span-7, .span-5, .span-6, .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 44px 0 38px;
  }
  .section {
    padding: 60px 0;
  }
  .specs-strip,
  .sp-kpi-grid,
  .sp-toggles-row,
  .sp-Subgrid-2,
  .risk-grid,
  .amz-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sp-Subgrid-2,
  .sp-toggles-row {
    grid-template-columns: 1fr;
  }
  .sp-tabs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-card,
  .support-card,
  .legal-section {
    padding: 22px 18px;
  }
  .nav-actions .btn-primary {
    display: none;
  }
}

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