/* ──────────────────────────────────────────────────────────────
   TraceAIO shared stylesheet — light, blue→purple
   Used by:
     public/index.html
     public/best-alternative-to-profound.html
     public/docs/*.html  (generated by scripts/build-docs.ts)
   ────────────────────────────────────────────────────────────── */

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

/* ─── Tokens ─── */
:root {
  /* Surfaces — very light, cool */
  --bg:           #FAFBFD;   /* page */
  --surface:      #FFFFFF;   /* cards */
  --surface-2:    #F4F6FB;   /* hover, sunken sections */
  --surface-tint: #F5F3FF;   /* faint purple wash */

  /* Text — slate */
  --text:         #0B1020;   /* primary */
  --text-soft:    #344056;   /* body */
  --text-mute:    #64748B;   /* secondary */
  --text-faint:   #94A3B8;   /* metadata */

  /* Rules */
  --rule:         #E6EAF1;
  --rule-strong:  #D5DBE6;

  /* Brand */
  --blue:         #2563EB;
  --blue-deep:    #1D4ED8;
  --indigo:       #4F46E5;
  --violet:       #7C3AED;
  --purple:       #8B5CF6;

  /* Gradients */
  --grad:         linear-gradient(95deg, #2563EB 0%, #6D28D9 100%);
  --grad-soft:    linear-gradient(135deg, #EFF4FF 0%, #F5EBFF 100%);
  --grad-card:    linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
  --grad-stripe:  linear-gradient(90deg, transparent, #6366F1 30%, #8B5CF6 70%, transparent);

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:    0 4px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg:    0 12px 40px rgba(70, 60, 200, 0.10);
  --shadow-glow:  0 8px 28px rgba(124, 58, 237, 0.18);

  /* Backwards-compat aliases (docs section + inline styles in HTML) */
  --bg-deep:        var(--bg);
  --bg-surface:     var(--surface);
  --bg-elevated:    var(--surface-2);
  --text-primary:   var(--text);
  --text-secondary: var(--text-soft);
  --text-dim:       var(--text-mute);
  --accent-blue:    var(--blue);
  --accent-sky:     var(--indigo);
  --accent-blue-glow: rgba(37, 99, 235, 0.12);
  --accent-sky-glow:  rgba(124, 58, 237, 0.12);
  --border:         var(--rule);

  /* Type */
  --font-display: 'Assistant', system-ui, sans-serif;
  --font-sub:     'Prompt', system-ui, sans-serif;
  --font-body:    'Noto Sans', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(124, 58, 237, 0.18); color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   MARKETING PAGES (index.html, best-alternative-to-profound.html)
   ══════════════════════════════════════════════════════════════ */

/* Soft gradient backdrop behind the hero only — repurpose .bg-mesh */
.bg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 0%, rgba(139, 92, 246, 0.18), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(37, 99, 235, 0.14), transparent 65%);
}
.bg-mesh::before, .bg-mesh::after { content: none; }
@keyframes drift { 0% {} 100% {} }

.grain { display: none; }

.wrapper { position: relative; z-index: 2; }

section { padding: 0 32px; }

.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ─── Top nav ─── */
.wrapper > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 32px;
  background: rgba(250, 251, 253, 0.78);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(230, 234, 241, 0.7);
}
.wrapper > nav .nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-sub);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  position: relative;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-nav-github {
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-sm);
}
.btn-nav-github:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-mute);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-nav svg { flex-shrink: 0; }

/* ─── Hero ─── */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  text-align: center;
  position: relative;
}

/* Pill badge — soft gradient */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: var(--surface-tint);
  color: var(--violet);
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
  50%      { box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.06); }
}

/* H1 — Assistant heavy, large, ragged-right via center */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 auto 24px;
  max-width: 18ch;
  color: var(--text);
}

/* Highlighted word — blue→purple gradient */
.hero h1 .gradient-text,
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.18s, transform 0.15s;
}

/* Primary — blue→purple gradient */
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.30);
  transform: translateY(-1px);
}

/* Secondary — white card with soft border */
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ─── Section labels ─── */
.section-label {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  color: var(--violet);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ─── Supported Models section ─── */
.models-section {
  padding-top: 64px;
  padding-bottom: 72px;
}
.models-section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}
.models-section .section-label {
  display: block;
  text-align: center;
}
.models-section > .container > .section-subtitle {
  color: var(--text-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
  font-family: var(--font-sub);
}

.models-group {
  margin: 0 auto 36px;
  max-width: 1040px;
}
.models-group:last-child { margin-bottom: 0; }
.models-group-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.models-group-tag {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
  border: none;
  background: none;
  flex-shrink: 0;
}
.models-group-tag.browser { color: var(--blue); }
.models-group-tag.api { color: var(--violet); }
.models-group-text {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 400;
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.models-grid-api {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
  gap: 16px;
}
.model-card {
  background: var(--grad-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, opacity 0.18s;
  position: relative;
  overflow: hidden;
}
.model-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-stripe);
  opacity: 0;
  transition: opacity 0.2s;
}
.model-card:hover {
  border-color: rgba(124, 58, 237, 0.30);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.model-card:hover::before { opacity: 1; }

.model-card-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.model-card-icon-ink { color: var(--text); }
.model-card-icon svg { width: 26px; height: 26px; display: block; }

/* Coming-soon tag — plain colored text in the top-right, no chip */
.model-card-soon {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-sub);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  pointer-events: none;
}
.model-card-coming-soon { opacity: 0.72; }
.model-card-coming-soon:hover { opacity: 1; }
.model-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.model-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.model-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Section heading sizing ─── */
.demo-section h2,
.howitworks-section h2,
.features-section h2,
.integrations-section h2,
.getstarted-section h2,
.compare-section h2,
.why-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.howitworks-section h2,
.features-section h2,
.integrations-section h2,
.getstarted-section h2,
.compare-section h2,
.why-section h2 {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

/* ─── Demo section ─── */
.demo-section {
  padding-top: 64px;
  padding-bottom: 72px;
}
.demo-section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.demo-section p {
  color: var(--text-soft);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 1.05rem;
  font-family: var(--font-sub);
  font-weight: 400;
}
.demo-section .section-label {
  display: block;
  text-align: center;
}

.demo-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}
/* Soft gradient halo around the demo frame */
.demo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.40), rgba(139, 92, 246, 0.40));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
.demo-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── How It Works ─── */
.howitworks-section { padding-top: 64px; padding-bottom: 72px; }
.steps {
  max-width: 760px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.step-content > p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.step-connector {
  width: 1px;
  height: 32px;
  background: var(--rule-strong);
  margin: 8px 0 8px 21px;
}
.step-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.step-detail-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}
.step-detail-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.step-detail-card p {
  color: var(--text-soft);
  margin: 0;
}
.step-detail-card a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.step-detail-warn {
  border-color: rgba(180, 83, 9, 0.20);
  border-left: 3px solid #D97706;
  background: #FFF8EE;
}
.step-detail-warn strong { color: #B45309; }

/* ─── Features ─── */
.features-section { padding-top: 64px; padding-bottom: 72px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: none;
  border-radius: 0;
  overflow: visible;
  border: none;
}
.feature-card {
  background: var(--grad-card);
  padding: 32px 28px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-stripe);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.30);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }

.feature-num {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  color: var(--violet);
  margin-bottom: 18px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.feature-num:empty { display: none; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ─── Integrations ─── */
.integrations-section { padding-top: 64px; padding-bottom: 72px; }
.integrations-section > .container > .section-subtitle {
  color: var(--text-soft);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
  font-family: var(--font-sub);
}
.integrations-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.integrations-text {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}
.integration-item {
  display: flex;
  gap: 16px;
}
.integration-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-tint);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
}
.integration-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.integration-item p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.integrations-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  position: relative;
  box-shadow: var(--shadow-md);
  padding: 12px;
}
.integrations-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.30), rgba(139, 92, 246, 0.30));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.integrations-image img {
  width: 100%;
  height: auto;
  display: block;
}
.integrations-image .placeholder-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ─── Get Started ─── */
.getstarted-section {
  padding-top: 64px;
  padding-bottom: 100px;
}
.getstarted-section > .container > p {
  color: var(--text-soft);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  font-family: var(--font-sub);
}

.requirements {
  max-width: 920px;
  margin: 0 auto 48px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.requirements h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.req-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.req-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.req-item strong { color: var(--text); font-weight: 600; }
.req-item a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.req-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-tint);
  border: 1px solid rgba(124, 58, 237, 0.20);
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet);
}
.browser-modes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
  padding-left: 38px;
}
.browser-modes-three {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
}
.browser-mode {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 20px;
}
.bm-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.bm-badge {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.bm-free {
  background: rgba(21, 128, 61, 0.10);
  color: #15803D;
  border: 1px solid rgba(21, 128, 61, 0.20);
}
.bm-paid {
  background: rgba(79, 70, 229, 0.10);
  color: var(--indigo);
  border: 1px solid rgba(79, 70, 229, 0.22);
}
.bm-stats {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.bm-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}
.bm-note {
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.5;
}
.bm-note a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.bm-or {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  color: var(--text-mute);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  align-self: center;
  font-weight: 600;
}

.start-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.start-card {
  background: var(--grad-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
}
.start-card:hover {
  border-color: rgba(124, 58, 237, 0.30);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.start-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.start-card-label {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--violet);
  font-weight: 600;
}
.start-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.start-card > p {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Code blocks: dark navy panel on light page */
.code-block {
  background: #0B1226;
  border: 1px solid #1A2548;
  border-radius: 10px;
  padding: 22px 22px 18px;
  overflow-x: auto;
  position: relative;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #CDD3E0;
  white-space: pre;
  display: block;
}
.code-block .comment { color: #6B7BA0; font-style: italic; }
.code-block .cmd     { color: #FFFFFF; }
.code-block .str     { color: #C4B5FD; }
.code-block .flag    { color: #93C5FD; }

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C9D1E5;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: var(--font-sub);
  font-size: 0.65rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.start-card-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-mute);
  line-height: 1.55;
}
.start-card-note a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ─── Footer ─── */
.wrapper > footer,
body > footer {
  padding: 40px 32px 56px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  background: linear-gradient(180deg, transparent 0%, var(--surface-tint) 100%);
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer .footer-left {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
footer .footer-left img {
  height: 28px;
  width: auto;
  display: block;
}
footer .footer-right {
  display: flex;
  gap: 24px;
}
footer .footer-right a {
  color: var(--text-mute);
  text-decoration: none;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}
footer .footer-right a:hover { color: var(--violet); }

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.30s ease, transform 0.30s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.10s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   COMPARISON PAGE (best-alternative-to-profound.html)
   ══════════════════════════════════════════════════════════════ */

.compare-section {
  padding-top: 64px;
  padding-bottom: 72px;
}
.compare-section > .container > .section-subtitle {
  color: var(--text-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  font-family: var(--font-sub);
}
.compare-table-wrap {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
  box-shadow: var(--shadow-md);
}
.compare-table-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(139, 92, 246, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
  z-index: 0;
}
.compare-table thead th {
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--text);
}
.compare-table thead th.col-feature {
  color: var(--text-mute);
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare-table thead th.col-us {
  color: var(--text);
  position: relative;
}
.compare-table thead th.col-us::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
}
.compare-table thead th.col-us .gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.compare-table thead th.col-them { color: var(--text-soft); }

.compare-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.93rem;
  vertical-align: top;
  color: var(--text-soft);
  line-height: 1.55;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--surface-2); }
.compare-table td.feat {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  width: 30%;
}
.compare-table td.cell-us, .compare-table td.cell-them { width: 35%; }
.compare-table td.cell-us { color: var(--text); }

/* Marks */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: inherit;
}
.mark .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.mark.yes .icon {
  background: #15803D;
  color: #fff;
  border: none;
}
.mark.no .icon {
  background: var(--surface-2);
  color: var(--text-mute);
  border: 1px solid var(--rule-strong);
}
.mark.partial .icon {
  background: rgba(180, 83, 9, 0.12);
  color: #B45309;
  border: 1px solid rgba(180, 83, 9, 0.28);
}
.compare-table td.cell-them .mark.yes .icon {
  background: var(--indigo);
  color: #fff;
}

.why-section {
  padding-top: 64px;
  padding-bottom: 96px;
}

/* ══════════════════════════════════════════════════════════════
   DOCS (public/docs/*.html, generated by scripts/build-docs.ts)
   ══════════════════════════════════════════════════════════════ */

.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  padding: 32px 20px;
  border-right: 1px solid var(--rule);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  background: var(--bg);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}
.sidebar-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.sidebar-label {
  font-family: var(--font-sub);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: 10px;
  padding-left: 12px;
  font-weight: 600;
}
.nav-item {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font-sub);
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-item:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-item.active {
  color: var(--indigo);
  background: var(--surface-tint);
  font-weight: 600;
}

.main {
  flex: 1;
  max-width: 780px;
  padding: 56px 56px 96px;
}

.content { line-height: 1.75; color: var(--text); font-family: var(--font-body); }
.content h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.1;
}
.content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
.content h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}
.content p { margin-bottom: 16px; color: var(--text-soft); }
.content a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.content a:hover { color: var(--violet); }
.content ul, .content ol { margin-bottom: 16px; padding-left: 24px; color: var(--text-soft); }
.content li { margin-bottom: 4px; }
.content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--violet);
  border: 1px solid rgba(124, 58, 237, 0.18);
}
.content pre {
  background: #0B1226;
  border: 1px solid #1A2548;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #CDD3E0;
  font-size: 13px;
  line-height: 1.65;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 14px;
}
.content th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--rule-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}
.content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--text-soft);
}
.content blockquote {
  border-left: 3px solid var(--violet);
  padding: 4px 18px;
  margin-bottom: 16px;
  background: var(--surface-tint);
  border-radius: 0 8px 8px 0;
  color: var(--text-soft);
}
.content strong { color: var(--text); }
.content img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--rule);
  margin: 18px 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .models-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .start-options { grid-template-columns: 1fr; }
  .integrations-text { grid-template-columns: 1fr; }
  .models-grid-api { max-width: none; }
}

@media (max-width: 640px) {
  .models-grid, .models-grid-api { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 0 20px; }

  .nav-links { gap: 14px; }
  .nav-links li:not(:last-child) { display: none; }

  .hero { padding-top: 130px; padding-bottom: 80px; }

  .step { gap: 18px; }
  .step-num { width: 38px; height: 38px; font-size: 0.9rem; }
  .step-detail { grid-template-columns: 1fr; }

  .browser-modes,
  .browser-modes-three { grid-template-columns: 1fr; padding-left: 0; }
  .bm-or { justify-self: center; }

  .start-card { padding: 28px 24px; }

  footer .container { flex-direction: column; align-items: flex-start; text-align: left; gap: 18px; }

  .compare-table thead th, .compare-table tbody td {
    padding: 16px 16px;
    font-size: 0.85rem;
  }
  .compare-table td.feat { width: 38%; }

  .sidebar { display: none; }
  .main { padding: 32px 20px; }
}
