/* ModelWatch teaser site — standalone, disposable marketing 1-pager */
/* Palette: ModelWatch's "Anthropic" theme preset, light variant
   (frontend/src/lib/design/themes/themes.css [data-theme-preset='anthropic']) */

:root {
  --accent: #c15f3c;
  --accent-hover: #a84e30;
  --accent-gradient: linear-gradient(135deg, #c15f3c 0%, #e8956f 100%);
  --bg: #faf9f7;
  --bg-elevated: #fffcf8;
  --bg-card: #f3f1ec;
  --border: #e8e4dc;
  --border-strong: #d4cfc4;
  --text-primary: #1a1614;
  --text-secondary: #5c534a;
  --text-muted: #8a8178;
  --red: #b91c1c;
  --amber: #b45309;
  --green: #047857;
  /* Anthropic's actual type system (anthropic.com) uses two proprietary faces —
     Anthropic Sans for structural headings/nav/UI, Anthropic Serif for display
     headlines *and* running body copy. The faces themselves aren't licensable,
     so these are their own documented fallback stacks: if a visitor's browser
     happens to have the real faces cached from anthropic.com they'll be used,
     otherwise it degrades gracefully to the same fallbacks Anthropic ships. */
  --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;
}

* { 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.8);
  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;
}
.logo-word { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.015em; }
.nav-links { display: flex; gap: 28px; }
.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; }

/* ---------- 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;
}
.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);
}
.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 60px;
  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;
  color: var(--text-primary);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-family: var(--font-display);
  max-width: 640px;
  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); }

/* ---------- Mockup / magnifier section ---------- */

.mockup-section {
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  text-align: center;
}
.mockup-heading h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.mockup-heading p {
  font-family: var(--font-display);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
}

.mockup-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 18px;
  cursor: none;
  user-select: none;
}

.mockup-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;
}

.mockup-base { position: relative; }
.mockup-detail {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  clip-path: circle(0px at -1000px -1000px);
  background: var(--bg-elevated);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-amber { background: #fbbf24; }
.dot-green { background: var(--green); }
.mockup-url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "SF Mono", Menlo, monospace;
}

.mockup-body { padding: 24px; }

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.kpi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.kpi-value { font-size: 22px; font-weight: 700; font-family: "SF Mono", Menlo, monospace; }
.kpi-delta { font-size: 11px; margin-top: 6px; }
.kpi-delta.up { color: var(--accent); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.neutral { color: var(--text-muted); }
.kpi-detail { border-color: rgba(193, 95, 60, 0.35); }
.kpi-detail-sub { font-size: 10.5px; margin-top: 6px; color: var(--accent); line-height: 1.4; }

.mockup-chart-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.mockup-chart, .mockup-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.chart-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; }
.chart-svg { width: 100%; height: 100px; }
.chart-area { fill: rgba(193, 95, 60, 0.12); stroke: none; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; }

.provider-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.provider-name { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-bar { display: block; height: 6px; border-radius: 4px; background: rgba(26, 22, 20, 0.06); overflow: hidden; }
.provider-bar span { display: block; height: 100%; background: var(--accent-gradient); border-radius: 4px; }
.provider-val { text-align: right; font-family: "SF Mono", Menlo, monospace; color: var(--text-primary); }

.mockup-list-detail .provider-row { grid-template-columns: 1fr 70px; }

.detail-rows { display: flex; flex-direction: column; gap: 10px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 12px;
  background: rgba(193, 95, 60, 0.06);
  border: 1px solid rgba(193, 95, 60, 0.18);
  border-radius: 8px;
  color: var(--text-secondary);
}
.detail-row b { color: var(--accent); font-family: "SF Mono", Menlo, monospace; }

/* ---------- Lens ---------- */

.lens {
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 220px;
  transform: translate(-1000px, -1000px);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lens-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(26, 22, 20, 0.5);
  box-shadow:
    0 0 0 1px rgba(193, 95, 60, 0.45),
    0 10px 40px rgba(26, 22, 20, 0.25),
    inset 0 0 40px rgba(26, 22, 20, 0.05);
}
.lens-handle {
  position: absolute;
  width: 10px;
  height: 70px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(26,22,20,0.5), rgba(26,22,20,0.15));
  bottom: -50px;
  right: 6px;
  transform: rotate(45deg);
  transform-origin: top center;
}

.mockup-hint {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
}

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

.features { max-width: 1680px; margin: 0 auto; padding: 40px 24px 100px; }
.section-title { font-family: var(--font-display); text-align: center; font-size: 30px; margin: 0 0 44px; letter-spacing: -0.01em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(193, 95, 60, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26, 22, 20, 0.08);
}
.feature-icon { font-size: 28px; margin-bottom: 14px; display: inline-block; transition: transform 0.25s ease; }
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }
.feature-card h3 { font-size: 17px; margin: 0 0 10px; }
.feature-card p { font-family: var(--font-display); font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---------- Full feature list (block grid) ---------- */

.fullstack {
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  text-align: center;
}
.fullstack-sub {
  font-family: var(--font-display);
  color: var(--text-secondary);
  max-width: 600px;
  margin: -24px auto 44px;
  font-size: 17px;
  line-height: 1.6;
}
.block-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.feature-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-block:hover {
  border-color: rgba(193, 95, 60, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26, 22, 20, 0.08);
}
.block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.block-icon { font-size: 22px; line-height: 1; transition: transform 0.25s ease; }
.feature-block:hover .block-icon { transform: scale(1.12) rotate(-4deg); }
.feature-block h3 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.005em;
}
.feature-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-block li {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.feature-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

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

.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.stats-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}
.stat-num { font-size: 34px; font-weight: 700; color: var(--accent); font-family: "SF Mono", Menlo, monospace; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

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

.cta-band {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.cta-band p { font-family: var(--font-display); color: var(--text-secondary); margin: 0 0 30px; font-size: 17px; }

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

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-note { margin-top: 6px; font-size: 11px; opacity: 0.7; }

/* ---------- Scroll-reveal entrance animation ---------- */
/* Cards fade + rise into place as they enter the viewport (IntersectionObserver
   toggles .is-visible in script.js). Staggered per-card via nth-child delays so
   a grid reveals left-to-right, top-to-bottom instead of popping in at once. */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.feature-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.feature-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.feature-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.feature-grid .reveal:nth-child(4) { transition-delay: 210ms; }
.feature-grid .reveal:nth-child(5) { transition-delay: 280ms; }
.feature-grid .reveal:nth-child(6) { transition-delay: 350ms; }

.block-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.block-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.block-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.block-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.block-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.block-grid .reveal:nth-child(6) { transition-delay: 300ms; }
.block-grid .reveal:nth-child(7) { transition-delay: 360ms; }
.block-grid .reveal:nth-child(8) { transition-delay: 420ms; }

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .block-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .mockup-kpis { grid-template-columns: repeat(2, 1fr); }
  .mockup-chart-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .block-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .lens { width: 150px; height: 150px; }
}
