:root {
  --bg: #ffffff;
  --bg-alt: #faf6f2;
  --ink: #15130f;
  --ink-dim: #6b655e;
  --line: #ece5dc;
  --orange: #ff5722;
  --orange-dark: #d6431a;
  --orange-soft: #fff0e8;
  --card: #ffffff;
  --ok: #1a9e5c;
  --ok-soft: #e9f9f0;
  --warn: #b9790a;
  --warn-soft: #fdf3e0;
  --danger: #d64545;
  --danger-soft: #fdeceb;
  --shadow-sm: 0 1px 2px rgba(21, 19, 15, 0.05);
  --shadow-md: 0 24px 48px -28px rgba(21, 19, 15, 0.35);
  --radius: 18px;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
code, pre { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.logo-icon { display: block; flex-shrink: 0; }
.nav-links { display: flex; gap: 26px; font-size: 14px; flex: 1; justify-content: center; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 700px) {
  .nav-links { display: none; }
  .btn-dark { font-size: 12px; padding: 8px 12px; }
}

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-dark {
  background: radial-gradient(120% 160% at 30% 0%, #ff8a4d 0%, #15130f 55%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 87, 34, 0.55);
  font-size: 13px;
  padding: 9px 16px;
}
.btn-dark .star { color: #ff8a4d; }
.btn-dark:hover { box-shadow: 0 10px 24px -6px rgba(255, 87, 34, 0.7); }
.btn-primary {
  background: radial-gradient(120% 160% at 30% 0%, #ff8a4d 0%, #15130f 55%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 87, 34, 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(255, 87, 34, 0.75); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.dot-icon { opacity: .8; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid #ffd9c2;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 22px;
}
.pill-icon { color: var(--orange); }

.eyebrow {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow-center {
  text-align: center;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 56px;
}
.hero-left h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  margin: 0;
}
.hero-left h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.hero-right { padding-top: 8px; }
.lede { color: var(--ink-dim); font-size: 17px; max-width: 460px; margin: 0 0 26px; }

.install-row { display: flex; margin-bottom: 22px; }
.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 10px 16px;
  font-size: 14px;
}
.install-cmd .prompt { color: var(--ink-dim); }
.install-cmd code { color: var(--ink); }
.copy-btn {
  background: #fff;
  color: var(--orange-dark);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
.copy-btn:hover { border-color: var(--orange); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Orchestration visual ---------- */
.orchestration {
  position: relative;
  max-width: 940px;
  height: 660px;
  margin: 0 auto;
  padding: 0 24px;
}
.orch-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}
.orch-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.orch-lines path { fill: none; stroke: #ffbfa0; stroke-width: 2; }

.orch-node {
  position: absolute;
  z-index: 2;
}
.orch-center {
  left: 460px;
  top: 290px;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 14px var(--orange-soft), var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orch-card {
  position: absolute;
  z-index: 2;
  width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.orch-card--a { left: 40px; top: 120px; }
.orch-card--b { left: 90px; top: 270px; }
.orch-card-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.tag-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tag-dot.tag-red { background: var(--danger); }
.tag-dot.tag-orange { background: var(--orange); }
.orch-line-item { display: flex; align-items: center; gap: 8px; color: var(--ink-dim); margin-bottom: 6px; font-family: var(--mono); font-size: 12px; }
.orch-line-item:last-child { margin-bottom: 0; }
.chip { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.chip-fail { background: var(--danger-soft); color: var(--danger); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }

.orch-icon {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-dim);
}
.orch-icon--hub {
  left: 720px; top: 150px; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark); font-size: 13px;
  box-shadow: 0 0 0 10px #fff5ef, var(--shadow-md);
}
.orch-icon--float1 { left: 830px; top: 100px; width: 52px; height: 52px; font-size: 11px; }
.orch-icon--float2 { left: 860px; top: 230px; width: 52px; height: 52px; font-size: 13px; }
.orch-icon--float3 { left: 800px; top: 330px; width: 52px; height: 52px; font-size: 18px; color: var(--orange); }
.orch-icon--float4 { left: 700px; top: 380px; width: 52px; height: 52px; font-size: 16px; color: var(--ok); }

.orch-code {
  position: absolute;
  left: 460px;
  top: 470px;
  transform: translateX(-50%);
  width: 340px;
  background: #12100c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.orch-code .code-block-header { border-bottom-color: #2a2620; }
.orch-code pre { margin: 0; padding: 14px 16px; font-size: 12px; line-height: 1.6; color: #e6e1d8; overflow-x: auto; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orchestration { height: auto; padding: 0 16px 40px; }
  .orch-badge { position: static; transform: none; display: inline-flex; margin: 0 auto 28px; }
  .orch-lines { display: none; }
  .orch-node, .orch-card, .orch-icon, .orch-code {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 14px;
  }
  .orch-center { width: 92px; height: 92px; }
  .orch-icon { max-width: 160px; display: inline-flex; margin: 0 6px 10px; }
  .orch-icon--hub { width: 100px; max-width: 100px; height: 100px; border-radius: 50%; }
}

/* ---------- Compare ---------- */
.compare { padding: 72px 0; background: var(--bg-alt); }
.compare h2 {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 40px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.compare-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.compare-card h3 { margin: 0 0 18px; font-size: 17px; }
.compare-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.compare-card li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; color: var(--ink); }
.x-icon, .check-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.x-icon { background: var(--danger-soft); color: var(--danger); }
.check-icon { background: var(--ok-soft); color: var(--ok); }
.compare-metric { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.metric-label { font-size: 12px; color: var(--ink-dim); }
.metric-value { font-weight: 700; font-size: 15px; }
.metric-bad { color: var(--danger); }
.metric-good { color: var(--ok); }
.vs-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
@media (max-width: 700px) {
  .compare-grid { grid-template-columns: 1fr; }
  .vs-badge { position: static; transform: none; margin: -10px auto; }
}

/* ---------- Features ---------- */
.features { padding: 88px 0; }
.features h2, .quickstart h2, .dashboard-cta h2, .faq h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 44px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 16px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.card code { color: var(--orange-dark); font-size: 13px; }

/* ---------- Integrations row ---------- */
.integrations { padding: 0 0 88px; }
.integrations h2 {
  text-align: center;
  font-size: clamp(20px, 2.8vw, 26px);
  margin: 0 0 36px;
}
.integration-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.int-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--ink-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.int-chip:hover { color: var(--ink); border-color: #ddd3c6; }
.int-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------- Quickstart / two-col ---------- */
.quickstart, .dashboard-cta { padding: 72px 0; border-top: 1px solid var(--line); }
.dashboard-cta { background: var(--bg-alt); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.two-col h2 { text-align: left; margin: 0 0 14px; max-width: none; }
.two-col p { color: var(--ink-dim); margin: 0 0 18px; }
.two-col.reverse { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse > *:first-child { order: 2; }
}

.code-block {
  background: #12100c;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.code-block-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2620;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff6259; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.code-filename { margin-left: 10px; color: #8b8378; font-size: 12px; }
.code-block pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.65; color: #e6e1d8; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) {
  .code-block pre { font-size: 11.5px; padding: 16px; }
}
.tok-kw { color: #ff9d6c; }
.tok-str { color: #9fdb9a; }
.tok-num { color: #f8c76b; }
.tok-comment { color: #8b8378; font-style: italic; }

/* Dashboard mockup */
.dashboard-visual { display: flex; justify-content: center; }
.mock-window {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.mock-header { display: flex; gap: 6px; margin-bottom: 12px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
  margin-bottom: 6px;
  font-size: 12px;
}
.mock-pill { padding: 2px 8px; border-radius: 4px; font-weight: 700; font-family: var(--mono); font-size: 11px; }
.mock-pill.fail { background: var(--danger-soft); color: var(--danger); }
.mock-pill.warn { background: var(--warn-soft); color: var(--warn); }
.mock-pill.ok { background: var(--ok-soft); color: var(--ok); }
.mock-url { color: var(--ink-dim); font-family: var(--mono); }
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mock-bars span { flex: 1; background: var(--orange); border-radius: 3px 3px 0 0; opacity: 0.85; }

/* ---------- FAQ ---------- */
.faq { padding: 88px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 780px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--ink-dim); margin: 12px 0 0; font-size: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 96px 0; background: var(--bg-alt); }
.cta-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 12px; }
.cta-banner p { color: var(--ink-dim); margin: 0 0 28px; }
.cta-banner .cta-row { justify-content: center; }
.cta-float {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 16px;
}
.cta-float--1 { top: -10px; left: 8%; }
.cta-float--2 { bottom: -6px; right: 10%; }
@media (max-width: 620px) { .cta-float { display: none; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 24px 32px; border-top: 1px solid var(--line); }
.footer-say { color: var(--ink-dim); font-size: 14px; margin: 0 0 6px; }
.footer-big-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 5.5vw, 44px);
  color: var(--ink);
  margin-bottom: 48px;
}
.footer-big-link:hover { color: var(--orange-dark); }
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.footer-col h4 { margin: 0 0 14px; font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink-dim); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; color: var(--ink-dim); font-size: 13px; }
.footer-credit { color: var(--ink-dim); text-align: center; margin: 24px 0 0; }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--orange-dark); }
