/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #080c18;
  --bg-card:   #0f1624;
  --bg-alt:    #0b1020;
  --text:      #f1f5f9;
  --muted:     #64748b;
  --muted-2:   #94a3b8;
  --primary:   #3b82f6;
  --primary-2: #2563eb;
  --accent:    #8b5cf6;
  --green:     #22c55e;
  --red:       #ef4444;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Background gradient ───────────────────────────────────────────────────── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(59,130,246,.1), transparent),
    radial-gradient(ellipse 40% 40% at 85% 70%, rgba(139,92,246,.08), transparent);
}

/* ── Header ────────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,24,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.swiss-made {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--muted-2);
  opacity: .8;
}

.swiss-flag { vertical-align: middle; }

nav.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  font-size: .9rem;
  color: var(--muted-2);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 0 24px rgba(59,130,246,.25);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(59,130,246,.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--muted-2);
  border: 1px solid var(--border-2);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text);
}

.btn-small {
  padding: 8px 16px;
  font-size: .82rem;
}

/* ── Badge ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd;
  letter-spacing: .02em;
  margin-bottom: 24px;
}

/* ── Top banner ────────────────────────────────────────────────────────────── */
.top-banner {
  background: rgba(59,130,246,.07);
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: .82rem;
}

.top-banner .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}

.top-banner strong { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  max-width: 600px;
  color: var(--muted-2);
  font-size: clamp(.95rem, 2.2vw, 1.15rem);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

/* ── Hero code block ───────────────────────────────────────────────────────── */
.hero-code {
  width: 100%;
  max-width: 700px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f56;
}
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }

.code-label {
  font-size: .75rem;
  color: var(--muted);
  margin-left: 4px;
}

.hero-pre {
  margin: 0;
  padding: 20px 24px;
  font-size: .82rem;
  line-height: 1.7;
  overflow-x: auto;
  font-family: "Fira Code", "Cascadia Code", "Menlo", monospace;
}

.c-muted { color: var(--muted); }
.c-green  { color: var(--green); }
.c-red    { color: var(--red); }
.c-blue   { color: #7dd3fc; }

/* ── Trust bar ─────────────────────────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255,255,255,.02);
}

.trust-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 4px;
}

.trust-item {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted-2);
}

.trust-sep { color: var(--border-2); }

a.trust-item:hover { color: var(--text); }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted-2);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 56px;
}

/* ── Feature cards ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .9rem;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 52px;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: .88rem;
  color: var(--muted-2);
  line-height: 1.6;
}

.step-arrow {
  color: var(--muted);
  font-size: 1.4rem;
  padding-top: 36px;
  flex-shrink: 0;
}

/* ── Architecture diagram ──────────────────────────────────────────────────── */
.architecture-diagram {
  margin-top: 48px;
}

.diagram-wrapper {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 24px;
  display: inline-block;
  max-width: 100%;
}

.diagram-wrapper img {
  display: block;
  max-width: 100%;
  width: 800px;
  height: auto;
}

/* ── Use cases ─────────────────────────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.usecase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition);
}

.usecase:hover { border-color: var(--border-2); }

.usecase-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.usecase h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.usecase p {
  font-size: .82rem;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ── CTA section ───────────────────────────────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--muted-2);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ── pre / code ────────────────────────────────────────────────────────────── */
pre {
  margin: 0;
  padding: 20px 24px;
  background: rgba(0,0,0,.5);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.7;
  font-family: "Fira Code", "Cascadia Code", "Menlo", monospace;
  color: var(--muted-2);
}

code {
  font-family: "Fira Code", "Cascadia Code", "Menlo", monospace;
  font-size: .88em;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93c5fd;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Docs page ─────────────────────────────────────────────────────────────── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted-2);
  font-size: 1.05rem;
  max-width: 560px;
}

.docs-body {
  padding: 56px 0 80px;
}

.docs-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 48px 0 16px;
}

.docs-body h2:first-child { margin-top: 0; }

.docs-body p, .docs-body li {
  color: var(--muted-2);
  font-size: .95rem;
  line-height: 1.7;
}

.docs-body ul {
  padding-left: 20px;
  margin: 12px 0;
}

.docs-body ul li { margin-bottom: 6px; }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 9px 18px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--transition);
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }

.tab.active {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
  border-bottom-color: var(--bg-card);
}

.tab-content {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}

.tab-content.active { display: block; }

/* ── About page ────────────────────────────────────────────────────────────── */
.about-container {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}

.profile-image {
  flex-shrink: 0;
  width: 140px;
}

.profile-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-2);
}

.profile-text p {
  color: var(--muted-2);
  font-size: .95rem;
  margin-bottom: 16px;
}

.about-story .inner {
  max-width: 680px;
}

.about-story h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-story p {
  color: var(--muted-2);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.narrow { max-width: 680px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: .85rem;
  color: var(--muted-2);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  font-size: .8rem;
  color: var(--muted);
}

/* ── Hero stat pills ───────────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.stat-pill {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted-2);
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
}

.stat-sep {
  color: var(--border-2);
  font-size: .8rem;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
  max-width: 780px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,.3), rgba(139,92,246,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-card-alt::before {
  background: rgba(255,255,255,.06);
  -webkit-mask: none;
  mask: none;
}

.pricing-tier {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: .82rem;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  font-size: .88rem;
  color: var(--muted-2);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing-features li.pricing-note {
  color: var(--muted);
  font-style: italic;
}

.pricing-features li.pricing-note::before {
  content: '·';
  color: var(--muted);
  font-style: normal;
}

/* ── Comparison table ──────────────────────────────────────────────────────── */
.comparison-table {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
}

.comparison-header {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.comparison-col-label { padding: 0 8px; }

.comparison-col-protet {
  color: var(--primary);
}

.comparison-row {
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  line-height: 1.5;
}

.comparison-row:last-child { border-bottom: none; }

.comparison-row > div {
  padding: 14px 20px;
  color: var(--muted-2);
  border-left: 1px solid var(--border);
}

.comparison-row > div:first-child { border-left: none; }

.comparison-aspect {
  color: var(--text);
  font-weight: 600;
  font-size: .85rem;
}

.comparison-protet {
  background: rgba(59,130,246,.04);
  color: var(--text) !important;
}

.comparison-note {
  margin-top: 20px;
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: .88rem;
  color: var(--muted-2);
  line-height: 1.7;
  max-width: 620px;
}

/* ── Live Demo ─────────────────────────────────────────────────────────────── */
.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 24px;
}
.demo-scenarios {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-scenario-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-2);
  font-size: .78rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.demo-scenario-btn:hover {
  border-color: var(--border-2);
  color: var(--text);
}
.demo-scenario-active {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
.demo-session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted);
}
.demo-session-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .68rem;
}
.demo-session-id {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: monospace;
  font-size: .75rem;
  color: var(--muted-2);
}
.demo-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.demo-dots { display: flex; gap: 5px; }
.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #f59e0b; }
.demo-dots span:nth-child(3) { background: #22c55e; }
.demo-panel-label {
  font-size: .72rem;
  color: var(--muted);
  font-family: monospace;
  flex: 1;
}
.demo-ws-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  transition: background .3s;
}
.demo-ws-connected    { background: var(--green) !important; }
.demo-ws-connecting   { background: #f59e0b !important; }
.demo-ws-disconnected { background: var(--muted) !important; }
.demo-ws-error        { background: var(--red) !important; }
.demo-terminal {
  flex: 1;
  padding: 14px 16px;
  font-family: monospace;
  font-size: .8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}
.demo-line { display: flex; align-items: baseline; color: var(--muted); }
.demo-prompt { color: var(--green); white-space: pre; }
.demo-cmd { color: var(--muted-2); }
.demo-line-done .demo-cmd { color: var(--text); }
.demo-results {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-busy-notice {
  font-size: .78rem;
  color: #fbbf24;
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
}
.demo-results-empty {
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  padding: 30px 0;
  font-style: italic;
}
.demo-result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  animation: demo-slide-in .2s ease;
}
@keyframes demo-slide-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.demo-result-malicious { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.05); }
.demo-result-benign    { border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.04); }
.demo-result-unknown   { border-color: var(--border); }
.demo-result-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.demo-result-badge {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 2px 7px;
  border-radius: 4px;
}
.demo-badge-malicious { background: rgba(239,68,68,.2); color: #f87171; }
.demo-badge-benign    { background: rgba(34,197,94,.15); color: #4ade80; }
.demo-badge-unknown   { background: var(--border); color: var(--muted-2); }
.demo-result-prob { font-size: .72rem; color: var(--muted); font-family: monospace; }
.demo-result-cmds { display: flex; flex-direction: column; gap: 3px; }
.demo-result-cmds code {
  font-size: .7rem;
  color: var(--muted-2);
  background: rgba(0,0,0,.3);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: pre-wrap;
  word-break: break-all;
}
.demo-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
}
.demo-result-row-cmd {
  font-size: .7rem;
  color: #f87171;
  background: rgba(0,0,0,.3);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.demo-footer { margin-top: 18px; display: flex; justify-content: center; }

/* Demo — chain highlight in terminal */
.demo-line-chain {
  background: rgba(239,68,68,.13);
  border-left: 3px solid #ef4444;
  padding-left: 8px;
  margin-left: -8px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(239,68,68,.12);
}
.demo-line-chain .demo-prompt { color: #f87171 !important; }
.demo-line-chain .demo-cmd    { color: #fca5a5 !important; }

/* Demo — chain note below chain list */
.demo-chain-note {
  font-size: .68rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  padding-top: 6px;
  border-top: 1px solid rgba(239,68,68,.15);
  margin-top: 4px;
}

/* Demo — identified chain list (right panel) */
.demo-chain-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(239,68,68,.04);
  border: 1px solid rgba(239,68,68,.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.demo-chain-list .demo-line-chain {
  margin-left: 0;
}

/* Demo — explain result panel */
.demo-explain-result { display: flex; flex-direction: column; gap: 16px; padding: 14px; }
.demo-explain-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-explain-meta {
  font-size: .71rem;
  color: var(--muted);
  font-family: monospace;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}
.demo-explain-section-title {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.demo-attr-list { display: flex; flex-direction: column; gap: 8px; }
.demo-attr-row { display: flex; flex-direction: column; gap: 4px; }
.demo-attr-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.demo-attr-cmd {
  font-family: monospace;
  font-size: .68rem;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.demo-attr-score {
  font-family: monospace;
  font-size: .67rem;
  color: var(--muted);
  flex-shrink: 0;
}
.demo-attr-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.demo-attr-bar { height: 100%; border-radius: 2px; transition: width .5s ease; }
.demo-attr-bar-high { background: #ef4444; }
.demo-attr-bar-mid  { background: #f59e0b; }
.demo-attr-bar-low  { background: var(--muted); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 640px) {
  .header-content { flex-wrap: wrap; }
  nav.nav-links { order: 3; width: 100%; gap: 16px; }
  .usecases-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-container { flex-direction: column; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .comparison-header,
  .comparison-row { grid-template-columns: 1fr 1fr; }
  .comparison-header > div:first-child,
  .comparison-row > .comparison-aspect { display: none; }
  .demo-arena { grid-template-columns: 1fr; }
}
