/* Blobby site. Brand: ink #191919, Blobby red #e33f52, IBM Plex Sans + Mono (same as the app). */

:root {
  --page: #f0efed;
  --panel: #ffffff;
  --ink: #191919;
  --ink-2: #2e2e2e;
  --text: #3d3d3d;
  --muted: #6e6e6e;
  --subtle: #9a9a9a;
  --line: #e6e4e1;
  --line-2: #d9d6d2;
  --wash: #f7f6f4;
  --red: #e33f52;
  --red-2: #c9303f;
  --red-soft: #fdeef0;
  --red-line: #f6c9cf;
  --sel: #4b6bfb;
  --ok: #128a52;
  --radius-panel: 32px;
  --radius-card: 22px;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 1px 0 rgba(25, 25, 25, .04), 0 12px 32px -18px rgba(25, 25, 25, .22);
  --shadow-float: 0 2px 4px rgba(25, 25, 25, .05), 0 24px 48px -20px rgba(25, 25, 25, .30);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.ico { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.shell { padding: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.panel { background: var(--panel); border-radius: var(--radius-panel); }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }
.display { font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.038em; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.mono { font-family: var(--mono); }

.tag {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px;
  border: 1px solid var(--red-line); border-radius: 999px; background: #fff;
  color: var(--red-2); font: 500 13px/1 var(--sans); letter-spacing: .01em;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.tag.dark { border-color: rgba(255,255,255,.18); background: transparent; color: #ffb3bc; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 500 16px/1 var(--sans); white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(227, 63, 82, .7); }
.btn-red:hover { background: var(--red-2); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn .play { width: 26px; height: 26px; margin-left: -10px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.btn .play .ico { width: 12px; height: 12px; fill: currentColor; }

/* ---------- promo bar ---------- */
.promo-bar { position: relative; background: var(--ink); color: #d6d6d6; font-size: 14px; }
.promo-bar a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 56px; text-align: center; }
.promo-tag { flex: none; font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: #fff; background: var(--red); padding: 5px 8px; border-radius: 6px; }
.promo-text b { color: #fff; font-weight: 500; }
.promo-more { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; }
.promo-more .ico { width: 15px; height: 15px; transition: transform .15s; }
.promo-bar a:hover .promo-more .ico { transform: translateX(3px); }
.promo-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #8a8a8a; display: grid; place-items: center; }
.promo-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.promo-close .ico { width: 16px; height: 16px; }
.promo-bar[hidden] { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: calc(100% - 24px); max-width: 1180px;
  display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(25, 25, 25, .06); border-radius: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 26px; height: 32px; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; font-size: 15px; color: var(--text); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.gh-star { display: inline-flex; align-items: center; gap: 8px; }
.gh-star .ico { width: 17px; height: 17px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--ink); transition: transform .2s; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; text-align: center; overflow: hidden; position: relative; }
.hero .tag { margin-bottom: 30px; }
.hero h1 { max-width: 980px; margin: 0 auto; }
.hero .lede { max-width: 700px; margin: 28px auto 0; }
.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.hero-note { margin: 0; font-size: 14px; color: var(--subtle); }
.meta-sep { width: 1px; height: 22px; background: var(--line-2); }
.hero-note b { color: var(--muted); font-weight: 500; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 16px 0 10px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-align: left;
  transition: box-shadow .15s, transform .15s;
}
.ph-badge:hover { box-shadow: inset 0 0 0 1px #da552f, 0 8px 20px -12px rgba(218, 85, 47, .55); transform: translateY(-1px); }
.ph-badge > .ico:first-child { width: 26px; height: 26px; color: #da552f; }
.ph-badge span { display: grid; line-height: 1.1; font-weight: 600; font-size: 15px; }
.ph-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ph-badge .arrow { width: 15px; height: 15px; color: var(--subtle); }
.ph-badge.ph-dark { margin-top: 22px; height: 48px; background: #232323; box-shadow: inset 0 0 0 1px #343434; color: #fff; }
.ph-badge.ph-dark small { color: #9a9a9a; }
.ph-badge.ph-dark:hover { box-shadow: inset 0 0 0 1px #da552f; }

/* A word "selected" in the editor, the way Blobby shows a selection. */
.selected { position: relative; display: inline-block; padding: 0 .08em; margin: 0 .04em; }
.selected::before { content: ""; position: absolute; inset: .04em -.02em -.02em; border: 2px solid var(--sel); border-radius: 2px; pointer-events: none; }
.selected i { position: absolute; width: 11px; height: 11px; background: #fff; border: 2px solid var(--sel); border-radius: 2px; }
.selected i:nth-of-type(1) { left: -6px; top: calc(.04em - 6px); }
.selected i:nth-of-type(2) { right: -6px; top: calc(.04em - 6px); }
.selected i:nth-of-type(3) { left: -6px; bottom: calc(-.02em - 6px); }
.selected i:nth-of-type(4) { right: -6px; bottom: calc(-.02em - 6px); }
.selected .pin {
  position: absolute; right: -.62em; top: -.48em; width: .5em; height: .5em; min-width: 30px; min-height: 30px;
  border-radius: 50% 50% 50% 6px; background: var(--red); border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgba(227,63,82,.6);
  color: #fff; font: 600 14px/1 var(--sans); letter-spacing: 0; display: grid; place-items: center;
}
.selected .note {
  position: absolute; left: calc(100% + 26px); top: -.5em; width: max-content; max-width: 220px; text-align: left;
  font: 500 15px/1.4 var(--sans); letter-spacing: 0; color: var(--ink); background: #fff; padding: 10px 14px; border-radius: 4px 14px 14px 14px;
  box-shadow: var(--shadow-float); transform: rotate(2deg);
}
.selected .note small { display: block; color: var(--subtle); font-size: 12.5px; font-weight: 400; margin-bottom: 2px; }

.stage { position: relative; margin: 56px auto 0; max-width: 1040px; }
.stage-frame {
  position: relative; border-radius: 18px; overflow: hidden; background: #191919;
  box-shadow: 0 0 0 1px rgba(25,25,25,.08), 0 40px 80px -40px rgba(25,25,25,.55), 0 18px 36px -24px rgba(25,25,25,.35);
}
.stage-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stage-play {
  position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 8px; border-radius: 999px; border: 0; background: rgba(25,25,25,.84); color: #fff; font-size: 15px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stage-play .disc { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.stage-play .disc .ico { width: 13px; height: 13px; fill: #fff; stroke: #fff; }
.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-float); font-size: 14.5px; color: var(--ink); text-align: left; line-height: 1.3;
}
.chip-float small { display: block; color: var(--muted); font-size: 12.5px; }
.chip-float .badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.chip-qa { left: -44px; top: 22%; transform: rotate(-3deg); }
.chip-qa .badge { background: #e7f6ee; color: var(--ok); }
.chip-ai { right: -40px; top: 58%; transform: rotate(2.5deg); }
.chip-ai .badge { background: var(--red-soft); color: var(--red); }
.chip-float .ico { width: 16px; height: 16px; }

/* ---------- works with ---------- */
.works { padding: 56px 0 72px; text-align: center; }
.works p { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 38px; color: #57534e; }
.logos span { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.logos .ico { width: 22px; height: 22px; }

/* ---------- split headers ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.split .tag { margin-bottom: 18px; }
.split p { margin: 0 0 8px; color: var(--muted); max-width: 380px; justify-self: end; }

/* ---------- problem ---------- */
.problem { padding: 120px 0 72px; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.before, .after { border-radius: var(--radius-card); padding: 30px; }
.before { background: #e8e6e3; }
.after { background: #fff; box-shadow: var(--shadow-card); }
.before h3, .after h3 { font-size: 15px; font-weight: 500; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); }
.after h3 { color: var(--red-2); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); background: rgba(255,255,255,.55); padding: 12px 14px; border-radius: 12px; }
.after .steps-list li { background: var(--wash); }
.steps-list .n { font: 500 12px/22px var(--mono); color: var(--subtle); flex: none; }
.before .steps-list li { color: #77736d; text-decoration: line-through; text-decoration-color: rgba(119,115,109,.45); }

/* ---------- statement (red block) ---------- */
.statement { margin: 48px 12px 0; border-radius: var(--radius-panel); background: var(--red); color: #fff; padding: 112px 0; position: relative; overflow: hidden; text-align: center; }
.statement h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.035em; max-width: 920px; margin: 0 auto; font-weight: 600; }
.statement h2 .soft { color: #ffd0d6; }
.statement .mascot { width: 92px; height: 92px; margin: 0 auto 34px; filter: drop-shadow(0 14px 22px rgba(120, 10, 25, .35)); }
.statement .mascot-wrap { display: inline-block; background: #fff; border-radius: 28px; padding: 14px; transform: rotate(-5deg); margin-bottom: 36px; box-shadow: 0 20px 40px -20px rgba(80,0,10,.6); }
.statement .mascot-wrap img { width: 64px; height: 64px; }
.statement .squiggle { position: absolute; width: 380px; opacity: .9; pointer-events: none; }
.statement .wrap { position: relative; z-index: 1; }
.statement .squiggle.a { left: -70px; bottom: -40px; transform: rotate(-12deg); }
.statement .squiggle.b { right: -60px; top: -30px; transform: rotate(160deg); }

/* ---------- how it works ---------- */
.how { padding: 120px 0 64px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.how-card { background: #fff; border-radius: var(--radius-card); padding: 10px 10px 26px; box-shadow: var(--shadow-card); }
.how-card:nth-child(3) { transform: rotate(2deg) translateY(-6px); }
.how-card .art { height: 200px; border-radius: 16px; background: var(--wash); padding: 18px; position: relative; overflow: hidden; }
.how-card .num { display: block; margin: 22px 16px 6px; font: 500 13px/1 var(--mono); color: var(--red); }
.how-card h3 { margin: 0 16px; font-size: 20px; letter-spacing: -.015em; }
.how-card p { margin: 8px 16px 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.how-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.how-foot span { display: inline-flex; align-items: center; gap: 8px; }
.how-foot .ico { width: 16px; height: 16px; color: var(--red); }

/* mini UIs inside the cards */
.ui-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 20px -12px rgba(0,0,0,.18); }
.ui-rows { padding: 6px; display: grid; gap: 2px; }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink); }
.ui-row .ico { width: 17px; height: 17px; }
.ui-row.on { background: var(--wash); }
.ui-row .state { margin-left: auto; font-size: 12px; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.ui-row .state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ui-row .add { margin-left: auto; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

.ui-prompt { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 12px 12px 14px; }
.ui-prompt small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--subtle); margin-bottom: 6px; }
.ui-prompt small .ico { width: 12px; height: 12px; color: #d97757; }
.ui-prompt p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); padding-right: 34px; }
.ui-prompt p::after { content: ""; display: inline-block; width: 2px; height: 15px; background: #d97757; margin-left: 2px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.ui-prompt .send { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 8px; background: #d97757; color: #fff; display: grid; place-items: center; }
.ui-prompt .send .ico { width: 14px; height: 14px; transform: rotate(-90deg); }
.ui-bubble { position: absolute; left: 18px; top: 18px; font: 500 12px/1 var(--mono); color: var(--subtle); }
@keyframes blink { 50% { opacity: 0; } }

.ui-canvas { position: absolute; inset: 18px 18px auto 18px; height: 104px; padding: 16px; }
.ui-canvas .line { height: 9px; border-radius: 5px; background: #ebe9e6; margin-top: 9px; }
.ui-canvas .line.w1 { width: 82%; } .ui-canvas .line.w2 { width: 64%; } .ui-canvas .line.w3 { width: 40%; height: 18px; background: var(--ink); border-radius: 6px; margin-top: 12px; }
.ui-canvas .head { height: 16px; width: 70%; border-radius: 5px; background: var(--ink); position: relative; }
.ui-canvas .head::after { content: ""; position: absolute; inset: -5px -6px; border: 1.5px solid var(--sel); border-radius: 3px; }
.ui-canvas .p { position: absolute; left: calc(70% + 10px); top: 4px; width: 22px; height: 22px; border-radius: 50% 50% 50% 4px; background: var(--red); border: 2px solid #fff; color: #fff; font: 600 11px/18px var(--sans); text-align: center; box-shadow: 0 4px 10px -3px rgba(227,63,82,.6); }
.ui-thread { position: absolute; left: 18px; right: 18px; bottom: 16px; padding: 10px 12px; font-size: 12.5px; line-height: 1.4; }
.ui-thread .who { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 11px; margin-bottom: 2px; }
.ui-thread .av { width: 16px; height: 16px; border-radius: 50%; background: #8c8c8c; color: #fff; font-size: 9px; font-weight: 600; display: grid; place-items: center; }
.ui-thread .av.ai { background: var(--red); }
.ui-thread .msg { color: var(--ink); }
.ui-thread .msg.ai { margin-top: 7px; background: #eef8f2; color: #0a5134; padding: 5px 8px; border-radius: 7px; }

.ui-files { padding: 8px; }
.ui-file { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font: 13px/1 var(--mono); color: var(--ink); }
.ui-file + .ui-file { border-top: 1px solid var(--wash); }
.ui-file .ext { width: 30px; height: 22px; border-radius: 5px; font: 600 9.5px/22px var(--mono); text-align: center; color: #fff; }
.ui-file .ext.html { background: #e4572e; } .ui-file .ext.css { background: #3b6fe0; } .ui-file .ext.dir { background: #a3a3a3; }
.ui-file .size { margin-left: auto; color: var(--subtle); font-size: 12px; }
.ui-dl { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; }
.ui-dl .ico { width: 14px; height: 14px; }

/* ---------- features (bento) ---------- */
.features { padding: 96px 0 104px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { background: var(--wash); border-radius: var(--radius-card); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-size: 21px; letter-spacing: -.015em; }
.tile p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 440px; }
.tile .k { font: 500 12px/1 var(--mono); color: var(--subtle); margin-bottom: 14px; letter-spacing: .02em; }
.t-canvas { grid-column: span 4; padding-bottom: 0; }
.t-canvas .shot { margin: 26px -28px 0 28px; max-height: 400px; border-radius: 12px 0 0 0; overflow: hidden; box-shadow: var(--shadow-float); border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
.t-qa { grid-column: span 2; }
.t-brand { grid-column: span 2; }
.t-devices { grid-column: span 2; }
.t-agents { grid-column: span 2; padding-bottom: 0; }
.t-agents .shot { margin: 24px -28px 0; border-top: 1px solid var(--line); }
.t-code { grid-column: span 3; background: var(--ink); }
.t-code h3 { color: #fff; } .t-code p { color: #a8a8a8; } .t-code .k { color: #7a7a7a; }
.t-local { grid-column: span 3; }

.qa-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qa-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); background: #fff; border-radius: 10px; padding: 9px 12px; }
.qa-list .ico { width: 16px; height: 16px; color: var(--ok); }
.qa-pass { margin-top: 12px; font: 500 13px/1 var(--mono); color: var(--ok); }

.swatches { display: flex; gap: 8px; margin-top: 22px; }
.swatches span { flex: 1; height: 54px; border-radius: 10px; position: relative; }
.swatches span::after { content: attr(data-hex); position: absolute; left: 8px; bottom: 6px; font: 500 10.5px/1 var(--mono); color: rgba(255,255,255,.9); }
.swatches span.light::after { color: rgba(25,25,25,.6); }
.typeset { margin-top: 12px; background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; align-items: baseline; justify-content: space-between; }
.typeset b { font-size: 26px; letter-spacing: -.03em; color: var(--ink); }
.typeset span { font: 12px var(--mono); color: var(--subtle); }

.devices { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-top: 26px; height: 120px; }
.dev { border: 2px solid var(--ink); border-radius: 8px; background: #fff; position: relative; padding: 8px; display: grid; gap: 5px; align-content: start; }
.dev i { display: block; height: 6px; border-radius: 3px; background: #e6e4e1; }
.dev i:first-child { background: var(--red); width: 40%; }
.dev.d { width: 150px; height: 96px; } .dev.t { width: 70px; height: 104px; } .dev.m { width: 44px; height: 86px; border-radius: 9px; }
.dev-labels { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font: 12px var(--mono); color: var(--subtle); }

.term { margin-top: 22px; background: #0f0f10; border: 1px solid #2a2a2a; border-radius: 14px; padding: 18px 20px; font: 14px/1.85 var(--mono); color: #e6e6e6; overflow-x: auto; }
.term .c { color: #6f6f6f; } .term .p { color: var(--red); user-select: none; } .term .s { color: #9bd49b; }

.local-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.local-list li { background: #fff; border-radius: 12px; padding: 14px; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.local-list li b { display: block; font: 600 20px/1.1 var(--sans); letter-spacing: -.02em; margin-bottom: 4px; }
.local-list li span { color: var(--muted); font-size: 13.5px; }

/* ---------- open source vs cloud ---------- */
.cloud { padding: 120px 0 72px; }
.compare { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; margin-top: 56px; align-items: stretch; }
.col { background: #fff; border-radius: var(--radius-card); padding: 26px 0 12px; box-shadow: var(--shadow-card); }
.col.labels { background: transparent; box-shadow: none; }
.col.now { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(227,63,82,.0), 0 30px 60px -30px rgba(25,25,25,.6); position: relative; }
.col-head { padding: 0 24px 20px; min-height: 104px; }
.col-head .tag { margin-bottom: 14px; }
.col-head h3 { font-size: 22px; letter-spacing: -.02em; }
.col.now .col-head h3 { color: #fff; }
.col-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.col.now .col-head p { color: #a8a8a8; }
.cell { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.col.now .cell { border-color: #2f2f2f; }
.col.labels .cell { border-color: var(--line-2); color: var(--ink); font-weight: 500; padding-left: 4px; }
.cell .ico { width: 17px; height: 17px; }
.yes { color: var(--ok); } .col.now .yes { color: #4fd18b; }
.soon { font: 500 11.5px/1 var(--mono); color: var(--red-2); background: var(--red-soft); padding: 5px 8px; border-radius: 6px; flex: none; }
.compare-foot { margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; text-align: center; color: var(--muted); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { padding: 104px 0 120px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq .tag { margin-bottom: 18px; }
.faq h2 { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 10px; }
details { background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary .ico { width: 20px; height: 20px; flex: none; transition: transform .2s; color: var(--muted); }
details[open] summary .ico { transform: rotate(45deg); color: var(--red); }
details .a { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
details .a p { margin: 0; }
details code { font: 14px var(--mono); background: var(--wash); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- final cta ---------- */
.final { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.final .cards { position: relative; height: 280px; max-width: 760px; margin: 0 auto 4px; }
.final .card { position: absolute; left: 50%; top: 20px; width: 210px; height: 200px; margin-left: -105px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); padding: 16px; text-align: left; overflow: hidden; }
.final .card img { border-radius: 10px; width: 100%; height: 110px; object-fit: cover; object-position: top left; }
.final .card b { display: block; margin-top: 12px; font-size: 14px; color: var(--ink); font-weight: 600; }
.final .card span { font-size: 12.5px; color: var(--subtle); }
.final .card.c1 { transform: translateX(-330px) rotate(-14deg) translateY(56px); opacity: .55; }
.final .card.c2 { transform: translateX(-170px) rotate(-7deg) translateY(16px); opacity: .85; }
.final .card.c3 { transform: none; z-index: 2; }
.final .card.c4 { transform: translateX(170px) rotate(7deg) translateY(16px); opacity: .85; }
.final .card.c5 { transform: translateX(330px) rotate(14deg) translateY(56px); opacity: .55; }
.final .card.c3 .m { height: 110px; border-radius: 10px; background: var(--red-soft); display: grid; place-items: center; }
.final .card.c3 .m img { width: 64px; height: 64px; border-radius: 0; object-fit: contain; }
.final .fade { position: absolute; left: -40px; right: -40px; top: 96px; height: 200px; background: linear-gradient(rgba(255,255,255,0), #fff 58%); z-index: 3; }
.final h2 { position: relative; z-index: 4; }
.final .lede { max-width: 520px; margin: 22px auto 0; position: relative; z-index: 4; }
.final .hero-ctas { position: relative; z-index: 4; }

/* ---------- footer ---------- */
.footer { margin: 12px 12px 12px; border-radius: var(--radius-panel); background: var(--ink); color: #b9b9b9; padding: 72px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .brand { color: #fff; }
.footer .tagline { margin: 16px 0 0; max-width: 300px; font-size: 15px; color: #9a9a9a; }
.footer h4 { margin: 4px 0 14px; color: #fff; font-size: 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: 13.5px; color: #8a8a8a; }
.foot-bottom a { color: #b9b9b9; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #555; }
.foot-bottom a:hover { color: #fff; }

/* ---------- video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(15, 15, 15, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { width: min(1100px, 100%); position: relative; }
.modal video { width: 100%; border-radius: 16px; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.modal-close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.modal-close .ico { width: 20px; height: 20px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ui-prompt p::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .chip-qa { left: -12px; } .chip-ai { right: -12px; }
  .selected .note { display: none; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-card:nth-child(3) { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-canvas, .t-code, .t-local { grid-column: span 2; }
  .t-qa, .t-brand, .t-devices, .t-agents { grid-column: span 1; }
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .gh-star { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav.open { flex-wrap: wrap; height: auto; padding-bottom: 14px; }
  .nav.open .nav-links { display: flex; flex-direction: column; order: 3; width: 100%; gap: 4px; margin: 4px 0 0; }
  .nav.open .nav-links a { padding: 12px 8px; border-top: 1px solid var(--line); }
  .nav-cta .btn-ink { display: none; }
  .nav.open .nav-cta { order: 4; width: 100%; }
  .nav.open .nav-cta .btn-ink { display: inline-flex; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 18px; }
  .split p { justify-self: start; }
  .problem-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr 1fr; }
  .col.labels { display: none; }
  .cell[data-label]::before { content: attr(data-label); display: block; width: 100%; font-size: 12px; color: var(--subtle); }
  .col.now .cell[data-label]::before { color: #8a8a8a; }
  .cell[data-label] { flex-wrap: wrap; gap: 4px 8px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq h2 { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
  .final .card.c1, .final .card.c5 { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .promo-bar a { justify-content: flex-start; flex-wrap: wrap; gap: 6px 10px; padding: 10px 48px 10px 16px; text-align: left; font-size: 13.5px; }
  .promo-more .pm-text { display: none; }
  .promo-bar a { flex-wrap: nowrap; align-items: flex-start; }
  .promo-text { flex: 1; }
  .shell { padding: 8px; }
  .wrap { padding: 0 20px; }
  .panel, .statement, .footer { border-radius: 24px; }
  .statement { margin: 32px 8px 0; padding: 80px 0; }
  .footer { margin: 8px; }
  .hero { padding: 64px 0 28px; }
  .selected .pin { right: -.5em; min-width: 26px; min-height: 26px; font-size: 12px; }
  .statement .squiggle { opacity: .35; width: 260px; }
  .statement .squiggle.a { left: -120px; bottom: -70px; }
  .statement .squiggle.b { right: -120px; top: -60px; }
  .term { font-size: 12.5px; padding: 14px 16px; }
  .stage { margin-top: 48px; }
  .chip-float { display: none; }
  .stage-play { right: 10px; bottom: 10px; height: 38px; font-size: 13.5px; }
  .hero-ctas .btn { width: 100%; }
  .how-grid, .bento { grid-template-columns: 1fr; }
  .t-canvas, .t-code, .t-local, .t-qa, .t-brand, .t-devices, .t-agents { grid-column: span 1; }
  .t-canvas .shot { margin-right: -28px; }
  .compare { grid-template-columns: 1fr; }
  .local-list { grid-template-columns: 1fr; }
  .meta-sep { display: none; }
  .nav { width: calc(100% - 16px); margin-top: 8px; }
  .final .card.c2, .final .card.c4 { display: none; }
  .problem, .how, .cloud { padding-top: 88px; }
}
