*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Inter',sans-serif;background:#06060f;color:#e2e8f0;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;display:block}

:root{
  --blue:#3b82f6;--purple:#8b5cf6;--cyan:#22d3ee;--green:#4ade80;
  --grad:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);
  --grad-h:linear-gradient(90deg,#3b82f6,#8b5cf6);
  --bg-0:#06060f;--bg-1:#0d0d1a;--bg-2:#111122;--bg-3:#16162a;
  --surface:rgba(255,255,255,.03);--surface-2:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.08);--border-2:rgba(255,255,255,.14);
  --text-1:#f1f5f9;--text-2:rgba(255,255,255,.65);--text-3:rgba(255,255,255,.38);
  --glow-blue:0 0 40px rgba(59,130,246,.25);
  --glow-purple:0 0 40px rgba(139,92,246,.2);
  --r-sm:8px;--r-md:14px;--r-lg:20px;--r-xl:28px;--r-full:9999px;
  --shadow:0 4px 24px rgba(0,0,0,.5),0 1px 4px rgba(0,0,0,.3);
  --shadow-lg:0 12px 48px rgba(0,0,0,.6),0 4px 16px rgba(0,0,0,.4);
}

/* UTILITIES */
.container{max-width:1100px;margin:0 auto;padding:0 24px}
.section{padding:108px 0}
.section-sm{padding:80px 0}
.grad-text{background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.cyan-text{color:var(--cyan)}
.green-text{color:var(--green)}
.text-center{text-align:center}
.mx-auto{margin-left:auto;margin-right:auto}
.mono{font-family:'JetBrains Mono',monospace}

.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:14px;display:flex;align-items:center;gap:8px}
.eyebrow-line{width:24px;height:1px;background:var(--blue);opacity:.6}
.section-title{font-family:'Bricolage Grotesque','Inter',sans-serif;font-size:clamp(30px,4vw,46px);font-weight:800;line-height:1.1;letter-spacing:-.025em;color:var(--text-1);margin-bottom:16px}
.section-sub{font-size:17px;line-height:1.7;color:var(--text-2);max-width:560px;margin-top:12px}

.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:var(--r-full);font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;border:1px solid}
.pill-blue{background:rgba(59,130,246,.12);color:#60a5fa;border-color:rgba(59,130,246,.25)}
.pill-purple{background:rgba(139,92,246,.12);color:#a78bfa;border-color:rgba(139,92,246,.25)}
.pill-cyan{background:rgba(34,211,238,.1);color:#67e8f9;border-color:rgba(34,211,238,.2)}
.pill-green{background:rgba(74,222,128,.1);color:#86efac;border-color:rgba(74,222,128,.2)}

.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 28px;border-radius:var(--r-full);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;border:none;white-space:nowrap}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 4px 20px rgba(139,92,246,.4)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(139,92,246,.5)}
.btn-ghost{background:var(--surface);color:var(--text-1);border:1px solid var(--border-2)}
.btn-ghost:hover{background:var(--surface-2);border-color:rgba(255,255,255,.25)}

.glass-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);transition:all .3s ease}
.glass-card:hover{background:var(--surface-2);border-color:var(--border-2)}

.fade-up{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .65s ease}
.fade-up.visible{opacity:1;transform:translateY(0)}

.dot-grid{position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:36px 36px;pointer-events:none}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(6,6,15,.85);backdrop-filter:blur(24px) saturate(160%);border-bottom:1px solid var(--border);transition:border-color .3s}
nav.scrolled{border-color:var(--border-2)}
.nav-inner{max-width:1100px;margin:0 auto;padding:0 24px;height:62px;display:flex;align-items:center;justify-content:space-between}
.nav-logo-wrap{font-family:'Bricolage Grotesque',sans-serif;font-size:26px;font-weight:900;letter-spacing:-.04em;display:flex;align-items:baseline;gap:0}
.nav-logo-insight{color:#fff}
.nav-logo-rx{background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.nav-logo-sub{display:none}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:13px;font-weight:500;color:var(--text-3);transition:color .2s}
.nav-links a:hover{color:var(--text-1)}
.nav-cta{background:var(--grad);color:#fff;font-size:13px;font-weight:600;padding:8px 18px;border-radius:var(--r-full);box-shadow:0 3px 14px rgba(139,92,246,.35);transition:all .2s}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(139,92,246,.45)}

/* HERO */
#hero{min-height:100vh;display:flex;align-items:center;padding:120px 0 80px;position:relative;overflow:hidden;background:radial-gradient(ellipse 80% 50% at 50% -5%,rgba(59,130,246,.1) 0%,transparent 65%),radial-gradient(ellipse 60% 40% at 85% 50%,rgba(139,92,246,.08) 0%,transparent 60%),var(--bg-0)}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;position:relative;z-index:1}
.hero-eyebrow-row{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.h-live-dot{width:8px;height:8px;border-radius:50%;background:var(--green);animation:blink 2s infinite;flex-shrink:0}
@keyframes blink{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(74,222,128,.4)}50%{opacity:.7;box-shadow:0 0 0 6px rgba(74,222,128,0)}}
.hero-eyebrow-row span{font-size:12px;font-weight:600;color:var(--green);letter-spacing:.12em;text-transform:uppercase}
.hero-title{font-family:'Bricolage Grotesque','Inter',sans-serif;font-size:clamp(40px,5.5vw,66px);font-weight:800;line-height:1.05;letter-spacing:-.035em;color:var(--text-1);margin-bottom:20px}
.hero-sub{font-size:17px;line-height:1.72;color:var(--text-2);max-width:500px;margin-bottom:36px}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:48px}
.hero-chips{display:flex;gap:8px;flex-wrap:wrap}
.hero-chip{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;color:var(--text-3);background:var(--surface);border:1px solid var(--border);padding:4px 12px;border-radius:var(--r-full)}

.hero-terminal{background:var(--bg-2);border:1px solid var(--border-2);border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-lg),0 0 80px rgba(59,130,246,.08)}
.ht-topbar{padding:14px 18px;background:var(--bg-3);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
.ht-dot{width:11px;height:11px;border-radius:50%}
.ht-dot-r{background:#ff5f57}.ht-dot-y{background:#febc2e}.ht-dot-g{background:#28c840}
.ht-title{margin-left:8px;font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--text-3)}
.ht-body{padding:22px}
.ht-line{font-family:'JetBrains Mono',monospace;font-size:12px;line-height:1.9;display:flex;gap:10px}
.ht-prompt{color:#4ade80;flex-shrink:0}
.ht-cmd{color:#e2e8f0}
.ht-output{color:rgba(255,255,255,.45)}
.ht-highlight{color:#60a5fa}
.ht-purple{color:#a78bfa}
.ht-green{color:#4ade80}
.ht-divider{height:1px;background:var(--border);margin:14px 0}
.ht-metric-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:14px}
.ht-metric{background:var(--bg-3);border:1px solid var(--border);border-radius:var(--r-md);padding:12px}
.ht-m-val{font-family:'Bricolage Grotesque',sans-serif;font-size:20px;font-weight:800;color:var(--blue);margin-bottom:2px}
.ht-m-label{font-size:11px;color:var(--text-3)}

/* PROBLEM */
#problem{background:var(--bg-1)}
.problem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:48px}
.prob-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px;position:relative;overflow:hidden;transition:all .3s}
.prob-card:hover{background:var(--surface-2);border-color:var(--border-2);transform:translateY(-3px)}
.prob-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,rgba(239,68,68,.6),rgba(239,68,68,.0))}
.prob-icon{font-size:28px;margin-bottom:14px}
.prob-title{font-weight:700;font-size:16px;color:var(--text-1);margin-bottom:8px}
.prob-desc{font-size:13px;color:var(--text-2);line-height:1.7}
.prob-stat{font-family:'Bricolage Grotesque',sans-serif;font-size:32px;font-weight:900;color:#f87171;margin-top:14px}
.prob-stat-label{font-size:12px;color:var(--text-3);margin-top:2px}

/* WHY */
#why-matters{background:var(--bg-0);position:relative;overflow:hidden}
.why-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;margin-top:48px}
.why-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px 24px;transition:all .3s;position:relative;overflow:hidden}
.why-card::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--grad);transform:scaleX(0);transform-origin:left;transition:transform .35s ease}
.why-card:hover{background:var(--surface-2);transform:translateY(-4px);border-color:var(--border-2)}
.why-card:hover::after{transform:scaleX(1)}
.wc-num{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--blue);margin-bottom:12px;opacity:.7}
.wc-title{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:8px}
.wc-desc{font-size:13px;color:var(--text-2);line-height:1.7}

/* DATA SOURCES */
#data-sources{background:var(--bg-1)}
.sources-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:48px}
.source-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:24px 26px;display:flex;gap:18px;align-items:flex-start;transition:all .3s}
.source-card:hover{background:var(--surface-2);border-color:var(--border-2);transform:translateY(-2px)}
.source-icon{width:52px;height:52px;border-radius:var(--r-md);display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--border);padding:10px}
.source-icon img{width:100%;height:100%;object-fit:contain;display:block}
.si-ga4{background:linear-gradient(135deg,rgba(234,88,12,.2),rgba(251,146,60,.1))}
.si-gsc{background:linear-gradient(135deg,rgba(59,130,246,.2),rgba(96,165,250,.1))}
.si-sem{background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(167,139,250,.1))}
.si-meta{background:linear-gradient(135deg,rgba(29,78,216,.2),rgba(59,130,246,.1))}
.source-name{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:4px}
.source-type{font-size:12px;color:var(--blue);font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.source-desc{font-size:13px;color:var(--text-2);line-height:1.65}
.source-fields{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.sf{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);background:rgba(255,255,255,.04);border:1px solid var(--border);padding:2px 8px;border-radius:var(--r-full)}
.source-sub-icons{display:flex;gap:8px;margin-top:12px;align-items:center}
.source-sub-icon{width:26px;height:26px;border-radius:6px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);padding:5px}
.source-sub-icon img{width:100%;height:100%;object-fit:contain}

/* TECH STACK */
#tech-stack{background:var(--bg-0)}
.stack-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:48px}
.stack-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px 18px;text-align:center;transition:all .3s;cursor:default}
.stack-card:hover{background:var(--surface-2);border-color:var(--border-2);transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.4)}
.sc-icon{height:44px;margin-bottom:12px;display:flex;align-items:center;justify-content:center}
.sc-icon img{height:36px;width:auto;max-width:72px;object-fit:contain;display:block}
.sc-name{font-weight:700;font-size:14px;color:var(--text-1);margin-bottom:4px}
.sc-role{font-size:12px;color:var(--text-3)}
.sc-badge{display:inline-block;margin-top:8px;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:2px 9px;border-radius:var(--r-full)}
.badge-ai{background:rgba(139,92,246,.15);color:#a78bfa;border:1px solid rgba(139,92,246,.25)}
.badge-data{background:rgba(59,130,246,.15);color:#60a5fa;border:1px solid rgba(59,130,246,.25)}
.badge-infra{background:rgba(34,211,238,.1);color:#67e8f9;border:1px solid rgba(34,211,238,.2)}
.badge-ui{background:rgba(74,222,128,.1);color:#86efac;border:1px solid rgba(74,222,128,.2)}

/* WORKFLOW */
#workflow{background:var(--bg-1);position:relative;overflow:hidden}
.workflow-steps{display:flex;gap:0;margin-top:56px;position:relative}
.workflow-steps::before{content:'';position:absolute;top:28px;left:5%;right:5%;height:1px;background:linear-gradient(90deg,transparent,var(--blue),var(--purple),transparent);opacity:.4;z-index:0}
.ws{flex:1;text-align:center;padding:0 10px;position:relative;z-index:1}
.ws-bubble{width:56px;height:56px;border-radius:50%;margin:0 auto 14px;border:1px solid var(--border-2);background:var(--bg-3);display:flex;align-items:center;justify-content:center;font-size:22px;box-shadow:0 0 0 6px rgba(59,130,246,.06);transition:all .3s}
.ws:hover .ws-bubble{border-color:var(--blue);box-shadow:0 0 0 8px rgba(59,130,246,.1),var(--glow-blue)}
.ws-num{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--blue);letter-spacing:.1em;margin-bottom:5px}
.ws-title{font-weight:700;font-size:13px;color:var(--text-1);margin-bottom:4px}
.ws-desc{font-size:11px;color:var(--text-3);line-height:1.6}
.workflow-detail{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:48px}
.wd-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px;transition:all .3s}
.wd-card:hover{background:var(--surface-2);border-color:var(--border-2)}
.wd-title{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:8px;display:flex;align-items:center;gap:10px}
.wd-icon{font-size:20px}
.wd-desc{font-size:13px;color:var(--text-2);line-height:1.7}
.wd-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.wd-item{display:flex;gap:8px;font-size:13px;color:var(--text-2);align-items:flex-start}
.wd-dot{width:5px;height:5px;border-radius:50%;background:var(--blue);flex-shrink:0;margin-top:7px}

/* AGENTS */
#agents{background:var(--bg-0)}
.agents-header-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:48px;flex-wrap:wrap;gap:20px}
.agents-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.agent{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:26px;transition:all .3s;position:relative;overflow:hidden}
.agent::before{content:'';position:absolute;top:0;left:0;right:0;height:2px}
.a-analytics::before{background:linear-gradient(90deg,#3b82f6,#60a5fa)}
.a-seo::before{background:linear-gradient(90deg,#8b5cf6,#a78bfa)}
.a-aeogeo::before{background:linear-gradient(90deg,#0d9488,#2dd4bf)}
.a-social::before{background:linear-gradient(90deg,#e11d48,#fb7185)}
.a-strategy::before{background:linear-gradient(90deg,#d97706,#fbbf24)}
.a-reco::before{background:linear-gradient(90deg,#16a34a,#4ade80)}
.agent:hover{background:var(--surface-2);border-color:var(--border-2);transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,.5)}
.agent-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.agent-icon-wrap{width:38px;height:38px;border-radius:var(--r-md);border:1px solid var(--border);background:var(--bg-3);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.agent-name{font-weight:700;font-size:14px;color:var(--text-1)}
.agent-type{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);letter-spacing:.05em}
.agent-desc{font-size:13px;color:var(--text-2);line-height:1.65;margin-bottom:12px}
.agent-tags{display:flex;flex-wrap:wrap;gap:5px}
.at{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);background:rgba(255,255,255,.04);border:1px solid var(--border);padding:2px 8px;border-radius:var(--r-full)}
.a2a-banner{background:linear-gradient(135deg,rgba(59,130,246,.1),rgba(139,92,246,.1));border:1px solid rgba(139,92,246,.2);border-radius:var(--r-lg);padding:22px 28px;display:flex;align-items:center;gap:20px;margin-top:24px}
.a2a-icon-big{font-size:32px;flex-shrink:0}
.a2a-title{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:5px}
.a2a-desc{font-size:13px;color:var(--text-2);line-height:1.65}

/* SEO AEO GEO */
#search-layers{background:var(--bg-1)}
.layers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.layer{border-radius:var(--r-xl);padding:32px;border:1px solid;transition:all .3s;position:relative;overflow:hidden}
.layer:hover{transform:translateY(-5px)}
.layer-seo{background:linear-gradient(145deg,rgba(59,130,246,.08),rgba(59,130,246,.03));border-color:rgba(59,130,246,.2)}
.layer-aeo{background:linear-gradient(145deg,rgba(139,92,246,.08),rgba(139,92,246,.03));border-color:rgba(139,92,246,.2)}
.layer-geo{background:linear-gradient(145deg,rgba(34,211,238,.07),rgba(34,211,238,.02));border-color:rgba(34,211,238,.18)}
.layer-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 13px;border-radius:var(--r-full);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px;border:1px solid}
.lb-seo{background:rgba(59,130,246,.12);color:#60a5fa;border-color:rgba(59,130,246,.25)}
.lb-aeo{background:rgba(139,92,246,.12);color:#a78bfa;border-color:rgba(139,92,246,.25)}
.lb-geo{background:rgba(34,211,238,.1);color:#67e8f9;border-color:rgba(34,211,238,.2)}
.layer-title{font-family:'Bricolage Grotesque',sans-serif;font-size:20px;font-weight:800;letter-spacing:-.02em;color:var(--text-1);margin-bottom:10px}
.layer-desc{font-size:13px;color:var(--text-2);line-height:1.72;margin-bottom:16px}
.layer-points{display:flex;flex-direction:column;gap:7px}
.lp{display:flex;gap:8px;font-size:12px;color:var(--text-2)}
.lp-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;margin-top:6px}
.lp-seo .lp-dot{background:#3b82f6}
.lp-aeo .lp-dot{background:#8b5cf6}
.lp-geo .lp-dot{background:#22d3ee}
.layers-compare{display:grid;grid-template-columns:repeat(3,1fr);margin-top:36px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden}
.lc-col{padding:22px 24px;border-right:1px solid var(--border)}
.lc-col:last-child{border-right:none}
.lc-layer{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);margin-bottom:7px}
.lc-target{font-weight:600;font-size:13px;color:var(--text-1);margin-bottom:4px}
.lc-engine{font-size:12px;color:var(--text-3)}

/* GROUNDING */
#grounding{background:var(--bg-0);position:relative;overflow:hidden}
#grounding::before{content:'';position:absolute;top:-200px;right:-200px;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(59,130,246,.07) 0%,transparent 70%);pointer-events:none}
.grounding-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;margin-top:48px}
.g-sources{display:flex;flex-direction:column;gap:12px}
.g-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:16px 20px;display:flex;align-items:center;gap:14px;transition:all .25s}
.g-row:hover{background:var(--surface-2);border-color:var(--border-2)}
.g-icon{width:38px;height:38px;border-radius:var(--r-md);background:linear-gradient(135deg,rgba(59,130,246,.25),rgba(139,92,246,.25));border:1px solid rgba(139,92,246,.2);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.g-name{font-weight:600;font-size:13px;color:var(--text-1);margin-bottom:2px}
.g-type{font-size:11px;color:var(--text-3)}
.g-badge{margin-left:auto;font-size:10px;font-weight:700;padding:3px 10px;border-radius:var(--r-full);flex-shrink:0;border:1px solid}
.g-live{background:rgba(74,222,128,.12);color:#4ade80;border-color:rgba(74,222,128,.25)}
.g-road{background:rgba(251,191,36,.1);color:#fbbf24;border-color:rgba(251,191,36,.25)}
.g-explain-title{font-family:'Bricolage Grotesque',sans-serif;font-size:26px;font-weight:800;line-height:1.2;letter-spacing:-.02em;color:var(--text-1);margin-bottom:14px}
.g-explain-desc{font-size:15px;color:var(--text-2);line-height:1.72;margin-bottom:28px}
.g-points{display:flex;flex-direction:column;gap:16px}
.g-pt{display:flex;gap:12px;align-items:flex-start}
.g-pt-icon{width:34px;height:34px;border-radius:var(--r-sm);background:linear-gradient(135deg,rgba(59,130,246,.2),rgba(139,92,246,.2));border:1px solid rgba(139,92,246,.2);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;margin-top:1px}
.g-pt-title{font-weight:700;font-size:13px;color:var(--text-1);margin-bottom:3px}
.g-pt-desc{font-size:12px;color:var(--text-3);line-height:1.65}

/* A2A */
#a2a-m2m{background:var(--bg-1)}
.m2m-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:48px;margin-bottom:32px}
.m2m-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:30px;transition:all .3s}
.m2m-card:hover{background:var(--surface-2);border-color:var(--border-2);transform:translateY(-3px)}
.m2m-icon{font-size:32px;margin-bottom:14px}
.m2m-title{font-weight:700;font-size:16px;color:var(--text-1);margin-bottom:8px}
.m2m-desc{font-size:13px;color:var(--text-2);line-height:1.72}
.m2m-dark{background:linear-gradient(135deg,rgba(59,130,246,.07),rgba(139,92,246,.07));border:1px solid rgba(139,92,246,.15);border-radius:var(--r-xl);padding:36px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px}
.md-item .md-icon{font-size:22px;margin-bottom:10px}
.md-title{font-weight:700;font-size:13px;color:var(--text-1);margin-bottom:6px}
.md-desc{font-size:12px;color:var(--text-3);line-height:1.65}

/* RECOMMENDATIONS */
#recommendations{background:var(--bg-1)}
.rec-flow{display:grid;grid-template-columns:1fr 40px 1fr 40px 1fr;gap:0;align-items:center;margin-top:48px;margin-bottom:40px}
.rec-step{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:26px;text-align:center;transition:all .3s}
.rec-step:hover{background:var(--surface-2);transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.rec-step-icon{font-size:30px;margin-bottom:12px}
.rec-step-title{font-weight:700;font-size:14px;color:var(--text-1);margin-bottom:6px}
.rec-step-desc{font-size:12px;color:var(--text-3);line-height:1.6}
.rec-arrow{text-align:center;color:rgba(139,92,246,.4);font-size:22px}
.rec-output{background:linear-gradient(135deg,rgba(59,130,246,.07),rgba(139,92,246,.07));border:1px solid rgba(139,92,246,.18);border-radius:var(--r-xl);padding:32px}
.ro-title{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:20px}
.ro-items{display:flex;flex-direction:column;gap:12px}
.ro-item{background:rgba(255,255,255,.03);border:1px solid var(--border);border-radius:var(--r-md);padding:14px 18px;display:grid;grid-template-columns:24px 1fr auto auto;gap:12px;align-items:center}
.ro-num{width:22px;height:22px;border-radius:50%;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ro-text{font-size:13px;color:var(--text-2)}
.ro-channel{font-size:10px;color:var(--text-3);background:rgba(255,255,255,.04);padding:2px 9px;border-radius:var(--r-full);border:1px solid var(--border);white-space:nowrap}
.ro-impact{font-size:11px;font-weight:700;color:#4ade80}

/* LEARNED */
#learned{background:var(--bg-0)}
.learned-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:48px}
.learn-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px;transition:all .3s;position:relative;overflow:hidden}
.learn-card:hover{background:var(--surface-2);border-color:var(--border-2)}
.learn-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--grad)}
.learn-icon{font-size:28px;margin-bottom:14px}
.learn-title{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:8px}
.learn-desc{font-size:13px;color:var(--text-2);line-height:1.7}

/* ROADMAP */
#roadmap{background:var(--bg-1)}
.roadmap-phases{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:48px}
.phase{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:24px;transition:all .3s;position:relative;overflow:hidden}
.phase:hover{background:var(--surface-2);transform:translateY(-3px)}
.phase-num{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--blue);letter-spacing:.1em;margin-bottom:12px;font-weight:600}
.phase-title{font-weight:700;font-size:15px;color:var(--text-1);margin-bottom:10px}
.phase-items{display:flex;flex-direction:column;gap:7px}
.pi{display:flex;gap:8px;font-size:12px;color:var(--text-2);align-items:flex-start}
.pi-check{color:#4ade80;flex-shrink:0;margin-top:1px}
.pi-dot{color:rgba(139,92,246,.7);flex-shrink:0}
.phase-status{display:inline-flex;margin-top:14px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 10px;border-radius:var(--r-full);border:1px solid}
.ps-done{background:rgba(74,222,128,.1);color:#4ade80;border-color:rgba(74,222,128,.25)}
.ps-active{background:rgba(59,130,246,.12);color:#60a5fa;border-color:rgba(59,130,246,.25)}
.ps-next{background:rgba(251,191,36,.1);color:#fbbf24;border-color:rgba(251,191,36,.25)}
.ps-future{background:rgba(255,255,255,.06);color:var(--text-3);border-color:var(--border)}

/* CONTACT */
#contact{background:linear-gradient(160deg,var(--bg-0) 0%,var(--bg-1) 100%);position:relative;overflow:hidden}
#contact::before{content:'';position:absolute;bottom:-100px;left:50%;transform:translateX(-50%);width:600px;height:400px;border-radius:50%;background:radial-gradient(ellipse,rgba(139,92,246,.08),transparent 70%);pointer-events:none}
.contact-inner{max-width:600px;margin:0 auto;text-align:center;position:relative;z-index:1}
.contact-card{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-xl);padding:48px;margin-top:40px;box-shadow:var(--shadow)}
.contact-card .mono{font-size:13px;color:var(--text-3);margin-bottom:8px}
.contact-email{font-family:'Bricolage Grotesque',sans-serif;font-size:22px;font-weight:800;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:24px;display:block}
.contact-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.contact-link{display:flex;align-items:center;gap:8px;padding:10px 20px;background:var(--surface-2);border:1px solid var(--border-2);border-radius:var(--r-full);font-size:13px;font-weight:600;color:var(--text-2);transition:all .2s}
.contact-link:hover{border-color:var(--blue);color:var(--text-1)}
.contact-byline{font-size:13px;color:var(--text-3);margin-top:28px}

/* FOOTER */
footer{background:var(--bg-0);border-top:1px solid var(--border);padding:28px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-logo{font-family:'Bricolage Grotesque',sans-serif;font-size:16px;font-weight:800;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.footer-copy{font-size:12px;color:var(--text-3)}
.footer-chips{display:flex;gap:8px;flex-wrap:wrap}
.fc{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);background:var(--surface);border:1px solid var(--border);padding:3px 10px;border-radius:var(--r-full)}

/* CAROUSEL */
.carousel-section{background:var(--bg-1);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.carousel-wrap{position:relative;margin-top:48px}
.carousel-viewport{overflow:hidden;border-radius:var(--r-xl);box-shadow:0 0 0 1px rgba(59,130,246,.18),0 0 60px rgba(59,130,246,.12),0 24px 80px rgba(0,0,0,.6)}
.carousel-track{display:flex;transition:transform .5s cubic-bezier(.4,0,.2,1)}
.carousel-slide{min-width:100%;flex-shrink:0}
.car-chrome{background:#1a1a2e;border-radius:var(--r-xl) var(--r-xl) 0 0;padding:12px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.06)}
.car-dots{display:flex;gap:6px}
.car-dot{width:11px;height:11px;border-radius:50%}
.car-dot-r{background:#ff5f57}.car-dot-y{background:#febc2e}.car-dot-g{background:#28c840}
.car-urlbar{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:4px 12px;font-size:11px;font-family:'JetBrains Mono',monospace;color:rgba(255,255,255,.35);text-align:center}
.car-status{display:flex;align-items:center;gap:5px;font-size:10px;color:#4ade80;font-family:'JetBrains Mono',monospace}
.car-status::before{content:'●';font-size:7px}
.car-body{background:#f8f9fb;min-height:520px;padding:0;overflow:hidden;border-radius:0 0 var(--r-xl) var(--r-xl)}

/* STREAMLIT MOCKUP */
.st2-wrap{display:grid;grid-template-columns:220px 1fr;min-height:520px}
.st2-sidebar{background:#fff;border-right:1px solid #e5e7eb;padding:20px 0}
.st2-logo{padding:0 20px 16px;border-bottom:1px solid #f0f0f0;margin-bottom:12px}
.st2-logo-main{font-family:'Bricolage Grotesque','Inter',sans-serif;font-size:15px;font-weight:900;color:#1a1a2e}
.st2-logo-main span{color:#7c3aed}
.st2-logo-sub{font-size:9px;font-weight:700;letter-spacing:.1em;color:#9ca3af;text-transform:uppercase;margin-top:2px}
.st2-nav-label{font-size:10px;font-weight:700;letter-spacing:.08em;color:#9ca3af;text-transform:uppercase;padding:0 20px;margin-bottom:6px;margin-top:4px}
.st2-nav-item{display:flex;align-items:center;gap:8px;padding:8px 20px;font-size:12px;color:#6b7280;cursor:pointer;transition:all .15s;border-radius:0}
.st2-nav-item.active{background:#f3f0ff;color:#7c3aed;font-weight:600}
.st2-nav-item .ni-dot{width:8px;height:8px;border-radius:50%;background:#e5e7eb;flex-shrink:0}
.st2-nav-item.active .ni-dot{background:#7c3aed}
.st2-main{padding:28px 32px;overflow:auto}
.st2-page-title{display:flex;align-items:center;gap:10px;font-family:'Inter',sans-serif;font-size:22px;font-weight:800;color:#111827;margin-bottom:4px}
.st2-page-sub{font-size:12px;color:#9ca3af;margin-bottom:22px}
.st2-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:18px}
.st2-card+.st2-card{margin-top:14px}
.st2-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.st2-kpi{background:#fff;border:1px solid #e5e7eb;border-top:3px solid #7c3aed;border-radius:8px;padding:14px 16px}
.st2-kpi-label{font-size:9px;font-weight:700;letter-spacing:.1em;color:#6b7280;text-transform:uppercase;margin-bottom:6px}
.st2-kpi-value{font-size:20px;font-weight:800;color:#111827;font-family:'Inter',sans-serif}
.st2-section-head{font-size:13px;font-weight:700;color:#111827;margin-bottom:4px;display:flex;align-items:center;gap:7px}
.st2-section-sub{font-size:11px;color:#9ca3af;margin-bottom:14px}
.st2-chart{height:140px;display:flex;align-items:flex-end;gap:6px;padding:0 4px}
.st2-bar-wrap{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}
.st2-bar{background:#7c3aed;border-radius:3px 3px 0 0;width:100%;min-width:28px;transition:height .3s}
.st2-bar-label{font-size:8px;color:#6b7280;text-align:center;line-height:1.2;word-break:break-all}
.st2-table{width:100%;border-collapse:collapse;font-size:11px}
.st2-table th{font-size:9px;font-weight:700;letter-spacing:.06em;color:#9ca3af;text-transform:uppercase;padding:6px 10px;border-bottom:1px solid #f0f0f0;text-align:left}
.st2-table td{padding:7px 10px;border-bottom:1px solid #f9fafb;color:#374151}
.st2-badge{display:inline-flex;padding:2px 8px;border-radius:20px;font-size:9px;font-weight:700;letter-spacing:.04em}
.st2-badge-red{background:#fef2f2;color:#ef4444;border:1px solid #fecaca}
.st2-badge-amber{background:#fffbeb;color:#d97706;border:1px solid #fde68a}
.st2-badge-green{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}
.st2-badge-purple{background:#f3f0ff;color:#7c3aed;border:1px solid #ddd6fe}
.st2-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.st2-insight-card,.st2-opp-card,.st2-rec-card,.st2-chat-feed{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:14px;margin-bottom:10px}
.st2-insight-head,.st2-opp-title,.st2-rec-title,.st2-chat-feed-title{font-size:12px;font-weight:700;color:#111827;margin-bottom:3px}
.st2-insight-body,.st2-opp-field,.st2-rec-field,.st2-chat-insight-body{font-size:11px;color:#6b7280;line-height:1.5}
.st2-prompt-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.st2-prompt{background:#fff;border:1px solid #e5e7eb;border-radius:7px;padding:9px 12px;font-size:11px;color:#374151;cursor:pointer}
.st2-4kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.st2-4kpi-card{background:#fff;border:1px solid #e5e7eb;border-top:3px solid #7c3aed;border-radius:8px;padding:12px 14px}
.st2-4kpi-card .label{font-size:8px;font-weight:700;letter-spacing:.09em;color:#9ca3af;text-transform:uppercase;margin-bottom:6px}
.st2-4kpi-card .value{font-size:15px;font-weight:800;color:#111827}

.carousel-controls{display:flex;align-items:center;justify-content:space-between;margin-top:22px}
.car-arrow{background:var(--surface-2);border:1px solid var(--border-2);color:var(--text-2);width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;font-size:16px;flex-shrink:0}
.car-arrow:hover{background:var(--blue);border-color:var(--blue);color:#fff;transform:scale(1.05)}
.car-dots-row{display:flex;gap:7px;align-items:center}
.car-pip{width:7px;height:7px;border-radius:50%;background:var(--border-2);cursor:pointer;transition:all .25s}
.car-pip.active{background:var(--blue);width:22px;border-radius:4px}
.car-caption{text-align:center;font-size:12px;color:var(--text-3);margin-top:12px;font-family:'JetBrains Mono',monospace;letter-spacing:.04em}
.car-caption strong{color:var(--text-2)}

/* RESPONSIVE */
@media(max-width:900px){
  .section{padding:84px 0}
  .section-sm{padding:64px 0}
  .hero-inner{grid-template-columns:1fr;gap:44px}
  .hero-terminal{display:block;width:100%;max-width:560px;margin:12px auto 0}
  .problem-grid{grid-template-columns:repeat(2,1fr)}
  .workflow-detail,.grounding-grid,.m2m-grid,.learned-grid{grid-template-columns:1fr}
  .sources-grid{grid-template-columns:1fr}
  .stack-grid{grid-template-columns:repeat(3,1fr)}
  .agents-grid,.layers-grid{grid-template-columns:1fr}
  .roadmap-phases{grid-template-columns:1fr 1fr}
  .rec-flow{grid-template-columns:1fr;gap:12px}
  .rec-arrow{transform:rotate(90deg)}
  .m2m-dark{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .layers-compare{grid-template-columns:1fr}
  .lc-col{border-right:none;border-bottom:1px solid var(--border)}
  .workflow-steps{flex-direction:column;gap:24px}
  .workflow-steps::before{display:none}
}

@media(max-width:640px){
  .container{padding:0 18px}
  .nav-inner{height:58px;padding:0 18px}
  .nav-logo-wrap{font-size:24px}
  .nav-links{display:none}
  .nav-cta{font-size:12px;padding:8px 15px}
  #hero{padding:98px 0 64px;min-height:auto}
  .hero-title{font-size:clamp(38px,13vw,56px)}
  .hero-sub{font-size:16px;line-height:1.65}
  .hero-btns{flex-direction:column;align-items:stretch;margin-bottom:28px}
  .btn{justify-content:center;width:100%}
  .hero-terminal{max-width:100%;border-radius:22px}
  .ht-body{padding:18px}
  .ht-line{font-size:10px;line-height:1.8;gap:7px}
  .ht-metric-row{grid-template-columns:1fr;gap:8px}
  .problem-grid{grid-template-columns:1fr}
  .stack-grid{grid-template-columns:repeat(2,1fr)}
  .roadmap-phases{grid-template-columns:1fr}
  .ro-item{grid-template-columns:24px 1fr}
  .footer-inner{flex-direction:column;text-align:center}
  .contact-card{padding:32px 22px}
  .st2-wrap{grid-template-columns:1fr}
  .st2-sidebar{display:none}
  .st2-main{padding:20px}
  .st2-kpi-row,.st2-4kpi,.st2-two-col{grid-template-columns:1fr}
  .car-body{min-height:440px}
  .car-urlbar{display:none}
  .car-status{display:none}
}

/* ══ TABS ══════════════════════════════════════════════════════════════════ */
.tab-nav-wrap{position:sticky;top:62px;z-index:90;background:rgba(6,6,15,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.07)}
.tab-nav{display:flex;align-items:center;max-width:1100px;margin:0 auto;padding:0 24px;overflow-x:auto;scrollbar-width:none}
.tab-nav::-webkit-scrollbar{display:none}
.tab-btn{flex-shrink:0;padding:14px 20px;font-size:13.5px;font-weight:500;color:var(--text-3);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .2s,border-color .2s;white-space:nowrap;font-family:'Inter',sans-serif;letter-spacing:.01em}
.tab-btn:hover{color:var(--text-1)}
.tab-btn.active{color:#f1f5f9;border-bottom-color:var(--blue);font-weight:600}
.tab-panels{min-height:60vh}
.tab-panel{display:none}
.tab-panel.active{display:block}

/* ══ ACCORDION ══════════════════════════════════════════════════════════════ */
.accordion{border:1px solid rgba(255,255,255,.08);border-radius:12px;margin-bottom:12px;overflow:hidden;background:rgba(255,255,255,.025)}
.accordion-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;cursor:pointer;user-select:none;transition:background .15s}
.accordion-header:hover{background:rgba(255,255,255,.04)}
.accordion-title{font-size:15px;font-weight:600;color:var(--text-1);display:flex;align-items:center;gap:10px}
.accordion-icon{width:20px;height:20px;flex-shrink:0;color:var(--text-3);transition:transform .25s;display:flex;align-items:center;justify-content:center}
.accordion.open .accordion-icon{transform:rotate(180deg)}
.accordion-body{max-height:0;overflow:hidden;transition:max-height .35s ease}
.accordion.open .accordion-body{max-height:9999px}
.accordion-content{padding:0 24px 24px}

/* ══ DEMO MOCKUP ════════════════════════════════════════════════════════════ */
.demo-section{padding:80px 0 100px;background:var(--surface)}
.demo-header{text-align:center;margin-bottom:40px}
.demo-header .eyebrow{justify-content:center}
.view-toggle{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:36px}
.vt-btn{display:flex;align-items:center;gap:6px;padding:8px 18px;border-radius:8px;font-size:13px;font-weight:500;border:1px solid rgba(255,255,255,.12);background:transparent;color:var(--text-3);cursor:pointer;transition:all .18s;font-family:'Inter',sans-serif}
.vt-btn:hover{color:var(--text-1);border-color:rgba(255,255,255,.25)}
.vt-btn.active{background:rgba(139,92,246,.15);border-color:rgba(139,92,246,.5);color:#c4b5fd}
.mockup-stage{display:flex;justify-content:center;align-items:flex-start}
.mockup-desktop,.mockup-mobile{display:none}
.mockup-desktop.active,.mockup-mobile.active{display:flex;flex-direction:column;align-items:center;width:100%}
.browser-chrome{width:100%;max-width:960px;border-radius:14px 14px 0 0;background:#1e2028;border:1.5px solid rgba(255,255,255,.08);border-bottom:none;padding:10px 14px 0}
.browser-dots{display:flex;gap:6px;margin-bottom:8px}
.browser-dots span{width:11px;height:11px;border-radius:50%}
.browser-dots span:nth-child(1){background:#ff5f56}
.browser-dots span:nth-child(2){background:#ffbd2e}
.browser-dots span:nth-child(3){background:#27c93f}
.browser-url{background:#2a2d38;border-radius:6px;padding:5px 12px;font-size:11.5px;color:#6b7280;font-family:'JetBrains Mono',monospace;margin-bottom:0;border:1px solid rgba(255,255,255,.06)}
.app-shell{width:100%;max-width:960px;background:#f8fafc;border-radius:0 0 14px 14px;border:1.5px solid rgba(255,255,255,.08);border-top:none;display:flex;height:580px;overflow:hidden}
.app-sidebar{width:196px;flex-shrink:0;background:#ffffff;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;padding:16px 0}
.sb-logo{padding:4px 16px 16px;font-size:15px;font-weight:700;color:#6d28d9;font-family:'Bricolage Grotesque',sans-serif;border-bottom:1px solid #f3f4f6;margin-bottom:8px}
.sb-logo span{color:#1e1b4b}
.sb-section-label{padding:8px 16px 4px;font-size:10px;font-weight:600;color:#9ca3af;letter-spacing:.08em;text-transform:uppercase}
.sb-item{display:flex;align-items:center;gap:9px;padding:8px 16px;font-size:12.5px;color:#4b5563;cursor:pointer;transition:background .12s,color .12s;margin:0 8px;border-radius:6px;font-weight:500}
.sb-item svg{flex-shrink:0;opacity:.6}
.sb-item:hover{background:#f5f3ff;color:#6d28d9}
.sb-item.active{background:#f5f3ff;color:#6d28d9;font-weight:600}
.sb-item.active svg{opacity:1}
.sb-badge{margin-left:auto;background:#7c3aed;color:#fff;font-size:10px;font-weight:700;padding:1px 6px;border-radius:9px}
.app-main{flex:1;overflow-y:auto;background:#f8fafc;display:flex;flex-direction:column}
.app-topbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:10px;min-width:0}
.app-topbar-title{font-size:14px;font-weight:600;color:#111827}
.app-topbar-meta{font-size:11px;color:#9ca3af}
.app-inner-tabs{display:flex;gap:2px;background:#f3f4f6;padding:3px;border-radius:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;flex-shrink:1;min-width:0}
.app-tab{padding:5px 14px;font-size:12px;font-weight:500;color:#6b7280;border-radius:6px;cursor:pointer;transition:all .15s;border:none;background:transparent;font-family:'Inter',sans-serif;white-space:nowrap}
.app-tab.active{background:#fff;color:#6d28d9;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.app-inner-tabs::-webkit-scrollbar{display:none}
.app-content{flex:1;padding:16px 20px;overflow-y:auto;min-height:0}
.app-panel{display:none}
.app-panel.active{display:block}
.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.kpi-card{background:#fff;border-radius:10px;padding:12px 14px;border:1px solid #e5e7eb;border-top:3px solid #7c3aed}
.kpi-label{font-size:10.5px;font-weight:600;color:#9ca3af;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.kpi-value{font-size:19px;font-weight:700;color:#111827;font-family:'Bricolage Grotesque',sans-serif;line-height:1.1}
.kpi-sub{font-size:10px;color:#6b7280;margin-top:3px}
.chart-card{background:#fff;border-radius:10px;padding:14px 16px;border:1px solid #e5e7eb;margin-bottom:14px}
.chart-label{font-size:11.5px;font-weight:600;color:#374151;margin-bottom:10px}
.chart-bars{display:flex;align-items:flex-end;gap:5px;height:72px}
.cbar{flex:1;border-radius:4px 4px 0 0;min-height:8px;transition:opacity .2s}
.cbar:hover{opacity:.75}
.chart-x{display:flex;gap:5px;margin-top:4px}
.chart-x span{flex:1;font-size:8.5px;color:#9ca3af;text-align:center}
.insight-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.insight-card{background:#fff;border-radius:10px;padding:12px 14px;border:1px solid #e5e7eb}
.insight-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.insight-title{font-size:11px;font-weight:600;color:#374151}
.insight-badge{font-size:9.5px;font-weight:600;padding:2px 7px;border-radius:9px}
.badge-high{background:#fef3c7;color:#92400e}
.badge-crit{background:#fee2e2;color:#991b1b}
.insight-text{font-size:11px;color:#6b7280;line-height:1.5}
.insight-rec{margin-top:6px;padding:6px 8px;background:#f5f3ff;border-radius:6px;font-size:10.5px;color:#5b21b6;border-left:2px solid #7c3aed}
.table-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;overflow:hidden;margin-bottom:14px}
.table-head{background:#f9fafb;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;padding:7px 14px;border-bottom:1px solid #e5e7eb}
.table-head span{font-size:10.5px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}
.table-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;padding:7px 14px;border-bottom:1px solid #f3f4f6}
.table-row:last-child{border-bottom:none}
.table-row:hover{background:#fafafa}
.table-row span{font-size:10.5px;color:#374151}
.table-row span:first-child{color:#111827;font-weight:500}
.pill.pill-up{display:inline-block;padding:1px 8px;border-radius:9px;font-size:9.5px;font-weight:600;background:#d1fae5;color:#065f46}
.pill.pill-dn{display:inline-block;padding:1px 8px;border-radius:9px;font-size:9.5px;font-weight:600;background:#fee2e2;color:#991b1b}
.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.analysis-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:12px 14px}
.analysis-title{font-size:11px;font-weight:600;color:#374151;margin-bottom:10px}
.bar-list{display:flex;flex-direction:column;gap:7px}
.bar-item{display:flex;flex-direction:column;gap:3px}
.bar-item-label{display:flex;justify-content:space-between;font-size:10.5px;color:#6b7280}
.bar-item-label span:last-child{font-weight:600;color:#374151}
.bar-track{height:5px;background:#f3f4f6;border-radius:3px;overflow:hidden}
.bar-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,#7c3aed,#6366f1)}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.social-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:12px 14px}
.social-label{font-size:10px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px}
.social-value{font-size:16px;font-weight:700;color:#111827;font-family:'Bricolage Grotesque',sans-serif}
.social-sub{font-size:10.5px;color:#6b7280;margin-top:2px}
.social-best{border-top:3px solid #059669}
.social-worst{border-top:3px solid #dc2626}
.social-top{border-top:3px solid #7c3aed}
.social-weak{border-top:3px solid #d97706}
.sparkline-row{display:flex;align-items:flex-end;gap:3px;height:38px;margin-top:8px}
.spark{flex:1;border-radius:2px 2px 0 0;background:#e0e7ff;min-height:4px}
.rec-list{display:flex;flex-direction:column;gap:10px}
.rec-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:14px 16px;border-left:3px solid #7c3aed}
.rec-card.crit{border-left-color:#dc2626}
.rec-card.warn{border-left-color:#d97706}
.rec-card.good{border-left-color:#059669}
.rec-tag-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.rec-tag{font-size:9.5px;font-weight:600;padding:2px 8px;border-radius:9px;background:#ede9fe;color:#5b21b6}
.rec-tag.crit{background:#fee2e2;color:#991b1b}
.rec-tag.warn{background:#fef3c7;color:#92400e}
.rec-tag.good{background:#d1fae5;color:#065f46}
.rec-signal{font-size:11px;font-weight:600;color:#111827;margin-bottom:4px}
.rec-insight{font-size:11px;color:#6b7280;margin-bottom:6px;line-height:1.5}
.rec-action{background:#f5f3ff;border-radius:6px;padding:7px 10px;font-size:10.5px;color:#5b21b6;line-height:1.5;border-left:2px solid #7c3aed}
.rec-action.crit{background:#fff5f5;border-left-color:#dc2626;color:#991b1b}
.rec-action.warn{background:#fffbeb;border-left-color:#d97706;color:#92400e}
.rec-action.good{background:#f0fdf4;border-left-color:#059669;color:#065f46}
.phone-wrap{display:flex;justify-content:center;padding-top:8px}
.phone-frame{width:300px;background:#1a1a2e;border-radius:40px;padding:12px;border:2px solid rgba(255,255,255,.12);box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08)}
.phone-notch{width:90px;height:24px;background:#1a1a2e;border-radius:0 0 16px 16px;margin:0 auto 8px}
.phone-screen{background:#f8fafc;border-radius:28px;overflow:hidden;height:580px;display:flex;flex-direction:column}
.phone-status{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:8px 16px 4px;font-size:10px;font-weight:600;color:#374151;flex-shrink:0}
.phone-app-bar{background:#fff;border-bottom:1px solid #e5e7eb;padding:8px 14px;flex-shrink:0}
.phone-app-name{font-size:13px;font-weight:700;color:#6d28d9;font-family:'Bricolage Grotesque',sans-serif}
.phone-app-sub{font-size:9.5px;color:#9ca3af}
.phone-tabs{display:flex;gap:2px;background:#f3f4f6;padding:3px;border-radius:8px;margin:8px 14px;flex-shrink:0;overflow-x:auto;scrollbar-width:none}
.phone-tabs::-webkit-scrollbar{display:none}
.ph-tab{flex-shrink:0;padding:4px 10px;font-size:10px;font-weight:500;color:#6b7280;border-radius:6px;cursor:pointer;border:none;background:transparent;font-family:'Inter',sans-serif;transition:all .15s}
.ph-tab.active{background:#fff;color:#6d28d9;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.phone-content{flex:1;overflow-y:auto;padding:0 14px 14px;scrollbar-width:none}
.phone-content::-webkit-scrollbar{display:none}
.phone-panel{display:none}
.phone-panel.active{display:block}
.ph-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.ph-kpi{background:#fff;border-radius:10px;padding:10px 12px;border:1px solid #e5e7eb;border-top:3px solid #7c3aed}
.ph-kpi-label{font-size:9px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.ph-kpi-value{font-size:16px;font-weight:700;color:#111827;font-family:'Bricolage Grotesque',sans-serif;line-height:1.1}
.ph-kpi-sub{font-size:9px;color:#6b7280}
.ph-insight{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:10px 12px;margin-bottom:10px;border-left:3px solid #7c3aed}
.ph-insight-label{font-size:9px;font-weight:600;color:#7c3aed;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.ph-insight-text{font-size:11px;color:#374151;line-height:1.5}
.ph-chart{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:10px 12px;margin-bottom:10px}
.ph-chart-label{font-size:10px;font-weight:600;color:#374151;margin-bottom:8px}
.ph-bars{display:flex;align-items:flex-end;gap:4px;height:50px}
.ph-bar{flex:1;border-radius:3px 3px 0 0;min-height:4px}
.ph-rec{background:#fff;border-radius:10px;border:1px solid #e5e7eb;border-left:3px solid #dc2626;padding:10px 12px;margin-bottom:10px}
.ph-rec-tag{font-size:9px;font-weight:600;color:#dc2626;text-transform:uppercase;margin-bottom:4px}
.ph-rec-title{font-size:11px;font-weight:600;color:#111827;margin-bottom:3px}
.ph-rec-text{font-size:10.5px;color:#6b7280;line-height:1.5}
.ph-rec-action{margin-top:6px;padding:6px 8px;background:#fff5f5;border-radius:6px;font-size:10px;color:#991b1b;border-left:2px solid #dc2626;line-height:1.5}

/* ═══ MOCKUP + MOBILE RESPONSIVE ═══════════════════════════════════════════ */

/* Prevent any horizontal bleed globally */
.demo-section,.mockup-stage,.mockup-desktop,.mockup-mobile{max-width:100%;overflow-x:hidden}

/* ── 900px: compact sidebar, 2-col KPIs ─────────────────────────── */
@media(max-width:900px){
  .kpi-row{grid-template-columns:repeat(2,1fr)}
  .insight-row,.analysis-grid,.social-grid{grid-template-columns:1fr}
  .app-sidebar{width:52px}
  .sb-item span,.sb-section-label,.sb-badge{display:none}
  .sb-logo{font-size:0!important;padding:10px 8px;display:flex;align-items:center;justify-content:center}
  .sb-logo::after{content:'IRx';font-size:11px;color:#6d28d9;font-weight:700}
  .app-topbar{flex-wrap:wrap;gap:8px}
  .app-inner-tabs{order:3;width:100%}
}

/* ── 768px: topbar stacks ────────────────────────────────────────── */
@media(max-width:768px){
  .app-shell{height:auto;min-height:520px}
  .app-topbar{flex-direction:column;align-items:flex-start;padding:8px 14px;gap:8px}
  .app-inner-tabs{width:100%;overflow-x:auto}
  .app-content{padding:12px 14px}
}

/* ── 640px: phone-only mockup, hide desktop toggle ───────────────── */
@media(max-width:640px){
  /* Tab nav */
  .tab-btn{padding:10px 13px;font-size:12px}

  /* Hide desktop toggle; auto-show phone view regardless of JS state */
  #vtDesktop{display:none}
  .mockup-desktop,.mockup-desktop.active{display:none!important}
  #viewMobile,#viewMobile.mockup-mobile{
    display:flex!important;flex-direction:column;align-items:center;width:100%
  }

  /* Phone frame — fluid width for 390-430px viewports */
  .phone-frame{
    width:calc(100vw - 48px);
    max-width:360px;
    border-radius:34px;
    padding:10px
  }
  .phone-notch{width:72px;height:20px;margin-bottom:6px}
  .phone-screen{height:560px;border-radius:24px}

  /* Remove excess horizontal padding in demo section */
  .demo-section .container{padding:0 16px}
  .view-toggle{margin-bottom:24px}
  .demo-header{margin-bottom:28px}
}

/* ── 420px: tightest phones (SE, Galaxy A series) ────────────────── */
@media(max-width:420px){
  .phone-frame{
    width:calc(100vw - 32px);
    border-radius:28px;
    padding:8px
  }
  .phone-screen{height:520px;border-radius:20px}
  .phone-notch{width:60px;height:18px}
  .phone-tabs{margin:6px 10px}
  .phone-content{padding:0 10px 10px}
  .ph-kpi-value{font-size:14px}
  .tab-btn{padding:9px 11px;font-size:11.5px}
}

/* Ensure no element bleeds past viewport */
@media(max-width:640px){
  body{overflow-x:hidden}
  .tab-panels,section,.container{max-width:100%;box-sizing:border-box}
}

/* ── DEMO MOCKUP — extended tab styles (8 tabs) ─────────────────────────── */
.app-tab{padding:5px 11px}
.app-inner-tabs{flex-wrap:nowrap}

/* ── Data Sources panel ─────────────────────────────────────────────────── */
.ds-section-label{font-size:10px;font-weight:700;letter-spacing:.08em;color:#9ca3af;text-transform:uppercase;margin:2px 0 8px}
.ds-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.ds-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:11px 13px;transition:border-color .15s}
.ds-card:hover{border-color:#c4b5fd}
.ds-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.ds-name{font-size:12px;font-weight:600;color:#111827}
.ds-status{font-size:9px;font-weight:600;color:#059669;letter-spacing:.04em}
.ds-card-meta{font-size:10px;color:#6b7280;margin-bottom:8px}
.ds-card-bar{height:4px;background:#f3f4f6;border-radius:2px;overflow:hidden}
.ds-card-bar-fill{height:100%;background:linear-gradient(90deg,#7c3aed,#a78bfa);border-radius:2px}
.ds-engine-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ds-engine-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:11px 13px;border-left:3px solid #6366f1}
.ds-engine-name{font-size:12px;font-weight:700;color:#111827;margin-bottom:2px}
.ds-engine-role{font-size:10px;color:#6b7280;line-height:1.4}

/* ── Opportunities panel ────────────────────────────────────────────────── */
.opps-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.opps-title{font-size:13px;font-weight:600;color:#111827}
.opps-meta{font-size:10px;color:#9ca3af;font-family:'JetBrains Mono','SF Mono',monospace}
.opps-table{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}
.opps-row{display:grid;grid-template-columns:40px 1fr 110px 60px 56px;gap:10px;padding:10px 14px;border-bottom:1px solid #f3f4f6;align-items:center;font-size:11.5px;color:#374151}
.opps-row:last-child{border-bottom:none}
.opps-head-row{background:#f9fafb;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;font-weight:600}
.opps-rank{font-family:'JetBrains Mono','SF Mono',monospace;font-size:10.5px;color:#6b7280}
.opps-text{color:#111827}
.opps-src{font-size:10.5px;color:#7c3aed;font-weight:500}
.opps-score{display:inline-block;font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px}
.opps-score.high{background:#dcfce7;color:#065f46}
.opps-score.med{background:#ede9fe;color:#5b21b6}
.opps-score.low{background:#f3f4f6;color:#6b7280}
.opps-effort{font-family:'JetBrains Mono','SF Mono',monospace;font-size:10.5px;color:#6b7280}

/* ── Reports panel ──────────────────────────────────────────────────────── */
.reports-list{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.report-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:11px 14px;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;transition:border-color .15s}
.report-card:hover{border-color:#c4b5fd}
.report-icon{background:#fee2e2;color:#991b1b;font-size:9.5px;font-weight:700;letter-spacing:.04em;padding:6px 0;border-radius:6px;text-align:center}
.report-icon.notion{background:#f3f4f6;color:#374151}
.report-icon.docs{background:#dbeafe;color:#1e40af}
.report-title{font-size:12px;font-weight:600;color:#111827;margin-bottom:2px}
.report-meta{font-size:10px;color:#6b7280}
.report-action{background:#f3f4f6;border:none;border-radius:6px;padding:5px 11px;font-size:10.5px;font-weight:600;color:#6d28d9;cursor:pointer;font-family:'Inter',sans-serif}
.report-action:hover{background:#ede9fe}
.report-preview{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:13px 16px;border-left:3px solid #7c3aed}
.report-preview-label{font-size:10px;font-weight:700;letter-spacing:.06em;color:#7c3aed;text-transform:uppercase;margin-bottom:6px}
.report-preview-body{font-size:11.5px;color:#374151;line-height:1.6;font-style:italic}

/* ── Chat panel ─────────────────────────────────────────────────────────── */
.chat-shell{background:#fff;border:1px solid #e5e7eb;border-radius:12px;display:flex;flex-direction:column;min-height:380px}
.chat-head{padding:10px 14px;border-bottom:1px solid #f3f4f6;display:flex;align-items:baseline;justify-content:space-between}
.chat-head-title{font-size:12px;font-weight:600;color:#111827}
.chat-head-meta{font-size:10px;color:#9ca3af;font-family:'JetBrains Mono','SF Mono',monospace}
.chat-feed{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.chat-bubble{padding:9px 13px;border-radius:12px;font-size:11.5px;line-height:1.55;max-width:80%}
.chat-bubble.user{background:#7c3aed;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.chat-bubble.agent{background:#f9fafb;color:#111827;align-self:flex-start;border:1px solid #e5e7eb;border-bottom-left-radius:4px}
.chat-bubble.agent strong{color:#5b21b6}
.chat-agent-tag{font-size:9.5px;font-weight:700;letter-spacing:.06em;color:#7c3aed;text-transform:uppercase;margin-bottom:5px}
.chat-bubble.typing{opacity:.85}
.typing-dots{display:inline-flex;gap:3px;align-items:center;vertical-align:middle;margin-right:6px}
.typing-dots span{width:5px;height:5px;border-radius:50%;background:#7c3aed;animation:typingPulse 1.2s infinite}
.typing-dots span:nth-child(2){animation-delay:.15s}
.typing-dots span:nth-child(3){animation-delay:.3s}
@keyframes typingPulse{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
.chat-input{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid #f3f4f6;background:#fafafa;border-radius:0 0 12px 12px}
.chat-input-icon{font-size:11px;color:#9ca3af}
.chat-input-placeholder{flex:1;font-size:11.5px;color:#9ca3af;font-style:italic}
.chat-send{background:#7c3aed;color:#fff;border:none;border-radius:7px;width:28px;height:24px;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chat-send:hover{background:#6d28d9}

/* ── Phone (mobile) extended panel styles ───────────────────────────────── */
.phone-tabs{flex-wrap:nowrap}
.ph-tab{padding:4px 9px}

.ph-ds-list{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}
.ph-ds-item{background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:9px 11px}
.ph-ds-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}
.ph-ds-name{font-size:11px;font-weight:600;color:#111827}
.ph-ds-dot{font-size:8.5px;font-weight:600;color:#059669;letter-spacing:.04em}
.ph-ds-meta{font-size:9.5px;color:#6b7280}

.ph-opp-list{display:flex;flex-direction:column;gap:7px}
.ph-opp{background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:9px 11px}
.ph-opp-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}
.ph-opp-rank{font-family:'JetBrains Mono','SF Mono',monospace;font-size:9.5px;color:#6b7280}
.ph-opp-score{font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px}
.ph-opp-score.high{background:#dcfce7;color:#065f46}
.ph-opp-score.med{background:#ede9fe;color:#5b21b6}
.ph-opp-title{font-size:11px;font-weight:600;color:#111827;margin-bottom:2px;line-height:1.35}
.ph-opp-src{font-size:9.5px;color:#7c3aed}

.ph-report{background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:9px 11px;display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;margin-bottom:7px}
.ph-report-icon{background:#fee2e2;color:#991b1b;font-size:9px;font-weight:700;letter-spacing:.04em;padding:5px 0;border-radius:5px;text-align:center}
.ph-report-icon.notion{background:#f3f4f6;color:#374151}
.ph-report-icon.docs{background:#dbeafe;color:#1e40af}
.ph-report-title{font-size:10.5px;font-weight:600;color:#111827;line-height:1.3}
.ph-report-meta{font-size:9px;color:#6b7280}

.ph-chat-feed{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.ph-chat-bubble{font-size:10px;padding:7px 10px;border-radius:10px;line-height:1.5;max-width:88%}
.ph-chat-bubble.user{background:#7c3aed;color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.ph-chat-bubble.agent{background:#f9fafb;color:#111827;align-self:flex-start;border:1px solid #e5e7eb;border-bottom-left-radius:3px}
.ph-chat-tag{font-size:8.5px;font-weight:700;letter-spacing:.05em;color:#7c3aed;text-transform:uppercase;margin-bottom:3px}
.ph-chat-bubble.typing{opacity:.85;padding:8px 10px}
.ph-chat-input{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:7px 10px}
.ph-chat-placeholder{flex:1;font-size:10px;color:#9ca3af;font-style:italic}
.ph-chat-send{background:#7c3aed;color:#fff;border-radius:6px;width:22px;height:20px;font-size:11px;display:flex;align-items:center;justify-content:center}

/* ── 8-tab responsive tweaks ────────────────────────────────────────────── */
@media (max-width:1000px){
  .ds-grid,.ds-engine-row{grid-template-columns:repeat(2,1fr)}
  .opps-row{grid-template-columns:32px 1fr 90px 50px 46px;gap:8px;font-size:11px}
}
@media (max-width:640px){
  .ds-grid,.ds-engine-row{grid-template-columns:1fr}
  .opps-row{grid-template-columns:30px 1fr 70px;gap:6px;font-size:10.5px}
  .opps-row span:nth-child(4),.opps-row span:nth-child(5){display:none}
  .opps-head-row span:nth-child(4),.opps-head-row span:nth-child(5){display:none}
  .report-card{grid-template-columns:36px 1fr}
  .report-action{grid-column:1 / -1;justify-self:start;margin-top:4px}
}

/* ═══ ENHANCED DEMO — DATA SOURCES PANEL ═══════════════════════════════════ */
.ds-agent-bar{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;margin-bottom:14px;flex-wrap:wrap}
.ds-status-dot{margin-left:auto;font-size:10.5px;color:#059669;font-weight:600}
.ds-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:12px}
.ds-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:12px 14px}
.ds-card-full{grid-column:1/-1}
.ds-card-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px}
.ds-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ds-name{font-size:12px;font-weight:600;color:#111827}
.ds-type{font-size:10px;color:#9ca3af;margin-top:1px}
.ds-checks{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:7px}
.dsc{font-size:9.5px;font-weight:600;padding:2px 7px;border-radius:9px}
.dsc-ok{background:#d1fae5;color:#065f46}
.ds-fields{display:flex;flex-wrap:wrap;gap:3px}
.ds-flow-bar{background:linear-gradient(135deg,#f5f3ff,#ede9fe);border:1px solid #ddd6fe;border-radius:10px;padding:12px 16px;text-align:center}
.ds-flow-nodes{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.ds-fn{background:#fff;border:1px solid #ddd6fe;border-radius:6px;padding:3px 10px;font-size:10px;font-weight:600;color:#5b21b6}
.ds-flow-arrow{font-size:11px;color:#7c3aed;font-weight:700;margin-bottom:6px;letter-spacing:.04em}
.ds-flow-target{background:#6d28d9;color:#fff;border-radius:7px;padding:6px 14px;font-size:10.5px;font-weight:600;display:inline-block}

/* ═══ AGENT PILLS ════════════════════════════════════════════════════════════ */
.agent-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:10.5px;font-weight:600;background:#ede9fe;color:#5b21b6;border:1px solid #ddd6fe}
.agent-pill-insight{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}
.agent-pill-strategy{background:#fef3c7;color:#92400e;border-color:#fde68a}
.agent-pill-exec{background:#d1fae5;color:#065f46;border-color:#a7f3d0}
.ia-badge-row{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}

/* ═══ ANALYSIS — MINI TABLE ══════════════════════════════════════════════════ */
.mini-table{font-size:10.5px}
.mt-head{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;padding:5px 8px;background:#f9fafb;border-radius:6px 6px 0 0;border:1px solid #e5e7eb;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}
.mt-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;padding:5px 8px;border:1px solid #f3f4f6;border-top:none}
.mt-row:hover{background:#fafafa}
.mt-row span:first-child{color:#111827;font-weight:500}

/* ═══ ANALYSIS — CONTENT PERFORMANCE SPLIT ══════════════════════════════════ */
.cp-split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cp-label{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 0;margin-bottom:4px}
.cp-good{color:#059669}
.cp-bad{color:#dc2626}
.cp-item{font-size:10.5px;color:#374151;padding:3px 0;border-bottom:1px solid #f3f4f6;display:flex;justify-content:space-between}
.cp-item span{color:#6b7280}

/* ═══ OPPORTUNITIES PANEL ════════════════════════════════════════════════════ */
.opp-list{display:flex;flex-direction:column;gap:10px}
.opp-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:14px 16px;border-left:3px solid #7c3aed}
.opp-card.opp-crit{border-left-color:#dc2626}
.opp-card.opp-high{border-left-color:#d97706}
.opp-head-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.opp-tag{font-size:9.5px;font-weight:600;padding:2px 8px;border-radius:9px;background:#ede9fe;color:#5b21b6}
.opp-tag.opp-seo{background:#fee2e2;color:#991b1b}
.opp-tag.opp-conv{background:#fef3c7;color:#92400e}
.opp-tag.opp-local{background:#e0f2fe;color:#0369a1}
.opp-tag.opp-content{background:#ede9fe;color:#5b21b6}
.opp-tag.opp-social{background:#d1fae5;color:#065f46}
.opp-rank{font-size:10px;font-weight:700;color:#9ca3af}
.opp-title{font-size:12px;font-weight:700;color:#111827;margin-bottom:4px}
.opp-desc{font-size:10.5px;color:#6b7280;line-height:1.55;margin-bottom:10px}
.opp-scores{display:flex;gap:16px;flex-wrap:wrap}
.opp-score{display:flex;align-items:center;gap:5px}
.osc-label{font-size:9.5px;font-weight:600;color:#6b7280;width:58px;flex-shrink:0}
.osc-dots{display:flex;gap:3px}
.osd{width:8px;height:8px;border-radius:50%;background:#e5e7eb}
.osd.fill{background:#7c3aed}
.osd.fill.low{background:#059669}
.osd.fill.med{background:#d97706}
.osc-val{font-size:9.5px;font-weight:600;color:#374151;margin-left:2px}

/* ═══ RECOMMENDATIONS — META TAGS ════════════════════════════════════════════ */
.rec-meta-tags{display:flex;gap:4px;flex-wrap:wrap}
.rmt{font-size:9px;font-weight:600;padding:1px 6px;border-radius:6px;background:#f3f4f6;color:#6b7280}
.rmt.rmt-low{background:#d1fae5;color:#065f46}
.rmt.rmt-med{background:#fef3c7;color:#92400e}
.rmt.rmt-time{background:#e0f2fe;color:#0369a1}

/* ═══ REPORTS PANEL ══════════════════════════════════════════════════════════ */
.report-doc{background:#fff;border-radius:12px;border:1px solid #e5e7eb;overflow:hidden}
.report-header{background:linear-gradient(135deg,#f5f3ff,#ede9fe);padding:16px 20px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #ddd6fe}
.report-logo{font-size:15px;font-weight:800;color:#6d28d9;font-family:'Bricolage Grotesque',sans-serif;margin-bottom:3px}
.report-title-line{font-size:13px;font-weight:700;color:#1e1b4b}
.report-meta{font-size:10px;color:#7c3aed;margin-top:2px}
.report-score-badge{text-align:right;flex-shrink:0}
.report-section{padding:12px 20px;border-bottom:1px solid #f3f4f6}
.report-section:last-child{border-bottom:none}
.report-section-title{font-size:11px;font-weight:700;color:#6d28d9;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.report-finding{font-size:10.5px;color:#374151;line-height:1.6;margin-bottom:5px;display:flex;align-items:flex-start;gap:7px}
.rf-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:4px}
.rf-red{background:#dc2626}
.rf-yellow{background:#d97706}
.rf-purple{background:#7c3aed}
.rf-green{background:#059669}
.report-rec-list{display:flex;flex-direction:column;gap:5px}
.rrl-item{display:flex;align-items:flex-start;gap:8px;font-size:10.5px;color:#374151;line-height:1.5}
.rrl-num{background:#6d28d9;color:#fff;font-size:9px;font-weight:700;padding:1px 6px;border-radius:4px;flex-shrink:0;margin-top:1px}
.report-impact-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ri-card{background:#f9fafb;border-radius:8px;padding:10px;text-align:center;border:1px solid #e5e7eb}
.ri-card.ri-green{background:#f0fdf4;border-color:#bbf7d0}
.ri-card.ri-blue{background:#e0f2fe;border-color:#bae6fd}
.ri-card.ri-purple{background:#f5f3ff;border-color:#ddd6fe}
.ri-metric{font-size:18px;font-weight:800;color:#111827;font-family:'Bricolage Grotesque',sans-serif}
.ri-label{font-size:9px;color:#6b7280;margin-top:2px;line-height:1.4}

/* ═══ CHAT PANEL ══════════════════════════════════════════════════════════════ */
.chat-ui{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:10px;border:1px solid #e5e7eb;overflow:hidden}
.chat-header{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#f9fafb;border-bottom:1px solid #e5e7eb;flex-shrink:0}
.chat-agent-dot{font-size:18px;color:#7c3aed}
.chat-agent-name{font-size:12px;font-weight:700;color:#111827}
.chat-agent-sub{font-size:9.5px;color:#9ca3af}
.chat-status{margin-left:auto;font-size:10px;font-weight:600;color:#059669}
.chat-messages{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;min-height:0}
.chat-messages::-webkit-scrollbar{width:4px}
.chat-messages::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:2px}
.chat-msg{display:flex;flex-direction:column;gap:2px}
.chat-msg.chat-user{align-items:flex-end}
.chat-msg.chat-ai{align-items:flex-start}
.chat-bubble{font-size:10.5px;line-height:1.6;padding:8px 11px;border-radius:10px;max-width:88%}
.chat-bubble.ai{background:#f3f4f6;color:#111827;border-radius:2px 10px 10px 10px}
.chat-bubble.user{background:#6d28d9;color:#fff;border-radius:10px 2px 10px 10px}
.chat-ts{font-size:9px;color:#9ca3af;padding:0 3px}
.chat-typing{display:flex;align-items:center;gap:3px;padding:4px 0}
.typing-dot{width:6px;height:6px;border-radius:50%;background:#d1d5db;animation:typingPulse 1.4s infinite}
.typing-dot:nth-child(2){animation-delay:.2s}
.typing-dot:nth-child(3){animation-delay:.4s}
@keyframes typingPulse{0%,100%{opacity:.4;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.chat-input-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid #e5e7eb;flex-shrink:0;background:#fff}
.chat-input-field{flex:1;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;font-size:10.5px;color:#9ca3af;font-family:'Inter',sans-serif}
.chat-send{width:30px;height:30px;border-radius:8px;background:#6d28d9;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}

/* ═══ PIPELINE VISUALIZATION ═════════════════════════════════════════════════ */
.pipeline-viz-wrap{background:linear-gradient(135deg,var(--bg-1) 0%,var(--bg-2) 100%);border:1px solid rgba(255,255,255,.07);border-radius:20px;padding:36px 32px;margin-top:40px}
.pipeline-viz-header{text-align:center;margin-bottom:30px}
.pv-eyebrow{font-size:11px;font-weight:600;color:var(--blue);text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px}
.pv-title{font-size:20px;font-weight:700;color:var(--text-1);font-family:'Bricolage Grotesque',sans-serif;margin-bottom:6px}
.pv-sub{font-size:13px;color:var(--text-3)}
.pipeline-steps{display:flex;align-items:flex-start;justify-content:center;gap:0;flex-wrap:wrap;row-gap:20px}
.pipe-step{background:var(--surface);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:18px 16px;flex:1;min-width:130px;max-width:180px;text-align:center;position:relative}
.pipe-step.pipe-done{border-color:rgba(124,58,237,.3);background:rgba(124,58,237,.06)}
.pipe-icon{width:38px;height:38px;border-radius:10px;background:rgba(124,58,237,.15);border:1px solid rgba(124,58,237,.25);display:flex;align-items:center;justify-content:center;margin:0 auto 10px;color:#a78bfa}
.pipe-done .pipe-icon{background:rgba(124,58,237,.2);border-color:rgba(124,58,237,.4)}
.pipe-label{font-size:11.5px;font-weight:700;color:var(--text-1);margin-bottom:5px}
.pipe-desc{font-size:9.5px;color:var(--text-3);line-height:1.5;margin-bottom:8px}
.pipe-status{font-size:9px;font-weight:600;color:#10b981;background:rgba(16,185,129,.1);border-radius:6px;padding:2px 7px;display:inline-block}
.pipe-arrow{font-size:20px;color:rgba(124,58,237,.5);display:flex;align-items:center;padding:0 4px;margin-top:28px;flex-shrink:0}

/* ═══ PHONE — CHAT MINI ══════════════════════════════════════════════════════ */
.ph-chat-mini{display:flex;flex-direction:column;gap:8px;padding-top:4px}
.ph-msg{display:flex}
.ph-msg-user{justify-content:flex-end}
.ph-msg-ai{justify-content:flex-start}
.ph-bubble-ai{background:#f3f4f6;color:#111827;font-size:10px;line-height:1.55;padding:7px 9px;border-radius:2px 8px 8px 8px;max-width:90%}
.ph-bubble-user{background:#6d28d9;color:#fff;font-size:10px;line-height:1.55;padding:7px 9px;border-radius:8px 2px 8px 8px;max-width:85%}
.ph-typing-bar{display:flex;align-items:center;gap:3px;padding:4px 0}

/* ═══ KPI 6-COL ══════════════════════════════════════════════════════════════ */
.kpi-6{grid-template-columns:repeat(6,1fr)}

/* ═══ SIDEBAR CLICK DELEGATION ═══════════════════════════════════════════════ */
.sb-item[data-apptab]{cursor:pointer}

/* ═══ RESPONSIVE OVERRIDES — NEW PANELS ════════════════════════════════════ */
@media(max-width:900px){
  .kpi-6{grid-template-columns:repeat(3,1fr)}
  .report-impact-grid{grid-template-columns:repeat(2,1fr)}
  .pipeline-steps{gap:0;row-gap:12px}
  .pipe-step{min-width:110px;padding:14px 10px}
  .pipe-arrow{margin-top:20px;font-size:16px}
  .ds-grid{grid-template-columns:1fr}
  .ds-card-full{grid-column:1}
}
@media(max-width:768px){
  .kpi-6{grid-template-columns:repeat(2,1fr)}
  .pipeline-viz-wrap{padding:24px 20px}
  .pipeline-steps{flex-direction:column;align-items:center}
  .pipe-step{max-width:100%;width:100%}
  .pipe-arrow{transform:rotate(90deg);margin:0}
  .cp-split{grid-template-columns:1fr}
  .opp-scores{gap:10px}
  .chat-bubble{max-width:96%}
}
@media(max-width:640px){
  .kpi-6{grid-template-columns:repeat(2,1fr)}
  .report-impact-grid{grid-template-columns:repeat(2,1fr)}
  .ds-flow-nodes{gap:4px}
  .ds-fn{padding:2px 7px;font-size:9px}
  .pipeline-viz-wrap{padding:20px 16px;margin-top:28px}
  .pv-title{font-size:16px}
  .pipe-desc{display:none}
}

/* ═══ AGENT PIPELINE OVERVIEW STYLES ═══════════════════════════════════════ */
.ov-pipeline-row{display:flex;align-items:flex-start;justify-content:center;gap:0;margin-bottom:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:14px 12px;flex-wrap:wrap;row-gap:8px}
.ov-pipe-step{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;min-width:90px;max-width:140px;text-align:center;position:relative;padding:6px 4px}
.ov-pipe-step.ov-done .ov-step-icon{background:#ede9fe;border-color:#c4b5fd;color:#6d28d9}
.ov-step-icon{width:32px;height:32px;border-radius:8px;background:#f3f4f6;border:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;color:#9ca3af;margin:0 auto}
.ov-step-name{font-size:10px;font-weight:700;color:#111827}
.ov-step-stat{font-size:9px;color:#6b7280}
.ov-step-check{font-size:9px;font-weight:700;color:#059669;background:#d1fae5;padding:1px 6px;border-radius:9px}
.ov-pipe-arrow{font-size:16px;color:#ddd6fe;display:flex;align-items:center;padding:0 2px;margin-top:14px;flex-shrink:0}
.ov-chat-card{background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:12px 14px;margin-top:2px}
.ov-chat-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.ov-chat-q{font-size:11px;font-weight:600;color:#374151;margin-bottom:6px;font-style:italic}
.ov-chat-q::before{content:'"';color:#9ca3af}
.ov-chat-q::after{content:'"';color:#9ca3af}
.ov-chat-a{font-size:10.5px;color:#374151;line-height:1.6;background:#f5f3ff;border-left:3px solid #7c3aed;padding:8px 10px;border-radius:0 6px 6px 0}

/* ═══ SIDEBAR STEP BADGE ════════════════════════════════════════════════════ */
.sb-step-badge{margin-left:auto;width:16px;height:16px;border-radius:50%;background:#6d28d9;color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* ═══ RESPONSIVE — OVERVIEW PIPELINE ROW ═══════════════════════════════════ */
@media(max-width:900px){
  .ov-pipeline-row{gap:0;padding:10px 8px}
  .ov-pipe-step{min-width:70px}
  .ov-pipe-arrow{font-size:12px;margin-top:12px}
}
@media(max-width:640px){
  .ov-pipeline-row{flex-direction:column;align-items:stretch;padding:10px}
  .ov-pipe-step{flex-direction:row;align-items:center;max-width:100%;gap:8px;text-align:left;padding:6px 8px}
  .ov-pipe-arrow{transform:rotate(90deg);margin:2px auto;font-size:14px}
  .ov-step-name{flex:1}
  .kpi-6{grid-template-columns:repeat(2,1fr)}
}


/* ═══ AGENT ARCHITECTURE DIAGRAM ═══════════════════════════════════════════ */

/* Outer wrapper */
.agent-arch-diagram {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 0 80px rgba(139,92,246,.07), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Layer 1: Source chips ── */
.aad-src-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
.aad-source-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: border-color .2s;
}
.aad-source-chip:hover { border-color: var(--border-2); }
.aad-chip-icon  { font-size: 20px; }
.aad-chip-name  { font-size: 10px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.aad-chip-live  { font-size: 9px; font-weight: 700; color: #4ade80; letter-spacing: .04em; }

/* ── Connector bands ── */
.aad-conn-band {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  height: 36px;
}
.aad-conn-single { display: flex; justify-content: center; height: 28px; }
.aad-conn-v {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.aad-conn-v::before {
  content: '';
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,rgba(139,92,246,.55),rgba(139,92,246,.18));
  border-radius: 1px;
}

/* Traveling dot */
.aad-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,.7);
  opacity: 0;
}
/* Staggered delays via individual delay classes */
.aad-dot-d1 { animation-delay: .55s !important; }
.aad-dot-d2 { animation-delay: 1.1s !important; }
.aad-dot-d3 { animation-delay: 1.65s !important; }
.aad-dot-d4 { animation-delay: .3s  !important; }
.aad-dot-d5 { animation-delay: 0s   !important; }

/* ── Layer 2: Ingestion nodes ── */
.aad-ingestion-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
.aad-inode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 13px 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .2s, transform .2s;
}
.aad-inode:hover { border-color: var(--border-2); transform: translateY(-3px); }
.aad-inode-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
}
.aad-in-analytics .aad-inode-bar { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.aad-in-seo       .aad-inode-bar { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.aad-in-aeogeo    .aad-inode-bar { background: linear-gradient(90deg,#6366f1,#818cf8); }
.aad-in-social    .aad-inode-bar { background: linear-gradient(90deg,#ec4899,#f472b6); }
.aad-inode-icon { font-size: 20px; }
.aad-inode-name { font-size: 12px; font-weight: 700; color: var(--text-1); line-height: 1.25; }
.aad-inode-sub  {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: var(--text-3);
  letter-spacing: .05em;
  line-height: 1.3;
}
.aad-tag-row { display: flex; flex-wrap: wrap; gap: 3px; }
.aad-tag {
  display: inline-block;
  background: rgba(139,92,246,.1);
  color: rgba(167,139,250,.85);
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  padding: 1px 5px;
}
.aad-tag-amber {
  background: rgba(217,119,6,.12);
  color: rgba(251,191,36,.85);
  border-color: rgba(217,119,6,.22);
}
.aad-json-out {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: rgba(74,222,128,.65);
  background: rgba(74,222,128,.06);
  border: 1px solid rgba(74,222,128,.12);
  border-radius: 5px;
  padding: 3px 7px;
  text-align: center;
}

/* ── Converge connector (H-bracket) ── */
.aad-converge {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aad-conv-stubs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  height: 18px;
}
.aad-conv-stubs span {
  display: flex;
  justify-content: center;
}
.aad-conv-stubs span::before {
  content: '';
  width: 2px;
  height: 100%;
  background: rgba(139,92,246,.35);
}
.aad-conv-bridge {
  /* spans from center of col1 to center of col4 ≈ 75% of container */
  width: 75%;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aad-conv-bridge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: rgba(139,92,246,.3);
  transform: translateY(-50%);
}
.aad-conv-label {
  position: relative;            /* sits on top of ::before line */
  background: var(--bg-1);       /* punches through the line */
  padding: 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  color: rgba(167,139,250,.7);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.aad-conv-drop {
  width: 2px;
  height: 22px;
  background: rgba(139,92,246,.45);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* ── Layer 3: Strategy Agent ── */
.aad-strategy-wrap { display: flex; justify-content: center; }
.aad-strategy-node {
  background: linear-gradient(135deg,rgba(217,119,6,.07),rgba(251,191,36,.03));
  border: 1px solid rgba(217,119,6,.28);
  border-radius: 18px;
  padding: 22px 26px;
  width: 72%;
  position: relative;
  overflow: hidden;
}
.aad-strategy-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,#d97706,#fbbf24,#d97706);
  border-radius: 18px 18px 0 0;
}
.aad-strategy-pulse {
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  border: 1px solid rgba(217,119,6,.18);
  pointer-events: none;
}
.aad-strategy-inner { display: flex; align-items: flex-start; gap: 18px; }
.aad-strategy-icon  { font-size: 30px; flex-shrink: 0; padding-top: 2px; }
.aad-strategy-name  { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.aad-strategy-sub   {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(251,191,36,.65);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.aad-strategy-desc  { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* ── Layer 4: Recommendation node ── */
.aad-output-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.aad-reco-node {
  background: linear-gradient(135deg,rgba(22,163,74,.07),rgba(74,222,128,.03));
  border: 1px solid rgba(22,163,74,.28);
  border-radius: 14px;
  padding: 16px 24px;
  width: 52%;
  position: relative;
  overflow: hidden;
}
.aad-reco-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,#16a34a,#4ade80,#16a34a);
}
.aad-reco-inner { display: flex; align-items: center; gap: 14px; }
.aad-reco-icon  { font-size: 26px; }
.aad-reco-name  { font-size: 14px; font-weight: 700; color: var(--text-1); }
.aad-reco-sub   {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: rgba(74,222,128,.6);
  letter-spacing: .06em;
  margin-top: 2px;
}

/* Output preview cards */
.aad-previews {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.aad-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color .2s;
}
.aad-preview:hover { border-color: var(--border-2); }
.aad-pv-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.aad-pv-text { font-size: 11px; color: var(--text-2); line-height: 1.55; flex: 1; }
.aad-pv-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aad-pv-ch {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(59,130,246,.15); color: #60a5fa;
}
.aad-pv-ch-purple { background: rgba(139,92,246,.15); color: #a78bfa; }
.aad-pv-ch-pink   { background: rgba(236,72,153,.15); color: #f472b6; }
.aad-pv-imp     { font-size: 9.5px; font-weight: 700; color: #4ade80; }
.aad-pv-imp-med { color: #fbbf24; }

/* ── CSS-only animations (triggered when parent gets .visible from existing IO) ── */
@keyframes aadIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes aadDotFall {
  0%   { top: -8px; opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0; }
}
@keyframes aadPulse {
  0%,100% { transform: scale(1);    opacity: .5; }
  50%      { transform: scale(1.05); opacity: .2; }
}

/* Staggered layer entrances — keyed off .visible on outer .fade-up */
.agent-arch-diagram.visible .aad-src-row       { animation: aadIn .5s ease .0s  both; }
.agent-arch-diagram.visible .aad-conn-band-top { animation: aadIn .4s ease .2s  both; }
.agent-arch-diagram.visible .aad-ingestion-row { animation: aadIn .5s ease .38s both; }
.agent-arch-diagram.visible .aad-converge      { animation: aadIn .4s ease .62s both; }
.agent-arch-diagram.visible .aad-strategy-wrap { animation: aadIn .5s ease .8s  both; }
.agent-arch-diagram.visible .aad-conn-single   { animation: aadIn .3s ease 1.0s both; }
.agent-arch-diagram.visible .aad-output-wrap   { animation: aadIn .5s ease 1.12s both; }

/* Traveling dots */
.agent-arch-diagram.visible .aad-dot {
  animation: aadDotFall 2.2s ease-in-out infinite;
}
/* Per-dot stagger (inline !important overrides the base delay) */

/* Preview card stagger */
.agent-arch-diagram.visible .aad-pv-1 { animation: aadIn .4s ease 1.3s  both; }
.agent-arch-diagram.visible .aad-pv-2 { animation: aadIn .4s ease 1.5s  both; }
.agent-arch-diagram.visible .aad-pv-3 { animation: aadIn .4s ease 1.7s  both; }

/* Strategy pulse */
.agent-arch-diagram.visible .aad-strategy-pulse {
  animation: aadPulse 2.8s ease-in-out infinite;
}

/* ── Responsive ── */
@media(max-width:900px) {
  .aad-strategy-node { width: 88%; }
  .aad-reco-node     { width: 72%; }
}
@media(max-width:768px) {
  /* Agents collapse to 2x2 */
  .aad-ingestion-row,
  .aad-src-row,
  .aad-conn-band { grid-template-columns: repeat(2,1fr); }
  /* Simplify converge on tablet */
  .aad-conv-stubs  { grid-template-columns: repeat(2,1fr); }
  .aad-conv-bridge { width: 50%; }
  .aad-strategy-node { width: 94%; }
  .aad-reco-node     { width: 80%; }
  .aad-previews      { grid-template-columns: 1fr; }
}
@media(max-width:640px) {
  .agent-arch-diagram { padding: 20px 16px; border-radius: 18px; }
  /* Hide complex converge on small screens — show just a drop line */
  .aad-conv-stubs,
  .aad-conv-bridge { display: none; }
  .aad-conv-drop   { height: 32px; }
  .aad-strategy-node  { width: 100%; }
  .aad-strategy-inner { flex-direction: column; gap: 10px; }
  .aad-reco-node      { width: 100%; }
  .aad-ingestion-row,
  .aad-src-row { grid-template-columns: repeat(2,1fr); }
  .aad-conn-band { grid-template-columns: repeat(2,1fr); }
}
@media(prefers-reduced-motion:reduce) {
  .aad-dot,
  .aad-strategy-pulse,
  .agent-arch-diagram.visible .aad-src-row,
  .agent-arch-diagram.visible .aad-conn-band-top,
  .agent-arch-diagram.visible .aad-ingestion-row,
  .agent-arch-diagram.visible .aad-converge,
  .agent-arch-diagram.visible .aad-strategy-wrap,
  .agent-arch-diagram.visible .aad-conn-single,
  .agent-arch-diagram.visible .aad-output-wrap,
  .agent-arch-diagram.visible .aad-pv-1,
  .agent-arch-diagram.visible .aad-pv-2,
  .agent-arch-diagram.visible .aad-pv-3 { animation: none !important; opacity: 1 !important; }
}

/* ═══ A2A / M2M REDESIGN ═══════════════════════════════════════════════════ */
.m2m-section-divider{font-size:10px;font-weight:700;color:var(--text-3);letter-spacing:.1em;text-transform:uppercase;margin:36px 0 16px;display:flex;align-items:center;gap:10px}
.m2m-section-divider::after{content:'';flex:1;height:1px;background:var(--border)}
.m2m-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:36px}
.m2m-compare-col{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px 20px}
.m2m-col-new{border-color:rgba(139,92,246,.28);background:rgba(139,92,246,.04)}
.m2m-col-label{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px;display:flex;align-items:center;gap:6px}
.m2m-col-old .m2m-col-label{color:var(--text-3)}
.m2m-col-new .m2m-col-label{color:rgba(167,139,250,.8)}
.m2m-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.m2m-dot-old{background:rgba(255,255,255,.2)}
.m2m-dot-new{background:#8b5cf6}
.m2m-flow{display:flex;flex-direction:column;gap:0}
.m2m-flow-step{display:flex;align-items:center;gap:10px;padding:7px 0}
.m2m-step-icon{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.05);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.m2m-col-new .m2m-step-icon{background:rgba(139,92,246,.12);border-color:rgba(139,92,246,.22)}
.m2m-step-name{font-size:12.5px;font-weight:600;color:var(--text-1);line-height:1.25}
.m2m-step-sub{font-size:10px;color:var(--text-3);margin-top:1px}
.m2m-flow-arr{font-size:11px;color:var(--text-3);padding-left:16px;line-height:1;margin:-2px 0}
.m2m-arr-purple{color:rgba(139,92,246,.5)}
.m2m-callout{margin-top:12px;padding:14px 18px;background:rgba(139,92,246,.08);border:1px solid rgba(139,92,246,.22);border-radius:var(--r-md);font-size:13px;color:#c4b5fd;line-height:1.65}
.m2m-callout strong{color:#e0d7ff;font-weight:700}
.m2m-aflow{display:flex;align-items:stretch;gap:0}
.m2m-aflow-step{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:14px 12px;flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px}
.m2m-afs-highlight{background:rgba(139,92,246,.08);border-color:rgba(139,92,246,.25)}
.m2m-afs-win{background:rgba(22,163,74,.07);border-color:rgba(22,163,74,.25)}
.m2m-aflow-arr{display:flex;align-items:center;padding:0 7px;font-size:16px;color:rgba(139,92,246,.4);flex-shrink:0}
.m2m-afs-icon{font-size:20px}
.m2m-afs-name{font-size:11px;font-weight:700;color:var(--text-1);line-height:1.3}
.m2m-afs-sub{font-family:'JetBrains Mono',monospace;font-size:8.5px;color:var(--text-3)}
.m2m-afs-win .m2m-afs-sub{color:rgba(74,222,128,.65)}
.m2m-feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.m2m-feat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:18px 16px;transition:border-color .2s,transform .2s}
.m2m-feat-card:hover{border-color:var(--border-2);transform:translateY(-2px)}
.m2m-feat-icon{font-size:22px;margin-bottom:10px}
.m2m-feat-title{font-size:13px;font-weight:700;color:var(--text-1);margin-bottom:6px}
.m2m-feat-desc{font-size:12px;color:var(--text-2);line-height:1.6}
@media(max-width:900px){
  .m2m-aflow{flex-wrap:wrap}
  .m2m-aflow-step{min-width:calc(33% - 10px);flex:none}
  .m2m-feat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .m2m-compare{grid-template-columns:1fr}
  .m2m-flow{flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center}
  .m2m-flow-step{padding:4px 0}
  .m2m-flow-arr{padding-left:0}
  .m2m-aflow{flex-direction:column;align-items:stretch}
  .m2m-aflow-arr{transform:rotate(90deg);align-self:center;padding:0;height:24px}
  .m2m-aflow-step{flex-direction:row;text-align:left;align-items:center;gap:10px}
}
@media(max-width:640px){
  .m2m-feat-grid{grid-template-columns:repeat(2,1fr)}
  .m2m-aflow-step{padding:10px}
  .m2m-section-divider{margin:24px 0 12px}
}

/* ═══ LEARNINGS REDESIGN ════════════════════════════════════════════════════ */
.lrn-section-div{font-size:9.5px;font-weight:700;color:var(--text-3);letter-spacing:.1em;text-transform:uppercase;margin:36px 0 16px;display:flex;align-items:center;gap:10px}
.lrn-section-div::after{content:'';flex:1;height:1px;background:var(--border)}
.lrn-tx-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lrn-tx-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px 18px;display:flex;flex-direction:column;gap:10px;transition:border-color .2s}
.lrn-tx-card:hover{border-color:var(--border-2)}
.lrn-tx-row{display:flex;align-items:center;gap:10px}
.lrn-tx-before{font-size:13px;font-weight:600;color:var(--text-3);flex:1}
.lrn-tx-arrow{font-size:18px;color:rgba(139,92,246,.6);flex-shrink:0}
.lrn-tx-after{font-size:13px;font-weight:700;color:var(--text-1);flex:1;text-align:right}
.lrn-tx-bar{height:2px;background:linear-gradient(90deg,rgba(255,255,255,.07),rgba(139,92,246,.55),rgba(59,130,246,.8));border-radius:1px}
.lrn-tx-note{font-size:12px;color:var(--text-2);line-height:1.6;margin:0}
.lrn-stack{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px 22px}
.lrn-stack-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}
.lrn-stack-title{font-size:14px;font-weight:700;color:var(--text-1)}
.lrn-stack-note{font-size:12px;color:var(--text-3);line-height:1.5;max-width:260px;text-align:right}
.lrn-chips{display:flex;flex-wrap:wrap;gap:7px}
.lrn-chip{font-family:'JetBrains Mono',monospace;font-size:11px;padding:5px 12px;border-radius:6px;font-weight:600;background:rgba(139,92,246,.1);color:rgba(167,139,250,.85);border:1px solid rgba(139,92,246,.18)}
.lrn-chip-blue{background:rgba(59,130,246,.12);color:rgba(147,197,253,.9);border-color:rgba(59,130,246,.25)}
.lrn-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.lrn-ins-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:20px 18px;display:flex;flex-direction:column;gap:8px;transition:border-color .2s}
.lrn-ins-card:hover{border-color:var(--border-2)}
.lrn-ins-icon{font-size:22px}
.lrn-ins-title{font-size:13.5px;font-weight:700;color:var(--text-1);line-height:1.3}
.lrn-ins-text{font-size:12px;color:var(--text-2);line-height:1.65;margin:0;flex:1}
.lrn-ins-tag{font-family:'JetBrains Mono',monospace;font-size:9px;padding:2px 8px;border-radius:4px;background:rgba(139,92,246,.1);color:rgba(167,139,250,.8);border:1px solid rgba(139,92,246,.16);align-self:flex-start;margin-top:4px}
@media(max-width:768px){
  .lrn-tx-grid{grid-template-columns:1fr}
  .lrn-insights{grid-template-columns:1fr}
  .lrn-stack-header{flex-direction:column;gap:8px}
  .lrn-stack-note{text-align:left;max-width:100%}
}
@media(max-width:640px){
  .lrn-section-div{margin:24px 0 12px}
  .lrn-tx-before,.lrn-tx-after{font-size:11.5px}
}
