/* ══════════════════════════════════════════════════════
   AgentShield — style.css
══════════════════════════════════════════════════════ */

:root {
  --bg:       #0a0f1e;
  --bg2:      #0e1528;
  --surface:  #111827;
  --surface2: #1a2235;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --blue:     #3b82f6;
  --purple:   #8b5cf6;
  --green:    #10b981;
  --red:      #ef4444;
  --orange:   #f59e0b;
  --grad:     linear-gradient(135deg, #3b82f6, #8b5cf6);
  --text:     #f0f4ff;
  --text-2:   #94a3b8;
  --text-3:   #64748b;
  --font:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', monospace;
  --r:        12px;
  --r-lg:     20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: var(--blue); text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: clamp(32px,5vw,52px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.section-sub   { font-size: 18px; color: var(--text-2); max-width: 640px; line-height: 1.7; }
.section-sub code { font-family: var(--mono); font-size: 14px; background: var(--surface2); padding: 2px 6px; border-radius: 4px; color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .2s; border: none; white-space: nowrap; }
.btn-primary { background: var(--grad); color: white; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-glow { box-shadow: 0 0 24px rgba(59,130,246,.35); }
.btn-glow:hover { box-shadow: 0 0 40px rgba(59,130,246,.5); }
.btn-ghost   { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-h); color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg   { padding: 14px 30px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; margin-top: 24px; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: var(--blue); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 28px; }
.badge-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)} }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background .3s, border-bottom .3s; }
.nav.scrolled { background: rgba(10,15,30,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 40px; }
.nav-logo  { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--text-2); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; flex-shrink: 0; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 16px; background: rgba(10,15,30,.97); border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 0; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 8px; }

/* ── HERO ── */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(59,130,246,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(59,130,246,.04) 1px,transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%,black 40%,transparent 100%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-1 { width: 400px; height: 400px; background: rgba(59,130,246,.12); top: -100px; right: 10%; animation: orbFloat 8s ease-in-out infinite; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(139,92,246,.1); top: 100px; right: 25%; animation: orbFloat 10s ease-in-out infinite reverse; }
@keyframes orbFloat { 0%,100%{transform:translateY(0)}50%{transform:translateY(-30px)} }

.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(44px,6vw,72px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -.02em; }
.hero-sub   { font-size: 18px; color: var(--text-2); line-height: 1.75; margin-bottom: 36px; max-width: 500px; }
.hero-ctas  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-social-proof { font-size: 13px; color: var(--text-3); }

/* Hero terminal */
.hero-terminal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,.6), 0 0 60px rgba(59,130,246,.08); }
.terminal-bar  { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.terminal-dot  { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red    { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green  { background: #10b981; }
.terminal-title { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-left: 8px; flex: 1; }
.terminal-live  { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--green); font-family: var(--mono); }
.live-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
.terminal-body { padding: 16px; font-family: var(--mono); font-size: 12px; }
.terminal-header-row { display: grid; grid-template-columns: 70px 90px 1fr 80px; gap: 8px; color: var(--text-3); font-size: 11px; padding: 0 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; letter-spacing: .08em; }
.log-row { display: grid; grid-template-columns: 70px 90px 1fr 80px; gap: 8px; padding: 7px 0; border-radius: 4px; opacity: 0; transform: translateY(4px); }
.log-row.allow,.log-row.block { animation: logAppear .4s ease forwards; }
.anim-1{animation-delay:.3s}.anim-2{animation-delay:.9s}.anim-3{animation-delay:1.5s}.anim-4{animation-delay:2.1s}.anim-5{animation-delay:2.7s}.anim-6{animation-delay:3.3s}.anim-7{animation-delay:3.9s}.anim-8{animation-delay:4.5s}
@keyframes logAppear { to{opacity:1;transform:translateY(0)} }
.log-time   { color: var(--text-3); }
.log-agent  { color: var(--blue); }
.log-tool   { color: var(--text-2); }
.log-allow  { color: var(--green); font-weight: 600; }
.log-block  { color: var(--red); font-weight: 600; }
.log-row.block { background: rgba(239,68,68,.05); }
.terminal-cursor { color: var(--blue); animation: blink 1s step-end infinite; margin-top: 8px; font-size: 14px; }
@keyframes blink { 50%{opacity:0} }
.terminal-footer { display: flex; gap: 20px; padding: 10px 16px; background: var(--surface2); border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; }
.stat-green{color:var(--green)}.stat-blue{color:var(--blue)}.stat-red{color:var(--red)}

/* ── STATS BAR ── */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.stat-item { text-align: center; padding: 0 48px; flex: 1; }
.stat-num  { font-size: 36px; font-weight: 900; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* ── FLOW SECTION ── */
.flow-section { background: var(--bg2); }
.flow-section .section-sub { margin-bottom: 56px; }

.flow-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }

.flow-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.flow-panel-bad  { border-color: rgba(239,68,68,.2); }
.flow-panel-good { border-color: rgba(59,130,246,.25); box-shadow: 0 0 32px rgba(59,130,246,.06); }

.flow-panel-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.flow-panel-label.bad  { color: var(--red); }
.flow-panel-label.good { color: var(--green); }

.flow-diagram { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; height: 80px; }

.flow-node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; z-index: 2; }
.node-icon  { font-size: 24px; }
.node-label { font-size: 11px; color: var(--text-2); font-weight: 600; text-align: center; white-space: nowrap; }

.shield-empty .node-icon { opacity: .3; font-size: 20px; }

.gate-node { position: relative; }
.gate-pulse { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(59,130,246,.4); top: 50%; left: 50%; transform: translate(-50%, -55%); animation: gatePulse 2s ease-in-out infinite; }
@keyframes gatePulse { 0%,100%{transform:translate(-50%,-55%) scale(1);opacity:.4}50%{transform:translate(-50%,-55%) scale(1.3);opacity:0} }

.danger-node .node-icon::after { content: ''; }
.danger-badge { font-size: 10px; color: var(--red); background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); padding: 2px 7px; border-radius: 100px; font-weight: 600; }
.safe-badge   { font-size: 10px; color: var(--green); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); padding: 2px 7px; border-radius: 100px; font-weight: 600; }

/* Animated packet lanes */
.flow-lane { flex: 1; position: relative; height: 4px; margin: 0 8px; overflow: visible; }
.flow-wire { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--border); transform: translateY(-50%); }
.flow-packet { position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 50%; transform: translateY(-50%); }

/* Bad packets — flow freely through (dangerous) */
.bad-packet { background: rgba(239,68,68,.7); box-shadow: 0 0 6px rgba(239,68,68,.5); }
.bad-p1 { animation: packetBad 3s linear infinite; }
.bad-p2 { animation: packetBad 3s linear 1.5s infinite; }
.bad-p3 { animation: packetBad 3s linear .7s infinite; }
.bad-p4 { animation: packetBad 3s linear 2.2s infinite; }
@keyframes packetBad { 0%{left:-5%;opacity:0}5%{opacity:1}95%{opacity:1}100%{left:105%;opacity:0} }

/* Good packets — pass through gate */
.good-packet { background: rgba(16,185,129,.8); box-shadow: 0 0 6px rgba(16,185,129,.5); }
.gp1 { animation: packetGood 3.5s linear infinite; }
.gp2 { animation: packetGood 3.5s linear 1.2s infinite; }
.gp3 { animation: packetGood 3.5s linear .4s infinite; }
.gp4 { animation: packetGood 3.5s linear 1.8s infinite; }
@keyframes packetGood { 0%{left:-5%;opacity:0}5%{opacity:1}95%{opacity:1}100%{left:105%;opacity:0} }

/* Blocked packet — stops at gate, flashes red, returns */
.blocked-packet { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,.8); }
.bp1 { animation: packetBlocked 4s ease-in-out 0.8s infinite; }
@keyframes packetBlocked {
  0%    { left: -5%; opacity: 0; background: rgba(239,68,68,.7); }
  5%    { opacity: 1; }
  45%   { left: 42%; }
  52%   { left: 42%; background: var(--red); box-shadow: 0 0 16px var(--red); transform: translateY(-50%) scale(1.5); }
  65%   { left: 10%; opacity: .5; transform: translateY(-50%) scale(1); }
  70%   { opacity: 0; }
  100%  { left: -5%; opacity: 0; }
}

.flow-calls { display: flex; gap: 8px; flex-wrap: wrap; }
.call-badge { font-size: 11px; padding: 4px 10px; border-radius: 100px; font-family: var(--mono); font-weight: 600; }
.allowed-badge { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--green); }
.blocked-badge { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--red); }

/* Steps row */
.steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: start; margin-top: 16px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.step-card:hover { border-color: rgba(59,130,246,.3); }
.step-num-lg { font-size: 13px; font-weight: 800; color: var(--blue); font-family: var(--mono); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2); border-radius: 8px; display: inline-block; padding: 4px 10px; margin-bottom: 14px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.step-arrow   { font-size: 24px; color: var(--text-3); padding-top: 40px; flex-shrink: 0; }

/* ── THREATS ── */
.threats-section { background: var(--bg); }
.threats-section .section-sub { margin-bottom: 56px; }

.threats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.threat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.threat-card:hover, .threat-card.hovered { transform: translateY(-6px); border-color: rgba(59,130,246,.25); box-shadow: 0 12px 40px rgba(0,0,0,.3); }

.threat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.threat-icon   { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scope-icon         { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); }
.injection-icon     { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); }
.exfil-icon         { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2); }
.loop-icon          { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); }
.impersonation-icon { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2); }
.credential-icon    { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); }

.threat-type { font-size: 14px; font-weight: 700; flex: 1; }
.threat-blocked-badge { font-size: 10px; font-weight: 700; letter-spacing: .08em; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--green); padding: 3px 8px; border-radius: 100px; flex-shrink: 0; }

.threat-scenario { margin-bottom: 14px; }
.scenario-label { font-size: 11px; color: var(--text-3); margin-bottom: 8px; font-family: var(--mono); }
.scenario-label span { color: var(--blue); }

.threat-terminal { background: #0d1117; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: 11px; line-height: 1.9; }
.tt-row   { display: flex; gap: 6px; align-items: baseline; }
.tt-dim   { color: var(--text-3); flex-shrink: 0; }
.tt-text  { color: var(--text-2); }
.tt-allow { color: var(--green); font-weight: 700; flex-shrink: 0; }
.tt-block { color: var(--red); font-weight: 700; flex-shrink: 0; }
.tt-strike{ text-decoration: line-through; color: var(--red); }
.tt-injected { background: rgba(239,68,68,.08); border-radius: 3px; padding: 1px 4px; font-size: 10px; color: rgba(239,68,68,.9); }
.tt-redacted { background: rgba(139,92,246,.3); color: transparent; border-radius: 2px; user-select: none; letter-spacing: .08em; }
.tt-alert { color: var(--orange); margin-top: 4px; display: flex; gap: 6px; border-top: 1px solid var(--border); padding-top: 6px; font-size: 10px; }

.threat-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── ARCHITECTURE ── */
.arch-section { background: var(--bg2); }
.arch-section .section-sub { margin-bottom: 48px; }

.arch-diagram { display: grid; grid-template-columns: 180px 60px 1fr 60px 160px; gap: 0; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 24px; margin-bottom: 24px; overflow: hidden; }

.arch-col { display: flex; flex-direction: column; gap: 10px; }
.arch-col-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }

.arch-agent-card { display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.arch-agent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.arch-agent-dot.green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.arch-agent-dot.yellow { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.arch-agent-name  { font-weight: 600; font-size: 12px; font-family: var(--mono); color: var(--text); }
.arch-agent-model { font-size: 10px; color: var(--text-3); }

/* Wires with animated packets */
.arch-wires-left, .arch-wires-right { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: space-around; padding: 22px 0; }
.arch-wire { position: relative; height: 2px; background: var(--border); overflow: visible; flex: 1; display: flex; align-items: center; }
.wire-packet { position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 50%; transform: translateY(-50%); }
.wp-allow { background: var(--green); box-shadow: 0 0 6px var(--green); animation: wireFlow 2.5s linear infinite; }
.wp-block  { background: var(--red); box-shadow: 0 0 6px var(--red); animation: wireFlow 2.5s linear infinite; }
.wp-block-return { background: var(--red); box-shadow: 0 0 6px var(--red); animation: wireBlocked 2.5s ease-in-out infinite; }
@keyframes wireFlow    { 0%{left:0;opacity:0}5%{opacity:1}95%{opacity:1}100%{left:100%;opacity:0} }
@keyframes wireBlocked { 0%{left:0;opacity:0}5%{opacity:1}40%{left:40%}45%{left:0;opacity:0}100%{left:0;opacity:0} }

/* Control Plane Box */
.arch-control-plane { padding: 0 12px; }
.control-plane-box { background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(139,92,246,.06)); border: 1px solid rgba(59,130,246,.2); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cp-module { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.cp-module.cp-highlight { border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.06); }
.cp-module-icon { font-size: 16px; flex-shrink: 0; }
.cp-module-name { font-size: 12px; font-weight: 700; }
.cp-module-desc { font-size: 10px; color: var(--text-3); margin-top: 1px; }

/* Tools column */
.arch-tool-card { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 500; border: 1px solid; }
.allowed-tool { background: rgba(16,185,129,.05); border-color: rgba(16,185,129,.2); color: var(--text-2); }
.blocked-tool { background: rgba(239,68,68,.05); border-color: rgba(239,68,68,.2); color: rgba(239,68,68,.8); }

/* Architecture bottom */
.arch-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arch-bottom-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.arch-bottom-icon { font-size: 22px; flex-shrink: 0; }
.arch-bottom-title { font-size: 13px; font-weight: 700; }
.arch-bottom-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── DASHBOARD MOCKUP ── */
.dashboard-section { background: var(--bg); }
.dashboard-section .section-sub { margin-bottom: 48px; }

.dashboard-mockup { display: grid; grid-template-columns: 180px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(59,130,246,.1); }

/* Sidebar */
.db-sidebar { background: var(--surface2); border-right: 1px solid var(--border); padding: 20px 0; display: flex; flex-direction: column; gap: 2px; }
.db-logo    { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 0 16px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.db-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; color: var(--text-2); cursor: pointer; border-radius: 6px; margin: 0 8px; transition: background .15s; }
.db-nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.db-active   { background: rgba(59,130,246,.1) !important; color: var(--blue) !important; }
.db-badge    { background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 100px; margin-left: auto; }
.db-alert-item { color: var(--orange) !important; }

/* Main panel */
.db-main { padding: 20px; display: flex; flex-direction: column; gap: 0; overflow: hidden; }
.db-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.db-metric { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; }
.db-metric-val   { font-size: 24px; font-weight: 900; font-family: var(--mono); line-height: 1; margin-bottom: 4px; }
.db-metric-label { font-size: 11px; color: var(--text-3); }
.green-val { color: var(--green); }
.red-val   { color: var(--red); }
.blue-val  { color: var(--blue); }

.db-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 8px; }

.db-table { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 12px; margin-bottom: 0; }
.db-table-header { display: grid; grid-template-columns: 1.5fr 1fr .7fr 1fr .6fr; gap: 8px; padding: 9px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.db-table-row    { display: grid; grid-template-columns: 1.5fr 1fr .7fr 1fr .6fr; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.db-table-row:last-child { border-bottom: none; }
.db-row-alert    { background: rgba(245,158,11,.04); }
.db-agent-name   { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.db-status-active { color: var(--green); font-size: 11px; font-weight: 600; }
.db-status-warn   { color: var(--orange); font-size: 11px; font-weight: 600; }
.db-muted  { color: var(--text-3); font-size: 11px; }
.db-kill-btn { font-size: 10px; font-weight: 700; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: 4px; cursor: pointer; text-align: center; transition: all .15s; }
.db-kill-btn:hover { border-color: var(--red); color: var(--red); }
.kill-red { border-color: rgba(239,68,68,.4) !important; color: var(--red) !important; animation: killPulse 1.5s ease-in-out infinite; }
@keyframes killPulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.3)}50%{box-shadow:0 0 0 4px rgba(239,68,68,0)} }

.db-feed { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.db-feed-row { display: grid; grid-template-columns: 60px 90px 1fr 56px; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; align-items: center; }
.db-feed-row:last-child { border-bottom: none; }
.db-feed-time  { color: var(--text-3); }
.db-feed-agent { color: var(--blue); }
.db-feed-tool  { color: var(--text-2); }
.db-feed-allow { color: var(--green); font-weight: 700; font-size: 10px; text-align: right; }
.db-feed-block { color: var(--red); font-weight: 700; font-size: 10px; text-align: right; }
.db-feed-block-row { background: rgba(239,68,68,.04); }

/* ── FEATURES ── */
.features-section { background: var(--bg2); }
.features-section .section-sub { margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; backdrop-filter: blur(8px); transition: border-color .25s, transform .25s, box-shadow .25s; }
.feature-card:hover { border-color: rgba(59,130,246,.3); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(59,130,246,.1); }
.feature-icon { width: 48px; height: 48px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.feature-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--blue); background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); padding: 3px 10px; border-radius: 100px; }

/* ── INTEGRATIONS ── */
.integration-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; margin-top: 56px; }
.frameworks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.framework-badge { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: border-color .2s, color .2s; }
.framework-badge:hover { border-color: var(--border-h); color: var(--text); }

/* Code blocks */
.code-block { background: #0d1117; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,.6); }
.code-bar   { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: #161b22; border-bottom: 1px solid var(--border); }
.code-dot   { width: 11px; height: 11px; border-radius: 50%; background: var(--border-h); }
.code-filename { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-left: 10px; }
.code-content  { padding: 24px; font-family: var(--mono); font-size: 13px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.y-key{color:#79c0ff}.y-colon{color:var(--text-2)}.y-str{color:#a5d6ff}.y-dash{color:var(--text-3)}.y-bool{color:#7ee787}.y-num{color:#f2cc60}.y-bracket{color:var(--text-2)}.y-comma{color:var(--text-3)}
.c-kw{color:#ff7b72}.c-str{color:#a5d6ff}.c-fn{color:#d2a8ff}.c-op{color:var(--text-2)}.c-comment{color:#6e7681;font-style:italic}

/* ── COMPLIANCE ── */
.compliance-section { background: var(--bg); }
.compliance-grid    { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.compliance-card    { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px; transition: border-color .2s, transform .2s; }
.compliance-card:hover { border-color: rgba(139,92,246,.3); transform: translateY(-4px); }
.compliance-logo { font-size: 13px; font-weight: 800; font-family: var(--mono); color: var(--purple); background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.compliance-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.compliance-card p  { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; align-items: start; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; position: relative; transition: transform .2s; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular { background: linear-gradient(var(--surface),var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; transform: scale(1.04); box-shadow: 0 0 40px rgba(59,130,246,.15); }
.pricing-card.popular:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: white; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.pricing-tier   { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 12px; }
.pricing-price  { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.price-amount   { font-size: 38px; font-weight: 900; line-height: 1; }
.price-period   { font-size: 15px; color: var(--text-2); }
.pricing-desc   { font-size: 13px; color: var(--text-2); margin-bottom: 20px; min-height: 40px; line-height: 1.5; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 13px; color: var(--text-2); }

/* ── CTA ── */
.cta-section { background: var(--bg2); }
.cta-box { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 80px 60px; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse,rgba(59,130,246,.12) 0%,transparent 70%); pointer-events: none; }
.cta-content { position: relative; }
.cta-title { font-size: clamp(32px,4vw,48px); font-weight: 900; margin: 16px 0; line-height: 1.2; }
.cta-sub   { font-size: 17px; color: var(--text-2); max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.waitlist-form   { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
.waitlist-row    { display: flex; gap: 10px; }
.waitlist-input  { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; font-size: 15px; color: var(--text); font-family: var(--font); outline: none; transition: border-color .2s; min-width: 0; }
.waitlist-input:focus { border-color: var(--blue); }
.waitlist-input::placeholder { color: var(--text-3); }
.waitlist-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.waitlist-select option { background: #1e293b; color: var(--text); }
.waitlist-submit { width: 100%; margin-top: 4px; }
.cta-fine  { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.cta-trust { display: flex; justify-content: center; gap: 24px; margin-top: 28px; }
.cta-trust span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-top  { display: flex; gap: 80px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text-3); }
.footer-links { display: flex; gap: 64px; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 4px; }
.footer-col a  { font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.footer-legal  { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-3); transition: color .2s; }
.footer-legal a:hover { color: var(--text-2); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero .container    { grid-template-columns: 1fr; }
  .hero-terminal      { max-width: 580px; }
  .flow-compare       { grid-template-columns: 1fr; }
  .steps-row          { grid-template-columns: 1fr; }
  .step-arrow         { display: none; }
  .threats-grid       { grid-template-columns: repeat(2,1fr); }
  .arch-diagram       { grid-template-columns: 1fr; gap: 16px; }
  .arch-wires-left, .arch-wires-right { display: none; }
  .compliance-grid    { grid-template-columns: repeat(2,1fr); }
  .pricing-grid       { grid-template-columns: repeat(2,1fr); }
  .pricing-card.popular { transform: none; }
  .integration-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links,.nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 120px 0 64px; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; padding: 16px 0; }
  .stat-divider { display: none; }
  .threats-grid    { grid-template-columns: 1fr; }
  .features-grid   { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .pricing-grid    { grid-template-columns: 1fr; }
  .arch-bottom     { grid-template-columns: repeat(2,1fr); }
  .footer-top      { flex-direction: column; gap: 32px; }
  .footer-links    { flex-wrap: wrap; gap: 32px; }
  .footer-bottom   { flex-direction: column; gap: 12px; text-align: center; }
  .cta-box         { padding: 48px 24px; }
  .waitlist-row    { flex-direction: column; }
  .cta-trust       { flex-direction: column; align-items: center; gap: 10px; }
  .dashboard-mockup { grid-template-columns: 1fr; }
  .db-sidebar       { display: none; }
  .db-metrics       { grid-template-columns: repeat(2,1fr); }
  .db-table-header, .db-table-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .db-table-header span:nth-child(3),
  .db-table-header span:nth-child(4),
  .db-table-row span:nth-child(3),
  .db-table-row span:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .terminal-header-row,.log-row { grid-template-columns: 60px 70px 1fr 70px; gap: 4px; }
  .arch-bottom { grid-template-columns: 1fr; }
  .db-metrics  { grid-template-columns: repeat(2,1fr); }
}
