:root {
  --bg0: #030306;
  --bg1: #0a0a12;
  --text: #e8e9ef;
  --muted: #9898a8;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass2: rgba(255, 255, 255, 0.08);
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 800px at 10% -10%, #1a1030 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 0%, #0c2333 0%, transparent 50%),
    var(--bg0);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.aurora {
  pointer-events: none;
  position: fixed;
  inset: -20%;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.55;
}

.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite;
}

.orb-a {
  width: 42vmin;
  height: 42vmin;
  left: 5%;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), transparent 70%);
  animation-delay: 0s;
}

.orb-b {
  width: 50vmin;
  height: 50vmin;
  right: 0;
  top: 0;
  background: radial-gradient(
    circle at 70% 40%,
    var(--violet),
    transparent 72%
  );
  animation-delay: -6s;
}

.orb-c {
  width: 36vmin;
  height: 36vmin;
  left: 40%;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--rose), transparent 65%);
  opacity: 0.6;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.96);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
  gap: 16px;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-img {
  display: block;
  height: clamp(61px, 7.56vw, 83px);
  width: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: conic-gradient(
    from 210deg,
    var(--cyan),
    var(--violet),
    var(--amber),
    var(--cyan)
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 32px rgba(34, 211, 238, 0.25);
}

.brand-text {
  font-size: 1.15rem;
}

.brand-dot {
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
  background: var(--glass);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #818cf8 55%, #c084fc);
  color: #050508;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 40px rgba(129, 140, 248, 0.35);
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 16px 48px rgba(129, 140, 248, 0.45);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--glass2);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Hero */
.hero {
  padding: 48px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-self: start;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.gradient-text {
  display: block;
  background: linear-gradient(
    110deg,
    var(--cyan),
    var(--violet) 45%,
    var(--amber)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 28px;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.lede-sub {
  font-size: 0.98rem;
  margin-top: -16px;
}

.lede-ironic {
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.82;
  margin-top: -8px;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges li {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.hero-panel {
  position: relative;
  width: 520px;
  max-width: 520px;
  justify-self: end;
}

.panel-glass {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #f87171;
}
.dot.amber {
  background: #fbbf24;
}
.dot.green {
  background: #4ade80;
}

.panel-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.panel-body {
  margin: 0;
  padding: 22px 20px 28px;
  font-family:
    ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #c4c9d4;
  min-height: 560px;
}

.chat-transcript {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 560px;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.65) rgba(255, 255, 255, 0.06);
}

.chat-transcript::-webkit-scrollbar {
  width: 10px;
}

.chat-transcript::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.chat-transcript::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.85),
    rgba(167, 139, 250, 0.85)
  );
  border: 2px solid rgba(3, 3, 6, 0.9);
  border-radius: 999px;
}

.chat-transcript::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #22d3ee, #a78bfa);
}

.chat-msg {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(88%, 480px);
  opacity: 0;
  transform: translateY(8px);
  animation: chat-in 0.45s ease forwards;
}

.chat-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg--agent {
  align-self: flex-start;
  align-items: flex-start;
}

@keyframes chat-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-role {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c6474;
  margin-bottom: 4px;
}

.chat-msg--user .chat-role {
  color: #7dd3fc;
  text-align: right;
}

.chat-msg--agent .chat-role {
  color: #c4b5fd;
}

.chat-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px 14px;
  line-height: 1.55;
}

.chat-msg--user .chat-text {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px 16px 4px 16px;
  color: #e0f2fe;
}

.chat-msg--agent .chat-text {
  background: rgba(88, 28, 135, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 16px 16px 16px 4px;
  color: #ede9fe;
}

.chat-text .typing-cursor {
  margin-left: 1px;
}

.chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 17, 0.98),
    rgba(6, 8, 14, 0.96)
  );
  box-shadow: 0 -12px 20px rgba(0, 0, 0, 0.32);
}

.chat-composer-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #7dd3fc;
  font-weight: 600;
}

.chat-composer-input {
  min-width: 0;
  min-height: 1.7em;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.chat-composer-draft {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-composer-cursor {
  opacity: 0;
}

.chat-composer-send {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-composer--active .chat-composer-cursor {
  opacity: 1;
}

.chat-composer--sending .chat-composer-send {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.chat-tool {
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: min(96%, 520px);
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: rgba(15, 23, 42, 0.5);
  padding: 8px 11px;
  opacity: 0;
  transform: translateY(6px);
  animation: chat-in 0.4s ease 0.08s forwards;
}

.chat-tool-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-tool-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  word-break: break-all;
}

.chat-tool-status {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.chat-tool-args {
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  line-height: 1.45;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-tool-status--running {
  animation: status-pulse 1.1s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.chat-tool--done {
  border-color: rgba(74, 222, 128, 0.22);
}

.chat-tool--done .chat-tool-status {
  color: #86efac;
}

.chat-tool--done .chat-tool-status--running {
  animation: none;
  opacity: 1;
}

.c-dim {
  color: #5c6474;
}
.c-key {
  color: #93c5fd;
}
.c-str {
  color: #86efac;
}
.c-ok {
  color: var(--cyan);
}
.c-warn {
  color: var(--amber);
}

.typing-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.panel-caption {
  margin: 14px 4px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Stats */
.stats {
  padding: 24px 0 64px;
}

.stats-intro {
  max-width: 70ch;
  margin-bottom: 28px;
}

.stats-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 10px;
}

.stats-intro p {
  margin: 0;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px 120px at 20% 0%,
    rgba(34, 211, 238, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

.stat-card--hero {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.08),
    0 20px 60px rgba(99, 102, 241, 0.15);
}

.stat-card--hero::after {
  background: radial-gradient(
    500px 140px at 80% 0%,
    rgba(167, 139, 250, 0.2),
    transparent 55%
  );
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff, #b4b8c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-hint {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.stat-hint code {
  font-size: 0.8em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.stats-foot {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* USPs */
.usps {
  padding: 32px 0 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 60ch;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}

.usp-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.usp-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-2px);
}

.usp-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.usp-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.usp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.usp-card strong {
  color: var(--text);
}

/* Timeline */
.timeline {
  padding: 24px 0 64px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 600px) {
  .timeline-list li {
    grid-template-columns: 1fr;
  }
}

.timeline-list strong {
  color: var(--cyan);
  font-weight: 600;
}

.timeline-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Quickstart */
.quickstart {
  padding: 8px 0 56px;
}

.quickstart-card {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.08),
    rgba(167, 139, 250, 0.07),
    rgba(255, 255, 255, 0.03)
  );
}

.quickstart .section-title {
  margin-bottom: 8px;
}

.quickstart .section-sub {
  margin-bottom: 20px;
}

code {
  background: rgba(15, 23, 42, 0.65);
}

.json-block {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.85);
  color: #d5e0f5;
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-x: auto;
}

.json-block code {
  font-family:
    ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  white-space: pre;
}

/* CTA */
.cta {
  padding: 16px 0 72px;
}

.cta-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(
    125deg,
    rgba(251, 191, 36, 0.08),
    rgba(167, 139, 250, 0.06),
    rgba(34, 211, 238, 0.05)
  );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.cta-card p {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 68ch;
}

.cta-card strong {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-form {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.public-form-intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.public-form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .public-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.public-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

.public-form .optional {
  font-weight: 400;
  opacity: 0.85;
}

.public-form input,
.public-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.public-form textarea {
  resize: vertical;
  min-height: 88px;
}

.public-form input:focus,
.public-form textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.public-form-status {
  margin: 0;
  font-size: 0.9rem;
}

.public-form-status.is-ok {
  color: var(--cyan);
}

.public-form-status.is-err {
  color: var(--rose);
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
}

/* Mobile nav */
@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    z-index: 20;
    background: linear-gradient(
      160deg,
      rgba(9, 10, 16, 0.98),
      rgba(10, 12, 21, 0.96)
    );
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    min-width: 220px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .btn {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    width: 100%;
    max-width: 100%;
  }

  .panel-body {
    padding: 16px 14px 20px;
  }

  .chat-transcript {
    max-height: min(560px, calc(100dvh - 210px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orb,
  .pulse-dot,
  .typing-cursor {
    animation: none !important;
  }
  .chat-msg,
  .chat-tool {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
