/* CrawlPlant — site styles. Plain CSS, no build step. */

:root {
  --bg: #f6f9f8;
  --surface: #ffffff;
  --surface-2: #eef4f3;
  --border: #dbe6e4;
  --text: #0d1b1e;
  --muted: #4a5e61;
  --teal: #0f5257;
  --teal-hover: #0b4145;
  --teal-ink: #0f5257;
  --teal-soft: #e2eeed;
  --on-teal: #ffffff;
  --orange: #ff8a3d;
  --orange-ink: #a64a0b;
  --orange-soft: #fff0e5;
  --ink: #0a1314;
  --ink-2: #111d1f;
  --ink-border: #213336;
  --ink-text: #e6efee;
  --ink-muted: #9fb3b1;
  --ok: #1b8a57;
  --dot: rgba(15, 82, 87, 0.13);
  --glow: rgba(15, 82, 87, 0.12);
  --shadow: 0 1px 2px rgba(13, 27, 30, 0.04), 0 8px 24px -12px rgba(13, 27, 30, 0.12);
  --radius: 18px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1113;
    --surface: #0f1a1c;
    --surface-2: #132326;
    --border: #1f3337;
    --text: #e6efee;
    --muted: #9ab0ae;
    --teal: #5cb8af;
    --teal-hover: #74c7bf;
    --teal-ink: #74c7bf;
    --teal-soft: #12302f;
    --on-teal: #04211f;
    --orange-ink: #ffa566;
    --orange-soft: #2a1a0f;
    --ink: #050a0b;
    --ink-2: #0c1517;
    --ok: #3ccf8e;
    --dot: rgba(116, 199, 191, 0.10);
    --glow: rgba(92, 184, 175, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1113;
  --surface: #0f1a1c;
  --surface-2: #132326;
  --border: #1f3337;
  --text: #e6efee;
  --muted: #9ab0ae;
  --teal: #5cb8af;
  --teal-hover: #74c7bf;
  --teal-ink: #74c7bf;
  --teal-soft: #12302f;
  --on-teal: #04211f;
  --orange-ink: #ffa566;
  --orange-soft: #2a1a0f;
  --ink: #050a0b;
  --ink-2: #0c1517;
  --ok: #3ccf8e;
  --dot: rgba(116, 199, 191, 0.10);
  --glow: rgba(92, 184, 175, 0.10);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 80px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--font); cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); }
.btn svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav-links { display: none; gap: 28px; margin-left: 16px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav-cta { display: none; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--teal); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: grid; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 12px 0 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; color: var(--text); font-size: 17px; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { text-decoration: none; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; width: 720px; height: 720px; right: -200px; top: -220px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(40px, 11vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .accent { color: var(--teal-ink); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 340px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero-art { justify-self: end; max-width: 540px; margin-right: -24px; }
}

@media (max-width: 600px) {
  .hero-art text { font-size: 21px; }
  .hero-art text.sub { display: none; }
}

/* sprout animation */
.grow-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 2.6s cubic-bezier(.6, .1, .2, 1) .2s forwards; }
.grow-node { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.grow-label { opacity: 0; animation: fade .6s ease forwards; }
.grow-leaf { transform-box: fill-box; transform-origin: bottom center; transform: scale(0); animation: pop .7s cubic-bezier(.3, 1.5, .5, 1) 2.7s forwards; }
.sap { opacity: 0; animation: fade .4s ease 3.2s forwards; }
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- live stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 20px; display: grid; gap: 6px; border-bottom: 1px solid var(--border); }
.stat:nth-child(odd) { border-right: 1px solid var(--border); }
.stat-label { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--muted); }
.stat-value { font-family: var(--mono); font-size: clamp(26px, 6vw, 34px); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; background: var(--surface-2); font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.status[data-state="degraded"] .pulse, .status[data-state="degraded"] .pulse::after { background: var(--orange); }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.live-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 26px 28px; border-bottom: 0; border-right: 1px solid var(--border); }
  .stat:nth-child(4) { border-right: 0; }
  .stats-foot { border-top: 1px solid var(--border); padding: 14px 28px; }
}

/* ---------- actor catalog ---------- */
.catalog { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.actor-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.actor-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); }
.actor-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.actor-icon { width: 64px; height: 64px; border-radius: 16px; }
.actor-card h3 { font-size: 19px; font-weight: 600; }
.actor-card p { color: var(--muted); font-size: 15px; }
.actor-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--border); }
.price { font-family: var(--mono); font-size: 13px; color: var(--text); }
.price b { font-weight: 500; }
.actor-link { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.actor-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 500 12px/1.4 var(--mono); white-space: nowrap; border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge-progress { color: var(--orange-ink); background: var(--orange-soft); }
.badge-planned { color: var(--muted); border-color: var(--border); }
.actor-card.is-muted { box-shadow: none; background: transparent; }
.actor-card.is-muted .actor-icon { filter: saturate(.35); opacity: .75; }
.actor-card.is-muted h3 { color: var(--muted); }
.actor-card.is-muted:hover { transform: none; }
.actor-card.suggest {
  border-style: dashed; border-width: 1.5px; background: transparent; box-shadow: none;
  justify-content: center; align-items: flex-start;
}
.suggest-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); }
.suggest-icon svg { width: 26px; height: 26px; }

/* ---------- pipeline ---------- */
.pipeline { position: relative; display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.pipeline::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(var(--orange), var(--teal) 50%, var(--orange));
  border-radius: 2px;
}
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.node {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 500 12px/1 var(--mono);
  background: var(--orange); color: #3a1804;
  box-shadow: 0 0 0 6px var(--bg);
}
.step:nth-child(even) .node { background: var(--teal); color: var(--on-teal); }
.step h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (min-width: 1000px) {
  .pipeline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .pipeline::before { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--orange), var(--teal) 50%, var(--orange)); }
  .step { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; }
  .step h3 { margin-top: 4px; }
}

/* ---------- principles ---------- */
.principles { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); }
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 18px; font-weight: 600; margin-top: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 12px/1 var(--mono); }
.chain span { padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.chain i { font-style: normal; color: var(--muted); }

/* ---------- AI agents (dark band) ---------- */
.band-dark { background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; border-block: 1px solid var(--ink-border); }
.band-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(116, 199, 191, 0.09) 1.2px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.band-dark .container { position: relative; }
.band-dark .eyebrow { color: #74c7bf; }
.band-dark .section-head p { color: var(--ink-muted); }
.agents-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .agents-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } .agents-grid .section-head { margin-bottom: 0; } }
.agents-points { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 15px; }
.agents-points li { display: flex; gap: 10px; }
.agents-points li::before { content: ""; flex: none; margin-top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.terminal { border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-border); overflow: hidden; }
.terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ink-border); font: 12px/1 var(--mono); color: var(--ink-muted); }
.copy-row { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--ink-border); }
.copy-row code { flex: 1; min-width: 0; font-size: 14px; color: #ffffff; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copy-btn {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ink-border);
  background: #16272a; color: var(--ink-text); font: 500 13px/1 var(--font); display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.copy-btn:hover { border-color: #74c7bf; }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.copied { color: #3ccf8e; border-color: #3ccf8e; }
.prompt { padding: 18px 16px 20px; display: grid; gap: 14px; font: 14px/1.6 var(--mono); }
.prompt .who { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.prompt .you { color: #ffffff; }
.prompt .you::before { content: "› "; color: var(--orange); }
.prompt .tool { color: #74c7bf; }

/* ---------- pricing ---------- */
.pricing {
  display: grid; gap: 28px; padding: 32px 24px; border-radius: 24px;
  background: radial-gradient(120% 140% at 100% 0%, var(--teal-soft), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.pricing h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; }
.pricing-points { display: grid; gap: 12px; }
.pp { display: flex; align-items: baseline; gap: 12px; font-size: 17px; }
.pp .mono { font-size: 12px; color: var(--muted); min-width: 22px; }
.pricing-note { color: var(--muted); }
@media (min-width: 900px) {
  .pricing { grid-template-columns: 1.1fr 1fr auto; align-items: center; padding: 48px; gap: 48px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: transform .25s, background-color .25s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--teal-soft); }
.faq .answer { padding: 0 48px 22px 0; color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--text); }
.small-print { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
