/* =========================================================
   AgentXPro landing page
   Design tokens mirror the AgentXPro web workspace
   (dsh-portal/gateway/ui/theme.css), light and dark.
   ========================================================= */
:root {
  --canvas: #ffffff;
  --sidebar: #f7f7f6;
  --surface: #ffffff;
  --raised: #ffffff;
  --text: #232323;
  --muted: #555552;
  --subtle: #777774;
  --border: #e7e7e4;
  --hover: #ececea;
  --bubble: #f3f3f1;
  --accent: #4f6bed;
  --ok: #1f8a4c;
  --bad: #d64545;
  --shadow: 0 4px 20px #20202007, 0 1px 3px #20202005;
  --shadow-lg: 0 30px 80px -30px #20202030, 0 4px 20px #2020200a;
  --mark-bg: #232323; --mark-fg: #ffffff; --mark-accent: #7b90ff;
  --gsi-bg: #f6f5ee; --gsi-border: #e2dfd2; --gsi-text: #18241f;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #212121; --sidebar: #191919; --surface: #2c2c2c; --raised: #2a2a2a;
    --text: #efefed; --muted: #b4b4af; --subtle: #a6a6a0; --border: #3c3c39; --hover: #353533; --bubble: #30302e;
    --accent: #9aaaff; --ok: #7bd88f; --bad: #ff7a6b;
    --shadow: 0 6px 24px #00000016, 0 1px 3px #00000012;
    --shadow-lg: 0 30px 80px -30px #000000a0, 0 6px 24px #00000020;
    --mark-bg: #efefed; --mark-fg: #212121; --mark-accent: #4f6bed;
    --gsi-border: transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #212121; --sidebar: #191919; --surface: #2c2c2c; --raised: #2a2a2a;
  --text: #efefed; --muted: #b4b4af; --subtle: #a6a6a0; --border: #3c3c39; --hover: #353533; --bubble: #30302e;
  --accent: #9aaaff; --ok: #7bd88f; --bad: #ff7a6b;
  --shadow: 0 6px 24px #00000016, 0 1px 3px #00000012;
  --shadow-lg: 0 30px 80px -30px #000000a0, 0 6px 24px #00000020;
  --mark-bg: #efefed; --mark-fg: #212121; --mark-accent: #4f6bed;
  --gsi-border: transparent;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.lede, .sub { text-wrap: pretty; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--text); color: var(--canvas); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.mark { width: 28px; height: 28px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .mark { transform: rotate(-8deg); }

/* ---------- Google button ---------- */
.gsi { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 50px; padding: 0 22px; max-width: 100%; background: var(--gsi-bg); color: var(--gsi-text); border: 1px solid var(--gsi-border); border-radius: 12px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.gsi:hover { background: #edebe1; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .35); }
.gsi:active { transform: translateY(1px); }
.gsi .g-logo { flex: none; width: 20px; height: 20px; }
.gsi span { overflow: hidden; text-overflow: ellipsis; }
.gsi-arrow { flex: none; width: 16px; height: 16px; margin-left: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.gsi:hover .gsi-arrow { transform: translate(2px, -2px); }
.gsi-sm { height: 38px; padding: 0 14px; gap: 10px; border-radius: 10px; font-size: 14px; }
.gsi-sm .g-logo { width: 17px; height: 17px; }
.gsi-sm .gsi-arrow { width: 13px; height: 13px; margin-left: 2px; }
.gsi-lg { height: 58px; padding: 0 30px; gap: 16px; border-radius: 14px; font-size: 17px; }
.gsi-lg .g-logo { width: 22px; height: 22px; }
.gsi-lg .gsi-arrow { margin-left: 18px; }
@media (max-width: 420px) { .gsi-sm span, .gsi-sm .gsi-arrow { display: none; } .gsi-sm { width: 38px; padding: 0; } }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 15px; transition: background .15s, border-color .15s; }
.btn-ghost:hover { background: var(--hover); }

/* ---------- top bar (like the workspace header) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 85%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 34px; height: 64px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a { padding: 6px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--hover); color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } .topbar-inner { justify-content: space-between; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 380px; width: 1200px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; border: 1.5px solid var(--subtle); }
.dot.on { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
h1 { margin-top: 26px; font-size: clamp(42px, 7vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.lede { margin-top: 20px; max-width: 600px; font-size: clamp(17px, 1.8vw, 19.5px); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; }

.hero-demo { position: relative; margin-top: 64px; }
.replay-tag { position: absolute; top: -13px; right: max(48px, calc(50% - 550px + 24px)); z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 12px; font-weight: 500; }
.replay-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(1) infinite; }
.status-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; }
.status-row li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; color: var(--subtle); }
.status-row b { color: var(--text); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--sidebar); border-block: 1px solid var(--border); }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.head.left { margin: 0; text-align: left; }
.label { font-size: 14px; font-weight: 600; color: var(--accent); }
h2 { margin-top: 12px; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.035em; }
.sub { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.t-wide { grid-column: span 4; flex-direction: row; align-items: center; }
.t-wide .tile-copy { flex: 1 1 42%; }
.t-wide .peek { flex: 1 1 58%; }
.tile h3 { font-size: 21px; letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.tile code { color: var(--accent); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile { grid-column: span 1; } .t-wide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .t-wide { grid-column: span 1; } .t-wide { flex-direction: column; align-items: stretch; } .t-wide .tile-copy, .t-wide .peek { flex: none; } }

/* little previews styled like the workspace */
.peek { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--sidebar); font-size: 13px; }
.peek p { margin: 0; color: var(--text); font-size: 13px; }
.peek svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pk-think { margin-bottom: 10px !important; background: linear-gradient(90deg, var(--accent) 30%, var(--subtle) 50%, var(--accent) 70%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shimmer 1.6s linear infinite; }
.pk-tool { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; color: var(--muted); }
.pk-tool svg { width: 14px; height: 14px; flex: none; }
.pk-tool .ok { color: var(--ok); }
.pk-tool .spin { color: var(--accent); animation: rot .8s linear infinite; }
.pk-tool b { color: var(--text); font-weight: 600; }
.pk-tool code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pk-tool span { margin-left: auto; flex: none; font-size: 12px; }
.pk-tool .bad { color: var(--bad); }
.pk-q { font-weight: 600; }
.pk-cmd { display: block; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-btns { display: flex; gap: 8px; margin-top: 12px; }
.pk-btns span { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 500; }
.pk-btns .on { background: var(--text); border-color: var(--text); color: var(--canvas); }
.pk-iso { display: grid; gap: 8px; }
.pk-iso div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.pk-iso svg { width: 14px; height: 14px; flex: none; color: var(--accent); }
.pk-iso b { font-weight: 600; font-size: 13px; }
.pk-iso span { margin-left: auto; color: var(--subtle); font-size: 12px; }
.pk-compose { background: var(--surface); border-radius: 18px; }
.at { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-family: var(--mono); font-size: 12px; }
.thumb { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 10px 5px 5px; border-radius: 10px; background: var(--sidebar); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.thumb i { width: 28px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #7b90ff, #c79bff); }
.pk-list p { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 8px; }
.pk-ws svg { width: 14px; height: 14px; color: var(--accent); }
.pk-chat { padding-left: 28px !important; color: var(--muted) !important; }
.pk-chat span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chat small { font-size: 11px; color: var(--subtle); }
.pk-chat.on { background: var(--hover); color: var(--text) !important; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- coming soon ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bubble); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--subtle); }
.soon-copy h3 { margin-top: 14px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.soon-copy p { margin-top: 10px; color: var(--muted); font-size: 16.5px; max-width: 440px; }
.soon-term { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding: 36px; border: 1px solid var(--border); border-radius: 26px; background: var(--sidebar); }
.term-wrap { min-width: 0; }
/* ---- install block ---- */
.badge-live { color: var(--ok); }
.badge-live::before { border: 0; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.soon-term > * { min-width: 0; }   /* grid items: let the nowrap command scroll instead of widening the page */
.install { margin-top: 24px; }
#install .soon-term { grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 1140px) { #install .soon-term { grid-template-columns: 1fr; gap: 28px; } #install .install { max-width: 560px; } }
.install-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.install-tabs button { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .15s, color .15s; }
.install-tabs button:hover { color: var(--text); }
.install-tabs button[aria-selected="true"] { background: var(--bubble); color: var(--text); }
.install-tabs button:focus-visible, .cmd-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.install-pane { margin-top: 12px; }
.cmd { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--text); scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--bubble); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: color .15s, background .15s; }
.cmd-copy:hover { color: var(--text); background: var(--hover); }
.cmd-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cmd-copy.copied { color: var(--ok); }
.install-note { margin-top: 8px !important; font-size: 13.5px !important; color: var(--subtle) !important; }
.install-meta { margin-top: 14px !important; font-size: 13.5px !important; line-height: 1.55; }
.install-meta code { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--bubble); }
.install-links { display: block; margin-top: 4px; }
.install-links a { color: var(--accent); }
.install-links a:hover { text-decoration: underline; }
@media (max-width: 420px) { .cmd-copy span { display: none; } .cmd-copy { padding: 0 9px; } }
@media (max-width: 900px) { .soon-term { grid-template-columns: 1fr; gap: 28px; padding: 22px; } }
.devices { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; margin-top: 24px; }
.device { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: 36px; border: 1px solid var(--border); border-radius: 26px; background: var(--sidebar); }
.device .mac-desk, .device .phone { margin-top: auto; }
@media (max-width: 1060px) { .devices { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .device { padding: 20px 14px; } }

/* ---------- terminal (dark in both themes) ---------- */
.term { background: #161616; color: #e6e6e3; border: 1px solid #2e2e2c; border-radius: 16px; box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #1f1f1f; border-bottom: 1px solid #2e2e2c; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.term-title { font-size: 12px; color: #8a8a86; }
.term-body { padding: 18px 18px 14px; }
.banner { margin: 0 0 16px; color: #9aaaff; font-size: clamp(3.4px, 1.45vw, 8.4px); line-height: 1.05; white-space: pre; overflow: hidden; }
@media (min-width: 901px) { .banner { font-size: clamp(4.5px, .62vw, 8.4px); } }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 13.4em; }
.log li { overflow-wrap: anywhere; }
.log .p { color: #9aaaff; margin-right: 6px; }
.l-user { color: #fff; font-weight: 500; }
.l-think { color: #9aaaff; }
.dim { color: #8a8a86; }
.tag { display: inline-block; min-width: 44px; margin-right: 8px; padding: 0 6px; border-radius: 4px; background: #2a2a28; color: #a6a6a0; font-size: 11px; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.term .good, .term .add { color: #7bd88f; }
.term .bad, .term .del { color: #ff7a6b; }
.l-done code { color: #9aaaff; font-size: 1em; }
.status { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 10px; border-top: 1px solid #2e2e2c; font-size: 12px; color: #8a8a86; }
.status b { color: #9aaaff; font-weight: 500; }
.cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #9aaaff; animation: blink 1.1s steps(1) infinite; }
.log.animate li { opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.log.animate li.in { opacity: 1; transform: none; }
@media (max-width: 560px) { .term { font-size: 12px; } .term-body { padding: 14px 14px 12px; } .status span:first-child { display: none; } }

/* ---------- product UI mock (web, macOS, phone) ---------- */
/* .ui follows the page theme, exactly like the real workspace; .ui-dark forces dark */
.ui {
  --u-bg: var(--canvas); --u-side: var(--sidebar); --u-text: var(--text); --u-muted: var(--muted); --u-faint: var(--subtle);
  --u-line: var(--border); --u-hover: var(--hover); --u-bubble: var(--bubble); --u-accent: var(--accent);
  --u-code: var(--sidebar); --u-send: var(--text); --u-send-ink: var(--canvas); --u-ok: var(--ok); --u-bad: var(--bad);
  --u-av: #e8e8e3; --u-av-ink: #40403b;
  background: var(--u-bg); color: var(--u-text); font-family: var(--font); font-size: 13px; line-height: 1.5;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui { --u-av: #3b3b37; --u-av-ink: #efefed; } }
:root[data-theme="dark"] .ui { --u-av: #3b3b37; --u-av-ink: #efefed; }
.ui.ui-dark {
  --u-bg: #212121; --u-side: rgba(25, 25, 25, .9); --u-text: #efefed; --u-muted: #b4b4af; --u-faint: #a6a6a0;
  --u-line: #3c3c39; --u-hover: #353533; --u-bubble: #30302e; --u-accent: #9aaaff;
  --u-code: #191919; --u-send: #efefed; --u-send-ink: #212121; --u-ok: #7bd88f; --u-bad: #ff7a6b;
  --u-av: #3b3b37; --u-av-ink: #efefed;
  --mark-bg: #efefed; --mark-fg: #212121; --mark-accent: #4f6bed;
  color-scheme: dark;
}
.ui svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-i { width: 15px; height: 15px; flex: none; color: var(--u-muted); }
.ui-mark { width: 18px; height: 18px; }
.ui-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 10px; background: var(--u-side); border-right: 1px solid var(--u-line); }
.ui-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; font-weight: 700; font-size: 14px; }
.ui-push { margin-left: auto; }
.ui-new { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-weight: 500; }
.ui-new kbd { margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--u-faint); }
.ui-label { padding: 14px 8px 6px; font-size: 11.5px; color: var(--u-muted); }
.ui-ws { display: flex; align-items: center; gap: 7px; padding: 6px 8px; }
.ui-ws .ui-i { color: var(--u-accent); }
.ui-chat { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 28px; border-radius: 8px; color: var(--u-muted); }
.ui-chat span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-chat.active { background: var(--u-hover); color: var(--u-text); }
.ui-when { flex: none; font-size: 11px; color: var(--u-faint); }
.ui-dots { display: none; gap: 3px; }
.ui-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--u-accent); animation: dots 1s infinite ease-in-out; }
.ui-dots i:nth-child(2) { animation-delay: .15s; } .ui-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ui-user { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 8px 6px 0; }
.ui-user b { display: block; font-weight: 500; font-size: 12.5px; }
.ui-user small { display: block; font-size: 11px; color: var(--u-muted); }
.ui-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--u-av); color: var(--u-av-ink); font-weight: 600; font-size: 12px; }
.ui-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--u-bg); }
.ui-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px 0; border-bottom: 1px solid var(--u-line); }
.ui-head-slim { padding-bottom: 12px; }
.ui-burger { display: none; }
.ui-head-text { min-width: 0; flex: 1; }
.ui-title { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-tabs { display: flex; gap: 22px; margin-top: 8px; font-size: 12.5px; color: var(--u-muted); }
.ui-tabs span { padding-bottom: 8px; }
.ui-tabs .on { color: var(--u-text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--u-text); }
.ui-pill { flex: none; align-self: flex-start; padding: 4px 12px; border: 1px solid var(--u-line); border-radius: 999px; font-size: 12px; }
.ui-convo { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 0 20px; }
.ui-thread { width: 100%; max-width: 620px; margin: 0 auto; padding: 16px 0 8px; display: flex; flex-direction: column; gap: 9px; }
.ui-umsg { align-self: flex-end; max-width: 85%; padding: 9px 15px; border-radius: 18px; background: var(--u-bubble); font-size: 13.5px; }
.ui-think { margin-top: 6px; font-size: 13px; }
.rp-live { display: none; background: linear-gradient(90deg, var(--u-accent) 30%, var(--u-faint) 50%, var(--u-accent) 70%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
.rp-done { color: var(--u-muted); }
.ui-think.live .rp-live { display: inline; }
.ui-think.live .rp-done { display: none; }
.ui-tool { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--u-muted); font-size: 12.5px; }
.ui-tool b { color: var(--u-text); font-weight: 600; }
.ui-tool .arg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; }
.ui-tool .res { flex: none; margin-left: auto; font-size: 12px; }
.ui-tool em { font-style: normal; font-family: var(--mono); font-size: 11.5px; }
.ui .add, .ui .pass { color: var(--u-ok); }
.ui .del { color: var(--u-bad); }
.st { display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.st svg { grid-area: 1 / 1; width: 14px; height: 14px; stroke-width: 1.8; }
.st .ok { color: var(--u-ok); }
.st .spin { display: none; color: var(--u-accent); animation: rot .8s linear infinite; }
.ui-tool.running .spin { display: block; }
.ui-tool.running .ok { display: none; }
.ui-tool.running .res { visibility: hidden; }
.ui-answer { display: grid; gap: 8px; margin-top: 6px; font-size: 13.5px; line-height: 1.6; }
.ui-answer pre { margin: 0; padding: 10px 12px; overflow-x: auto; background: var(--u-code); border: 1px solid var(--u-line); border-radius: 10px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; }
.ui-answer code { font-size: 1em; }
.ui-answer .k { color: #9d174d; } .ui-answer .s { color: #206331; } .ui-answer .n { color: #934214; }
.ui-dark .ui-answer .k { color: #f0a0c0; } .ui-dark .ui-answer .s { color: #8fd8a0; } .ui-dark .ui-answer .n { color: #ffb070; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui-answer .k { color: #f0a0c0; } :root:not([data-theme="light"]) .ui-answer .s { color: #8fd8a0; } :root:not([data-theme="light"]) .ui-answer .n { color: #ffb070; } }
.ui-actions { display: flex; gap: 14px; padding-top: 2px; color: var(--u-faint); }
.ui-actions svg { width: 15px; height: 15px; }
.ui-actions .flip { transform: rotate(180deg); }
.ui-composer { flex: none; width: calc(100% - 40px); max-width: 660px; margin: 4px auto 16px; padding: 12px 14px 10px; border: 1px solid var(--u-line); border-radius: 22px; background: var(--u-bg); box-shadow: 0 4px 20px #20202007, 0 1px 3px #20202005; }
.ui-input { display: flex; align-items: center; min-height: 21px; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.ui-input .ph { color: var(--u-faint); overflow: hidden; text-overflow: ellipsis; }
.caret { display: none; flex: none; width: 1.5px; height: 16px; margin-left: 1px; background: var(--u-accent); animation: blink 1s steps(1) infinite; }
.replay.typing .caret { display: inline-block; }
.replay.typing .ph { display: none; }
.ui-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ui-mode { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--u-muted); }
.ui-mode .ui-i { width: 13px; height: 13px; }
.ui-send { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: var(--u-hover); color: var(--u-muted); transition: background .2s, color .2s, transform .15s; }
.ui-send > * { grid-area: 1 / 1; }
.ui-send .up { width: 14px; height: 14px; stroke-width: 1.8; }
.ui-send .stop { display: none; width: 9px; height: 9px; border-radius: 2px; background: var(--u-send-ink); }
.replay.ready .ui-send { background: var(--u-send); color: var(--u-send-ink); }
.replay.pressed .ui-send { transform: scale(.86); }
.replay.busy .ui-send { background: var(--u-send); }
.replay.busy .ui-send .up { display: none; }
.replay.busy .ui-send .stop { display: block; }
.replay.busy .ui-dots { display: inline-flex; }
.replay.busy .ui-when.now { display: none; }
.replay.anim [data-step], .replay.anim .ui-answer > * { animation: rise .35s ease both; }
.replay .hid { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- web frame (hero) ---------- */
.frame-browser { max-width: 1100px; margin: 0 auto; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--sidebar); box-shadow: var(--shadow-lg); }
.fb-chrome { position: relative; display: flex; align-items: center; height: 42px; padding: 0 16px; background: var(--sidebar); border-bottom: 1px solid var(--border); }
.fb-url { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 16px; border-radius: 8px; background: var(--canvas); border: 1px solid var(--border); color: var(--muted); font-size: 12px; white-space: nowrap; }
.fb-url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.fb-app { display: grid; grid-template-columns: 230px 1fr; height: 600px; }
@media (max-width: 760px) {
  .fb-app { grid-template-columns: 1fr; height: 540px; }
  .fb-app .ui-side { display: none; }
  .fb-app .ui-burger { display: block; align-self: flex-start; margin-top: 1px; }
  .fb-app .ui-pill { display: none; }
  .fb-app .ui-head { padding: 12px 14px 0; }
  .fb-app .ui-convo { padding: 0 14px; }
  .fb-url { position: static; transform: none; margin-left: 12px; flex: 1; min-width: 0; justify-content: center; overflow: hidden; }
}

/* ---------- macOS ---------- */
.mac-desk { position: relative; overflow: hidden; padding: 0 28px 30px; border-radius: 18px; background: radial-gradient(90% 80% at 0% 0%, #7b90ff 0%, transparent 60%), radial-gradient(80% 90% at 100% 100%, #c79bff 0%, transparent 60%), radial-gradient(60% 60% at 70% 15%, #a6e3ff 0%, transparent 55%), #3b3f8f; }
.mac-menubar { display: flex; align-items: center; gap: 16px; height: 28px; margin: 0 -28px 24px; padding: 0 16px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #11131f; font-size: 12px; }
.mac-menubar b { font-weight: 700; }
.mb-mark { width: 14px; height: 14px; }
.mb-time { margin-left: auto; }
@media (max-width: 560px) { .mac-menubar span:not(.mb-time) { display: none; } }
.mac-win { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 40px 70px -20px rgba(10, 10, 40, .6); }
.mac-titlebar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; background: #2b2b2b; border-bottom: 1px solid #1c1c1c; }
.mac-title { flex: 1; text-align: center; font-weight: 600; font-size: 13px; color: #d5d5d5; margin-right: 15px; }
.mac-compose { margin-left: auto; }
.mac-body { display: grid; grid-template-columns: 196px 1fr; height: 470px; background: var(--u-bg); }
.mac-body .ui-thread { max-width: 520px; }
.mac-hud { position: absolute; left: 50%; top: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 28px; border-radius: 16px; background: rgba(40, 40, 40, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); color: #f2f2f2; font-weight: 600; font-size: 14px; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .2s, transform .2s; pointer-events: none; }
.mac-hud span { display: flex; gap: 6px; }
.mac-hud kbd { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; background: #3a3a3a; border: 1px solid #4a4a4a; border-bottom-width: 3px; font-family: var(--font); font-size: 17px; }
.replay.hud .mac-hud { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 700px) { .mac-desk { padding: 0 12px 16px; } .mac-menubar { margin: 0 -12px 16px; } .mac-body { grid-template-columns: 1fr; } .mac-body .ui-side { display: none; } }

/* ---------- phone ---------- */
.phone { width: 300px; margin: 0 auto; padding: 11px; border-radius: 50px; background: #0b0b0b; box-shadow: 0 0 0 1.5px #3a3a38, var(--shadow-lg); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 600px; border-radius: 40px; overflow: hidden; }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 4px 28px 0 30px; font-weight: 650; font-size: 13.5px; flex: none; }
.island { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.ph-icons { display: flex; align-items: center; gap: 6px; }
.sig { width: 16px; height: 10px; background: currentColor; clip-path: polygon(0 70%, 20% 70%, 20% 100%, 0 100%, 0 70%, 27% 45%, 27% 100%, 47% 100%, 47% 45%, 27% 45%, 54% 20%, 54% 100%, 74% 100%, 74% 20%, 54% 20%, 81% 0, 81% 100%, 100% 100%, 100% 0, 81% 0); }
.bat { position: relative; width: 22px; height: 11px; border-radius: 3.5px; border: 1.2px solid currentColor; opacity: .9; }
.bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1.5px; background: currentColor; }
.ph-head { display: flex; align-items: center; gap: 12px; padding: 6px 16px 10px; border-bottom: 1px solid var(--u-line); flex: none; }
.ph-head .ui-title { flex: 1; text-align: center; }
.ph-head .ui-i { width: 18px; height: 18px; color: var(--u-text); }
.phone-screen .ui-convo { padding: 0 14px; }
.phone-screen .ui-thread { padding-top: 12px; gap: 8px; }
.phone-screen .ui-umsg { font-size: 13px; }
.phone-screen .ui-composer { width: calc(100% - 20px); margin: 4px auto 6px; border-radius: 22px; padding: 10px 12px 8px; }
.phone-screen .ui-row { margin-top: 8px; }
.ph-kbd { flex: none; max-height: 0; overflow: hidden; background: #d2d4da; transition: max-height .35s cubic-bezier(.3, .8, .3, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-kbd { background: #2b2b2d; } :root:not([data-theme="light"]) .kr i { background: #5a5a5e; color: #fff; box-shadow: 0 1px 0 #111; } :root:not([data-theme="light"]) .kr .kw { background: #3d3d40; } :root:not([data-theme="light"]) .kr .ksp { color: #ddd; } :root:not([data-theme="light"]) .ph-home { background: #efefed; } }
.replay.typing .ph-kbd { max-height: 200px; }
.kr { display: flex; justify-content: center; gap: 4px; padding: 0 4px; margin-top: 8px; }
.kr:last-child { margin-bottom: 26px; }
.kr2 { padding: 0 14px; }
.kr i { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 #898a8d; font-style: normal; font-size: 15px; color: #111; }
.kr .kw { flex: 1.4; background: #abb0ba; font-size: 12px; }
.kr .ksp { flex: 5; font-size: 12px; color: #333; }
.kr .kgo { flex: 2; }
.ph-home { position: absolute; left: 50%; bottom: 7px; width: 112px; height: 4.5px; border-radius: 3px; background: #111; transform: translateX(-50%); }

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--canvas); font-weight: 600; }
.steps h3 { margin-top: 20px; font-size: 20px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- security ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; gap: 32px; } }
.spec { margin: 0; padding: 6px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 18px; border-radius: 16px; }
.spec div + div { border-top: 1px solid var(--border); border-radius: 0; }
.spec dt { font-weight: 600; font-size: 14.5px; }
.spec dd { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .spec div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 104px; }
.cta-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 24px; text-align: center; border: 1px solid var(--border); border-radius: 28px; background: var(--sidebar); }
.cta-card::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-mark { width: 56px; height: 56px; }
.cta-card h2 { margin-top: 8px; font-size: clamp(34px, 5.4vw, 60px); }
.cta-card p { color: var(--muted); font-size: 18px; margin-bottom: 12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; }
.footer .mark { width: 24px; height: 24px; }
.footer .brand { font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-right: auto; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-gsi { display: inline-flex; align-items: center; gap: 6px; }
.footer-gsi .g-logo { width: 14px; height: 14px; }
.copy { font-size: 13px; color: var(--subtle); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .log.animate li { opacity: 1; transform: none; }
}
