:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-soft: #0d0f14;
  --panel: #111319;
  --panel-2: #171a22;
  --line: #242832;
  --line-2: #323744;
  --text: #edf0f6;
  --muted: #9aa1b0;
  --muted-2: #6f7787;
  --accent: #2946b8;
  --accent-bright: #4c6be8;
  --accent-soft: #7e9bff;
  --accent-deep: #1b2f7a;
  --paper: #f6f1e6;
  --ink: #211f1a;
  --ok: #4ade80;
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 14% -8%, #1a1d27 0%, transparent 60%),
    radial-gradient(700px 480px at 100% 4%, #0d1730 0%, transparent 55%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(14px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent) 60%, #1b2f7a);
  color: #f8faff;
  box-shadow: 0 6px 18px rgba(41, 70, 184, 0.32);
}

.brand .at { color: var(--accent-soft); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.login { color: var(--text); }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn:hover { border-color: #414857; background: #1b1f29; }
.btn.primary {
  border-color: #4c6be8;
  background: linear-gradient(180deg, #4c6be8, #1e3594);
  color: #f8faff;
  box-shadow: 0 8px 24px rgba(41, 70, 184, 0.28);
}
.btn.primary:hover { background: linear-gradient(180deg, #5b7ae8, #2743b8); transform: translateY(-1px); }
.btn.big { padding: 13px 22px; font-size: 14.5px; border-radius: 11px; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* type */

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -0.035em; }
h1 { font-size: clamp(42px, 6vw, 74px); font-weight: 750; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 720; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--accent-bright); font-style: normal; }
.lede { margin: 22px 0 0; max-width: 560px; color: var(--muted); font-size: 17.5px; line-height: 1.6; }
.section-lede { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 16px; }

/* hero */

.hero { padding: 78px 0 66px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 54px;
  align-items: center;
}

.hero-copy .btn-row { margin-top: 30px; }
.trust { margin: 16px 0 0; color: var(--muted-2); font-size: 12px; }

.hero-art { position: relative; min-width: 0; }
.hero-stage {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #090a0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.2deg);
}
.hero-stage img { border-radius: 5px; width: 100%; height: auto; }
.hero-stage .caption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stage.light {
  width: 72%;
  margin: -26px 0 0 auto;
  background: var(--paper);
  border-color: #e7dfd0;
  transform: rotate(1.8deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-stage.light .caption { color: #8a8274; }

/* stages */

.stage {
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}
.stage.dark { background: #090a0e; }
.stage.light { background: var(--paper); }
.stage.checker {
  background-color: #171a21;
  background-image: conic-gradient(#232732 25%, #171a21 0 50%, #232732 0 75%, #171a21 0);
  background-size: 18px 18px;
}
.stage img { max-height: 300px; width: auto; max-width: 100%; }

/* sections */

.section { padding: 82px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 58px 0; }
.section-head { margin-bottom: 38px; }

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.example-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.example-card .stage { padding: 18px; min-height: 180px; }
.example-card .stage img { max-height: 150px; }
.example-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 3px;
  color: var(--muted);
  font-size: 12px;
}
.example-card .meta span:last-child { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 70%), var(--panel);
}
.feature .glyph {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 13px;
}
.feature p { margin: 9px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-top: 1px solid var(--line-2); }
.step .num { color: var(--accent-bright); font-family: var(--mono); font-size: 12px; }
.step h3 { margin-top: 14px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }

/* pricing cards */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.price-card.featured {
  border-color: #1e2f66;
  background:
    radial-gradient(420px 180px at 50% -20%, rgba(41, 70, 184, 0.18), transparent 70%),
    var(--panel);
  box-shadow: 0 20px 60px rgba(41, 70, 184, 0.1);
}
.price-card .tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 8px;
  border: 1px solid #1e2f66;
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 15px; }
.price-card .price { margin-top: 10px; font-size: 34px; font-weight: 750; letter-spacing: -0.04em; }
.price-card .price small { color: var(--muted-2); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.price-card .sub { margin: 4px 0 18px; color: var(--muted-2); font-size: 11.5px; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.price-card li { display: flex; gap: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.price-card li::before { content: "✓"; flex: 0 0 auto; color: var(--accent-soft); font-weight: 700; }
.price-card .btn { margin-top: auto; width: 100%; }

.price-actions {
  display: grid;
  gap: 6px;
  margin-top: auto;
}
.price-actions .btn { margin-top: 0; width: 100%; }
.price-actions .btn.small { font-weight: 550; }

.price-note { margin: 20px 0 0; color: var(--muted-2); font-size: 12px; }

.enterprise-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.enterprise-band h3 { font-size: 16px; }
.enterprise-band p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

/* founding form */

.founding {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  margin-top: 34px;
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(41, 70, 184, 0.08), transparent 120px), var(--panel);
}
.founding p { color: var(--muted); font-size: 14px; }
.lead-form { display: grid; gap: 10px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #0a0c10;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.field textarea { min-height: 78px; resize: vertical; }
.field input[type="datetime-local"],
.field input[type="date"],
.field input[type="time"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  line-height: 1.3;
  overflow: hidden;
}
.field input[type="datetime-local"]::-webkit-datetime-edit,
.field input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.field input[type="datetime-local"]::-webkit-datetime-edit-text,
.field input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.field input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.field input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.field input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.field input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.field input[type="datetime-local"]::-webkit-datetime-edit-meridiem-field {
  padding: 0;
}
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
}
.form-status { min-height: 18px; margin: 2px 0 0; color: var(--muted-2); font-size: 12px; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: #f87171; }
#founding { scroll-margin-top: 86px; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot { margin: 12px 0 6px; }
.turnstile-slot:empty { display: none; }
.turnstile-slot iframe { max-width: 100%; }

/* faq */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 18px; color: var(--accent-bright); font-weight: 500; }
.faq details[open] summary::before { content: "–"; }
.faq p { max-width: 780px; margin: 10px 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.faq p a { color: var(--accent-soft); }

/* footer */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .fine { color: var(--muted-2); font-size: 11.5px; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .links a { color: var(--muted); font-size: 12.5px; text-decoration: none; }
.site-footer .links a:hover { color: var(--text); }

/* legal pages */

.legal-page { padding: 54px 0 76px; }
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(36px, 4.8vw, 54px); }
.legal-doc h2 { margin: 40px 0 12px; font-size: 20px; letter-spacing: -0.015em; }
.legal-doc h3 { margin: 24px 0 8px; color: var(--accent-soft); font-size: 14px; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 14px; line-height: 1.72; }
.legal-doc p { margin: 0 0 13px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 15px; padding-left: 22px; }
.legal-doc li { margin: 7px 0; }
.legal-doc strong { color: var(--text); font-weight: 650; }
.legal-doc a { color: var(--accent-soft); }
.legal-doc a:hover { color: #a9bdff; }
.legal-meta { margin: 12px 0 30px; color: var(--muted-2); font-size: 12px; }
.legal-doc .callout {
  margin: 24px 0 28px;
  padding: 17px 19px;
  border: 1px solid #1e2f66;
  border-radius: 12px;
  background: rgba(41, 70, 184, 0.08);
}
.legal-doc .callout p { margin-bottom: 0; }
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 0 0 34px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal-toc a { color: var(--muted); font-size: 12px; text-decoration: none; }
.legal-toc a:hover { color: var(--text); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.check-list li::before { content: "✓"; flex: 0 0 auto; color: var(--accent-soft); font-weight: 700; }

/* demo */

.demo-hero { padding: 54px 0 30px; }
.demo-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
.demo-hero .lede { max-width: 700px; font-size: 16px; }

.demo-layout {
  display: grid;
  grid-template-columns: minmax(380px, 450px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding-bottom: 70px;
}
.demo-card {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.demo-card h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.demo-card h2:not(:first-child) { margin-top: 20px; }
.demo-card .field { margin-bottom: 10px; }
.demo-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; min-width: 0; }
.demo-card .row > * { min-width: 0; }
.demo-card .btn-row { margin-top: 14px; }

.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type="color"] {
  width: 46px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #0a0c10;
  cursor: pointer;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.hex { color: var(--muted); font-family: var(--mono); font-size: 11px; }

.free-note { margin: 12px 0 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.free-note a, .demo-card a, .demo-result a { color: var(--accent-soft); text-decoration: none; }
.free-note a:hover, .demo-result a:hover { text-decoration: underline; }

.upsell { margin: 10px 0 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.55; }
.demo-result .upsell { margin: 8px 0 0; }
.preview-card > .upsell { padding-top: 4px; }

.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.preset-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b0d12;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.preset-btn:hover { border-color: var(--line-2); color: var(--text); }
.preset-btn.active { border-color: var(--accent-bright); color: var(--text); }
.preset-btn .dot { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 5px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }

.preview-card { position: sticky; top: 84px; min-width: 0; }
.demo-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.demo-preview-head .seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0a0c10; }
.demo-preview-head .seg button {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.demo-preview-head .seg button.active { background: var(--text); color: #0a0b0f; }
.demo-stage {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: auto;
}
.demo-stage.on-dark { background: #090a0e; }
.demo-stage.on-light { background: var(--paper); }
.demo-stage img { max-width: 100%; height: auto; border-radius: 4px; }
.demo-stage .placeholder { color: var(--muted-2); font-size: 12.5px; }
.demo-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 9px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.wm-badge { padding: 2px 7px; border: 1px solid #1e2f66; border-radius: 999px; color: var(--accent-soft); font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.demo-result { margin-top: 16px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #0b0d12; }
.demo-result[hidden] { display: none; }
.demo-result h3 { font-size: 13px; }
.snippet-box { display: flex; gap: 8px; margin-top: 9px; }
.snippet-box textarea {
  flex: 1;
  min-height: 76px;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #07080b;
  color: #c7cede;
  font-family: var(--mono);
  font-size: 10.5px;
  resize: vertical;
}
.demo-result .links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 9px; font-size: 11.5px; }
.demo-result a { color: var(--accent-soft); text-decoration: none; font-weight: 600; }
.demo-upsell { margin-top: 12px; color: var(--muted-2); font-size: 11.5px; line-height: 1.55; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(540px, calc(100vw - 32px));
  padding: 10px 15px;
  border: 1px solid #3a4252;
  border-left: 3px solid var(--accent-bright);
  border-radius: 9px;
  background: #12151c;
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.toast.error { border-left-color: #f05656; }
.toast.ok { border-left-color: var(--ok); }
.toast[hidden] { display: none; }

/* responsive */

@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 640px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-layout { grid-template-columns: 1fr; }
  .preview-card { position: static; }
  .founding { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav .wrap { height: 58px; }
  .nav-links { gap: 14px; }
  .hero { padding: 48px 0 40px; }
  h1 { font-size: 42px; }
  .section { padding: 56px 0; }
  .example-grid, .feature-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .hero-stage.light { width: 88%; }
  .lead-form .row { grid-template-columns: 1fr; }
  .demo-hero { padding-top: 36px; }
  .demo-layout { padding-bottom: 48px; }
  .stage { padding: 16px; }
  .demo-card { padding: 16px; }
  .demo-card .row { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .site-footer .wrap { flex-direction: column; }
}

@media (max-width: 430px) {
  .demo-layout { gap: 14px; }
  .demo-card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
