/* Blockwerk – site styles. Dark, precise, quiet. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #08090a;
  --bg-2: #0f1011;
  --bg-3: #161719;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;
  --accent: #3858e9;      /* WordPress blue */
  --accent-2: #8b9dff;    /* readable on dark */
  --accent-bg: rgba(56, 88, 233, 0.16);
  --warn: #f2b15a;
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", "SF Pro Display", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, li a:hover, .prose a:hover { text-decoration-color: var(--text); }
::selection { background: rgba(56, 88, 233, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: .875em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: 64px; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled, .site-header.is-open { background: rgba(8, 9, 10, .8); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { font-size: 13.5px; color: var(--muted); padding: 6px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; color: var(--text); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .25s var(--ease), opacity .2s; }
.is-open .menu-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.is-open .menu-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font: 500 14px/1 var(--font); letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }
.btn-link { color: var(--muted); padding: 0 6px; height: auto; }
.btn-link:hover { color: var(--text); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 560; letter-spacing: -.022em; line-height: 1.1; text-wrap: balance; }
.display { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.035em; line-height: 1.02; font-weight: 580; }
.h1 { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.028em; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); line-height: 1.55; letter-spacing: -.012em; max-width: 640px; text-wrap: pretty; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 500; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.gradient-text { background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-sm { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { margin: 14px 0 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 136px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(50% 50% at 50% 0%, rgba(56, 88, 233, .12), transparent 70%), radial-gradient(40% 40% at 80% 10%, rgba(120, 130, 255, .08), transparent 70%); pointer-events: none; }
.hero .container { position: relative; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s; }
.badge:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.badge b { font-weight: 500; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-2); }
.hero h1 { margin: 28px 0 22px; max-width: 900px; }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓"; color: var(--accent-2); margin-right: 6px; }

/* ---------- Product visual (Claude app + editor) ---------- */
.stage { margin-top: clamp(56px, 8vw, 88px); position: relative; perspective: 2000px; }
.stage-frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); padding: 10px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .5); }
.stage-frame::after { content: ""; position: absolute; inset: auto 10% -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 88, 233, .6), transparent); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; min-height: 520px; }
.window { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.window-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); flex: none; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2c31; display: inline-block; }
.window-bar .title { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Demo items appear one after another (site.js sets .on) */
[data-demo] [data-t] { opacity: 0; transform: translateY(5px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
[data-demo] [data-t].on { opacity: 1; transform: none; }

.terminal { padding: 18px; font: 12.5px/1.75 var(--mono); color: var(--text-2); flex: 1; overflow: hidden; }
.terminal .line { white-space: pre-wrap; word-break: break-word; }
.terminal .prompt { color: var(--accent-2); }
.terminal .user { color: var(--text); }
.terminal .tool { color: var(--muted); }
.terminal .tool b { color: var(--text-2); font-weight: 500; }
.terminal .ok { color: var(--accent-2); }
.terminal .dim { color: var(--faint); }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--text); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-window { min-height: 330px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); border-color: var(--line-2); }

/* Claude app mock */
.app { background: #262624; border-color: rgba(255, 255, 255, .09); }
.app .window-bar { background: #1f1e1d; border-bottom-color: rgba(255, 255, 255, .06); }
.app .window-bar .title { font-family: var(--font); font-size: 12.5px; font-weight: 500; color: #a6a39b; }
.app-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 18px 16px 14px; }
.app-thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.app-msg { font-size: 13px; line-height: 1.55; }
.app-msg.user { align-self: flex-end; max-width: 90%; background: #141413; border: 1px solid rgba(255, 255, 255, .06); color: #f5f4ef; padding: 10px 13px; border-radius: 14px; }
.app-msg.bot { color: #e8e6df; font: 14px/1.55 "Iowan Old Style", Georgia, serif; }
.app-msg.bot u { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; white-space: nowrap; }
.app-tools { border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: #1f1e1d; overflow: hidden; }
.app-tool { display: flex; align-items: center; gap: 8px; padding: 7px 11px; font-size: 12px; color: #a6a39b; white-space: nowrap; }
.app-tool + .app-tool { border-top: 1px solid rgba(255, 255, 255, .05); }
.app-tool b { font: 500 11.5px var(--mono); color: #dedad0; overflow: hidden; text-overflow: ellipsis; }
.app-tool .ok { margin-left: auto; color: var(--accent-2); }
.app-chip { width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--accent); color: #fff; font: 700 9.5px/16px var(--font); text-align: center; }
.app-input { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; background: #30302e; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 9px 9px 9px 14px; font-size: 13px; color: #8d8a82; flex: none; }
.app-input i { width: 26px; height: 26px; border-radius: 8px; background: #c96442 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 12.5v-9M4 7l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* WordPress editor mock */
.editor { flex: 1; display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.editor-side { border-right: 1px solid var(--line); padding: 14px 10px; font-size: 11.5px; color: var(--faint); }
.editor-side .lbl { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; margin: 0 6px 8px; }
.editor-side .blk { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; color: var(--muted); opacity: .35; transition: opacity .4s, background .4s, color .4s; }
.editor-side .blk.on { opacity: 1; }
.editor-side .blk.sel { background: rgba(255, 255, 255, .05); color: var(--text); }
.editor-side .blk::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; flex: none; }
.editor-canvas { padding: 14px; overflow: hidden; background: #ececef; color: #101a3f; position: relative; }

/* Example site "Atem & Raum" – navy, WordPress blue, warm white */
.mock-page { border-radius: 8px; overflow: hidden; background: #fbfaf7; box-shadow: 0 1px 2px rgba(16, 26, 63, .06), 0 10px 30px -14px rgba(16, 26, 63, .25); font-family: var(--font); color: #101a3f; }
.mock-block { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mock-block.on { opacity: 1; transform: none; }
.mock-nav { display: flex; align-items: center; gap: 14px; padding: 11px 14px; font-size: 10.5px; border-bottom: 1px solid #eceef5; }
.mn-logo { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; font: 600 12.5px/1 "Iowan Old Style", Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
.mn-logo i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9d3ff, #3858e9 55%, #14215a); }
.mn-links { display: flex; gap: 12px; color: #5a6283; }
.mock-nav em, .mh-cta em { font-style: normal; font-weight: 600; font-size: 10px; white-space: nowrap; color: #fff; border-radius: 99px; }
.mock-nav em { background: #101a3f; padding: 5px 11px; }
.mock-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 14px 16px 16px; }
.mh-text small { display: block; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #3858e9; font-weight: 600; }
.mh-text h4 { margin: 9px 0 9px; font: 400 28px/1.02 "Iowan Old Style", Georgia, serif; letter-spacing: -.02em; }
.mh-text h4 i { color: #3858e9; }
.mh-text p { margin: 0 0 13px; font-size: 10.5px; line-height: 1.55; color: #4a5274; max-width: 230px; }
.mh-cta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mh-cta em { background: #3858e9; padding: 7px 12px; box-shadow: 0 6px 14px -6px rgba(56, 88, 233, .7); }
.mh-cta span { font-size: 10px; font-weight: 600; padding: 6px 11px; border: 1px solid #d5dbef; border-radius: 99px; }
.mh-proof { margin-top: 12px; font-size: 9.5px; color: #5a6283; }
.mh-proof b { color: #3858e9; font-weight: 400; letter-spacing: 1px; margin-right: 3px; }
.mh-art { aspect-ratio: 5 / 6; border-radius: 999px 999px 12px 12px; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(20, 33, 90, .6); }
.mh-art svg { width: 100%; height: 100%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px 12px 12px; }
.mock-cards div { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e9f4; border-radius: 9px; padding: 10px; font-size: 9.5px; line-height: 1.4; color: #5a6283; }
.mock-cards b { font: 400 14px/1.2 "Iowan Old Style", Georgia, serif; color: #101a3f; margin: 5px 0 2px; }
.mc-time { font-size: 8.5px; font-weight: 600; color: #3858e9; }
.mc-lvl { margin-top: 8px; align-self: flex-start; font-size: 8.5px; background: #eef1fd; color: #2a44c4; padding: 2px 7px; border-radius: 99px; }
.mock-faq { padding: 2px 14px 12px; }
.mock-faq h5 { margin: 0 0 4px; font: 400 13px "Iowan Old Style", Georgia, serif; }
.mock-faq div { font-size: 10px; border-top: 1px solid #e6e9f4; padding: 7px 2px; display: flex; justify-content: space-between; color: #2b3354; }
.mock-faq div span { color: #3858e9; }
.selection-ring { position: absolute; border: 1.5px solid #3858e9; border-radius: 6px; pointer-events: none; opacity: 0; transition: all .45s var(--ease); }

/* ---------- Logos strip ---------- */
.logos { padding: 32px 0 0; text-align: center; }
.logos p { font-size: 13px; color: var(--faint); margin: 0 0 22px; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.logos li { font-weight: 560; font-size: 17px; color: #6b7079; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.logos li svg { width: 18px; height: 18px; opacity: .8; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; overflow: hidden; transition: border-color .25s; }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 17px; letter-spacing: -.015em; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(255, 255, 255, .03); color: var(--text-2); }
.card .icon svg { width: 18px; height: 18px; }
.card-visual { margin: -28px -28px 22px; height: 200px; border-bottom: 1px solid var(--line); background: radial-gradient(80% 100% at 50% 0%, rgba(255, 255, 255, .05), transparent); position: relative; overflow: hidden; display: grid; place-items: center; }
.card-lg { padding: 36px; }
.card-lg h3 { font-size: 22px; }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%238b9dff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Code block */
.code { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 0 16px; height: 40px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.code .c { color: var(--faint); }
.code .k { color: var(--accent-2); }
.code .s { color: #c3b4ff; }
.copy-btn { border: 0; background: none; color: var(--muted); font: 12px var(--font); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.copy-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px var(--font); height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab-panel[hidden] { display: none; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { counter-increment: step; padding: 28px; border-left: 1px solid var(--line); }
.step::before { content: "0" counter(step); font: 500 13px var(--mono); color: var(--accent-2); }
.step h3 { font-size: 18px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Two worlds */
.worlds { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.world { padding: clamp(28px, 4vw, 44px); background: var(--bg-2); }
.world h3 { font-size: 22px; margin: 12px 0 10px; }
.world p { color: var(--muted); margin: 0; }
.world-sep { width: 1px; background: var(--line); position: relative; }
.world-sep span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; }
.world-sep svg { width: 18px; height: 18px; }
.tag { display: inline-flex; font: 500 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--bg-2); }
.compare thead th.hl { color: var(--text); }
.compare td.hl { background: rgba(56, 88, 233, .035); color: var(--text); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--text-2); }
.yes { color: var(--accent-2); }
.no { color: var(--faint); }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); margin-bottom: 40px; }
.billing-toggle button { height: 32px; padding: 0 16px; border: 0; background: none; color: var(--muted); border-radius: 999px; cursor: pointer; font: 500 13px var(--font); }
.billing-toggle button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.billing-toggle small { color: var(--accent-2); margin-left: 4px; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); position: relative; }
.plan.featured { border-color: rgba(56, 88, 233, .45); background: linear-gradient(180deg, rgba(56, 88, 233, .07), rgba(56, 88, 233, 0) 40%), var(--bg-2); }
.plan .ribbon { position: absolute; top: -11px; left: 32px; font: 500 11.5px var(--font); background: var(--accent); color: #ffffff; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .for { color: var(--muted); font-size: 14px; margin: 6px 0 22px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 44px; font-weight: 580; letter-spacing: -.035em; }
.price span { color: var(--muted); font-size: 14px; }
.price-note { color: var(--faint); font-size: 12.5px; margin: 6px 0 24px; min-height: 18px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent-2); }
.plan .btn { width: 100%; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -.012em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 40px 24px 0; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }

/* CTA band */
.cta-band { text-align: center; padding: clamp(96px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 100%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(56, 88, 233, .14), transparent); pointer-events: none; }
.cta-band .h2 { max-width: 760px; margin: 0 auto 20px; }
.cta-band .lead { margin: 0 auto 36px; }
.cta-band .hero-cta { justify-content: center; }

/* Page header (subpages) */
.page-head { padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 480px; background: radial-gradient(45% 60% at 50% 0%, rgba(56, 88, 233, .09), transparent 70%); pointer-events: none; }
.page-head .container { position: relative; }
.page-head h1 { margin: 18px 0 18px; }
.crumbs { font-size: 13px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }

/* Prose (docs, legal, blog) */
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.prose h2 { font-size: 28px; margin: 56px 0 16px; color: var(--text); }
.prose h3 { font-size: 20px; margin: 36px 0 12px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose code { overflow-wrap: anywhere; background: var(--bg-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .86em; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 24px 0; padding: 4px 20px; border-left: 2px solid var(--accent); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.callout { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; font-size: 15px; }
.callout.warn { border-color: rgba(242, 177, 90, .4); }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc p { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 12px; }
.toc a { display: block; color: var(--muted); padding: 5px 0; }
.toc a:hover { color: var(--text); }

/* Forms */
.form-card { max-width: 560px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg-2); padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 15px var(--font); transition: border-color .15s, box-shadow .15s; }
.field textarea { height: 90px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(56, 88, 233, .15); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-picker label { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .15s; }
.plan-picker label b { display: block; color: var(--text); font-size: 14px; font-weight: 560; }
.plan-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.plan-picker input:checked + label { border-color: var(--accent-2); background: var(--accent-bg); }
.plan-picker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--accent-2); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-size: 14px; }
.form-msg.err { color: #ff8f8f; }
.success-box { display: none; }
.success-box.on { display: block; }
.key-box { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px dashed rgba(56, 88, 233, .5); background: var(--accent-bg); border-radius: 10px; padding: 14px 16px; font: 500 16px var(--mono); margin: 16px 0; word-break: break-all; }

/* Account */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 22px; font-weight: 560; }
.stat span { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; font: 500 12px var(--font); padding: 3px 10px; border-radius: 999px; background: var(--bg-3); }
.pill.trial { background: rgba(120, 140, 255, .15); color: #b4c2ff; }
.pill.active { background: var(--accent-bg); color: var(--accent-2); }
.pill.expired, .pill.disabled { background: rgba(255, 120, 90, .12); color: #ffb39f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 500; color: var(--text); margin: 0 0 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); max-width: 260px; margin: 14px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-demo] [data-t], .mock-block { opacity: 1 !important; transform: none !important; transition: none !important; }
  .caret { animation: none; }
}

/* Small visuals inside feature cards */
.mini-blocks { display: grid; gap: 6px; width: 70%; }
.mini-blocks span { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.mini-blocks span:nth-child(1) { width: 60%; height: 20px; background: rgba(255, 255, 255, .12); }
.mini-blocks span:nth-child(3) { width: 80%; }
.mini-blocks span.sel { border-color: #5b7bff; box-shadow: 0 0 0 3px rgba(91, 123, 255, .15); }
.swatches { display: flex; gap: 10px; }
.swatches i { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); }
.log-mini { width: 80%; font: 11.5px/1.9 var(--mono); color: var(--muted); }
.log-mini div::before { content: "●"; color: var(--accent-2); margin-right: 8px; font-size: 8px; vertical-align: 2px; }
.log-mini div.undo::before { color: #f2b15a; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 80%; }
.agent-chips span { font: 500 12px var(--font); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); background: rgba(255, 255, 255, .02); }
.shop-mini { display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; }
.shop-mini i { height: 70px; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid var(--line); position: relative; }
.shop-mini i::after { content: ""; position: absolute; left: 8px; right: 18px; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(56, 88, 233, .5); }
.layout-mini { width: 74%; display: grid; gap: 6px; }
.layout-mini .hd, .layout-mini .ft { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.layout-mini .bd { height: 64px; border-radius: 6px; border: 1px dashed var(--line-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage-grid .app-thread { flex: none; overflow: visible; }
  .stage-grid .editor { min-height: 460px; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: none; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn-link { display: none; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: 0; }
  .is-open .nav { display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; padding: 16px var(--gutter); background: var(--bg); margin: 0; }
  .is-open .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .grid-3, .pricing, .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .worlds { grid-template-columns: minmax(0, 1fr); }
  .world-sep { width: auto; height: 1px; }
  .step { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-side { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .prose table { display: block; overflow-x: auto; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan-picker { grid-template-columns: minmax(0, 1fr); }
  h1, .h1, .h2, .display { -webkit-hyphens: auto; hyphens: auto; }
  .hero-cta .btn { width: 100%; }
  .header-cta .btn-primary { display: none; }
  .is-open .header-cta .btn-primary { display: inline-flex; }
  .mock-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-cards div:last-child { display: none; }
  .mn-links { display: none; }
  .mock-hero { grid-template-columns: minmax(0, 1fr); }
  .mh-art { order: -1; aspect-ratio: 2 / 1; border-radius: 10px; }
  .stage-frame { padding: 6px; }
  .app-body { padding: 14px 12px 12px; }
}
