:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-2: #f1f5f9;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #dbeafe;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --ok: #047857;
  --ok-bg: #d1fae5;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.015em; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 3px; font-size: 0.92em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-weight: 800; font-size: 12px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}
.primary-nav { display: flex; gap: 22px; font-size: 15px; margin-left: 12px; }
.primary-nav a { color: var(--ink-2); }
.primary-nav a:hover { color: var(--accent); text-decoration: none; }
.auth-nav { margin-left: auto; display: flex; gap: 10px; align-items: center; }

@media (max-width: 720px) {
  .primary-nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 8px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease, transform .04s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.primary { background: var(--ink); color: white; }
.btn.primary:hover { background: var(--accent); color: white; }
.btn.ghost { background: white; border-color: var(--line); }
.btn.ghost:hover { background: var(--panel); }
.btn.link { background: none; padding: 0; height: auto; color: var(--accent); }
.btn.link:hover { text-decoration: underline; }
.btn.block { display: flex; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse 60% 80% at 80% 10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 90%, #fef3c7 0%, transparent 60%),
    var(--bg);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow .dot { color: var(--accent); }
.hero h1 strong { color: var(--accent); font-weight: 700; }
.hero .lede {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 26px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted); font-size: 13px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row span::before {
  content: ""; width: 8px; height: 8px;
  background: var(--ok); border-radius: 50%;
}

/* ---------- Hero illustration / screenshot frame ---------- */
.shot-frame {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 70px -30px rgba(15,23,42,0.30), 0 1px 2px rgba(15,23,42,0.04);
  overflow: hidden;
}
.shot-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.shot-toolbar .dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.shot-toolbar .dot:nth-child(1) { background: #ef4444; }
.shot-toolbar .dot:nth-child(2) { background: #f59e0b; }
.shot-toolbar .dot:nth-child(3) { background: #10b981; }
.shot-toolbar .url {
  margin-left: 12px;
  flex: 1;
  font-size: 12px; color: var(--muted);
  background: white; border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 4px;
}
.shot-body {
  position: relative;
  background: white;
  display: block;
}
.shot-body svg { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.section-head p { font-size: 17px; color: var(--ink-2); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ---------- Workflow (numbered steps) ---------- */
.workflow {
  background: var(--panel);
}
.workflow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 880px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .workflow-grid { grid-template-columns: 1fr; } }
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  position: relative;
}
.step .num {
  width: 32px; height: 32px;
  background: var(--ink); color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- Demo (split screenshot + copy) ---------- */
.demo {
  background: white;
}
.demo-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  margin-bottom: 60px;
}
.demo-row:last-child { margin-bottom: 0; }
.demo-row.reverse { grid-template-columns: 1fr 1fr; }
.demo-row.reverse .demo-text { order: 2; }
.demo-row.reverse .demo-img { order: 1; }
@media (max-width: 880px) {
  .demo-row, .demo-row.reverse { grid-template-columns: 1fr; }
  .demo-row.reverse .demo-text, .demo-row.reverse .demo-img { order: initial; }
}
.demo-text h3 { font-size: 22px; margin-bottom: 8px; }
.demo-text p { color: var(--ink-2); font-size: 15.5px; }
.demo-text ul { padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.demo-text ul li { margin-bottom: 6px; }
.demo-img { padding: 8px; }
.demo-img .shot-frame { box-shadow: 0 20px 50px -25px rgba(15,23,42,0.30); }

/* ---------- Pricing ---------- */
.pricing { background: var(--panel); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan h3 { font-size: 18px; margin: 0 0 4px; }
.plan .price { font-size: 36px; font-weight: 700; color: var(--ink); margin: 8px 0 4px; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 16px; color: var(--ink-2); font-size: 14.5px; margin: 16px 0; }
.plan ul li { margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--muted); font-size: 22px; line-height: 1;
  margin-left: 12px;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 10px 0 0; color: var(--ink-2); font-size: 15px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(37,99,235,0.20) 0%, transparent 60%),
    var(--ink);
  color: white;
}
.cta-strip h2 { color: white; }
.cta-strip p { color: #cbd5e1; max-width: 560px; margin-bottom: 22px; }
.cta-strip .btn.primary { background: white; color: var(--ink); }
.cta-strip .btn.primary:hover { background: var(--accent); color: white; }
.cta-strip .btn.ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.cta-strip .btn.ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
}
@media (max-width: 720px) { .site-footer .row { grid-template-columns: 1fr 1fr; } }
.site-footer .col a { display: block; color: var(--ink-2); padding: 4px 0; }
.site-footer .col a:hover { color: var(--accent); text-decoration: none; }
.site-footer .col h4 { color: var(--ink); }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: calc(100vh - 64px - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  background: var(--panel);
}
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%; max-width: 420px;
  padding: 32px;
  box-shadow: 0 8px 30px -20px rgba(15,23,42,0.2);
}
.auth-card h1 { font-size: 24px; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-card label {
  display: block; font-weight: 600; font-size: 13px; color: var(--ink-2);
  margin-bottom: 6px; margin-top: 12px;
}
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.auth-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-card .actions { margin-top: 18px; }
.auth-card .meta {
  margin-top: 16px; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}
.alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fca5a5; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #6ee7b7; }
.alert.info { background: var(--accent-soft); color: var(--accent-2); border: 1px solid #93c5fd; }

/* ---------- Account dashboard ---------- */
.account-shell { padding: 50px 0; }
.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
@media (max-width: 720px) { .account-grid { grid-template-columns: 1fr; } }
.account-side .nav-item {
  display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); font-size: 14px;
}
.account-side .nav-item:hover { background: var(--panel); text-decoration: none; }
.account-side .nav-item.active { background: var(--ink); color: white; }
.account-main { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.project-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.project-list th, .project-list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.project-list th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.project-list td.actions { text-align: right; }
.project-list td.actions a { margin-left: 12px; font-size: 13px; }
.project-list td.actions a.danger { color: var(--danger); }

/* ---------- Guide ---------- */
.guide-shell { padding: 40px 0 80px; }
.guide-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
@media (max-width: 880px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-toc {
  position: sticky; top: 80px; align-self: start;
  font-size: 14px;
}
.guide-toc h4 { margin-top: 0; }
.guide-toc ol { padding-left: 18px; color: var(--ink-2); }
.guide-toc ol li { margin-bottom: 6px; }
.guide-toc a { color: var(--ink-2); }
.guide-toc a:hover { color: var(--accent); text-decoration: none; }
.guide-content h2 { margin-top: 36px; padding-top: 12px; }
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 { margin-top: 22px; font-size: 17px; }
.guide-content p, .guide-content li { color: var(--ink-2); }
.guide-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px;
}
.guide-content th, .guide-content td {
  padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.guide-content th { background: var(--panel); font-weight: 600; }
.guide-callout {
  padding: 14px 16px; border-radius: 8px;
  margin: 16px 0;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 14.5px;
}
.guide-callout.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.guide-callout.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
