:root {
  --bg: #040816;
  --bg-soft: #0a1024;
  --panel: rgba(8, 15, 37, 0.84);
  --panel-strong: rgba(9, 17, 43, 0.96);
  --line: rgba(158, 184, 255, 0.16);
  --line-strong: rgba(141, 242, 255, 0.28);
  --text: #f6f8ff;
  --muted: #adc0f2;
  --muted-strong: #d4defe;
  --brand: #6aa9ff;
  --brand-2: #8df2ff;
  --brand-3: #335dff;
  --success: #73ffca;
  --shadow: 0 24px 80px rgba(3, 8, 23, 0.45);
  --shadow-soft: 0 16px 48px rgba(3, 8, 23, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(51, 93, 255, 0.28), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(106, 169, 255, 0.22), transparent 26%),
    radial-gradient(circle at 50% 80%, rgba(141, 242, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #030611 0%, #060b18 48%, #040816 100%);
  overflow-x: hidden;
}

body.ai-agent-body-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(4, 8, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

.nav-links a {
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand-2);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  color: #081021;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 18px 44px rgba(106, 169, 255, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-ghost {
  min-height: auto;
  padding: 0;
  color: var(--brand-2);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 18px rgba(141, 242, 255, 0.9);
}

.hero {
  position: relative;
  padding: 92px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.hero-copy h1,
.page-hero-copy h1 {
  margin: 18px 0 18px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero-copy p,
.section-intro,
.card p,
.feature-item p,
.use-case p,
.faq-item p,
.footer-copy,
.blog-card p,
.contact-card p,
.comparison-copy,
.metric-label,
.flow-card p,
.note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy .lead {
  max-width: 740px;
  font-size: 1.15rem;
}

.page-hero-copy {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points span,
.mini-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.hero-panel,
.glass-card,
.surface,
.comparison-panel,
.contact-card,
.blog-card,
.faq-item,
.flow-card,
.platform-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 20, 49, 0.88), rgba(7, 13, 31, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 24px;
}

.hero-panel::after,
.glass-card::after,
.surface::after,
.comparison-panel::after,
.contact-card::after,
.blog-card::after,
.faq-item::after,
.flow-card::after,
.platform-panel::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 242, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-dashboard {
  display: grid;
  gap: 18px;
}

.visual-stack {
  display: grid;
  gap: 18px;
}

.product-visual,
.workflow-visual,
.website-visual,
.industry-visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 22px;
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(160deg, rgba(19, 30, 71, 0.96), rgba(6, 11, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-soft);
}

.visual-glow {
  position: absolute;
  inset: auto -10% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 242, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.visual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.visual-dots {
  display: flex;
  gap: 8px;
}

.visual-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.visual-label {
  color: var(--muted-strong);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.visual-grid.single {
  grid-template-columns: 1fr;
}

.visual-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-card h4,
.mini-panel h4,
.flow-node h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.visual-card p,
.mini-panel p,
.flow-node p,
.signal-list li,
.agent-bubble,
.agent-timeline li {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.signal-list,
.agent-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.signal-list li,
.agent-timeline li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-stat {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.mini-stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.08rem;
}

.agent-timeline li {
  position: relative;
  padding-left: 42px;
}

.agent-timeline li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 18px rgba(141, 242, 255, 0.65);
}

.website-frame {
  position: relative;
  min-height: 214px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 17, 42, 0.96), rgba(6, 11, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.website-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.website-nav .bars,
.website-nav .menu {
  display: flex;
  gap: 8px;
}

.website-nav .bars span,
.website-nav .menu span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.website-nav .bars span {
  width: 10px;
  height: 10px;
}

.website-nav .menu span {
  width: 54px;
  height: 8px;
}

.website-body {
  display: grid;
  gap: 12px;
  padding: 18px 16px 76px;
}

.website-hero-strip,
.website-line,
.website-card-row span {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.website-hero-strip {
  width: 70%;
  height: 18px;
}

.website-line {
  height: 10px;
}

.website-line.short {
  width: 64%;
}

.website-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.website-card-row span {
  min-height: 64px;
}

.agent-widget {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(240px, calc(100% - 32px));
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(235, 246, 255, 0.99), rgba(214, 235, 255, 0.98)),
    linear-gradient(180deg, rgba(241, 249, 255, 0.98), rgba(216, 236, 255, 0.96));
  border: 1px solid rgba(106, 169, 255, 0.24);
  box-shadow: 0 20px 48px rgba(3, 8, 23, 0.22);
}

.agent-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.agent-widget-header strong {
  color: #081021;
}

.agent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}

.agent-bubble {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  color: #17304b;
  background: rgba(248, 252, 255, 0.88);
  border: 1px solid rgba(106, 169, 255, 0.18);
}

.agent-bubble.primary {
  background: linear-gradient(135deg, rgba(141, 242, 255, 0.94), rgba(106, 169, 255, 0.92));
  color: #07101f;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-actions span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(106, 169, 255, 0.18);
  color: #24405f;
  font-size: 0.82rem;
}

.workflow-nodes {
  display: grid;
  gap: 12px;
}

.flow-node {
  position: relative;
  padding: 16px 16px 16px 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-node::before {
  content: attr(data-step);
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #081021;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}

.mini-panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pipeline-bars span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(141, 242, 255, 0.9), rgba(106, 169, 255, 0.28));
}

.pipeline-bars span:nth-child(1) {
  width: 88%;
}

.pipeline-bars span:nth-child(2) {
  width: 72%;
}

.pipeline-bars span:nth-child(3) {
  width: 56%;
}

.pipeline-bars span:nth-child(4) {
  width: 42%;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.metric-label {
  font-size: 0.92rem;
}

.stack-list,
.check-list,
.simple-list,
.footer-links,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-list li,
.check-list li,
.simple-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--success);
  font-weight: 700;
}

main section,
.page-hero,
.cta-band {
  padding: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2,
.section-head h3,
.page-section h2,
.page-section h3,
.cta-panel h2,
.faq-title,
.footer-brand h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.section-head h2,
.page-section h2,
.cta-panel h2,
.footer-brand h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
}

.card h3,
.feature-item h3,
.use-case h3,
.flow-card h3,
.contact-card h3,
.blog-card h3,
.platform-panel h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-item,
.use-case {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(9, 18, 43, 0.9), rgba(7, 12, 29, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.flow-grid,
.use-case-grid,
.blog-grid,
.contact-grid,
.faq-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-card,
.contact-card,
.blog-card,
.faq-item,
.platform-panel {
  padding: 24px;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(141, 242, 255, 0.22), rgba(106, 169, 255, 0.3));
  color: var(--brand-2);
  font-weight: 800;
}

.platform-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.platform-panel .simple-list {
  display: grid;
  gap: 12px;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-panel {
  padding: 24px;
}

.comparison-panel h3 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.cta-band {
  padding-bottom: 80px;
}

.cta-panel {
  padding: 36px;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(51, 93, 255, 0.28), rgba(141, 242, 255, 0.14)),
    linear-gradient(180deg, rgba(11, 19, 46, 0.96), rgba(5, 10, 26, 0.98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.cta-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
}

.cta-panel .hero-actions {
  margin-top: 24px;
}

.page-hero {
  padding-top: 72px;
}

.page-hero-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.surface {
  padding: 24px;
}

.surface h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.3);
}

.faq-item h3 {
  margin-top: 0;
}

.blog-tag,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

.feature-item > p,
.use-case > p,
.platform-panel > p,
.blog-card > p,
.contact-card > p,
.faq-item > p,
.card > p {
  max-width: 38ch;
}

.page-section .section-head p,
.hero-copy .lead,
.page-hero-copy p {
  max-width: 62ch;
}

.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.78);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 28px;
  padding: 26px 0;
}

.footer-copy {
  max-width: 440px;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--brand-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-agent-shell {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 995;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ai-agent-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  color: #081021;
  background: linear-gradient(135deg, rgba(220, 240, 255, 0.98), rgba(194, 226, 255, 0.96));
  border: 1px solid rgba(106, 169, 255, 0.24);
  box-shadow: var(--shadow-soft);
}

.ai-agent-launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 18px rgba(141, 242, 255, 0.65);
}

.ai-agent-launcher-text {
  font-weight: 700;
}

.ai-agent-panel {
  width: min(380px, calc(100vw - 28px));
  max-height: min(78vh, 720px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(235, 246, 255, 0.99), rgba(214, 235, 255, 0.98)),
    linear-gradient(180deg, rgba(241, 249, 255, 0.98), rgba(216, 236, 255, 0.96));
  border: 1px solid rgba(106, 169, 255, 0.24);
  box-shadow: 0 24px 70px rgba(3, 8, 23, 0.22);
}

.ai-agent-shell.is-open .ai-agent-panel {
  display: flex;
}

.ai-agent-shell.is-open .ai-agent-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.ai-agent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(111, 147, 214, 0.18);
}

.ai-agent-header strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  color: #081021;
}

.ai-agent-header p {
  margin: 0;
  color: #46607d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-agent-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #2f4662;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 147, 214, 0.18);
  line-height: 1;
}

.ai-agent-messages {
  flex: 1;
  min-height: 220px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  align-content: start;
  gap: 10px;
}

.ai-agent-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.ai-agent-message-text {
  display: block;
}

.ai-agent-message-time {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.7;
}

.ai-agent-message-agent {
  color: #17304b;
  background: rgba(248, 252, 255, 0.88);
  border: 1px solid rgba(106, 169, 255, 0.18);
}

.ai-agent-message-user {
  justify-self: end;
  color: #07101f;
  background: linear-gradient(135deg, rgba(141, 242, 255, 0.94), rgba(106, 169, 255, 0.92));
  text-align: right;
}

.ai-agent-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 252, 255, 0.88);
  border: 1px solid rgba(106, 169, 255, 0.18);
}

.ai-agent-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(54, 95, 140, 0.7);
  animation: ai-agent-pulse 1.2s infinite ease-in-out;
}

.ai-agent-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-agent-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.ai-agent-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 16px 16px;
}

.ai-agent-form textarea {
  min-height: 54px;
  max-height: 72px;
  resize: none;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(135, 184, 255, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #081021;
  font: inherit;
}

.ai-agent-form textarea:focus {
  outline: 1px solid rgba(106, 169, 255, 0.4);
}

.ai-agent-form button {
  min-height: 54px;
  min-width: 86px;
  border-radius: 18px;
  color: #081021;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}

.floating-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(6, 11, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.floating-bar .button {
  min-height: 44px;
  padding: 0 18px;
}

@keyframes ai-agent-pulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-shell,
  .platform-grid,
  .comparison,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .flow-grid,
  .use-case-grid,
  .blog-grid,
  .contact-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(6, 11, 27, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-shell {
    position: relative;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .feature-list,
  .metric-grid,
  .visual-grid,
  .mini-stats,
  .website-card-row {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .page-hero-shell {
    gap: 22px;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    line-height: 1.02;
  }

  .hero-actions .button,
  .nav-cta .button {
    width: 100%;
  }

  .product-visual,
  .workflow-visual,
  .website-visual,
  .industry-visual,
  .hero-panel,
  .card,
  .surface,
  .feature-item,
  .use-case,
  .flow-card,
  .contact-card,
  .blog-card,
  .faq-item,
  .platform-panel,
  .comparison-panel,
  .cta-panel {
    border-radius: 22px;
  }

  .floating-bar {
    gap: 8px;
    padding: 8px;
  }

  .floating-bar .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .ai-agent-shell {
    right: 14px;
    bottom: 14px;
    left: 14px;
    align-items: stretch;
  }

  .ai-agent-launcher {
    justify-content: center;
  }

  .ai-agent-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section-grid,
  .flow-grid,
  .use-case-grid,
  .blog-grid,
  .contact-grid,
  .faq-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .cta-panel,
  .hero-panel,
  .surface,
  .card,
  .feature-item,
  .use-case,
  .flow-card,
  .contact-card,
  .blog-card,
  .faq-item,
  .platform-panel,
  .comparison-panel {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-bar {
    left: 12px;
    right: 12px;
    justify-content: center;
  }

  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  main section,
  .page-hero,
  .cta-band {
    padding: 30px 0;
  }

  .hero-copy .lead,
  .page-hero-copy p,
  .section-intro,
  .card p,
  .feature-item p,
  .use-case p,
  .faq-item p,
  .footer-copy,
  .blog-card p,
  .contact-card p,
  .metric-label,
  .flow-card p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points span,
  .mini-chip,
  .agent-actions span,
  .pill,
  .blog-tag {
    font-size: 0.78rem;
  }

  .visual-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .website-body {
    padding-bottom: 150px;
  }

  .agent-widget {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .ai-agent-shell {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .ai-agent-panel {
    max-height: min(74vh, 680px);
    border-radius: 22px;
  }

  .ai-agent-header,
  .ai-agent-messages,
  .ai-agent-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ai-agent-form {
    grid-template-columns: 1fr;
  }

  .ai-agent-form button {
    width: 100%;
    min-height: 56px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .ai-agent-close {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    transform: translateY(-1px);
  }
}
