/* SweetDesign — landing page. Same visual language as the editor
   (css/main.css tokens): white / #f5f5f5 surfaces, #1e1e1e ink,
   brand indigo #5b5bd6, Figma blue #0d99ff as a sparing accent. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --indigo: #5b5bd6;
  --indigo-dark: #4a4ac4;
  --blue: #0d99ff;
  --ink: #1e1e1e;
  --dim: #757575;
  --faint: #9a9aa5;
  --surface: #f5f5f5;
  --divider: #e5e5e5;
  --radius: 8px;
  --maxw: 1120px;
}
html { scroll-behavior: smooth; }
body {
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg.ic { width: 20px; height: 20px; flex: 0 0 auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--indigo);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 17px; height: 17px; }
.badge-preview {
  font-size: 11px; font-weight: 600; color: var(--indigo);
  background: #eef0ff; border: 1px solid #d9dcff; border-radius: 999px; padding: 2px 8px;
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { font-size: 14px; color: var(--dim); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; border-radius: var(--radius);
  padding: 9px 16px; border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-ghost { background: #fff; border-color: var(--divider); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { font-size: 15px; padding: 12px 22px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; text-align: center; background: linear-gradient(#fff, #fafafa); }
.hero h1 {
  font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em;
  max-width: 720px; margin: 0 auto;
}
.hero h1 .accent { color: var(--indigo); }
.hero .sub {
  font-size: 18px; color: var(--dim); max-width: 640px; margin: 20px auto 0; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---------- editor mock (pure CSS product shot) ---------- */
.mock {
  margin: 52px auto 0; max-width: 980px; text-align: left;
  background: #fff; border: 1px solid var(--divider); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(30,30,60,.12), 0 4px 14px rgba(30,30,60,.06);
  overflow: hidden; font-size: 11px;
}
.mock-main { display: flex; height: 480px; }
/* left: rail + layers */
.mock-rail {
  flex: 0 0 40px; background: #fff; border-right: 1px solid var(--divider);
  display: flex; flex-direction: column; align-items: center; padding-top: 10px; gap: 14px; color: var(--faint);
}
.mock-rail .on { color: var(--blue); }
.mock-rail svg { width: 17px; height: 17px; }
.mock-rail .rail-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.mock-layers { flex: 0 0 168px; border-right: 1px solid var(--divider); background: #fff; display: flex; flex-direction: column; }
.mock-docname { padding: 10px 12px 2px; font-weight: 600; font-size: 12px; }
.mock-docsub { padding: 0 12px 8px; color: var(--faint); border-bottom: 1px solid var(--divider); }
.mock-sec { padding: 10px 12px 4px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; }
.mock-sec span:last-child { color: var(--faint); font-weight: 400; }
.lrow { display: flex; align-items: center; gap: 6px; padding: 3.5px 12px; color: #444; white-space: nowrap; }
.lrow svg { width: 13px; height: 13px; color: var(--faint); }
.lrow.sel { background: #e5f4ff; color: var(--ink); }
.lrow.sel svg { color: var(--blue); }
.lrow .chev { width: 11px; height: 11px; margin-left: -4px; }
.ind1 { padding-left: 26px; } .ind2 { padding-left: 42px; } .ind3 { padding-left: 58px; }
/* center: canvas */
.mock-canvas { flex: 1; background: var(--surface); position: relative; overflow: hidden; }
.mock-frame-label { position: absolute; top: 22px; left: 50%; transform: translateX(-118px); color: var(--dim); font-size: 10px; }
.phone {
  position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
  width: 218px; height: 400px; background: #fff; border: 1.5px solid var(--blue);
  border-radius: 4px; padding: 10px 12px; overflow: hidden;
}
.phone .p-status { display: flex; justify-content: space-between; color: var(--ink); font-weight: 600; font-size: 9px; margin-bottom: 10px; }
.phone .p-status .dots { color: var(--faint); letter-spacing: 1px; }
.p-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.p-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; flex: 0 0 24px; }
.p-head .t1 { color: var(--faint); font-size: 8px; line-height: 1.3; }
.p-head .t2 { font-weight: 700; font-size: 10px; line-height: 1.3; }
.p-bell { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; background: var(--surface); position: relative; }
.p-bell::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #e5484d; }
.p-search { background: var(--surface); border-radius: 7px; color: var(--faint); padding: 6px 9px; font-size: 9px; margin-bottom: 9px; }
.p-chips { display: flex; gap: 5px; margin-bottom: 12px; }
.p-chip { border-radius: 999px; background: var(--surface); color: var(--dim); padding: 3px 9px; font-size: 8.5px; }
.p-chip.on { background: var(--indigo); color: #fff; font-weight: 600; }
.p-sect { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.p-sect .h { font-weight: 700; font-size: 10.5px; }
.p-sect .more { color: var(--indigo); font-size: 8.5px; font-weight: 600; }
.p-hero-card { background: var(--indigo); border-radius: 10px; padding: 11px 12px; color: #fff; margin-bottom: 12px; position: relative; overflow: hidden; }
.p-hero-card::after { content: ""; position: absolute; right: -22px; top: -22px; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.14); }
.p-hero-card .h { font-weight: 700; font-size: 12px; line-height: 1.3; }
.p-hero-card .s { font-size: 8.5px; opacity: .85; margin: 2px 0 8px; }
.p-hero-card .cta { display: inline-block; background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 8.5px; font-weight: 600; }
.p-dish { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.p-thumb { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px; position: relative; }
.p-thumb::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255,255,255,.75); }
.p-dish .t1 { font-weight: 600; font-size: 9.5px; line-height: 1.3; }
.p-dish .t2 { color: var(--faint); font-size: 8px; line-height: 1.3; }
.p-dish .price { margin-left: auto; font-weight: 700; font-size: 9.5px; }
.p-tabbar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--divider); display: flex; justify-content: space-around; padding: 6px 0 5px; background: #fff; }
.p-tabbar span { font-size: 7.5px; color: var(--faint); text-align: center; }
.p-tabbar span.on { color: var(--indigo); font-weight: 600; }
.p-badge {
  position: absolute; left: 50%; transform: translateX(-50%); top: 442px;
  background: var(--blue); color: #fff; font-size: 9.5px; border-radius: 3px; padding: 1.5px 6px;
}
.hndl { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--blue); border-radius: 1.5px; }
/* bottom toolbar pill */
.mock-toolbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--divider); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(30,30,60,.14);
  display: flex; align-items: center; gap: 2px; padding: 5px 7px; color: #444;
}
.mock-toolbar svg { width: 16px; height: 16px; display: block; }
.mock-toolbar .tb { padding: 5px; border-radius: 6px; display: flex; }
.mock-toolbar .tb.on { background: var(--blue); color: #fff; }
.mock-toolbar .tb-sep { width: 1px; height: 18px; background: var(--divider); margin: 0 3px; }
/* right: properties */
.mock-props { flex: 0 0 184px; background: #fff; border-left: 1px solid var(--divider); padding: 10px 12px; }
.mock-props .tabs { display: flex; gap: 12px; font-weight: 600; border-bottom: 1px solid var(--divider); padding-bottom: 8px; margin-bottom: 10px; }
.mock-props .tabs .off { color: var(--faint); font-weight: 500; }
.mock-props .zoom { margin-left: auto; color: var(--dim); font-weight: 500; }
.pr-sec { color: var(--dim); font-weight: 600; margin: 10px 0 6px; }
.pr-sec:first-of-type { margin-top: 0; }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pr-field { background: var(--surface); border-radius: 5px; padding: 4px 7px; display: flex; gap: 6px; }
.pr-field .k { color: var(--faint); }
.pr-field.wide { grid-column: 1 / -1; }
.pr-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--indigo); flex: 0 0 12px; align-self: center; }
.pr-align { display: flex; gap: 3px; }
.pr-align span { background: var(--surface); border-radius: 5px; padding: 4px 6px; color: var(--dim); display: flex; }
.pr-align svg { width: 12px; height: 12px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: #fafafa; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.section .lede { color: var(--dim); font-size: 17px; margin-top: 12px; max-width: 620px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  border: 1px solid var(--divider); border-radius: 12px; padding: 22px;
  background: #fff;
}
.card:hover { border-color: #d4d4e2; box-shadow: 0 6px 18px rgba(30,30,60,.06); }
.card .ic-wrap {
  width: 38px; height: 38px; border-radius: 9px; background: #eef0ff; color: var(--indigo);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--dim); line-height: 1.55; }
.card code, .inline-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface); border-radius: 4px; padding: 1px 5px; }

/* agent */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 8px; }
.agent-points { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.agent-points li { list-style: none; display: flex; gap: 10px; font-size: 15px; color: #333; }
.agent-points svg { width: 18px; height: 18px; color: var(--indigo); margin-top: 2px; }
.agent-points b { font-weight: 650; }
.codeblock {
  background: #1e1e2e; color: #e6e6f0; border-radius: 12px; padding: 20px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.65; overflow-x: auto;
}
.codeblock .cm { color: #8a8aa3; }
.codeblock .kw { color: #9db4ff; }
.codeblock .st { color: #a6e3a1; }
.codeblock .fn { color: #f9e2af; }
.code-note { font-size: 13px; color: var(--faint); margin-top: 12px; }

/* shortcuts */
.sc-table { margin-top: 36px; border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; }
.sc-row { display: flex; align-items: center; gap: 16px; padding: 11px 18px; background: #fff; }
.sc-row + .sc-row { border-top: 1px solid var(--divider); }
.sc-row .what { flex: 1; font-size: 14.5px; }
.sc-row .what span { color: var(--faint); font-size: 13px; }
.keys { display: flex; gap: 4px; align-items: center; }
kbd {
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--divider); border-bottom-width: 2px;
  border-radius: 5px; padding: 2px 7px; min-width: 26px; text-align: center;
}
.keys .plus { color: var(--faint); font-size: 12px; }

/* plugins */
.plugin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.manifest {
  background: #fff; border: 1px solid var(--divider); border-radius: 12px; padding: 20px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65;
  overflow-x: auto; color: #333;
}
.manifest .cm { color: var(--faint); }
.manifest .st { color: #7c3aed; }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #8a6d00; background: #fff7db; border: 1px solid #f0df9a; border-radius: 999px; padding: 3px 10px;
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e3b505; }

/* final cta */
.final-cta { text-align: center; padding: 80px 0; }
.final-cta h2 { font-size: 36px; }
.final-cta p { color: var(--dim); margin: 12px auto 26px; max-width: 480px; font-size: 16.5px; }

/* footer */
footer { border-top: 1px solid var(--divider); padding: 30px 0 38px; background: #fafafa; }
.foot-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-in .logo { font-size: 15px; }
.foot-in .logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.foot-in .logo-mark svg { width: 13px; height: 13px; }
.foot-meta { color: var(--faint); font-size: 13px; }
.foot-right { margin-left: auto; color: var(--faint); font-size: 13px; display: flex; gap: 18px; }
.foot-right a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .agent-grid, .plugin-grid { grid-template-columns: 1fr; }
  .mock-layers { display: none; }
  .mock-props { display: none; }
  .mock-main { height: 440px; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero .sub { font-size: 16px; }
  .section { padding: 52px 0; }
  .mock-rail { display: none; }
  .mock-main { height: 420px; }
  .sc-row { flex-wrap: wrap; gap: 8px; }
}
