/* AIVerse teaser site — shares the warm Anthropic-inspired design language used by the
   ModelWatch teaser so the two read as one product family. */

:root {
  --accent: #c15f3c;
  --accent-hover: #a84e30;
  --accent-gradient: linear-gradient(135deg, #c15f3c 0%, #e8956f 100%);
  --bg: #faf9f7;
  --bg-elevated: #fffcf8;
  --bg-card: #f3f1ec;
  --bg-sunken: #efece5;
  --border: #e8e4dc;
  --border-strong: #d4cfc4;
  --text-primary: #1a1614;
  --text-secondary: #5c534a;
  --text-muted: #8a8178;
  --red: #b91c1c;
  --amber: #b45309;
  --green: #047857;
  --blue: #1d4ed8;
  --violet: #6d28d9;

  /* Anthropic's type system uses two proprietary faces that aren't licensable, so these
     are their documented fallback stacks: real faces if the visitor has them cached,
     graceful degradation otherwise. */
  --font: 'Anthropic Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Anthropic Serif', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fffcf8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-word { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.015em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { padding: 8px 16px !important; font-size: 13px !important; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
}
.btn-accent {
  background: var(--accent-gradient);
  color: #fffcf8;
  box-shadow: 0 8px 24px rgba(193, 95, 60, 0.25);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(193, 95, 60, 0.35); }
.btn-ghost { border-color: var(--border); color: var(--text-primary); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1680px;
  margin: 0 auto;
  padding: 100px 24px 56px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0%, rgba(193, 95, 60, 0.14), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(193, 95, 60, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-family: var(--font-display);
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { font-size: 13px; color: var(--text-muted); }

/* ---------- Shared section furniture ---------- */

.section {
  max-width: 1680px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  text-align: center;
}
.section-alt { background: var(--bg-card); max-width: none; }
.section-alt > * { max-width: 1680px; margin-left: auto; margin-right: auto; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section h2 em { font-style: normal; color: var(--accent); }
.section-lede {
  font-family: var(--font-display);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
}
.hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ---------- Frame chrome (shared by all three interactives) ---------- */

.frame {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 30px 80px rgba(26, 22, 20, 0.14);
  overflow: hidden;
  text-align: left;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-amber { background: #fbbf24; }
.dot-green { background: #34d399; }
.frame-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Interactive 1: agent x-ray lens ---------- */

.xray-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 18px;
  cursor: none;
  user-select: none;
}
.xray-base { position: relative; }
.xray-detail {
  position: absolute;
  inset: 0;
  clip-path: circle(0px at -1000px -1000px);
  background: var(--bg-elevated);
}
.lens {
  position: absolute;
  top: 0; left: 0;
  width: 240px; height: 240px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  border: 2px solid rgba(193, 95, 60, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 252, 248, 0.9) inset, 0 18px 40px rgba(26, 22, 20, 0.22);
}

.chat {
  padding: 26px 30px 30px;
  min-height: 430px;
}
.chat-turn { display: flex; gap: 14px; margin-bottom: 20px; }
.avatar {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.avatar-user { background: var(--bg-sunken); color: var(--text-secondary); }
.avatar-agent { background: var(--accent-gradient); color: #fffcf8; }
.chat-name { font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.chat-text { font-size: 14.5px; line-height: 1.62; color: var(--text-secondary); max-width: 780px; }
.chat-text strong { color: var(--text-primary); }
.chat-text ul { margin: 9px 0 0; padding-left: 18px; }
.chat-text li { margin-bottom: 5px; }

/* the annotated layer under the lens */
.xray-detail .chat-text { color: var(--text-muted); }
.trace-block {
  margin-top: 12px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  background: rgba(193, 95, 60, 0.055);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.trace-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trace-key { color: var(--accent); font-weight: 700; }
.trace-tool { color: var(--violet); font-weight: 700; }
.trace-ok { color: var(--green); font-weight: 700; }
.trace-meta { color: var(--text-muted); }

/* ---------- Interactive 2: orchestration timeline ---------- */

.orch {
  max-width: 1180px;
  margin: 0 auto;
}
.orch-body { padding: 26px 30px 32px; }
.orch-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 30px 18px;
}
.orch-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  opacity: 0.28;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.orch-step:last-child { border-bottom: none; }
.orch-step.on { opacity: 1; transform: translateY(0); }
.orch-node {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg-sunken);
  font-size: 15px;
}
.orch-step.on .orch-node { background: rgba(193, 95, 60, 0.14); }
.orch-title { font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.orch-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.orch-desc code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-sunken);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--violet);
}
.orch-ms {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}
.orch-step.on .orch-ms { color: var(--accent); }

/* ---------- Interactive 3: provider switcher ---------- */

.switcher { max-width: 1180px; margin: 0 auto; }
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fffcf8;
  box-shadow: 0 8px 20px rgba(193, 95, 60, 0.24);
}
.switch-body { padding: 26px 30px 30px; }
.switch-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
}
@media (max-width: 860px) { .switch-grid { grid-template-columns: 1fr; } }
.switch-answer { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.switch-answer strong { color: var(--text-primary); }
.switch-meta { display: flex; flex-direction: column; gap: 10px; }
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 13px;
}
.meta-label { color: var(--text-muted); }
.meta-value { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }
.unchanged {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(193, 95, 60, 0.06);
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 0 8px 8px 0;
}
.unchanged code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26, 22, 20, 0.09); }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ---------- Full feature list ---------- */

.fullstack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
}
.fs-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 12px;
}
.fs-col ul { list-style: none; margin: 0; padding: 0; }
.fs-col li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}
.fs-col li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 18px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; }

/* The template-library count is the headline number, so it gets a wider cell. */
.stat-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.09), rgba(232, 149, 111, 0.05));
  border-color: rgba(193, 95, 60, 0.32);
}
.stat-hero .stat-value { font-size: clamp(44px, 6vw, 62px); letter-spacing: -0.02em; }
.stat-hero .stat-label { font-size: 14.5px; color: var(--text-primary); }

@media (max-width: 700px) {
  .stat-hero { grid-column: span 1; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--text-primary);
  color: var(--bg);
  padding: 74px 24px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 0 14px;
}
.cta-band p {
  font-family: var(--font-display);
  color: #cfc6bc;
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 24px 44px;
  text-align: center;
}
.footer-brand { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.footer-note { font-size: 12.5px; color: var(--text-muted); }
