/* clickwrap website — self-contained, no external assets. Light/dark via prefers-color-scheme. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --border: #e6e8ec;
  --text: #14171f;
  --text-soft: #545b6b;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --accent-contrast: #ffffff;
  --code-bg: #0f1222;
  --code-text: #e7e9f3;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e16;
    --bg-soft: #12151f;
    --bg-card: #141824;
    --border: #262b3a;
    --text: #eef0f6;
    --text-soft: #a2a9bb;
    --accent: #8b8cff;
    --accent-soft: #1b1e34;
    --accent-contrast: #0c0e16;
    --code-bg: #05060c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 1rem;
}
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.4rem); }
.site-nav a { color: var(--text-soft); font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta { color: var(--accent) !important; font-weight: 600 !important; }
@media (max-width: 640px) { .site-nav a:not(.nav-cta) { display: none; } }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--border); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.section-lede { color: var(--text-soft); max-width: 62ch; font-size: 1.02rem; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  max-width: 16ch;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 60ch; margin: 0 0 2rem; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hero-sub { color: var(--text-soft); font-size: 0.98rem; max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.12rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }
.card .mono { color: var(--text); }

/* Code */
.code {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
}
.code code { white-space: pre; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.cta-band p { color: var(--text-soft); max-width: 52ch; margin: 0 auto 1.6rem; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--text-soft); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
