/* Shazra Labs — Landing */
:root {
  --bg: #050508;
  --bg-1: #0a0a12;
  --bg-2: #0d0d18;
  --card: #0d0d14;
  --surface: #111118;
  --border: rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.14);
  --border-bright: rgba(255,255,255,0.22);
  --text: #ffffff;
  --text-2: rgba(255,255,255,0.62);
  --text-3: rgba(255,255,255,0.42);
  --text-4: rgba(255,255,255,0.22);
  --purple: #7c3aed;
  --purple-mid: #9333ea;
  --purple-light: #a855f7;
  --violet: #a78bfa;
  --pink: #d946ef;
  --pink-light: #e879f9;
  --success: #4ade80;
  --info: #22d3ee;
  --warn: #fbbf24;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(168,85,247,0.14), rgba(217,70,239,0.10));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Background field */
.bg-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(217,70,239,0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 70%, rgba(168,85,247,0.16), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

main, header, footer { position: relative; z-index: 1; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px){ .container { padding: 0 20px; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(180deg, rgba(5,5,8,0.72), rgba(5,5,8,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: radial-gradient(120% 120% at 30% 20%, #1a1530 0%, #0a0a14 60%);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(124,58,237,0.35), inset 0 0 0 1px rgba(168,85,247,0.25);
  position: relative; overflow: hidden;
}
.nav-logo img { width: 26px; height: 26px; display: block; }
.nav-wordmark { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-wordmark .b { color: var(--purple-light); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--grad); color: white; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(168,85,247,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(168,85,247,0.85), inset 0 1px 0 rgba(255,255,255,0.3); }
@media (max-width: 880px){ .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.25);
  font-size: 12.5px; color: var(--text-2); font-weight: 500; letter-spacing: 0.02em;
}
.hero-eyebrow .pulse {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #d946ef, #7c3aed);
  position: relative; box-shadow: 0 0 0 2px rgba(217,70,239,0.15);
}
.hero-eyebrow .pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(217,70,239,0.6);
  animation: ping 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 0% { transform: scale(.8); opacity: 1;} 80%, 100% { transform: scale(1.6); opacity: 0;} }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.95; letter-spacing: -0.035em; font-weight: 700;
  margin: 22px 0 18px; text-wrap: balance;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; display: inline-block;
}
.hero h1 .strike {
  position: relative; display: inline-block;
  background: linear-gradient(135deg, #ffffff, #e9d5ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  max-width: 640px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
  color: var(--text-2); text-wrap: pretty; margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 56px; }
.btn-primary {
  display: inline-flex; gap: 10px; align-items: center; padding: 14px 22px; border-radius: 999px;
  background: var(--grad); color: white; font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 16px 40px -12px rgba(168,85,247,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s, box-shadow .2s, filter .2s;
  border: 0; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-secondary {
  display: inline-flex; gap: 10px; align-items: center; padding: 13px 22px; border-radius: 999px;
  background: rgba(255,255,255,0.04); color: var(--text); font-weight: 500; font-size: 15px; text-decoration: none;
  border: 1px solid var(--border-mid);
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--border-bright); }

.email-pill {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 12px 20px; border-radius: 999px;
  text-decoration: none; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--text);
  background: linear-gradient(180deg, rgba(168,85,247,0.18), rgba(217,70,239,0.10));
  border: 1px solid rgba(168,85,247,0.45);
  box-shadow: 0 0 0 0 rgba(168,85,247,0.5);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s, background .25s;
  position: relative; overflow: hidden;
  animation: email-glow 2.6s ease-in-out infinite;
}
.email-pill svg { color: var(--purple-light); }
.email-pill::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s ease;
}
.email-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(217,70,239,0.7);
  box-shadow: 0 14px 36px -10px rgba(168,85,247,0.65);
  background: linear-gradient(180deg, rgba(168,85,247,0.28), rgba(217,70,239,0.18));
}
.email-pill:hover::before { transform: translateX(100%); }
@keyframes email-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.5), 0 8px 24px -8px rgba(168,85,247,0.25); }
  50%     { box-shadow: 0 0 0 6px rgba(168,85,247,0), 0 8px 24px -8px rgba(168,85,247,0.45); }
}
.kbd {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,0.04);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-3);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px){ .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

#hero-scene { width: 100%; }
.hero-scene-inner { height: 540px; }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0; margin-top: 16px;
}
.stat { padding: 4px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c4b5fd 70%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
@media (max-width: 720px){ .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 4px; }
}

/* Marquee */
.marquee-label {
  margin-top: 56px; text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
}
.marquee-wrap {
  margin-top: 18px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0; overflow: hidden; position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee {
  display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite;
  align-items: center;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee .item {
  display: inline-flex; gap: 12px; align-items: center;
  color: var(--text-3); font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  white-space: nowrap;
}
.marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-light); opacity: 0.7; }
.marquee .item:hover { color: var(--text); }

/* Section heading */
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple-light);
}
.section-tag::before {
  content: ''; width: 24px; height: 1px; background: var(--purple-light);
}
.section-title {
  font-size: clamp(34px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; margin: 0;
  text-wrap: balance;
}
.section-title .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--text-2); font-size: 17px; line-height: 1.55; max-width: 620px; margin: 0; text-wrap: pretty; }

/* Pillar cards */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px){ .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.0));
  border: 1px solid var(--border); border-radius: 22px; padding: 28px;
  overflow: hidden; transition: border-color .3s, transform .3s;
  min-height: 460px; display: flex; flex-direction: column;
}
.pillar:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-2px); }
.pillar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,0.16), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.18em;
  color: var(--text-3); text-transform: uppercase;
}
.pillar-title {
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px;
}
.pillar-desc { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0 0 22px; }
.pillar-canvas {
  flex: 1; min-height: 200px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(0,0,0,0));
  border: 1px solid var(--border);
}
.pillar-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pillar-tag {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px; color: var(--text-2);
  border: 1px solid var(--border); background: rgba(255,255,255,0.025);
}

/* Capabilities bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); gap: 14px; }
@media (max-width: 980px){ .bento { grid-template-columns: repeat(2, 1fr); } }
.bento-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border); border-radius: 20px; padding: 22px;
  position: relative; overflow: hidden; transition: border-color .3s;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.bento-card:hover { border-color: rgba(168,85,247,0.35); }
.bento-h { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.bento-p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin: 0; }

.b-a { grid-column: span 3; grid-row: span 2; }
.b-b { grid-column: span 3; }
.b-c { grid-column: span 2; }
.b-d { grid-column: span 2; }
.b-e { grid-column: span 2; }
.b-f { grid-column: span 3; }
.b-g { grid-column: span 3; }
@media (max-width: 980px){
  .b-a, .b-b, .b-c, .b-d, .b-e, .b-f, .b-g { grid-column: span 2; grid-row: auto; }
}

/* Showcase */
.showcase {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  border: 1px solid var(--border); border-radius: 28px; padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  position: relative; overflow: hidden;
}
.showcase::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,70,239,0.18), transparent 60%); pointer-events: none;
}
@media (max-width: 980px){ .showcase { grid-template-columns: 1fr; } }
.showcase-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0,0,0,0.3); width: max-content; }
.showcase-tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: color .2s, background .2s; background: transparent; border: 0;
}
.showcase-tab.active { background: var(--grad); color: white; box-shadow: 0 4px 16px -4px rgba(168,85,247,0.6); }
.showcase-tab:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.04); }

.showcase-text h3 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 12px; line-height: 1.05; }
.showcase-text p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.showcase-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.showcase-bullets li { display: flex; gap: 10px; color: var(--text-2); font-size: 14px; }
.showcase-bullets li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: radial-gradient(circle, #d946ef 0%, #7c3aed 100%);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.12);
}

.showcase-canvas {
  position: relative; min-height: 420px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 100% at 0% 0%, rgba(124,58,237,0.16), transparent 60%), #0a0a14;
  border: 1px solid var(--border);
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px){ .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .process { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 24px; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color .25s, transform .25s;
}
.step:hover { border-color: rgba(168,85,247,0.35); transform: translateY(-2px); }
.step .num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-3); letter-spacing: 0.16em;
}
.step h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0; }
.step .ring {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(217,70,239,0.12));
  border: 1px solid rgba(168,85,247,0.28); margin-bottom: 14px;
}

/* CTA */
.cta {
  margin: 0 auto; max-width: 1100px;
  position: relative; border-radius: 32px; overflow: hidden;
  border: 1px solid var(--border-mid);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(217,70,239,0.22), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(124,58,237,0.32), transparent 60%),
    #0d0d18;
  padding: 72px 56px;
  text-align: center;
}
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 16px; line-height: 1.05; text-wrap: balance; }
.cta p { color: var(--text-2); font-size: 17px; max-width: 540px; margin: 0 auto 28px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px){ .cta { padding: 52px 24px; } }

/* Footer */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-3); font-size: 13px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Float animation */
@keyframes float-y { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes drift { 0% { transform: translate(0,0);} 50% { transform: translate(8px,-12px);} 100% { transform: translate(0,0);} }

/* Code window */
.codewin {
  width: 100%; height: 100%; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0a0a14, white);
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.codewin-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); align-items: center; }
.codewin-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.codewin-bar .title { margin-left: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.codewin-body {
  flex: 1; padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.65;
  color: var(--text-2); white-space: pre; overflow: hidden;
}
.codewin .k { color: #e879f9; }
.codewin .s { color: #e9d5ff; }
.codewin .c { color: rgba(255,255,255,0.32); }
.codewin .n { color: #22d3ee; }
.codewin .f { color: #e879f9; }

/* Cursor */
.cursor { display: inline-block; width: 8px; height: 1em; background: var(--purple-light); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Mini chart bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; padding: 12px; }
.bar { flex: 1; background: linear-gradient(180deg, var(--purple-light), var(--purple)); border-radius: 6px 6px 2px 2px; min-height: 12px; box-shadow: 0 -8px 20px -4px rgba(168,85,247,0.4); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: rgba(74,222,128,0.12); color: #86efac; border: 1px solid rgba(74,222,128,0.25);
}
.badge .pip { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* Live token row */
.token-row {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.token-left { display: flex; align-items: center; gap: 10px; }
.token-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: white; }
.token-name { font-weight: 600; font-size: 13.5px; }
.token-sub { font-size: 11.5px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.token-right { text-align: right; }
.token-price { font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.token-delta { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.token-delta.up { color: #4ade80; }
.token-delta.down { color: #f87171; }

/* Agent message */
.msg { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.msg .avatar {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--grad); display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.msg.user .avatar { background: rgba(255,255,255,0.08); }
.msg .bubble { font-size: 13px; line-height: 1.5; color: var(--text); padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); max-width: 90%; }
.msg.user .bubble { background: rgba(124,58,237,0.14); border-color: rgba(168,85,247,0.3); }

/* Chip animations */
.chip-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chip {
  height: 22px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(168,85,247,0.5), rgba(124,58,237,0.2));
  border: 1px solid rgba(168,85,247,0.35);
  animation: chipPulse 2.4s ease-in-out infinite;
}
@keyframes chipPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* Orbit (pillar canvas) */
.orbit { position: absolute; inset: 0; }
.orbit-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px dashed rgba(168,85,247,0.25);
}
.orbit-node {
  position: absolute; left: 50%; top: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 8px;
  background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.4);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #e9d5ff;
  font-family: 'JetBrains Mono', monospace;
}
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(168,85,247,0.6);
}
.orbit-core img { width: 36px; height: 36px; }

/* Spotlight cursor on hero */
.spot {
  position: absolute; pointer-events: none; width: 600px; height: 600px; border-radius: 50%;
  left: var(--x, 50%); top: var(--y, 30%); transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(168,85,247,0.18), transparent 60%);
  opacity: 0; transition: opacity .4s;
  filter: blur(20px);
  max-width: 100vw;
}
@media (max-width: 720px) {
  .spot { display: none; }
}
.hero:hover .spot { opacity: 1; }

/* Section divider */
.divider {
  height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 0 auto;
}


/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* Tablet (≤980px) */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .section.tight { padding: 60px 0; }
  .nav-inner { height: 64px; }
  .hero { padding: 56px 0 40px; }
  .pillar { min-height: auto; padding: 24px; }
  #hero-scene { height: 360px !important; }
}

/* Mobile (≤720px) */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section.tight { padding: 44px 0; }

  /* Nav: hide non-CTA links handled at 880; ensure brand still readable */
  .nav-wordmark { font-size: 16px; }
  .nav-logo { width: 32px; height: 32px; }
  .nav-logo img { width: 22px; height: 22px; }

  /* Hero */
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); margin: 16px 0 14px; line-height: 1.02; }
  .hero p.lede { font-size: 15px; margin-bottom: 24px; }
  .hero-eyebrow { font-size: 11.5px; padding: 6px 12px 6px 6px; }
  .hero-actions { gap: 10px; margin-bottom: 36px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .email-pill { width: 100%; justify-content: center; }
  .email-pill { font-size: 12.5px; padding: 11px 16px; }
  .email-pill span { word-break: break-all; }

  /* Hero scene scales down on mobile */
  #hero-scene { display: block; overflow: visible; }
  .hero-scene-inner { height: 380px !important; transform: scale(0.72); transform-origin: center center; }
}

/* Small mobile — keep hero scene visible, just shrink it more */
@media (max-width: 540px) {
  #hero-scene { display: block; overflow: visible; min-height: 300px; }
  .hero-scene-inner { height: 320px !important; transform: scale(0.6); transform-origin: center center; }

  /* Stat strip */
  .stat-strip { padding: 16px 0; gap: 12px 0; }
  .stat { padding: 6px 12px; }
  .stat .num { font-size: 24px; }
  .stat .lbl { font-size: 11px; }

  /* Section heads */
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: clamp(28px, 7.5vw, 40px); }
  .section-sub { font-size: 15px; }

  /* Pillars */
  .pillar { padding: 22px; min-height: auto; }
  .pillar-title { font-size: 22px; }
  .pillar-desc { font-size: 14px; }
  .pillar-canvas { min-height: 220px; }

  /* Bento */
  .bento { gap: 10px; }
  .bento-card { padding: 18px; }
  .b-a, .b-b, .b-c, .b-d, .b-e, .b-f, .b-g {
    grid-column: span 2; grid-row: auto;
  }

  /* Process / beliefs */
  .process { gap: 10px; }
  .step { padding: 20px; }

  /* Showcase tabs scroll horizontally on mobile */
  .showcase { padding: 18px; border-radius: 22px; }
  .showcase-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .showcase-tab { white-space: nowrap; flex-shrink: 0; font-size: 12.5px; padding: 7px 13px; }
  .showcase-text h3 { font-size: 24px; }
  .showcase-canvas { min-height: 340px; }

  /* Footer */
  .footer { padding: 48px 0 32px; margin-top: 48px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { margin-top: 36px; gap: 12px; }
}

/* Small mobile (≤420px) */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 32px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 6px 10px; }
  .stat .num { font-size: 22px; }
  .pillar-canvas { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .bento { grid-template-columns: 1fr; }
  .b-a, .b-b, .b-c, .b-d, .b-e, .b-f, .b-g {
    grid-column: span 1;
  }
  /* Hero scene: shrink even further on tiny phones */
  .hero-scene-inner { height: 280px !important; transform: scale(0.5); transform-origin: center center; }
}

/* Bottom padding so chatbot widget bubble doesn't cover the footer / CTAs on mobile */
@media (max-width: 720px) {
  body { padding-bottom: 80px; }
  .footer { margin-bottom: 0; }
}

/* Chatbot widget — make it responsive on small screens (overrides external widget styles) */
@media (max-width: 540px) {
  #ai-chat-widget-container {
    width: calc(100vw - 20px) !important;
    max-width: 380px !important;
    height: calc(100vh - 110px) !important;
    max-height: 600px !important;
    right: 10px !important;
    left: 10px !important;
    bottom: 90px !important;
  }
  #ai-chat-widget-bubble {
    right: 16px !important;
    bottom: 16px !important;
  }
}
@media (max-width: 380px) {
  #ai-chat-widget-container {
    width: calc(100vw - 16px) !important;
    right: 8px !important;
    left: 8px !important;
  }
}
