/* ============================================================
   AI LABS — page styles. Extends SkillBetter brand tokens.
   ============================================================ */
:root {
  --neelam: #1B2D93;
  --neelam-80: #122460;
  --neelam-60: #2142B9;
  --neelam-30: #568AF7;
  --neelam-10: #B8D0FC;
  --neelam-05: #EDF2FE;
  --taxi: #FFC401;
  --taxi-soft: #FFD84C;
  --chutney: #ABD354;
  --kaveri: #32CAD4;
  --mausambi: #FF9518;
  --ink: #060E2B;
  --navy-2: #0D1B3E;
  --purple: #7B4FFF;
  --purple-30: #A98CFF;
  --purple-glow: rgba(123, 79, 255, 0.25);
  --white: #FFFFFF;
  --surface: #F6F8FF;
  --surface-2: #EDF1FF;
  --border: #D6DFF7;
  --text-body: #2A3260;
  --text-light: #6B7DB3;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow-2: 0 4px 16px rgba(27, 45, 147, 0.08);
  --shadow-3: 0 16px 48px rgba(27, 45, 147, 0.16);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-feature-settings: "ss01"; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; font-size: 15px; font-weight: 700;
  border-radius: 10px; transition: all 200ms var(--ease); white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif;
}
.btn i { width: 18px; height: 18px; }
.btn-yellow { background: var(--taxi); color: var(--ink); box-shadow: 0 8px 24px rgba(255,196,1,0.22); }
.btn-yellow:hover { background: var(--taxi-soft); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,196,1,0.34); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 8px 28px var(--purple-glow); }
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(123,79,255,0.45); }
.btn-glass {
  background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.btn-ghost-dark { color: rgba(255,255,255,0.85); padding: 15px 8px; }
.btn-ghost-dark:hover { color: #fff; }

/* ===== nav (matches site) ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,14,43,0.6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 220ms var(--ease);
}
.nav.scrolled { background: rgba(6,14,43,0.92); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 12px 24px; max-width: 1360px; margin: 0 auto; position: relative; }
.nav-logo { display: flex; align-items: center; height: 36px; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav-links {
  display: flex; gap: 4px;
  position: absolute; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; padding: 5px;
}
.nav-links a {
  position: relative; font-family: 'Poppins','Inter',sans-serif;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.72);
  padding: 8px 15px; border-radius: 100px; transition: all 200ms var(--ease); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--ink); background: var(--taxi); font-weight: 600; }
.nav-links a.ai-link { color: var(--purple-30); }
.nav-links a.ai-link:hover { color: #fff; background: rgba(123,79,255,0.2); }
.nav-links a.ai-link.active { background: var(--purple); color: #fff; box-shadow: 0 0 0 3px rgba(123,79,255,0.25); }
.nav-links a .spark { color: var(--taxi); width: 13px; height: 13px; animation: sparkle 2.4s ease-in-out infinite; }
@keyframes sparkle { 0%,100% { opacity:.55; transform: scale(.85) rotate(0); } 50% { opacity:1; transform: scale(1.15) rotate(90deg); } }
.nav-cta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.nav-cta .login { font-family:'Poppins','Inter',sans-serif; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.78); padding: 9px 14px; border-radius: 100px; }
.nav-cta .login:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; border-radius: 100px; }

/* NEW pill badge in nav */
.new-pill {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--taxi); color: var(--ink);
  padding: 2px 6px; border-radius: 5px; line-height: 1;
}

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== shared section bits ===== */
section { position: relative; }
.sec { padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow.yellow { color: var(--taxi); }
.eyebrow.purple { color: var(--purple-30); }
.eyebrow.dim { color: var(--neelam-30); }
.eyebrow::before { content:''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.h-sec { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.lead { font-size: 18px; line-height: 1.65; max-width: 600px; }

.dark { background: var(--ink); color: #fff; }
.dark .lead { color: rgba(255,255,255,0.62); }
.light { background: var(--surface); color: var(--ink); }
.light .lead { color: var(--text-body); }
.white { background: #fff; color: var(--ink); }
.white .lead { color: var(--text-body); }

/* mesh canvas */
.mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ============ HERO ============ */
.ai-hero { padding: 150px 0 100px; overflow: hidden; isolation: isolate; }
.ai-hero::before {
  content:''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(123,79,255,0.34) 0%, transparent 62%),
    radial-gradient(ellipse 50% 50% at 12% 88%, rgba(33,66,185,0.4) 0%, transparent 60%);
}
.ai-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 100px;
  border: 1px solid rgba(123,79,255,0.5);
  background: rgba(123,79,255,0.1);
  font-size: 12.5px; font-weight: 600; color: #fff;
  margin-bottom: 28px;
}
.hero-badge .spk { color: var(--taxi); }
.hero-badge .beat { width: 7px; height: 7px; border-radius: 50%; background: var(--chutney); box-shadow: 0 0 0 4px rgba(171,211,84,0.18); animation: beat 2.2s var(--ease) infinite; }
@keyframes beat { 0%,100%{ box-shadow: 0 0 0 4px rgba(171,211,84,0.18);} 50%{ box-shadow: 0 0 0 8px rgba(171,211,84,0.04);} }
.ai-hero h1 { font-size: clamp(42px, 5.6vw, 74px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 26px; }
.ai-hero h1 .u { position: relative; color: var(--taxi); white-space: nowrap; }
.ai-hero h1 .u svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.42em; overflow: visible; }
.ai-hero h1 .u svg path { fill: none; stroke: var(--taxi); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 460; stroke-dashoffset: 460; }
.ai-hero h1 .u.draw svg path { animation: draw 1s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ai-hero .hero-sub { font-size: 19px; color: rgba(255,255,255,0.68); max-width: 540px; margin-bottom: 34px; }
.ai-hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.5); align-items: center; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { width: 14px; height: 14px; color: var(--purple-30); }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.25); }

/* builder mockup */
.builder {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #11183a 0%, #0a1130 100%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(123,79,255,0.12);
}
.builder-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.builder-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.builder-bar .dot:nth-child(1){background:#ff5f57;} .builder-bar .dot:nth-child(2){background:#febc2e;} .builder-bar .dot:nth-child(3){background:#28c840;}
.builder-bar .ttl { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); }
.builder-body { display: grid; grid-template-columns: 0.82fr 1.1fr; min-height: 380px; }
.builder-side { padding: 18px; border-right: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 14px; }
.b-field label { display:block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 6px; font-weight: 600; }
.b-field .inp {
  font-size: 13px; color: #fff; padding: 9px 11px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.b-field .inp.sel { display: flex; align-items: center; justify-content: space-between; }
.b-field .inp.sel .mono { color: var(--purple-30); font-size: 12px; }
.b-field .inp.sel i { width: 14px; height: 14px; color: rgba(255,255,255,0.4); }
.b-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.b-cap { font-size: 10.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px; background: rgba(123,79,255,0.14); border: 1px solid rgba(123,79,255,0.32); color: var(--purple-30); display: inline-flex; gap: 5px; align-items: center; }
.b-cap i { width: 12px; height: 12px; }
.builder-chat { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,0.18); }
.bc-step { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--chutney); display: inline-flex; gap: 6px; align-items: center; }
.bc-msg { max-width: 84%; font-size: 12.5px; line-height: 1.45; padding: 9px 12px; border-radius: 12px; }
.bc-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-bottom-left-radius: 4px; }
.bc-msg.user { align-self: flex-end; background: var(--purple); border-bottom-right-radius: 4px; }
.builder .overlay {
  position: absolute; background: #fff; color: var(--ink);
  padding: 9px 13px; border-radius: 11px; box-shadow: 0 14px 36px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  animation: floaty 5s ease-in-out infinite;
}
.builder .overlay .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.builder .overlay .ic i { width: 14px; height: 14px; }
.builder .ov-1 { top: -16px; right: 22px; }
.builder .ov-1 .ic { background: #D4F5EC; color: #0c8061; }
.builder .ov-2 { bottom: 24px; left: -22px; animation-delay: 1.4s; }
.builder .ov-2 .ic { background: rgba(123,79,255,0.16); color: var(--purple); }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }

/* ============ WHAT IS AN AGENT (orbit) ============ */
.orbit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.orbit {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto;
}
.orbit .ring { position: absolute; inset: 12%; border: 1px dashed var(--border); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit .ring.r2 { inset: 26%; animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, var(--neelam) 0%, var(--neelam-80) 100%);
  display: grid; place-items: center; text-align: center; color: #fff;
  box-shadow: 0 20px 50px rgba(27,45,147,0.45), 0 0 0 8px rgba(27,45,147,0.08);
  z-index: 3;
}
.orbit .core .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--taxi); }
.orbit .core .nm { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.orbit .node {
  position: absolute; width: 88px; aspect-ratio: 1; border-radius: 18px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-2);
  display: grid; place-items: center; text-align: center; cursor: pointer; z-index: 4;
  transition: all 200ms var(--ease);
}
.orbit .node .ic { width: 30px; height: 30px; color: var(--neelam); }
.orbit .node .t { font-size: 10.5px; font-weight: 700; margin-top: 3px; letter-spacing: .02em; }
.orbit .node:hover, .orbit .node.active { border-color: var(--purple); transform: scale(1.08); box-shadow: 0 16px 40px var(--purple-glow); }
.orbit .node.active .ic { color: var(--purple); }
.orbit .node.n-top { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit .node.n-top:hover, .orbit .node.n-top.active { transform: translateX(-50%) scale(1.08); }
.orbit .node.n-right { right: -6px; top: 50%; transform: translateY(-50%); }
.orbit .node.n-right:hover, .orbit .node.n-right.active { transform: translateY(-50%) scale(1.08); }
.orbit .node.n-bottom { bottom: -6px; left: 50%; transform: translateX(-50%); }
.orbit .node.n-bottom:hover, .orbit .node.n-bottom.active { transform: translateX(-50%) scale(1.08); }
.orbit .node.n-left { left: -6px; top: 50%; transform: translateY(-50%); }
.orbit .node.n-left:hover, .orbit .node.n-left.active { transform: translateY(-50%) scale(1.08); }

.orbit-info { min-height: 220px; }
.orbit-info .tag { font-family: var(--mono); font-size: 12px; color: var(--purple); letter-spacing: .08em; font-weight: 600; }
.orbit-info h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 14px; }
.orbit-info p { font-size: 16px; color: var(--text-body); line-height: 1.66; }
.agent-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.agent-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-body); }
.agent-list li i { width: 18px; height: 18px; color: var(--chutney); flex-shrink: 0; margin-top: 3px; }
.agent-list li b { color: var(--ink); }

/* ============ PILLARS ============ */
.pillars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.pillar {
  border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass);
  overflow: hidden; transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.pillar.open { border-color: rgba(123,79,255,0.4); background: rgba(123,79,255,0.05); }
.pillar-head { display: flex; align-items: center; gap: 20px; padding: 26px 30px; cursor: pointer; }
.pillar-head .pnum { font-family: var(--mono); font-size: 13px; color: var(--purple-30); flex-shrink: 0; width: 30px; }
.pillar-head .pic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); display: grid; place-items: center; flex-shrink: 0; }
.pillar-head .pic i { width: 22px; height: 22px; color: var(--taxi); }
.pillar.open .pic { background: rgba(123,79,255,0.18); border-color: rgba(123,79,255,0.4); }
.pillar.open .pic i { color: var(--purple-30); }
.pillar-head .ptitle { flex: 1; }
.pillar-head .ptitle .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.pillar-head .ptitle h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.pillar-head .chev { width: 22px; height: 22px; color: rgba(255,255,255,0.5); transition: transform 240ms var(--ease); flex-shrink: 0; }
.pillar.open .chev { transform: rotate(180deg); color: var(--purple-30); }
.pillar-body { max-height: 0; overflow: hidden; transition: max-height 360ms var(--ease); }
.pillar.open .pillar-body { max-height: 640px; }
.pillar-inner { padding: 0 30px 30px 96px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.pillar-inner p { color: rgba(255,255,255,0.72); font-size: 15.5px; margin-bottom: 16px; }
.pillar-inner .note { font-family: var(--mono); font-size: 12.5px; color: var(--chutney); }
.pillar-inner .note b { color: #fff; }

/* model curve */
.model-curve { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: 14px; padding: 22px; }
.mc-track { position: relative; height: 110px; margin: 8px 4px 14px; }
.mc-track svg { width: 100%; height: 100%; overflow: visible; }
.mc-track svg path { fill: none; stroke: rgba(123,79,255,0.4); stroke-width: 2; stroke-dasharray: 4 5; }
.mc-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--purple); border: 3px solid #11183a; transform: translate(-50%,-50%); cursor: pointer; transition: transform 160ms var(--ease); box-shadow: 0 0 0 6px rgba(123,79,255,0.12); }
.mc-dot:hover, .mc-dot.active { transform: translate(-50%,-50%) scale(1.3); background: var(--taxi); box-shadow: 0 0 0 8px rgba(255,196,1,0.16); }
.mc-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4); }
.mc-read { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-border); }
.mc-read .mname { font-family: var(--mono); font-size: 14px; color: var(--purple-30); font-weight: 600; }
.mc-read .muse { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* capability tiles */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cap-tile { background: rgba(0,0,0,0.22); border: 1px solid var(--glass-border); border-radius: 14px; padding: 18px; transition: all 200ms var(--ease); display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: center; }
.cap-tile:hover { transform: translateY(-3px); border-color: rgba(123,79,255,0.4); box-shadow: 0 12px 30px var(--purple-glow); }
.cap-tile .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(123,79,255,0.14); grid-row: 1; grid-column: 1; }
.cap-tile .ci i { width: 19px; height: 19px; color: var(--purple-30); }
.cap-tile h5 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0; grid-row: 1; grid-column: 2; align-self: center; }
.cap-tile p { font-size: 12.5px; color: rgba(255,255,255,0.58); line-height: 1.5; margin: 0; grid-column: 1 / -1; }

/* knowledge sources */
.know-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.know-col h6 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--taxi); margin-bottom: 12px; }
.know-col ul { list-style: none; display: grid; gap: 8px; }
.know-col li { font-size: 13.5px; color: rgba(255,255,255,0.72); display: flex; gap: 8px; align-items: center; }
.know-col li i { width: 14px; height: 14px; color: var(--purple-30); flex-shrink: 0; }

/* workflow — deterministic pipeline */
.wf-flow { display: flex; flex-direction: column; }
.wf-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-30); display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.wf-cap-led { width: 7px; height: 7px; border-radius: 50%; background: var(--neon-teal); box-shadow: 0 0 0 4px rgba(50,202,212,0.15); }

.wf-list { position: relative; }
.wf-rail { position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.wf-rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px; background: linear-gradient(180deg, var(--purple), var(--neon-teal)); box-shadow: 0 0 10px var(--purple-glow); transition: height .42s var(--ease); }

.wf-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.wf-step .dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); transition: background .42s var(--ease), border-color .42s var(--ease), box-shadow .42s var(--ease); }
.wf-step .dot .n { font-family: var(--mono); font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.5); transition: opacity .3s var(--ease); }
.wf-step .dot i, .wf-step .dot svg { position: absolute; width: 19px; height: 19px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.wf-step.on .dot { background: linear-gradient(140deg, var(--purple) 0%, rgba(50,202,212,0.92) 100%); border-color: transparent; box-shadow: 0 0 0 5px rgba(123,79,255,0.14), 0 10px 24px var(--purple-glow); }
.wf-step.on .dot .n { opacity: 0; }
.wf-step.on .dot i, .wf-step.on .dot svg { opacity: 1; transform: scale(1); }
.wf-step .wt { flex: 1; font-size: 15px; color: rgba(255,255,255,0.68); background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 12px; padding: 13px 16px; transition: color .42s var(--ease), background .42s var(--ease), border-color .42s var(--ease); }
.wf-step.on .wt { color: #fff; font-weight: 600; background: rgba(123,79,255,0.1); border-color: rgba(123,79,255,0.32); }

.wf-foot { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--glass-border); font-size: 13px; color: rgba(255,255,255,0.55); }
.wf-foot i { width: 16px; height: 16px; color: var(--neon-teal); flex-shrink: 0; }
.wf-callout { margin-top: 22px; background: var(--taxi); color: var(--ink); border-radius: 14px; padding: 18px 22px; display: flex; gap: 12px; align-items: flex-start; }
.wf-callout i { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.wf-callout p { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); margin: 0; }

/* ===== How agents are built — guided assembly journey ===== */
.build-head { max-width: 760px; margin-bottom: 52px; }
.build-lead { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 640px; }

.build-wrap { display: grid; grid-template-columns: 232px 1fr; gap: 54px; align-items: start; }

/* sticky guided rail */
.build-rail { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 6px; padding-left: 24px; }
.rail-line { position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--purple), var(--neon-teal)); border-radius: 2px; box-shadow: 0 0 12px var(--purple-glow); transition: height 140ms linear; }
.rail-step { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: none; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; transition: background 200ms var(--ease); }
.rail-step::before { content: ''; position: absolute; left: -24px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: #131a36; border: 2px solid rgba(255,255,255,0.22); transition: all 240ms var(--ease); }
.rail-step .rs-num { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.38); }
.rail-step .rs-tx { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); }
.rail-step .rs-tx i { width: 15px; height: 15px; color: rgba(255,255,255,0.4); transition: color 200ms var(--ease); }
.rail-step:hover { background: rgba(255,255,255,0.04); }
.rail-step:hover .rs-tx, .rail-step:hover .rs-tx i { color: #fff; }
.rail-step.active { background: rgba(123,79,255,0.12); }
.rail-step.active::before { background: var(--taxi); border-color: var(--taxi); box-shadow: 0 0 0 5px rgba(255,196,1,0.16); }
.rail-step.active .rs-num { color: var(--purple-30); }
.rail-step.active .rs-tx { color: #fff; }
.rail-step.active .rs-tx i { color: var(--taxi); }

/* always-open step cards */
/* tab selector + single-panel viewer */
.build-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.btab { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px 14px; border-radius: 100px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.62); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.btab .bt-num { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.4); transition: color 200ms var(--ease); }
.btab i { width: 16px; height: 16px; }
.btab:hover { color: #fff; border-color: rgba(123,79,255,0.4); transform: translateY(-1px); }
.btab.active { background: linear-gradient(120deg, var(--purple) 0%, rgba(123,79,255,0.78) 100%); border-color: transparent; color: #fff; box-shadow: 0 12px 28px var(--purple-glow); }
.btab.active .bt-num { color: rgba(255,255,255,0.7); }
.btab.active i { color: var(--taxi); }
/* stories-style auto-progress bar on the active tab */
.bt-bar { position: absolute; left: 18px; right: 18px; bottom: 7px; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.92); transform: scaleX(0); transform-origin: left center; opacity: 0; }
.btab.active .bt-bar { opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .bt-bar { display: none; } }

/* fixed-height viewer: all panels share one grid cell, sized to the
   tallest layer, and cross-fade — so height never jumps between tabs */
.build-panel { display: grid; align-items: stretch; }
.bstep { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 22px; padding: 34px 36px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bstep.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
@media (prefers-reduced-motion: reduce) { .bstep { transition: opacity .2s linear; transform: none; } }
.bstep:hover { border-color: rgba(123,79,255,0.3); }
/* unified card structure: full-width header on top, body (copy + visual) below */
.bstep-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.bstep-body.split { display: grid; grid-template-columns: 1.04fr 1fr; gap: 44px; align-items: start; }
.bstep-copy { min-width: 0; }
.bstep .bnum { font-family: var(--mono); font-size: 30px; font-weight: 700; color: rgba(123,79,255,0.5); letter-spacing: -0.03em; flex-shrink: 0; }
.bstep .bic { width: 50px; height: 50px; border-radius: 14px; background: rgba(123,79,255,0.16); border: 1px solid rgba(123,79,255,0.32); display: grid; place-items: center; flex-shrink: 0; }
.bstep .bic i { width: 24px; height: 24px; color: var(--purple-30); }
.btitle .bk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taxi); }
.btitle h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; margin-top: 4px; color: #fff; }
.blead { font-size: 16px; line-height: 1.68; color: rgba(255,255,255,0.74); margin: 0 0 16px; max-width: 620px; }
.bstep-body:not(.split) .blead { max-width: 760px; }
.bnote { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.78); background: rgba(255,196,1,0.07); border: 1px solid rgba(255,196,1,0.22); border-radius: 12px; padding: 11px 15px; }
.bnote i { width: 16px; height: 16px; color: var(--taxi); flex-shrink: 0; margin-top: 1px; }
.bnote b { color: #fff; }
.bstep-body:not(.split) .bvisual { margin-top: 24px; }

@media (max-width: 980px) {
  .build-wrap { grid-template-columns: 1fr; gap: 26px; }
  .build-rail { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-left: 0; scrollbar-width: none; }
  .build-rail::-webkit-scrollbar { display: none; }
  .rail-line { display: none; }
  .rail-step::before { display: none; }
  .rail-step { flex-shrink: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); }
  .bstep-body.split { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .bstep { padding: 26px 22px; }
  .bstep .bnum { font-size: 24px; }
  .bstep-head { gap: 12px; }
}

/* ============ AGENT TYPES ============ */
.types-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.type-card { background: var(--ink); border-radius: 22px; padding: 30px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.type-card::before { content:''; position: absolute; inset: 0; opacity: .5; }
.type-card.t1::before { background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(50,202,212,0.25), transparent 60%); }
.type-card.t2::before { background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(123,79,255,0.3), transparent 60%); }
.type-card.t3::before { background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,196,1,0.22), transparent 60%); }
.type-card:hover { transform: translateY(-5px); box-shadow: 0 28px 60px rgba(0,0,0,0.4); }
.type-card > * { position: relative; z-index: 1; }
.type-ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); display: grid; place-items: center; margin-bottom: 20px; }
.type-ic i { width: 26px; height: 26px; color: var(--taxi); }
.type-card .kind { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-30); }
.type-card h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 16px; line-height: 1.2; }
.type-meta { display: grid; gap: 12px; margin-bottom: 18px; }
.type-meta .row .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 3px; }
.type-meta .row .v { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.5; }
.type-eg { margin-top: auto; background: rgba(0,0,0,0.28); border: 1px solid var(--glass-border); border-radius: 12px; padding: 14px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.78); }
.type-eg .el { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--chutney); display: block; margin-bottom: 6px; }
.type-eg .vern { color: var(--taxi); }

/* comparison table */
/* ===== capability comparison table — dark glass, matches agent type cards ===== */
.cmp { --rowline: rgba(255,255,255,0.07); margin-top: 40px; border: 1px solid var(--glass-border);
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(ellipse 58% 80% at 8% 0%, rgba(50,202,212,0.12), transparent 55%),
    radial-gradient(ellipse 52% 82% at 50% 0%, rgba(123,79,255,0.14), transparent 55%),
    radial-gradient(ellipse 58% 80% at 92% 0%, rgba(255,149,24,0.11), transparent 55%),
    var(--ink);
  box-shadow: 0 28px 64px rgba(6,14,43,0.36), inset 0 1px 0 rgba(255,255,255,0.06); }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 9px 16px; border-bottom: 1px solid var(--rowline); }

/* header */
.cmp thead th { background: rgba(0,0,0,0.22); vertical-align: middle; text-align: center; border-bottom: 1px solid var(--glass-border); }
.cmp thead th[style] { border-bottom: 2px solid color-mix(in srgb, var(--ac) 55%, transparent); }
.cmp .cmp-corner { text-align: left; width: 32%; padding: 18px 22px; font-size: 14px; font-weight: 800; color: #fff; }
.cmp .ck { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-30); font-weight: 600; margin-bottom: 4px; }
.cmp-ag { display: inline-flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 0; text-align: left; }
.cmp-tt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15;
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.cmp-tt em { font-style: normal; font-weight: 600; font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 2px; letter-spacing: 0; }
.cmp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: color-mix(in srgb, var(--ac) 20%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ac) 30%, transparent), inset 0 1px 0 rgba(255,255,255,0.08); }
.cmp-ic i, .cmp-ic svg { width: 19px; height: 19px; color: #fff; stroke: currentColor; }

/* body */
.cmp tbody th { text-align: left; font-weight: 600; color: rgba(255,255,255,0.86); font-size: 14px; vertical-align: middle; white-space: nowrap; }
.cmp tbody th i { width: 15px; height: 15px; color: var(--purple-30); display: inline-block; vertical-align: -2.5px; margin-right: 8px; }
.cmp td { text-align: center; }
.cmp tbody td { border-left: 1px solid var(--rowline); }
.cmp tbody th { border-bottom: 1px solid var(--rowline); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr { transition: background 160ms var(--ease); }
.cmp tbody tr:hover { background: rgba(255,255,255,0.045); }
.cmp tbody tr:hover .chip { transform: scale(1.08); }

/* status chips */
.chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: transform 160ms var(--ease); }
.chip i { width: 15px; height: 15px; }
.chip.yes { background: var(--chutney); box-shadow: 0 3px 14px rgba(171,211,84,0.45); }
.chip.yes i { color: var(--ink); stroke-width: 3.2; }
.chip.no { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); }
.chip.no i { color: rgba(255,255,255,0.32); }
.chip.auto { width: auto; height: auto; border-radius: 100px; padding: 5px 11px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(123,79,255,0.16); color: var(--purple-30); border: 1px solid rgba(123,79,255,0.4); }

/* complexity gauge */
.lvl { display: inline-flex; align-items: center; gap: 9px; }
.lvl .bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.lvl .bars i { width: 4.5px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.lvl .bars i:nth-child(1) { height: 7px; }
.lvl .bars i:nth-child(2) { height: 11px; }
.lvl .bars i:nth-child(3) { height: 16px; }
.lvl[data-l="1"] .bars i:nth-child(-n+1),
.lvl[data-l="2"] .bars i:nth-child(-n+2),
.lvl[data-l="3"] .bars i:nth-child(-n+3) { background: var(--ac); box-shadow: 0 0 8px color-mix(in srgb, var(--ac) 60%, transparent); }
.lvl b { font-family: var(--mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.82); letter-spacing: .03em; }

/* ============ HOOKS ============ */
.hooks-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; align-items: center; }
.hook-left { display: flex; flex-direction: column; gap: 30px; }
.hook-head { max-width: 580px; }
.hook-head .h-sec { font-size: clamp(30px, 3.4vw, 44px); }
.hook-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hook-item {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px; text-align: left;
  border-radius: 14px; cursor: pointer; transition: all 200ms var(--ease);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hook-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(123,79,255,0.5);
  transform: translateY(-2px);
}
.hook-item.active {
  background: linear-gradient(135deg, rgba(123,79,255,0.24), rgba(50,202,212,0.10));
  border-color: rgba(123,79,255,0.65);
  box-shadow: 0 12px 34px rgba(123,79,255,0.28);
}
.hook-item .hic {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center; transition: all 200ms var(--ease);
  color: rgba(255,255,255,0.92);
}
.hook-item .hic i, .hook-item .hic svg { width: 19px; height: 19px; color: inherit; stroke: currentColor; stroke-width: 2; }
.hook-item:hover .hic { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.24); color: #fff; }
.hook-item.active .hic { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 20px rgba(123,79,255,0.6); color: #fff; }
.hook-item .ht { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.25; }
.hook-item .hd { font-size: 12px; color: rgba(255,255,255,0.66); line-height: 1.42; margin-top: 3px; }
.hook-item.active .hd { color: rgba(255,255,255,0.82); }
.hook-phone { width: 300px; height: 600px; margin: 0 auto; background: #0a0a0a; border-radius: 42px; border: 8px solid #1a1a1a; box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 60px rgba(123,79,255,0.18); overflow: hidden; position: relative; }
.hook-phone::before { content:''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #000; border-radius: 100px; z-index: 5; }
.hook-screen { position: absolute; inset: 0; background: var(--surface); display: flex; flex-direction: column; }
.hs-top { padding: 44px 16px 12px; background: var(--neelam); color: #fff; }
.hs-top .who { display: flex; align-items: center; gap: 9px; }
.hs-top .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--kaveri),var(--neelam-30)); display: grid; place-items: center; }
.hs-top .av i { width: 16px; height: 16px; color: #fff; }
.hs-top .nm { font-size: 13px; font-weight: 700; } .hs-top .st { font-size: 10px; color: rgba(255,255,255,0.6); }
.hs-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.hs-bubble { align-self: flex-start; max-width: 86%; background: #fff; border: 1px solid var(--border); border-radius: 12px; border-bottom-left-radius: 4px; padding: 9px 12px; font-size: 12.5px; color: var(--ink); line-height: 1.45; }
.hook-ui { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-2); }
.hook-ui .hu-lbl { font-size: 11px; font-weight: 700; color: var(--text-light); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.hu-mcq { display: grid; gap: 8px; }
.hu-opt { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; color: var(--ink); }
.hu-opt .box { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--border); flex-shrink: 0; }
.hu-opt.sel { border-color: var(--neelam); background: var(--neelam-05); } .hu-opt.sel .box { background: var(--neelam); border-color: var(--neelam); }
.hu-cam { aspect-ratio: 1.3; background: linear-gradient(160deg,#1a1a3e,#060e2b); border-radius: 10px; display: grid; place-items: center; position: relative; }
.hu-cam .frame { width: 70px; height: 70px; border: 3px dashed var(--taxi); border-radius: 50%; display: grid; place-items: center; color: var(--taxi); }
.hu-cam .frame i { width: 28px; height: 28px; }
.hu-cam .shutter { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid rgba(255,255,255,0.4); }
.hu-map { aspect-ratio: 1.5; border-radius: 10px; background:
  linear-gradient(rgba(86,138,247,0.12),rgba(86,138,247,0.12)),
  repeating-linear-gradient(0deg,#e9eefb 0 18px,#fff 18px 19px),
  repeating-linear-gradient(90deg,#e9eefb 0 18px,#fff 18px 19px); position: relative; border: 1px solid var(--border); }
.hu-map .pin { position: absolute; top: 38%; left: 54%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--mausambi); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(255,149,24,0.5); }
.hu-up { border: 2px dashed var(--neelam-30); border-radius: 10px; padding: 18px; text-align: center; color: var(--neelam); }
.hu-up i { width: 26px; height: 26px; margin: 0 auto 6px; } .hu-up .t { font-size: 12px; font-weight: 700; } .hu-up .s { font-size: 10.5px; color: var(--text-light); }
.hu-rate { display: flex; gap: 6px; justify-content: center; }
.hu-rate i { width: 26px; height: 26px; color: var(--taxi); }
.hu-rate i.off { color: var(--border); }
.hu-loc { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; color: var(--ink); }
.hu-loc .lic { width: 30px; height: 30px; border-radius: 8px; background: var(--neelam-05); display: grid; place-items: center; color: var(--neelam); flex-shrink: 0; }
.hu-num { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; }
.hu-num .v { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--neelam); }
.hu-num .pm { display: flex; gap: 6px; }
.hu-num .pm span { width: 28px; height: 28px; border-radius: 7px; background: var(--neelam-05); color: var(--neelam); display: grid; place-items: center; font-weight: 700; }
.hu-sched { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.hu-sched span { padding: 8px 0; text-align: center; font-size: 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-body); }
.hu-sched span.sel { background: var(--neelam); color: #fff; border-color: var(--neelam); }
.hook-callout { margin-top: 30px; display: inline-flex; gap: 10px; align-items: center; background: rgba(255,196,1,0.1); border: 1px solid rgba(255,196,1,0.35); border-radius: 12px; padding: 14px 20px; font-size: 14px; color: rgba(255,255,255,0.85); }
.hook-callout b { color: var(--taxi); } .hook-callout .spk { color: var(--taxi); }

/* ============ LIVE DEMO ============ */
.demo-sec { background: linear-gradient(180deg, #0D1F46 0%, #060E2B 100%); }
.live-banner { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,196,1,0.12); border: 1px solid rgba(255,196,1,0.4); color: var(--taxi); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 8px 16px; border-radius: 100px; margin-bottom: 22px; }
.live-banner .lv { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0 rgba(255,95,87,.6); animation: lv 1.6s ease-in-out infinite; }
@keyframes lv { 0%,100%{box-shadow:0 0 0 0 rgba(255,95,87,.6);} 50%{box-shadow:0 0 0 7px rgba(255,95,87,0);} }
.demo-shell { max-width: 760px; margin: 0 auto; background: #0a1130; border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(123,79,255,0.12); }
.demo-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.demo-head .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--neelam-30)); display: grid; place-items: center; }
.demo-head .av i { width: 20px; height: 20px; color: #fff; }
.demo-head .nm { font-size: 15px; font-weight: 700; color: #fff; }
.demo-head .st { font-size: 12px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 6px; }
.demo-head .st .lv { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.demo-head .built { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--purple-30); border: 1px solid rgba(123,79,255,0.3); padding: 4px 9px; border-radius: 7px; }
.demo-body { height: 400px; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: rgba(0,0,0,0.18); }
.dm { max-width: 80%; padding: 11px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.dm.bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); color: #fff; border-bottom-left-radius: 4px; }
.dm.user { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 4px; }
.dm.bot strong { color: var(--taxi); }
.dm-typing { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: 14px; border-bottom-left-radius: 4px; padding: 14px 16px; display: inline-flex; gap: 5px; }
.dm-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: typing 1.2s ease-in-out infinite; }
.dm-typing span:nth-child(2){animation-delay:.15s;} .dm-typing span:nth-child(3){animation-delay:.3s;}
@keyframes typing { 0%,60%,100%{opacity:.3;transform:translateY(0);} 30%{opacity:1;transform:translateY(-3px);} }
.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 20px 0; }
.demo-chip { font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--purple-30); cursor: pointer; transition: all 150ms var(--ease); }
.demo-chip:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.demo-input { display: flex; gap: 9px; padding: 16px 20px; }
.demo-input input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 11px; padding: 12px 15px; color: #fff; font-size: 14px; font-family: inherit; outline: none; }
.demo-input input:focus { border-color: var(--purple); }
.demo-input button { width: 44px; height: 44px; border-radius: 11px; background: var(--purple); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.demo-input button:disabled { opacity: .5; }
.demo-input button i { width: 18px; height: 18px; }

/* ============ USE CASES ============ */
.uc6-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.uc6 { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; transition: all 220ms var(--ease); display: flex; flex-direction: column; }
.uc6:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--neelam-30); }
.uc6 .itag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--neelam); background: var(--neelam-05); padding: 6px 11px; border-radius: 8px; align-self: flex-start; margin-bottom: 16px; }
.uc6 .itag i { width: 13px; height: 13px; }
.uc6 .prob { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 12px; }
.uc6 .sol { font-size: 14px; color: var(--text-body); line-height: 1.6; margin-bottom: 18px; }
.uc6 .sol b { color: var(--purple); font-weight: 700; }
.uc6 .stat { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.uc6 .stat b { color: var(--ink); font-weight: 700; }
.uc6 .stat i { width: 15px; height: 15px; color: var(--chutney); }

/* ============ PRICING ============ */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.price-head { margin-bottom: 28px; }
.price-head .h-sec { font-size: clamp(30px, 3.4vw, 46px); }
.price-copy p { font-size: 16px; color: var(--text-body); line-height: 1.7; margin-bottom: 18px; }
.price-copy .ul { list-style: none; display: grid; gap: 10px; margin: 0 0 24px; }
.price-copy .ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-body); align-items: flex-start; }
.price-copy .ul li i { width: 17px; height: 17px; color: var(--purple); margin-top: 3px; flex-shrink: 0; }
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 8px; }
.tier { border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px; background: #fff; }
.tier.mid { border-color: var(--purple); box-shadow: 0 12px 30px var(--purple-glow); position: relative; }
.tier.mid::after { content: 'POPULAR'; position: absolute; top: -10px; left: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; background: var(--purple); color: #fff; padding: 3px 8px; border-radius: 6px; }
.tier .tn { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--neelam); font-weight: 600; }
.tier .td { font-size: 12.5px; color: var(--text-light); margin: 4px 0 14px; }
.tier ul { list-style: none; display: grid; gap: 8px; }
.tier li { font-size: 12.5px; color: var(--text-body); display: flex; gap: 7px; align-items: center; }
.tier li i { width: 13px; height: 13px; color: var(--chutney); flex-shrink: 0; }

.calc { background: var(--ink); border-radius: 20px; padding: 32px; color: #fff; box-shadow: var(--shadow-3); }
.calc h4 { font-size: 16px; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 9px; }
.calc h4 i { width: 18px; height: 18px; color: var(--purple-30); }
.calc-field { margin-bottom: 20px; }
.calc-field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.calc-field label .v { font-family: var(--mono); color: var(--taxi); }
.calc-field input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 100px; background: rgba(255,255,255,0.12); outline: none; cursor: pointer; }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--purple); border: 4px solid var(--ink); box-shadow: 0 4px 12px var(--purple-glow); cursor: pointer; }
.calc-field input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--purple); border: 4px solid var(--ink); cursor: pointer; }
.calc-row { display: flex; gap: 12px; }
.calc-row .calc-field { flex: 1; }
.calc-select { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: 10px; padding: 11px 13px; color: #fff; font-size: 13.5px; font-family: inherit; outline: none; }
.calc-select option { background: var(--ink); }
.calc-toggle { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 10px; padding: 11px 14px; cursor: pointer; }
.calc-toggle .tg { width: 42px; height: 24px; border-radius: 100px; background: rgba(255,255,255,0.15); position: relative; transition: background 200ms var(--ease); flex-shrink: 0; }
.calc-toggle .tg::after { content:''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease); }
.calc-toggle.on .tg { background: var(--purple); } .calc-toggle.on .tg::after { transform: translateX(18px); }
.calc-toggle span { font-size: 13.5px; font-weight: 600; }
.calc-out { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--glass-border); display: grid; gap: 14px; }
.calc-out .co-row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-out .co-row .l { font-size: 13.5px; color: rgba(255,255,255,0.6); }
.calc-out .co-row .r { font-family: var(--mono); font-size: 16px; color: #fff; font-weight: 600; }
.calc-out .co-row.big .r { font-size: 28px; color: var(--taxi); }
.save-box { margin-top: 18px; background: var(--taxi); color: var(--ink); border-radius: 14px; padding: 16px 18px; }
.save-box .sl { font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; margin-bottom: 5px; }
.save-box .sl .mono { font-weight: 700; }
.save-box .strike { text-decoration: line-through; opacity: .5; }
.save-box .big { font-size: 15px; font-weight: 800; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(6,14,43,0.15); }

/* ============ FINAL CTA ============ */
.ai-cta { background: linear-gradient(140deg, var(--neelam) 0%, #2a1a6e 55%, #1a0f4d 100%); padding: 120px 0; overflow: hidden; }
.ai-cta::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 55% at 78% 25%, rgba(123,79,255,0.5), transparent 60%), radial-gradient(ellipse 45% 45% at 12% 90%, rgba(255,196,1,0.16), transparent 60%); }
.ai-cta-inner { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.ai-cta h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: #fff; margin-bottom: 22px; }
.ai-cta h2 em { color: var(--taxi); font-style: italic; }
.ai-cta p { font-size: 19px; color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto 34px; }
.ai-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.ai-cta-trust { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.7); }
.ai-cta-trust > div { display: inline-flex; align-items: center; gap: 8px; }
.ai-cta-trust i { width: 16px; height: 16px; color: var(--taxi); }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 64px 0 36px; border-top: 1px solid rgba(255,255,255,0.07); }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-top .nav-logo img { height: 34px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.foot-badges { display: flex; gap: 10px; }
.foot-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.foot-badge i { width: 12px; height: 12px; color: var(--chutney); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .ai-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .orbit-wrap, .hooks-grid, .price-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid, .know-cols, .types-grid, .uc6-grid, .tiers { grid-template-columns: 1fr 1fr; }
  .pillar-inner { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .sec { padding: 72px 0; }
  .ai-hero { padding: 120px 0 70px; }
  .cap-grid, .know-cols, .types-grid, .uc6-grid, .tiers { grid-template-columns: 1fr; }
  .builder-body { grid-template-columns: 1fr; }
  .hook-list { grid-template-columns: 1fr; }
  .pillar-head { padding: 20px; gap: 14px; }
  .pillar-head .pnum { display: none; }
  .hook-phone { width: 260px; height: 520px; }
  .calc-row { flex-direction: column; }
}

/* ============================================================
   ▓▓ FUTURISTIC LAYER — "Neural Operating System"
   Brand palette preserved. Adds depth, motion & AI signalling.
   ============================================================ */
:root {
  --grid-line: rgba(86, 138, 247, 0.12);
  --neon: #7B4FFF;
  --neon-teal: #32CAD4;
  --neon-yellow: #FFC401;
}

/* ---- global film grain + scanlines (very subtle, readable) ---- */
/* animated film grain — painted by JS onto this canvas (see ai-labs.js).
   Black+white speckle on normal blend so it reads on dark AND light sections. */
.fx-grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.1; transition: opacity .35s ease;
}
/* grain is part of the TV stack — the master switch (and reduced-motion) clears it too.
   !important overrides the inline opacity the grain painter sets each frame. */
body:not(.tv) .fx-grain { opacity: 0 !important; }

.fx-scanlines {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.05) 2px 3px);
  transition: opacity .35s ease;
}
body.tv .fx-scanlines { opacity: calc(0.5 * var(--fx-scan, 1)); }

/* ===== TV-screen stack ===== */
:root { --fx-vig: 0.9; --fx-scan: 1; }
.fx-vignette, .fx-glass, .fx-roll, .fx-flicker {
  position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
}
body.tv .fx-vignette, body.tv .fx-glass { opacity: 1; }
.fx-vignette {
  z-index: 9996;
  background:
    radial-gradient(ellipse 120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,calc(0.72*var(--fx-vig))) 100%),
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(0,0,0,calc(0.16*var(--fx-vig))), transparent 42%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0,0,0,calc(0.16*var(--fx-vig))), transparent 42%);
}
.fx-glass { z-index: 9999; background: radial-gradient(ellipse 60% 45% at 50% 16%, rgba(255,255,255,0.05), transparent 55%); }
.fx-roll { z-index: 9999; height: 38%; top: -38%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.045) 50%, transparent);
  animation: fxRoll 7s linear infinite; }
body.tv .fx-roll { opacity: 1; }
@keyframes fxRoll { 0%{transform:translateY(0)} 100%{transform:translateY(360vh)} }
/* flicker = faint animated dark overlay (kept off the filtered wrapper so it can't fight the aberration filter) */
.fx-flicker { z-index: 9999; background: #000; }
body.tv .fx-flicker { animation: fxFlicker 5s steps(60) infinite; }
@keyframes fxFlicker {
  0%,100%{opacity:0} 4%{opacity:.05} 8%{opacity:0} 12%{opacity:.03} 13%{opacity:0}
  50%{opacity:.025} 51%{opacity:0} 70%{opacity:.04} 71%{opacity:0}
}
/* chromatic aberration on the content (nav stays outside, so its fixed positioning is safe) */
body.tv .tv-content { filter: url(#aberration); }

@media (prefers-reduced-motion: reduce) {
  body.tv .fx-roll, body.tv .fx-flicker { animation: none; opacity: 0; }
}

/* ---- boot sequence overlay ---- */
.boot {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.boot-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(123,79,255,0.18); border-top-color: var(--neon);
  border-right-color: var(--neon-teal); animation: bootSpin .8s linear infinite;
  box-shadow: 0 0 40px rgba(123,79,255,0.5);
}
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-log {
  font-family: var(--mono); font-size: 12px; color: var(--neon-teal);
  letter-spacing: .05em; min-height: 18px; text-align: center;
}
.boot-log b { color: var(--taxi); }

/* ---- perspective neural grid floor ---- */
.hero-grid-floor {
  position: absolute; left: 50%; bottom: 0; width: 200%; height: 70%;
  transform: translateX(-50%) perspective(560px) rotateX(74deg);
  transform-origin: bottom center; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
          mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  animation: gridFlow 7s linear infinite;
}
@keyframes gridFlow { to { background-position: 0 52px, 52px 0; } }
.demo-floor { opacity: .7; height: 60%; }
.cta-floor { opacity: .55; }

/* ---- drifting aurora field ---- */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora .a1 { width: 46vw; height: 46vw; left: 56%; top: -12%;
  background: radial-gradient(circle, rgba(123,79,255,0.5), transparent 68%); animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { width: 38vw; height: 38vw; left: -8%; top: 40%;
  background: radial-gradient(circle, rgba(50,202,212,0.32), transparent 68%); animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { width: 30vw; height: 30vw; left: 30%; top: 60%;
  background: radial-gradient(circle, rgba(33,66,185,0.4), transparent 68%); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-6%,8%) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8%,-6%) scale(1.18)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5%,-8%) scale(.9)} }
.demo-aurora .a1 { opacity:.4; } .demo-aurora .a2 { opacity:.32; }

/* ---- HUD: corner brackets + scan sweep ---- */
.hud-corners { position: absolute; inset: 88px 26px 26px; z-index: 1; pointer-events: none; }
.hud-corners .c { position: absolute; width: 26px; height: 26px; border: 1.5px solid rgba(123,79,255,0.4); }
.hud-corners .tl { top:0; left:0; border-right:0; border-bottom:0; }
.hud-corners .tr { top:0; right:0; border-left:0; border-bottom:0; }
.hud-corners .bl { bottom:0; left:0; border-right:0; border-top:0; }
.hud-corners .br { bottom:0; right:0; border-left:0; border-top:0; }
.hud-corners .c::after { content:''; position:absolute; width:5px; height:5px; border-radius:50%; background:var(--neon-teal); box-shadow:0 0 8px var(--neon-teal); animation: blip 2.4s ease-in-out infinite; }
.hud-corners .tl::after { top:-3px; left:-3px; } .hud-corners .tr::after { top:-3px; right:-3px; animation-delay:.6s; }
.hud-corners .bl::after { bottom:-3px; left:-3px; animation-delay:1.2s; } .hud-corners .br::after { bottom:-3px; right:-3px; animation-delay:1.8s; }
@keyframes blip { 0%,100%{opacity:.25;} 50%{opacity:1;} }

.scan-sweep {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.scan-sweep::before {
  content:''; position: absolute; left:0; right:0; height: 180px; top: -180px;
  background: linear-gradient(180deg, transparent, rgba(50,202,212,0.10) 60%, rgba(123,79,255,0.18));
  border-bottom: 1px solid rgba(50,202,212,0.4);
  animation: sweep 6.5s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes sweep { 0%{transform:translateY(0);} 55%{transform:translateY(120vh);} 100%{transform:translateY(120vh);} }

/* ---- hero telemetry strip ---- */
.hero-telemetry {
  position: absolute; top: 96px; right: 32px; z-index: 3; pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px;
  background: rgba(6,14,43,0.5); border: 1px solid rgba(123,79,255,0.25);
  padding: 7px 13px; border-radius: 100px; backdrop-filter: blur(6px);
}
.hero-telemetry .sep { opacity: .4; }
.hero-telemetry .t-on { color: var(--chutney); }
.hero-telemetry #telTok, .hero-telemetry #telLat { color: var(--taxi); }
.hero-telemetry .t-led { width: 7px; height: 7px; border-radius: 50%; background: var(--chutney); box-shadow: 0 0 0 0 rgba(171,211,84,.6); animation: lv 1.8s ease-in-out infinite; }
@media (max-width: 1100px) { .hero-telemetry { display: none; } }

/* ---- enhance mesh stacking ---- */
.ai-hero .mesh { z-index: 0; }
.ai-hero-grid { z-index: 4; }

/* ---- auto-hovering holographic chips ---- */
.holo-chip {
  position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--neon-teal); padding: 7px 12px; border-radius: 9px;
  background: rgba(13,27,62,0.72); border: 1px solid rgba(50,202,212,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 18px rgba(50,202,212,0.18);
  backdrop-filter: blur(8px);
}
.holo-chip i { width: 13px; height: 13px; }
/* badges float OUTSIDE the card in empty gutters — never over content */
.holo-chip.hc-1 { top: 86px; right: -36px; color: var(--purple-30); border-color: rgba(123,79,255,0.45); box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 18px rgba(123,79,255,0.22); animation: holoFloat 6s ease-in-out infinite; }
.holo-chip.hc-2 { bottom: 78px; right: -44px; animation: holoFloat 5.2s ease-in-out infinite .8s; }
@keyframes holoFloat { 0%,100%{transform:translateY(0) rotate(-.5deg);} 50%{transform:translateY(-12px) rotate(.5deg);} }
.builder-glow {
  position: absolute; inset: -2px; z-index: -2; border-radius: 20px; pointer-events: none;
  background: linear-gradient(130deg, rgba(123,79,255,0.5), rgba(50,202,212,0.35), rgba(255,196,1,0.25));
  filter: blur(18px); opacity: .55; animation: glowPulse 4.5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:.4;} 50%{opacity:.7;} }

/* card itself no longer clips — an inner frame does the rounding */
.builder { isolation: isolate; overflow: visible; }
.builder-frame { position: relative; border-radius: 18px; overflow: hidden; z-index: 1; }
/* reposition the original floating overlays into clear gutters */
.builder .ov-1 { top: -22px; right: -6px; left: auto; }
.builder .ov-2 { top: auto; bottom: -20px; left: 24px; }

@media (max-width: 1000px) {
  /* single-column layout: tuck the right-edge chips back inside the viewport */
  .holo-chip.hc-1 { right: 8px; }
  .holo-chip.hc-2 { right: 12px; }
  .builder .ov-1 { right: 6px; }
}

/* ---- section grid + orb backdrops (dark sections) ---- */
.sec.dark { overflow: hidden; isolation: isolate; }
.sec-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(86,138,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,138,247,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
}
.sec-orb {
  position: absolute; width: 420px; height: 420px; border-radius: 50%; z-index: 0; pointer-events: none;
  left: -120px; top: 10%; filter: blur(80px); opacity: .4;
  background: radial-gradient(circle, rgba(123,79,255,0.55), transparent 70%);
  animation: drift2 24s ease-in-out infinite;
}
.sec-orb.right { left: auto; right: -120px; top: 30%;
  background: radial-gradient(circle, rgba(50,202,212,0.45), transparent 70%); }
.sec.dark .container { position: relative; z-index: 2; }

/* ---- ORBIT upgrade: energy core, glowing rings, beams ---- */
.orbit .ring { border-color: rgba(123,79,255,0.32); box-shadow: inset 0 0 30px rgba(123,79,255,0.06); }
.orbit .ring::before { content:''; position:absolute; top:-4px; left:50%; width:8px; height:8px; border-radius:50%; background:var(--neon-teal); box-shadow:0 0 12px var(--neon-teal); transform:translateX(-50%); }
.orbit .ring.r2::before { background: var(--taxi); box-shadow: 0 0 12px var(--taxi); }
.orbit .core {
  box-shadow: 0 20px 50px rgba(27,45,147,0.45), 0 0 0 8px rgba(27,45,147,0.08), 0 0 60px rgba(123,79,255,0.5);
  animation: corePulse 3.4s ease-in-out infinite;
}
@keyframes corePulse { 0%,100%{ box-shadow: 0 20px 50px rgba(27,45,147,0.45), 0 0 0 8px rgba(27,45,147,0.08), 0 0 50px rgba(123,79,255,0.4);} 50%{ box-shadow: 0 20px 50px rgba(27,45,147,0.45), 0 0 0 14px rgba(123,79,255,0.06), 0 0 80px rgba(123,79,255,0.7);} }
.orbit::after {
  content:''; position:absolute; top:50%; left:50%; width:34%; aspect-ratio:1; border-radius:50%;
  transform:translate(-50%,-50%); border:1px solid rgba(50,202,212,0.5); z-index:2; pointer-events:none;
  animation: coreScan 3.4s ease-out infinite;
}
@keyframes coreScan { 0%{opacity:.8; transform:translate(-50%,-50%) scale(1);} 100%{opacity:0; transform:translate(-50%,-50%) scale(2.4);} }
.orbit .node { box-shadow: var(--shadow-2), 0 0 0 1px rgba(123,79,255,0.06); }
.orbit .node.active { box-shadow: 0 16px 40px var(--purple-glow), 0 0 30px rgba(123,79,255,0.4); }
.orbit-info .tag::after { content:' ▌'; animation: blink 1s step-end infinite; color: var(--purple); }
@keyframes blink { 50%{ opacity:0; } }

/* ---- PILLARS: animated gradient edge when open ---- */
.pillar.open { position: relative; }
.pillar.open::before {
  content:''; position:absolute; inset:0; border-radius:18px; padding:1px; pointer-events:none;
  background: linear-gradient(120deg, var(--neon), var(--neon-teal), var(--taxi), var(--neon));
  background-size: 280% 280%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderFlow 5s linear infinite; opacity: .9;
}
@keyframes borderFlow { to { background-position: 280% 0; } }
.cap-tile { position: relative; overflow: hidden; }
.cap-tile::after { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%; transform:skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(123,79,255,0.12), transparent); transition: left .6s var(--ease); }
.cap-tile:hover::after { left: 120%; }

/* ---- HOOKS: phone gets a holographic pulse + scan ---- */
.hook-phone { box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 70px rgba(123,79,255,0.28); animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.hook-screen::after {
  content:''; position:absolute; left:0; right:0; height:40px; top:0; pointer-events:none; z-index:6;
  background: linear-gradient(180deg, rgba(50,202,212,0.18), transparent);
  animation: phoneScan 4s linear infinite;
}
@keyframes phoneScan { 0%{transform:translateY(0);} 100%{transform:translateY(600px);} }
.hook-item { position: relative; overflow: hidden; }
/* corner scan accent on the active hook card */
.hook-item.active::before {
  content:''; position:absolute; top:0; right:0; width:34px; height:34px; pointer-events:none;
  background: radial-gradient(circle at top right, rgba(50,202,212,0.5), transparent 70%);
}
.hook-item.active::after {
  content:''; position:absolute; top:9px; right:9px; width:6px; height:6px; border-radius:50%;
  background: var(--neon-teal); box-shadow: 0 0 10px var(--neon-teal); animation: blip 1.8s ease-in-out infinite;
}

/* ---- DEMO + CTA mesh canvas stacking ---- */
.demo-sec { overflow: hidden; isolation: isolate; }
.demo-sec .container { position: relative; z-index: 2; }
.ai-cta { isolation: isolate; }
.ai-cta #meshCta { position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.6; }
.ai-cta .container { position: relative; z-index: 2; }
.demo-shell { box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(123,79,255,0.12), 0 0 60px rgba(123,79,255,0.2); }

/* ---- type-card: scanning corner accents ---- */
.type-card { isolation: isolate; }
.type-card::after {
  content:''; position:absolute; top:14px; right:14px; width:18px; height:18px; z-index:2;
  border-top:1.5px solid rgba(255,196,1,0.6); border-right:1.5px solid rgba(255,196,1,0.6);
  opacity:.6;
}

/* ---- reduce motion: calm everything ---- */
@media (prefers-reduced-motion: reduce) {
  .fx-grain, .scan-sweep::before, .hero-grid-floor, .aurora span, .holo-chip,
  .hook-phone, .sec-orb, .boot-ring, .orbit .core, .orbit::after, .builder-glow,
  .pillar.open::before, .hook-screen::after, .hud-corners .c::after { animation: none !important; }
  .boot { display: none; }
}

/* ============================================================
   AI EYES — loader hand-off cover → morph → chat FAB → dummy chatbot
   ============================================================ */

/* ---- Static last-frame cover (only when arriving via the loader) ---- */
#ai-cover {
  /* Anchored bottom-right with the SAME reference as the FAB (right/bottom),
     and width/height:100% on a fixed element excludes the scrollbar — so the
     morph lands EXACTLY on the FAB with no sideways snap at the hand-off.
     Same square image + same box-shadow as the FAB → the swap is invisible. */
  position: fixed; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: #05080F url('bot_eye_static_square.jpeg') center/cover no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(123,79,255,.25);
  z-index: 9998; display: none;
  border-radius: 0;
}
html.ai-arrive #ai-cover, html.ai-intro #ai-cover { display: block; }

/* The morph: full-bleed eyes close in on themselves and settle into the
   corner as a round button. The box shrinks toward the bottom-right; with the
   square image at `cover`, the eyes re-crop smoothly into the padded circle. */
#ai-cover.morph {
  transition: width .72s var(--ease), height .72s var(--ease),
              right .72s var(--ease), bottom .72s var(--ease),
              border-radius .72s var(--ease);
  right: 24px; bottom: 24px;
  width: 64px; height: 64px;
  border-radius: 50%;
}

/* ---- Persistent eye chat button ---- */
#ai-fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 64px; height: 64px; border-radius: 50%;
  /* square image: eyes are pre-padded on edge-to-edge black, so `cover` fills
     the whole circle — no padding color, no rectangle seam */
  background: #05080F url('bot_eye_static_square.jpeg') center/cover no-repeat;
  z-index: 9997; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(123,79,255,.25);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), box-shadow .2s var(--ease);
}
#ai-fab.ready { opacity: 1; transform: scale(1); pointer-events: auto; }
#ai-fab:hover {
  box-shadow: 0 14px 38px rgba(0,0,0,.55), 0 0 0 2px var(--purple), 0 0 30px var(--purple-glow);
}
/* breathing halo so it reads as alive + clickable */
#ai-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(123,79,255,.45);
  animation: aiFabPulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes aiFabPulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.4);  opacity: 0;  }
  100% { transform: scale(1.4);  opacity: 0;  }
}

/* ---- Dummy chatbot panel ---- */
#ai-chat {
  position: fixed; right: 24px; bottom: 100px;
  width: 360px; max-width: calc(100vw - 32px);
  background: #0a1130; border: 1px solid var(--glass-border);
  border-radius: 18px; overflow: hidden; z-index: 9999;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(123,79,255,.14);
  opacity: 0; transform: translateY(16px) scale(.96); transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
#ai-chat.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ai-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ai-chat-av { width: 38px; height: 38px; border-radius: 50%; background: #05080F url('bot_eye_static_square.jpeg') center/cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(123,79,255,.3); }
.ai-chat-nm { font-size: 15px; font-weight: 700; color: #fff; }
.ai-chat-st { font-size: 12px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 6px; }
.ai-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.ai-chat-close { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: rgba(255,255,255,.6); transition: all .15s var(--ease); }
.ai-chat-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.ai-chat-close i { width: 18px; height: 18px; }

.ai-chat-body { height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,.18); }
.ai-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.ai-msg.bot { align-self: flex-start; background: rgba(255,255,255,.06); color: #e8ecf8; border: 1px solid var(--glass-border); border-bottom-left-radius: 5px; }
.ai-msg.user { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 5px; }

.ai-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); border-radius: 14px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); animation: aiTyping 1s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiTyping { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-chat-input { display: flex; gap: 9px; padding: 14px 16px; }
.ai-chat-input input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); border-radius: 11px; padding: 11px 14px; color: #fff; font-size: 14px; font-family: inherit; outline: none; }
.ai-chat-input input:focus { border-color: var(--purple); }
.ai-chat-input button { width: 42px; height: 42px; border-radius: 11px; background: var(--purple); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ai-chat-input button i { width: 18px; height: 18px; }

@media (max-width: 480px) {
  #ai-chat { right: 12px; left: 12px; width: auto; bottom: 88px; }
  #ai-fab { right: 16px; bottom: 16px; }
  #ai-cover.morph { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #ai-cover.morph { transition: none; }
  #ai-fab, #ai-chat { transition: none; }
  #ai-fab::after { animation: none; }
}

/* ============================================================
   Screen-FX toggle — a little CRT/TV button (the effect it controls).
   The mini screen lights up (phosphor glow + scanlines) when ON and
   goes dark when OFF, so the control IS a preview of the effect.
   ============================================================ */
.fx-tv {
  position: fixed; left: 24px; bottom: 24px; z-index: 9996;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 8px 15px 8px 9px; border-radius: 13px; cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(22,30,60,.94), rgba(8,12,30,.94));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease);
}
.fx-tv:hover { border-color: rgba(50,202,212,.5); box-shadow: 0 14px 38px rgba(0,0,0,.5), 0 0 24px rgba(50,202,212,.16), inset 0 1px 0 rgba(255,255,255,.08); }
.fx-tv:focus-visible { outline: 2px solid var(--kaveri); outline-offset: 3px; }
.fx-tv[aria-pressed="false"] { opacity: .82; }

/* the CRT set: plastic bezel holding a recessed screen + a power LED */
.fx-tv-set {
  position: relative; width: 38px; height: 28px; border-radius: 6px; flex: 0 0 auto;
  background: linear-gradient(180deg, #3b4674, #1a2042);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.45);
}
.fx-tv-screen {
  position: absolute; left: 4px; top: 4px; bottom: 4px; right: 10px;
  border-radius: 3px; overflow: hidden; background: #05080f;
  box-shadow: inset 0 0 7px rgba(0,0,0,.85);
  transition: background .25s var(--ease);
}
.fx-tv-led {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #20271f;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

/* ON: phosphor glow + scanlines on the mini screen, green power LED */
.fx-tv[aria-pressed="true"] .fx-tv-screen {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 1px, transparent 1px 2px),
    radial-gradient(ellipse at 50% 42%, rgba(50,202,212,.6), rgba(27,45,147,.4) 68%, #05080f 100%);
}
.fx-tv[aria-pressed="true"] .fx-tv-led { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.fx-tv[aria-pressed="true"] .fx-tv-screen::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.06);
  animation: fxTvFlicker 4s steps(40) infinite;
}
@keyframes fxTvFlicker { 0%,96%{opacity:0} 97%{opacity:.6} 98%{opacity:.1} 99%{opacity:.5} 100%{opacity:0} }

/* label */
.fx-tv-text { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.fx-tv-cap { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.fx-tv .fx-label { font-size: 13px; font-weight: 700; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .fx-tv[aria-pressed="true"] .fx-tv-screen::after { animation: none; }
}
@media (max-width: 480px) {
  .fx-tv { left: 16px; bottom: 16px; }
}

/* ============================================================
   THE ROSTER — agents built in the Labs  (light theme:
   sits second-fold against the dark hero for a clean break)
   ============================================================ */
.roster-sec { position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% -5%, rgba(123,79,255,0.10), transparent 60%),
    radial-gradient(ellipse 55% 45% at 5% 105%, rgba(50,202,212,0.10), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--surface) 100%); }
.roster-head { max-width: 720px; margin-bottom: 48px; }
.roster-head .lead { margin-top: 16px; color: var(--text-body); }
.roster-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--text-light); }
.roster-legend span { display: inline-flex; align-items: center; gap: 8px; }
.roster-legend .d { width: 8px; height: 8px; border-radius: 50%; }
.roster-legend .d.live { background: #6aa81f; box-shadow: 0 0 8px rgba(106,168,31,0.5); }
.roster-legend .d.beta { background: var(--purple); box-shadow: 0 0 8px rgba(123,79,255,0.5); }
.roster-legend .d.soon { background: var(--text-light); }

.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .roster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .roster-grid { grid-template-columns: 1fr; } }

/* card */
.ag-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px; padding: 26px 24px 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.roster-grid.in .ag-card { opacity: 1; transform: none; }
.roster-grid.in .ag-card:nth-child(1) { transition-delay: .04s; }
.roster-grid.in .ag-card:nth-child(2) { transition-delay: .10s; }
.roster-grid.in .ag-card:nth-child(3) { transition-delay: .16s; }
.roster-grid.in .ag-card:nth-child(4) { transition-delay: .22s; }
.roster-grid.in .ag-card:nth-child(5) { transition-delay: .28s; }
.roster-grid.in .ag-card:nth-child(6) { transition-delay: .34s; }
@media (prefers-reduced-motion: reduce) { .ag-card { opacity: 1; transform: none; } }

.ag-card::before { content: ''; position: absolute; inset: 0; z-index: 0; opacity: .8; pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 100% 0%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 60%); }
.ag-card > * { position: relative; z-index: 1; }
.ag-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--ac) 55%, var(--border));
  box-shadow: 0 26px 56px rgba(27,45,147,0.16), 0 0 0 1px color-mix(in srgb, var(--ac) 28%, transparent); }
/* sheen sweep on hover */
.ag-card::after { content: ''; position: absolute; top: 0; left: -60%; width: 55%; height: 100%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.ag-card:hover::after { animation: ag-sweep .9s var(--ease); }
@keyframes ag-sweep { 0% { left: -60%; opacity: 0; } 30% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

.ag-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }

/* ---- bot avatar: robot head + glowing eyes (ties to the eye-loader brand) ---- */
.ag-bot { position: relative; width: 60px; height: 66px; flex-shrink: 0; margin-top: 2px;
  animation: ag-bob 4.8s var(--ease) infinite; transition: transform .3s var(--ease); }
@keyframes ag-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ag-card:nth-child(2) .ag-bot { animation-delay: .7s; }
.ag-card:nth-child(3) .ag-bot { animation-delay: 1.5s; }
.ag-card:nth-child(4) .ag-bot { animation-delay: .3s; }
.ag-card:nth-child(5) .ag-bot { animation-delay: 1.1s; }
.ag-card:nth-child(6) .ag-bot { animation-delay: 1.9s; }
.ag-card:hover .ag-bot { transform: translateY(-3px) scale(1.05); }

/* antenna + beacon */
.ag-bot-ant { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 10px; border-radius: 2px;
  background: color-mix(in srgb, var(--ac) 55%, var(--neelam)); }
.ag-bot-ant::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--ac);
  box-shadow: 0 0 7px 1px color-mix(in srgb, var(--ac) 65%, transparent); animation: ag-ant 2.2s ease-in-out infinite; }
@keyframes ag-ant { 0%, 100% { box-shadow: 0 0 6px 0 color-mix(in srgb, var(--ac) 60%, transparent); }
  50% { box-shadow: 0 0 12px 4px color-mix(in srgb, var(--ac) 45%, transparent); } }

/* head */
.ag-bot-head { position: absolute; top: 10px; left: 1px; width: 58px; height: 52px; border-radius: 17px;
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--ac) 94%, #fff), color-mix(in srgb, var(--ac) 62%, #000));
  display: grid; place-items: center;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.45), inset 0 -4px 8px rgba(0,0,0,0.28), 0 10px 22px color-mix(in srgb, var(--ac) 40%, transparent);
  transition: box-shadow .3s var(--ease); }
/* side bolts / ears */
.ag-bot-head::before, .ag-bot-head::after { content: ''; position: absolute; top: 50%; width: 5px; height: 15px; border-radius: 3px;
  background: color-mix(in srgb, var(--ac) 72%, #000); transform: translateY(-50%); }
.ag-bot-head::before { left: -4px; }
.ag-bot-head::after { right: -4px; }

/* visor / face screen */
.ag-bot-face { position: relative; width: 44px; height: 30px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(160deg, #0c1738, #060e2b);
  box-shadow: inset 0 0 9px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; gap: 8px; }
/* scanline sweeping the visor */
.ag-bot-face::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 3px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ac) 80%, #fff), transparent);
  opacity: .55; animation: ag-scan 3.4s linear infinite; }
@keyframes ag-scan { 0% { top: -3px; } 100% { top: 33px; } }

/* eyes */
.eye { width: 8px; height: 12px; border-radius: 5px; transform-origin: center;
  background: color-mix(in srgb, var(--ac) 35%, #fff);
  box-shadow: 0 0 9px color-mix(in srgb, var(--ac) 80%, #fff), inset 0 0 2px #fff;
  animation: ag-blink 5.6s ease-in-out infinite; transition: height .25s var(--ease), background .25s var(--ease); }
.ag-card:nth-child(2) .eye { animation-delay: 1.2s; }
.ag-card:nth-child(3) .eye { animation-delay: 2.4s; }
.ag-card:nth-child(4) .eye { animation-delay: .5s; }
.ag-card:nth-child(5) .eye { animation-delay: 3.2s; }
.ag-card:nth-child(6) .eye { animation-delay: 1.7s; }
@keyframes ag-blink { 0%, 41%, 100% { transform: scaleY(1); } 44% { transform: scaleY(0.08); } 47% { transform: scaleY(1); }
  92% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } 98% { transform: scaleY(1); } }
.ag-card:hover .eye { height: 13px; background: #fff; box-shadow: 0 0 13px color-mix(in srgb, var(--ac) 90%, #fff), inset 0 0 2px #fff; }
.ag-card:hover .ag-bot-head { box-shadow: inset 0 2px 5px rgba(255,255,255,0.5), inset 0 -4px 8px rgba(0,0,0,0.3), 0 14px 28px color-mix(in srgb, var(--ac) 50%, transparent); }

/* role badge — keeps the "what it does" glyph */
.ag-bot-badge { position: absolute; right: -5px; bottom: -2px; width: 25px; height: 25px; border-radius: 9px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-2); display: grid; place-items: center; z-index: 3; }
.ag-bot-badge i, .ag-bot-badge svg { width: 13px; height: 13px; color: color-mix(in srgb, var(--ac) 62%, var(--neelam)); }

@media (prefers-reduced-motion: reduce) {
  .ag-bot, .ag-bot-ant::before, .ag-bot-face::after, .eye { animation: none; }
}

/* status chip */
.ag-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; }
.ag-status .d { width: 7px; height: 7px; border-radius: 50%; }
.ag-status.live { background: rgba(106,168,31,0.12); color: #5a8f1a; border: 1px solid rgba(106,168,31,0.35); }
.ag-status.live .d { background: #6aa81f; animation: lv 1.8s ease-in-out infinite; }
.ag-status.beta { background: rgba(123,79,255,0.10); color: var(--purple); border: 1px solid rgba(123,79,255,0.32); }
.ag-status.beta .d { background: var(--purple); }
.ag-status.soon { background: var(--surface-2); color: var(--text-light); border: 1px solid var(--border); }
.ag-status.soon .d { background: var(--text-light); }

/* identity */
.ag-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--neelam-60); font-weight: 600; }
.ag-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 5px 0 4px; }
.ag-mean { font-family: var(--mono); font-size: 11.5px; color: var(--text-light); }
.ag-desc { font-size: 14px; line-height: 1.6; color: var(--text-body); margin: 16px 0 18px; }
.ag-caps { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.ag-cap { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-body); display: inline-flex; align-items: center; gap: 5px; }
.ag-cap i { width: 12px; height: 12px; color: color-mix(in srgb, var(--ac) 60%, var(--neelam)); }
