/* Cresec — dark, bright, a little loud. One theme on purpose: the neon
   gradients are the brand, and they only read on a dark background. */
:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-2: #0d0d18;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #f5f5fc;
  --muted: #a7a9c2;
  --violet: #a78bfa;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --accent: #8b5cf6;
  --accent-ink: #ffffff;
  --error: #ff8a9a;
  --focus: #c4b5fd;
  --radius: 18px;
  --grad: linear-gradient(100deg, var(--violet), var(--blue) 35%, var(--cyan) 65%, var(--pink));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 18%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(244, 114, 182, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* a faint grid, fading out towards the bottom */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
  z-index: -1;
}
body.drawer-open { overflow: hidden; }
/* The header's full-bleed strip is 100vw wide, which counts a classic
   (non-overlay) scrollbar; clip rather than scroll sideways. clip, not
   hidden, so the sticky header keeps working. */
html, body { overflow-x: clip; }
a { color: inherit; }
main, .top-inner, footer { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { letter-spacing: -0.025em; }
::selection { background: rgba(139, 92, 246, 0.5); }

.grad {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.sub { color: var(--muted); margin: 0 0 18px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 0 8px; }
.lede strong { color: var(--ink); }

/* ── Header ─────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
}
.top::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--grad); box-shadow: 0 0 22px rgba(139, 92, 246, 0.7); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav > a, .menu-trigger { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav > a:hover, .menu-trigger:hover { color: var(--ink); }
.nav .nav-cta {
  color: #fff;
  background: linear-gradient(100deg, #7c3aed, #2563eb);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 650;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 28px rgba(124, 58, 237, 0.45);
}
.nav .nav-cta:hover { color: #fff; filter: brightness(1.12); }
.nav-cta .short { display: none; }

.menu { position: static; }
.menu-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.mega {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 26px;
  width: min(760px, 90vw);
  padding: 22px 24px;
  background: rgba(16, 16, 30, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.menu:hover .mega, .menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu:hover .caret, .menu:focus-within .caret { transform: rotate(225deg) translateY(-1px); }
.mega-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.mega li a:hover, .mega li a:focus-visible { background: var(--panel-2); }
.mega-feature { background: linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.08)); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.mega-feature a { font-weight: 700; color: var(--ink); text-decoration: none; }
.mega-feature p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); padding: 0; margin: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); z-index: 50; animation: fade 0.2s; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  overflow-y: auto;
  z-index: 51;
  padding: 16px 18px 28px;
  background: #0e0e1b;
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  animation: slide-in 0.24s ease-out;
}
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 24px; line-height: 1; margin: 0; padding: 0; cursor: pointer; }
.drawer-cta { display: block; text-align: center; padding: 12px; border-radius: 12px; background: linear-gradient(100deg, #7c3aed, #2563eb); color: #fff; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.drawer-title { margin: 18px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { padding: 11px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--muted); }
.drawer details[open] summary::after { content: "–"; }
.drawer details ul, .drawer-links { list-style: none; margin: 0; padding: 0 0 10px; }
.drawer details li a, .drawer-links a { display: block; padding: 7px 0 7px 12px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.drawer details li a:hover, .drawer-links a:hover { color: var(--ink); border-color: var(--violet); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary, .button, button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, #7c3aed, #2563eb 60%, #0891b2);
  background-size: 160% auto;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 12px 36px rgba(124, 58, 237, 0.45);
  transition: background-position 0.4s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover, .button:hover { background-position: right center; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 16px 44px rgba(124, 58, 237, 0.6); }
.btn-ghost { display: inline-flex; align-items: center; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 650; }
.btn-ghost:hover { background: var(--panel-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ── Home ───────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 22px; font-weight: 850; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; }
.glow { position: absolute; inset: 10% 5%; background: var(--grad); filter: blur(70px); opacity: 0.35; border-radius: 50%; animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px) scale(1.04); } }
.window { position: relative; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(14, 14, 27, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); padding: 14px 16px 18px; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.window-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.window-bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.window-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill-builder, .pill-shared { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-builder { background: linear-gradient(100deg, rgba(251, 191, 36, 0.25), rgba(244, 114, 182, 0.25)); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.4); }
.pill-shared { background: rgba(34, 211, 238, 0.12); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, 0.35); }

main > section { padding: 56px 0; }
main > section > h2, .manifesto h2, .spot-copy h2, .it h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 16px; font-weight: 800; }
.manifesto { max-width: 900px; }
.manifesto p:last-child { font-size: 18px; color: var(--muted); max-width: 760px; }

.logic-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 26px; }
.logic { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.logic h3 { margin: 0 0 12px; font-size: 22px; }
.logic ul { margin: 0; padding: 0; list-style: none; }
.logic li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); }
.logic.you li::before { content: "✦"; position: absolute; left: 4px; color: var(--pink); }
.logic.us { background: linear-gradient(150deg, rgba(139, 92, 246, 0.2), rgba(37, 99, 235, 0.1) 60%, rgba(34, 211, 238, 0.08)); border-color: rgba(167, 139, 250, 0.35); }
.logic.us li::before { content: "✓"; position: absolute; left: 4px; color: var(--cyan); font-weight: 800; }
.center-note { text-align: center; color: var(--muted); margin: 22px auto 0; font-size: 17px; }

.spotlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.spot-copy p:last-child { color: var(--muted); font-size: 17px; }
.spot-cards { display: grid; gap: 12px; }
.spot-card { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.spot-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 80px at 0% 0%, rgba(251, 191, 36, 0.12), transparent); pointer-events: none; }
.spot-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(140deg, rgba(251, 191, 36, 0.3), rgba(244, 114, 182, 0.3)); color: #fde68a; }
.spot-card h3 { margin: 2px 0 4px; font-size: 18px; }
.spot-card p { margin: 0; color: var(--muted); font-size: 15px; }

.how { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: how; }
.how li { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.how .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-weight: 800; background: var(--grad); color: #0b0b14; margin-bottom: 12px; }
.how h3 { margin: 0 0 6px; font-size: 20px; }
.how p { margin: 0; color: var(--muted); }

.library .sub a, .faq .more a { color: var(--cyan); text-decoration: none; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips a { color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 14.5px; transition: border-color 0.15s, background 0.15s; }
.chips a:hover { border-color: var(--violet); background: var(--panel-2); }

.it { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.it-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.it-list li { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.it-list strong { color: var(--ink); }

/* ── Flow diagrams ──────────────────────────────────────── */
.flowviz { container-type: inline-size; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.step .ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.step svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step .kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.step .label { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.k-when .ico { background: rgba(96, 165, 250, 0.16); color: var(--blue); }
.k-read .ico { background: rgba(34, 211, 238, 0.16); color: var(--cyan); }
.k-think .ico { background: rgba(167, 139, 250, 0.2); color: var(--violet); }
.k-draft .ico { background: rgba(244, 114, 182, 0.16); color: var(--pink); }
.k-you .ico, .k-send .ico { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.k-think { border-color: rgba(167, 139, 250, 0.45); box-shadow: 0 0 24px rgba(139, 92, 246, 0.18); }
/* connectors: a short animated line between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 100%;
  width: 2px;
  height: 22px;
  background: linear-gradient(var(--violet), var(--cyan));
  background-size: 100% 200%;
  animation: flowline 1.6s linear infinite;
}
@keyframes flowline { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.rail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.06); font-size: 12.5px; color: #a5f3fc; }
.rail span:not(.rail-tag)::before { content: "✓ "; font-weight: 800; }
.rail-tag { width: 100%; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
@container (min-width: 640px) {
  .flow { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; }
  .step { grid-template-columns: 1fr; row-gap: 6px; text-align: left; align-content: start; padding: 12px; }
  .step .ico { grid-row: auto; }
  .step:not(:last-child)::after { left: 100%; top: 32px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); background-size: 200% 100%; animation-name: flowline-x; }
  .rail { flex-wrap: nowrap; justify-content: space-between; }
  .rail-tag { width: auto; }
}
@keyframes flowline-x { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 8px; }
.show-card { display: block; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.show-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.5); box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2); }
.show-card h3 { margin: 8px 0 14px; font-size: 18px; }
.chip-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(167, 139, 250, 0.15); color: #ddd6fe; border: 1px solid rgba(167, 139, 250, 0.35); }

/* ── Signup form ────────────────────────────────────────── */
.signup {
  position: relative;
  margin: 24px 0;
  padding: 36px !important;
  border-radius: 26px;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 120px rgba(139, 92, 246, 0.22);
}
.signup h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; font-weight: 800; }
form { display: grid; gap: 6px; max-width: 640px; }
label { font-weight: 650; font-size: 15px; margin-top: 12px; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s;
}
input::placeholder, textarea::placeholder { color: rgba(167, 169, 194, 0.7); }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { outline: 3px solid rgba(139, 92, 246, 0.45); outline-offset: 1px; border-color: var(--violet); background: rgba(255, 255, 255, 0.07); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.error { margin: 2px 0 0; font-size: 14px; color: var(--error); font-weight: 650; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; color: var(--muted); }
.check input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.check a { color: var(--cyan); }
form button { margin-top: 18px; justify-self: start; }
button:disabled { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done h3 { font-size: 26px; margin: 4px 0 8px; }
.done p { margin: 0 0 10px; }
.done:focus { outline: none; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.faq .more { margin-top: 16px; }

/* ── Content pages ──────────────────────────────────────── */
.content { padding-top: 36px; padding-bottom: 48px; }
.content h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 10px 0 18px; max-width: 900px; font-weight: 850; }
.content > h2, .content section > h2, .content nav > h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; }
.content .faq { margin-top: 12px; }
.content .faq h2 { margin-top: 36px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.content a:not(.card):not(.button):not(.show-card):not(.btn-primary) { color: var(--cyan); }
.content .crumbs a { color: var(--muted); }

.wf-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wf { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 90px; }
.wf:target { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 20px 60px rgba(139, 92, 246, 0.25); }
.wf.featured { grid-column: 1 / -1; background: linear-gradient(150deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.05)); border-color: rgba(167, 139, 250, 0.3); }
.wf.featured .flowviz { margin: 16px 0 14px; }
.wf h3 { margin: 0 0 6px; font-size: 20px; }
.wf p { margin: 0 0 8px; }
.wf-apps, .wf-block { font-size: 14.5px; color: var(--muted); }
.wf-apps strong, .wf-block strong { color: var(--ink); }
.ticks { list-style: none; padding: 0; max-width: 820px; display: grid; gap: 10px; }
.ticks li { padding: 14px 16px 14px 44px; position: relative; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 16px; top: 14px; color: var(--cyan); font-weight: 800; }
.ticks strong { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: block; color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.5); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.cta {
  margin: 48px 0 8px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.35), rgba(37, 99, 235, 0.2) 55%, rgba(8, 145, 178, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 30px 90px rgba(124, 58, 237, 0.2);
}
.cta h2 { margin: 0 0 8px !important; font-size: clamp(22px, 3vw, 30px) !important; }
.cta p { margin: 0 0 18px; color: #d4d4f0; max-width: 640px; }
.cta .button { color: #fff; }
.related ul { padding-left: 20px; }
.related li { margin-bottom: 6px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.value { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.value:first-child { grid-column: 1 / -1; background: linear-gradient(150deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.06)); }
.value .num { font-weight: 800; font-size: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value h2 { margin: 6px 0 8px !important; font-size: 24px !important; }
.value p { margin: 0; color: var(--muted); font-size: 16.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.split > div { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.split h2 { margin: 0 0 8px !important; }
.split p:last-child { margin: 0; color: var(--muted); }

.posts { display: grid; gap: 14px; max-width: 820px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color 0.2s; }
.post-card:hover { border-color: rgba(167, 139, 250, 0.5); }
.post-card h2 { margin: 0 0 6px; font-size: 20px; }
.post-card h2 a { color: var(--ink) !important; text-decoration: none; }
.post-card p { margin: 0 0 6px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.article article { max-width: 720px; }
.article article h2 { font-size: 24px; margin: 36px 0 10px; }
.article article p, .article article li { font-size: 17.5px; color: #dcdcef; }
.article article li { margin-bottom: 6px; }
.policy > * { max-width: 720px; }
.policy h2 { font-size: 21px; margin: 32px 0 8px; }
.policy p, .policy li { color: #dcdcef; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { color: var(--muted); font-size: 13.5px; padding-top: 36px; padding-bottom: 36px; margin-top: 24px; border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.footer-cols h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.legal { margin: 0; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero, .spotlight, .it { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; gap: 36px; }
  .window { transform: none; }
  .showcase { grid-template-columns: 1fr; }
  .logic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav > a:not(.nav-cta), .menu { display: none; }
  .burger { display: inline-flex; }
  .nav { gap: 10px; }
}
@media (max-width: 720px) {
  main > section { padding: 40px 0; }
  .how, .wf-list, .cards, .footer-cols, .values, .split { grid-template-columns: 1fr; }
  .signup { padding: 22px 16px !important; }
  .cta { padding: 22px; }
  form button { width: 100%; }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }
  .hero-cta a { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.content > section { padding: 0; }
.works-with { margin-top: 26px; }
.works-with p { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.works-with ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.works-with li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 650; font-size: 14.5px; }
.works-with li:last-child { border-style: dashed; color: var(--muted); font-weight: 500; }

/* ── About: founders ────────────────────────────────────── */
.founders { margin-top: 16px; padding: 30px; border-radius: var(--radius); border: 1px solid rgba(167, 139, 250, 0.35); background: linear-gradient(150deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.06)); }
.founders h2 { margin: 0 0 10px !important; }
.founders p:not(.eyebrow) { color: #dcdcef; max-width: 760px; margin: 0; font-size: 17px; }
.creds { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 650; font-size: 14px; }

/* ── Demo walkthrough ───────────────────────────────────── */
.tour { margin-top: 28px; padding: 22px; border-radius: 24px; border: 1px solid var(--line-2); background: rgba(14, 14, 27, 0.7); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45); }
.tour-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.tour-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tour-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.35s; }
.tour:not(.js) .tour-progress, .tour:not(.js) .tour-count, .tour:not(.js) .tour-nav { display: none; }
.tour-sample { padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line-2); font-weight: 600; }
.tour-step { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: center; padding: 8px 0 18px; }
.tour:not(.js) .tour-step + .tour-step { border-top: 1px solid var(--line); padding-top: 26px; }
.tour.js .tour-step { animation: step-in 0.35s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.tour-n { font-weight: 800; font-size: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tour-text h2 { margin: 6px 0 10px !important; font-size: clamp(22px, 3vw, 30px) !important; outline: none; }
.tour-text p { color: var(--muted); font-size: 17px; margin: 0; }
.tour-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tour-nav button { margin: 0; }
.tour-nav button:disabled { opacity: 0.4; cursor: default; }

.tour-screen { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: #10101d; padding: 20px; min-height: 280px; font-size: 14.5px; }
.m-app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.m-logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg, #f472b6, #a78bfa); color: #0b0b14; font-weight: 800; font-size: 12px; }
.m-logo.big { width: 48px; height: 48px; font-size: 16px; border-radius: 14px; }
.m-tag { margin-left: auto; font-size: 12px; color: var(--muted); }
.m-warn { padding: 10px 12px; border-radius: 10px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.4); color: #fde68a; margin-bottom: 12px; }
.m-rows, .m-panel { display: grid; gap: 8px; }
.m-row, .m-field, .m-cat, .m-conn, .m-perm, .m-mail, .m-log { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.m-row em, .m-cat small, .m-mail small { color: var(--muted); font-style: normal; font-size: 13px; }
.m-cat > div, .m-mail { flex-direction: column; align-items: flex-start; }
.m-cat > div { display: flex; }
.m-cat.dim { opacity: 0.55; }
.m-field span, .m-conn span:first-child, .m-perm span:first-child { color: var(--muted); }
.m-field code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ink); }
.m-field s { color: #ff8a9a; }
.ok { color: #34d399 !important; }
.m-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.m-btn { display: inline-flex; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 650; font-size: 14px; text-decoration: none; color: var(--ink); cursor: default; }
.m-primary { background: linear-gradient(100deg, #7c3aed, #2563eb); border-color: transparent; color: #fff; }
.m-pill { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.m-pill.ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); }
.m-toggle { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(167, 139, 250, 0.18); border: 1px solid rgba(167, 139, 250, 0.5); }
.m-center { justify-items: center; text-align: center; }
.m-center .m-conn { width: 100%; max-width: 360px; }
.m-signed { color: #34d399; font-weight: 650; margin-bottom: 6px; }
.m-log { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; justify-content: flex-start; }
.m-log em { margin-left: auto; font-style: normal; color: var(--cyan); }
.m-ok { color: #34d399; font-weight: 700; font-size: 13px; }
.m-star { font-size: 42px; color: #fde68a; text-shadow: 0 0 30px rgba(251, 191, 36, 0.6); }
.m-big { font-size: 22px; margin: 4px 0 0; }
.m-stats { display: flex; gap: 12px; margin: 12px 0 4px; }
.m-stats div { padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); display: grid; }
.m-stats b { font-size: 22px; }
.m-stats small { color: var(--muted); }

/* the hotspot: a pulsing ring plus a tooltip with the hint */
.tour.js .hot { position: relative; cursor: pointer; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.8); animation: hot 1.6s infinite; outline-offset: 3px; }
@keyframes hot { 70% { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); } }
.tour.js .hot::after {
  content: attr(data-tip) " →";
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: #0b0b14;
  font-size: 12.5px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
@media (max-width: 800px) {
  .tour { padding: 16px; }
  .tour-step { grid-template-columns: 1fr; gap: 18px; }
  .tour-screen { padding: 14px; }
}
