:root {
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --surface: #131316;
  --surface-2: rgba(39, 39, 42, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --muted-2: #71717a;
  --accent: #a78bfa;
  --accent-2: #7c3aed;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-glow: rgba(167, 139, 250, 0.32);
  --green: #6ee7a3;
  --red: #fca5a5;
  --max: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Page-level ambient gradient — quiet, behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 80vh;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(167, 139, 250, 0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(124, 58, 237, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent-glow);
  display: grid;
  place-items: center;
  color: white;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav .nav-link {
  color: var(--text);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.nav .nav-link:hover { background: var(--surface-2); }
.nav .btn-primary { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.btn-primary {
  background: var(--accent-2);
  border-color: transparent;
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 8px 24px -8px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover {
  background: #8b4cf6;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 12px 32px -8px rgba(124, 58, 237, 0.7);
}
.btn-primary:active {
  transform: translateY(0);
  background: #6d28d9;
}
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h1 .accent {
  background: linear-gradient(135deg, #c4b1ff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-foot {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Editor mock ---------- */
.editor-mock {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(167, 139, 250, 0.10);
}
.mock-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.mock-bar .traffic {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.mock-bar .label {
  margin-left: 10px;
  font-size: 11px;
  color: var(--muted);
}
.mock-shell {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  min-height: 360px;
}
@media (max-width: 720px) {
  .mock-shell { grid-template-columns: 100px 1fr 160px; min-height: 320px; }
}
.mock-tree, .mock-chat {
  background: var(--surface);
  font-size: 11px;
  padding: 12px;
  color: var(--muted);
}
.mock-tree { border-right: 1px solid var(--border); }
.mock-chat { border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.tree-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 4px;
}
.tree-row.is-active { background: var(--accent-soft); color: var(--text); }
.tree-row .icon { color: var(--muted-2); }
.tree-row.is-folder .icon { color: var(--accent); }
.mock-preview {
  background: white;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.mock-site {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 12px 12px;
  gap: 10px;
}
.mock-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f3;
}
.mock-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.mock-site-mark {
  width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, #c4b1ff, #7c3aed);
}
.mock-site-links {
  display: inline-flex;
  gap: 10px;
  font-size: 9px;
  color: #64748b;
}
.mock-site-hero {
  padding: 4px 2px 0;
}
.mock-site-hero .pre-eyebrow {
  margin: 0 0 4px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.mock-site-hero h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  position: relative;
  display: inline-block;
}
.mock-site-hero h3::after {
  content: '';
  position: absolute;
  inset: -3px -5px;
  border: 1.5px dashed var(--accent);
  border-radius: 4px;
  pointer-events: none;
}
.mock-site-hero .pre-sub {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: #475569;
}
.mock-site-hero .pre-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 500;
  color: var(--accent-2);
}
.mock-site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}
.mock-site-tile {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: linear-gradient(135deg, #eef2f7, #d9e0ea);
}
.mock-site-tile:nth-child(2) { background: linear-gradient(135deg, #fef3c7, #fcd9a3); }
.mock-site-tile:nth-child(3) { background: linear-gradient(135deg, #ddd6fe, #b8a4f5); }

.bubble {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
}
.bubble.user { background: var(--accent-soft); color: var(--text); align-self: flex-end; max-width: 92%; }
.bubble.assist { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); max-width: 100%; }
.tool-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  font-size: 10.5px;
  color: var(--muted);
}
.tool-card .tool-head {
  display: flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 500;
  margin-bottom: 6px;
}
.tool-card .tool-head .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.diff { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.diff .del { color: var(--red); }
.diff .add { color: var(--green); }
.tool-actions { display: flex; gap: 4px; margin-top: 6px; }
.tool-actions .pill {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.tool-actions .pill.accept { background: rgba(110, 231, 163, 0.10); color: var(--green); border-color: rgba(110, 231, 163, 0.25); }
.tool-actions .pill.reject { color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head-center { margin: 0 auto 40px; text-align: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* Hero CTA price hint row */
.cta-foot .price-inline strong {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.cta-foot .price-inline {
  color: var(--text);
  font-size: 12.5px;
}
.cta-foot .dot-sep { color: var(--muted-2); padding: 0 4px; }

/* ---------- Pricing card ---------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.06), transparent 60%),
    var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.08);
}
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 4px;
  letter-spacing: -0.025em;
}
.price-currency {
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 8px;
}
.price-amount {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 600;
  background: linear-gradient(135deg, #c4b1ff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--muted);
  margin-left: 2px;
}
.price-cap {
  margin: 0 0 28px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 320px;
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.price-list .check { flex-shrink: 0; }
.pricing-cta {
  width: 100%;
  justify-content: center;
}
.price-foot {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}
.section-eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-sub { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- Flow strip ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
}
.flow-step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.flow-step .step-num {
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.flow-step .step-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 12px 0 14px;
}
.flow-step h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -0.01em; font-weight: 600; }
.flow-step p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .icon-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -0.01em; font-weight: 600; }
.feature p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Demo callout ---------- */
.demo {
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(167, 139, 250, 0.10), transparent 70%),
    var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .demo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: 48px; }
}
.demo h2 { margin-bottom: 16px; }
.demo p { color: var(--muted); margin: 0 0 12px; }

.tool-card.lg {
  font-size: 13px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-2);
}
.tool-card.lg .tool-head { font-size: 13px; margin-bottom: 10px; }
.tool-card.lg .diff { font-size: 12.5px; line-height: 1.55; padding: 10px 12px; background: rgba(0,0,0,0.3); border-radius: 6px; }
.tool-card.lg .tool-actions { margin-top: 12px; gap: 8px; }
.tool-card.lg .tool-actions .pill { height: 30px; font-size: 12px; border-radius: 7px; }

/* ---------- Compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}
.compare-card.is-mymonk {
  border-color: rgba(167, 139, 250, 0.25);
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.06), transparent 60%),
    var(--surface);
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.06);
}
.compare-card h3 {
  margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.compare-card h3 .tag {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 8px;
}
.compare-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.compare-card li {
  display: flex; gap: 10px;
  font-size: 13.5px; color: var(--muted);
}
.compare-card li .check, .compare-card li .x {
  flex-shrink: 0; margin-top: 2px;
}
.compare-card.is-mymonk li { color: var(--text); }
.check { color: var(--accent); }
.x { color: var(--muted-2); }

/* ---------- Browser note ---------- */
.browser-note {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.browser-note .icon-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.browser-note h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.browser-note p { margin: 0; font-size: 13px; color: var(--muted); }
.browser-note a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, 0.3); }
.browser-note a:hover { text-decoration-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  list-style: none;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 150ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 200ms ease, border-color 150ms ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq .answer {
  padding: 8px 24px 22px;
  color: var(--muted);
  font-size: 14px;
  max-width: 70ch;
}

/* ---------- CTA bottom ---------- */
.cta-bottom {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(167, 139, 250, 0.10), transparent 70%);
}
.cta-bottom h2 { margin-bottom: 12px; }
.cta-bottom p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 12px;
  color: var(--muted-2);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted-2); transition: color 150ms ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal-prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}
.legal-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.legal-prose h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 600;
}
.legal-prose h2 {
  margin: 44px 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
}
.legal-prose p,
.legal-prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.legal-prose p { margin: 0 0 16px; }
.legal-prose ul, .legal-prose ol { margin: 0 0 20px; padding-left: 22px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.4);
  text-underline-offset: 3px;
}
.legal-prose a:hover { text-decoration-color: var(--accent); }
.legal-prose strong { color: var(--text); font-weight: 600; }
.legal-prose code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--border);
}

/* ---------- Hide nav links on small screens, keep CTA ---------- */
@media (max-width: 640px) {
  .nav .nav-link { display: none; }
}
