:root {
  --bg: #faf9fc;
  --bg-alt: #f4f2f8;
  --panel: #ffffff;
  --text: #1c1b22;
  --muted: #6b6878;
  --line: #e2dfea;
  --accent: #6d28d9;
  --accent-2: #8b5cf6;
  --accent-soft: #ede9fe;
  --pipe: #d8d4e2;
  --dot: #d8d4e2;
  --code-bg: #1e1d25;
  --code-text: #ece9f4;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15141a;
    --bg-alt: #1a1920;
    --panel: #1e1d25;
    --text: #ece9f4;
    --muted: #9b97ab;
    --line: #2f2d38;
    --accent: #a78bfa;
    --accent-2: #c4b5fd;
    --accent-soft: #2a2340;
    --pipe: #3a3846;
    --dot: #2a2833;
    --code-bg: #0f0e13;
    --code-text: #ece9f4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
@media (prefers-color-scheme: dark) { .btn { color: #15141a; } }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--accent); }
.btn-light { background: #fff; color: #5b21b6; }

/* hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 800; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; }
}

/* hero canvas */
.canvas {
  margin: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 8px;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.canvas svg { display: block; width: 100%; height: auto; }
.canvas .dot { fill: var(--dot); }
.canvas .pipes path { fill: none; stroke: var(--pipe); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.canvas .flow use {
  fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 2 14; animation: flow 1.2s linear infinite;
}
.canvas .node text { fill: var(--text); font-size: 13px; font-weight: 600; text-anchor: middle; }
.canvas .node circle:first-child { filter: drop-shadow(0 4px 6px rgb(0 0 0 / .18)); }
@keyframes flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) {
  .canvas .flow use { animation: none; }
  html { scroll-behavior: auto; }
}

/* pillars */
.pillars { padding: 24px 0 64px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--panel);
  border: 1px solid var(--line);
}
.pillar .big { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .pillar-grid { grid-template-columns: 1fr; } }

/* sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.ficon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft);
}
.ficon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; }
.steps li { position: relative; }
.steps .num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .steps .num { color: #15141a; } }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* make import */
.make { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.code {
  margin: 0; padding: 24px; border-radius: var(--radius); overflow-x: auto;
  background: var(--code-bg); color: var(--code-text);
  font: 13.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.code .c { color: #8b87a0; }
.code .k { color: #c4b5fd; }
.code .s { color: #86efac; }
.code .n { color: #fcd34d; }
@media (max-width: 900px) { .make { grid-template-columns: 1fr; } }

/* final cta */
.cta { padding: 0 0 88px; }
.spacer { height: 88px; }
.cta-inner {
  text-align: center; color: #fff; border-radius: 24px; padding: 64px 24px;
  background: radial-gradient(circle at 20% 0%, #8b5cf6, transparent 60%), linear-gradient(135deg, #6d28d9, #4c1d95);
}
.cta-inner img { margin-bottom: 20px; border-radius: 15px; box-shadow: 0 0 0 4px rgb(255 255 255 / .2); }
.cta-inner p { opacity: .85; font-size: 1.1rem; margin-bottom: 28px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer-apps { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.footer-apps a { color: var(--muted); }
.footer-apps a:hover { color: var(--text); }

/* inner pages */
.small { font-size: 0.9rem; }
.page-head { padding: 40px 0 48px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 85%); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin: 0; }
.page-head .lede { margin-top: 18px; }
.page-head .eyebrow { margin-bottom: 8px; }
.head-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.small-row { gap: 12px; margin-bottom: 8px; }
.small-row h2 { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }

.section.tight { padding: 56px 0; }
.h-sm { font-size: 1.3rem; margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head .section-lede { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.panel { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.plain { margin: 0 0 12px; padding-left: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* connection tiles (monograms, not third-party logos) */
.tile {
  --tile: var(--accent);
  display: inline-grid; place-items: center; flex: none;
  background: var(--tile); color: #fff; font-weight: 800; letter-spacing: -0.03em;
  width: 44px; height: 44px; border-radius: 12px; font-size: 0.95rem;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15);
}
.tile-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 0.72rem; }
.tile-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.5rem; }
.tile-clock { background: var(--muted); font-size: 0.95rem; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 40px; }
.app-grid:last-child { margin-bottom: 0; }
.app-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--text);
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.app-card span { display: grid; min-width: 0; }
.app-card small { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.group-head { margin: 32px 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.group-head .muted { font-weight: 500; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mod-list { display: grid; gap: 8px; margin: 16px 0 12px; }
.mod {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text);
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
}
.mod:hover { border-color: var(--accent); }
.mod-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.mod-name { font-weight: 550; font-size: 0.95rem; }
.badge { flex: none; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em; background: var(--accent-soft); color: var(--accent); }
.badge-trigger { background: color-mix(in srgb, #e11d48 14%, transparent); color: #e11d48; }
.badge-search { background: color-mix(in srgb, #0284c7 14%, transparent); color: #0284c7; }
.badge-universal { background: color-mix(in srgb, #0f766e 14%, transparent); color: #0f766e; }
@media (prefers-color-scheme: dark) {
  .badge-trigger { color: #fb7185; } .badge-search { color: #38bdf8; } .badge-universal { color: #2dd4bf; }
}

/* pair pages */
.pair-tiles { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.pipe { flex: none; width: 32px; height: 8px; background: var(--pipe); position: relative; overflow: hidden; }
.pipe::after {
  content: ""; position: absolute; inset: 3px 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-2) 0 3px, transparent 3px 12px);
  animation: pipe-flow 0.9s linear infinite;
}
.pipe-lg { width: 64px; height: 12px; }
.pipe-lg::after { inset: 5px 0; }
@keyframes pipe-flow { from { background-position: 0 0; } to { background-position: 12px 0; } }
@media (prefers-reduced-motion: reduce) { .pipe::after { animation: none; } }

.recipes { display: grid; gap: 12px; margin-top: 28px; }
.recipe {
  display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; padding: 16px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.step { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 10px;
  color: var(--text); border: 1px solid var(--line); background: var(--bg); }
a.step:hover { border-color: var(--accent); }
.step span { display: grid; line-height: 1.25; }
.step b { font-size: 0.9rem; font-weight: 600; }
.step small { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 600px) {
  .recipe { flex-direction: column; align-items: stretch; }
  .recipe .pipe { width: 8px; height: 18px; margin-left: 20px; }
  .recipe .pipe::after { display: none; }
}

/* pricing */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.plan {
  display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.plan-highlight {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--panel);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--accent) 50%, transparent);
}
.plan-name { font-size: 1.15rem; margin: 0 0 12px; }
.plan-price { margin: 0 0 8px; font-size: 1rem; }
.plan-price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan-summary { font-size: 0.95rem; min-height: 4.8em; }
.plan .btn { text-align: center; margin-bottom: 24px; }
.plan-inherits { font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.plan .checks { font-size: 0.95rem; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } .plan-summary { min-height: 0; } }
