/* Cadrix Cloud landing. Tokens follow apps/web/src/styles.css and apps/cloud/web/src/styles.css. */
:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #09090b;
  --surface: #111113;
  --surface-2: #16171c;
  --line: #27272a;
  --line-2: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --accent: #60a5fa;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #86efac;
  --amber: #fde68a;
  --grad: linear-gradient(135deg, var(--cyan), var(--violet));
  --btn-grad: linear-gradient(135deg, rgba(37, 99, 235, .9), rgba(14, 165, 233, .7));
  --r-sm: 8px; --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --wrap: 1120px;
  --nav-h: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: hidden; background:
  radial-gradient(1200px 600px at 50% -10%, rgba(37, 99, 235, .22), transparent 60%),
  radial-gradient(800px 500px at 90% 20%, rgba(139, 92, 246, .14), transparent 60%),
  var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.12; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -.02em; }
p { margin: 0; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .1em .4em; border-radius: 6px; background: rgba(148, 163, 184, .12); color: #bfdbfe; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #93c5fd; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px rgba(134, 239, 172, .18); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: #71717a; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { border-color: rgba(96, 165, 250, .6); background: var(--btn-grad); color: #eff6ff; box-shadow: 0 10px 30px rgba(37, 99, 235, .28), inset 0 1px rgba(255, 255, 255, .12); }
.btn-primary:hover { border-color: rgba(147, 197, 253, .9); box-shadow: 0 14px 40px rgba(37, 99, 235, .38), inset 0 1px rgba(255, 255, 255, .12); }
.btn-ghost { background: rgba(24, 24, 27, .6); backdrop-filter: blur(8px); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); border-bottom: 1px solid rgba(148, 163, 184, .12); background: rgba(7, 10, 18, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: #93c5fd; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 600; color: #d4d4d8; }
.nav-links > a:not(.btn):hover { color: #fff; }
.nav-links .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.nav-login { margin-left: 6px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: rgba(24, 24, 27, .7); }
.lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(96, 165, 250, .2); color: #eff6ff; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #e4e4e7; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: #d4d4d8; max-width: 56ch; }
.lede strong { color: #fff; font-weight: 700; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--grad); }

/* Hero visual: canvas + phone */
.hero-visual { position: relative; width: 100%; container-type: inline-size; }
.canvas { position: relative; aspect-ratio: 520 / 340; border: 1px solid rgba(148, 163, 184, .22); border-radius: var(--r-xl); overflow: hidden; background:
  radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .22), transparent 40%),
  radial-gradient(circle at 85% 30%, rgba(168, 85, 247, .14), transparent 30%),
  #07080b; box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .06);
  background-image: radial-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px); background-size: 4cqw 4cqw; }
.canvas-toolbar { position: absolute; top: 2.4cqw; left: 50%; transform: translateX(-50%); display: flex; gap: 1.2cqw; padding: 1.1cqw; border: 1px solid rgba(148, 163, 184, .22); border-radius: 999px; background: rgba(17, 24, 39, .72); backdrop-filter: blur(10px); }
.canvas-toolbar i { width: 4.6cqw; height: 4.6cqw; border-radius: 999px; background: rgba(212, 212, 216, .18); }
.canvas-toolbar i:first-child { background: rgba(96, 165, 250, .45); }
.cables { position: absolute; inset: 0; width: 100%; height: 100%; }
.cables path { fill: none; stroke: url(#cab); stroke-width: 2.2; stroke-linecap: round; opacity: .85; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
.cables path.thin { stroke-width: 1.4; opacity: .5; }
@keyframes flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .cables path { animation: none; stroke-dasharray: none; } }
.node { position: absolute; left: var(--x); top: var(--y); width: 30cqw; padding: 2.2cqw 2.6cqw; border: 1px solid rgba(148, 163, 184, .28); border-radius: 2.8cqw; background: rgba(17, 19, 27, .92); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .06); font-size: 2.35cqw; line-height: 1.3; }
.node header { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-bottom: 1.2cqw; }
.node b { font-size: 2.7cqw; letter-spacing: -.02em; }
.node p { color: #cbd5e1; }
.node footer { display: flex; align-items: center; gap: 1.2cqw; margin-top: 1.4cqw; color: var(--muted); font-size: 2.1cqw; }
.node-manager { border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 0 1px rgba(139, 92, 246, .25), 0 14px 40px rgba(76, 29, 149, .35); }
.node-note { width: 22cqw; border-color: rgba(253, 230, 138, .35); background: rgba(41, 37, 20, .92); }
.node-note p { color: #fde68a; font-family: ui-monospace, Menlo, monospace; font-size: 2.1cqw; }
.tag { padding: .4cqw 1.4cqw; border: 1px solid rgba(96, 165, 250, .4); border-radius: 999px; background: rgba(30, 58, 95, .5); color: #bfdbfe; font-size: 1.9cqw; font-weight: 700; }
.tag-violet { border-color: rgba(196, 181, 253, .5); background: rgba(76, 29, 149, .45); color: #ddd6fe; }
.pill { display: inline-block; width: 1.8cqw; height: 1.8cqw; border-radius: 999px; }
.pill-busy { background: #fbbf24; box-shadow: 0 0 0 .7cqw rgba(251, 191, 36, .2); animation: pulse 1.4s ease-in-out infinite; }
.pill-idle { background: var(--green); box-shadow: 0 0 0 .7cqw rgba(134, 239, 172, .18); }
@keyframes pulse { 50% { opacity: .45; } }
.node footer .pill { margin-right: .4cqw; }
.phone { position: absolute; right: -2cqw; bottom: -6cqw; width: 27cqw; aspect-ratio: 9 / 18.5; padding: 2cqw 1.6cqw; border: 1px solid rgba(148, 163, 184, .35); border-radius: 5cqw; background: #0b0d14; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 255, 255, .08); transform: rotate(-4deg); }
.phone-screen { height: 100%; display: grid; grid-template-rows: auto 1fr 1fr 1fr auto; gap: 1.2cqw; padding: 1.6cqw; border-radius: 3.6cqw; background: linear-gradient(180deg, #0f1220, #0a0c14); font-size: 2cqw; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1cqw; border-bottom: 1px solid rgba(148, 163, 184, .16); }
.phone-top b { font-size: 2.4cqw; }
.phone-top span { color: var(--muted); font-size: 1.7cqw; }
.phone-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4cqw; padding: 1.2cqw; border: 1px solid rgba(148, 163, 184, .16); border-radius: 2cqw; background: rgba(24, 24, 27, .7); }
.phone-row div { display: grid; gap: .3cqw; min-width: 0; }
.phone-row b { font-size: 2cqw; }
.phone-row span { color: var(--muted); font-size: 1.6cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-input { padding: 1.4cqw 1.8cqw; border: 1px solid rgba(96, 165, 250, .4); border-radius: 999px; background: rgba(30, 58, 95, .35); color: #bfdbfe; font-size: 1.7cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Providers */
.providers { padding: 28px 0 8px; }
.providers p { text-align: center; color: var(--muted-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.providers ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: #d4d4d8; font-weight: 700; font-size: 17px; }
.providers li { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); }
.lm-claude { background: linear-gradient(135deg, #d97757, #b45309); border-color: transparent; }
.lm-codex { background: linear-gradient(135deg, #e4e4e7, #a1a1aa); border-color: transparent; }
.lm-pi { background: linear-gradient(135deg, #8b5cf6, #22d3ee); border-color: transparent; }
.lm-shell { background: #18181b; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-sub { color: var(--muted); font-size: 1.05rem; }

.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split-copy { display: grid; gap: 16px; color: #d4d4d8; font-size: 1.08rem; line-height: 1.65; }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(17, 17, 19, .7); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--btn-grad); color: #eff6ff; font-weight: 800; box-shadow: 0 8px 22px rgba(37, 99, 235, .3); }
.step-n + div { min-width: 0; }
.shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.shot { border: 1px solid rgba(148, 163, 184, .28); border-radius: 26px; overflow: hidden; background: #0b0d14; box-shadow: 0 28px 70px rgba(0, 0, 0, .55); }
.shot img { width: 100%; height: auto; }
.shot-b { transform: translateY(28px); }
.shots figcaption { grid-column: 1 / -1; margin-top: 36px; text-align: center; color: var(--muted); font-size: 13px; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(18, 20, 27, .8), rgba(9, 9, 11, .6)); transition: border-color .2s ease, transform .2s ease; }
.feat:hover { border-color: rgba(96, 165, 250, .45); transform: translateY(-2px); }
.feat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(96, 165, 250, .32); background: rgba(30, 58, 95, .35); color: #93c5fd; }
.feat-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--muted); font-size: 14.5px; }
.soon { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border: 1px solid rgba(253, 230, 138, .4); border-radius: 999px; color: var(--amber); background: rgba(120, 53, 15, .3); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Trust */
.trust-sec { background: linear-gradient(180deg, rgba(17, 19, 27, .55), transparent); border-block: 1px solid rgba(148, 163, 184, .1); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.trust-copy { display: grid; gap: 14px; }
.trust-copy p:last-child { color: #d4d4d8; font-size: 1.05rem; line-height: 1.65; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust-list li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(17, 17, 19, .7); }
.trust-list b { font-size: 15.5px; }
.trust-list span { color: var(--muted); font-size: 14px; }

/* Compare */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(17, 17, 19, .7); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tbody th { text-align: left; font-weight: 600; color: #e4e4e7; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--muted); font-weight: 700; }
.is-us { background: rgba(37, 99, 235, .1); color: #bfdbfe; }
thead .is-us { color: #eff6ff; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(18, 20, 27, .85), rgba(9, 9, 11, .7)); }
.plan-featured { border-color: rgba(96, 165, 250, .6); box-shadow: 0 0 0 1px rgba(96, 165, 250, .25), 0 30px 80px rgba(37, 99, 235, .18); }
.plan-badge { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border: 1px solid rgba(96, 165, 250, .6); border-radius: 999px; background: #1d4ed8; color: #eff6ff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 4px; color: var(--muted); }
.price em { font-style: normal; }
.price span { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.plan-sub { color: var(--muted); font-size: 14.5px; min-height: 2.9em; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: #d4d4d8; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ''; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; border-radius: 999px; background: rgba(96, 165, 250, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan .btn { width: 100%; }
.pricing-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: var(--r); background: rgba(17, 17, 19, .7); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; transition: transform .2s ease; }
details[open] summary::after { content: '–'; }
details p { padding: 0 18px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r); }

/* Final CTA */
.final { padding-top: 0; }
.final-inner { display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(40px, 6vw, 72px) 24px; border: 1px solid rgba(96, 165, 250, .3); border-radius: var(--r-xl); background:
  radial-gradient(600px 300px at 50% 0%, rgba(37, 99, 235, .35), transparent 70%),
  linear-gradient(180deg, rgba(18, 20, 27, .9), rgba(9, 9, 11, .8)); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.final p { color: #d4d4d8; font-size: 1.08rem; }
.final .cta-row { justify-content: center; margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid rgba(148, 163, 184, .12); padding: 44px 0 28px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer h4 { margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #e4e4e7; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 8px; align-content: start; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, .1); font-size: 12.5px; color: var(--muted-2); }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 10, 18, .85); backdrop-filter: blur(16px); border-top: 1px solid rgba(148, 163, 184, .14); transform: translateY(100%); transition: transform .25s ease; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; width: min(640px, 100%); margin-top: 12px; padding-bottom: 8cqw; }
}
@media (max-width: 860px) {
  .nav-open .nav { background: rgba(7, 10, 18, .98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { position: fixed; z-index: 60; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 18px; background: rgba(7, 10, 18, .96); border-bottom: 1px solid rgba(148, 163, 184, .14); backdrop-filter: blur(18px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
  .nav-links > a { padding: 12px 6px; border-radius: 10px; }
  .nav-links .btn { margin: 6px 0 0; width: 100%; }
  .nav-login { margin-left: 0; }
  .lang { justify-self: start; margin-top: 8px; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; transition: transform .2s ease, opacity .2s ease, visibility 0s; }
  .nav-toggle { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split-grid, .how-grid, .trust-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sticky-cta { display: block; }
  body { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 36px; }
  .cta-row .btn { flex: 1 1 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .shots { gap: 12px; }
  .shot-b { transform: translateY(18px); }
  .trust { flex-direction: column; gap: 8px; }
  .steps li { padding: 16px; }
  th, td { padding: 12px 10px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Demo: scripted chat + playable browser portal */
.demo { padding-top: clamp(40px, 6vw, 72px); }
.demo-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.demo-chat, .demo-browser { display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; border: 1px solid rgba(148, 163, 184, .24); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(18, 20, 27, .9), rgba(9, 9, 11, .8)); box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(148, 163, 184, .14); font-size: 14px; }
.demo-head .pill { width: 9px; height: 9px; }
.demo-head .tag { font-size: 11px; padding: 2px 8px; }
.demo-url { margin-left: auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(24, 24, 27, .8); color: var(--muted); font: 12px ui-monospace, Menlo, monospace; }
.demo-log { display: grid; align-content: start; gap: 10px; padding: 16px; overflow: auto; max-height: 360px; scrollbar-width: thin; }
.demo-log [data-step] { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.demo-log [data-step].is-on { opacity: 1; transform: none; }
.msg { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.msg-user { justify-self: end; max-width: 92%; background: linear-gradient(135deg, rgba(37, 99, 235, .45), rgba(14, 165, 233, .25)); border: 1px solid rgba(96, 165, 250, .4); color: #eff6ff; }
.msg-user:empty { display: none; }
.msg-status { color: var(--muted); font-size: 13px; padding: 2px 4px; }
.msg-status::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 999px; background: #fbbf24; animation: pulse 1.2s ease-in-out infinite; vertical-align: 1px; }
.is-done .msg-status { display: none; }
.msg-assistant { border: 1px solid rgba(148, 163, 184, .18); background: rgba(24, 24, 27, .7); color: #e4e4e7; }
.tool { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 12px; background: rgba(17, 17, 19, .8); font-size: 13px; }
.tool i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(96, 165, 250, .18); color: #93c5fd; font-style: normal; font-weight: 800; font-size: 12px; }
.tool b { color: #e4e4e7; }
.tool code { background: transparent; color: #bfdbfe; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool small { color: var(--muted-2); }
.tool-browser i { background: rgba(139, 92, 246, .2); color: #ddd6fe; }
.demo-composer { display: grid; gap: 4px; margin: 12px; padding: 8px 8px 6px; border: 1px solid #3f3f46; border-radius: 14px; background: #111113; transition: border-color .18s ease, box-shadow .18s ease; }
.is-typing .demo-composer { border-color: #60a5fa; box-shadow: 0 0 0 1px rgba(96, 165, 250, .3); }
.demo-input { min-height: 36px; padding: 5px 4px; font-size: 14px; line-height: 1.5; color: #fafafa; overflow-wrap: anywhere; }
.demo-input:has(.demo-typing:empty)::after { content: attr(data-placeholder); color: #71717a; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin: 0 1px 0 0; background: #fafafa; vertical-align: -.16em; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.demo-pills { display: flex; align-items: center; gap: 0; min-width: 0; overflow: hidden; mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); }
.dpill { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 7px 0 6px; border-radius: 999px; color: #e4e4e7; font-size: 12px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.dpill .chat-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; color: #a1a1aa; }
.demo-actions { display: flex; align-items: center; gap: 4px; }
.dpill-context { gap: 5px; padding: 0 7px 0 5px; font-size: 11px; color: #d4d4d8; }
.dpill-context i { width: 12px; height: 12px; border-radius: 999px; background: conic-gradient(#60a5fa 3%, #27272a 0); border: 1px solid #3f3f46; }
.demo-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: #3b82f6; color: #eff6ff; }
.demo-send .chat-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 4px 0; color: #71717a; font-size: 11px; letter-spacing: .02em; }
.msg-meta b { color: #a1a1aa; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.msg-meta span:nth-child(2) { padding: 1px 7px; border: 1px solid #3f3f46; border-radius: 999px; font-family: ui-monospace, Menlo, monospace; color: #d4d4d8; }
.demo-screen { position: relative; display: grid; place-items: center; padding: 16px; background: #0b0f1a; }
.demo-idle { color: var(--muted-2); font-size: 14px; }
.demo-idle::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 999px; border: 2px solid rgba(148, 163, 184, .4); border-top-color: #93c5fd; animation: cadrix-spin .9s linear infinite; vertical-align: -1px; }
@keyframes cadrix-spin { to { transform: rotate(360deg); } }
.demo-screen canvas, .demo-score { display: none; }
.is-live .demo-idle { display: none; }
.is-live .demo-screen canvas { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 10px; outline: none; touch-action: none; }
.is-live .demo-screen canvas:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.is-live .demo-score { display: block; position: absolute; top: 12px; right: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(9, 9, 11, .75); color: var(--muted); font-size: 12px; }
.demo-score b { color: #fafafa; }
.demo-hint { padding: 10px 16px 14px; color: var(--muted-2); font-size: 12.5px; text-align: center; }
.demo-replay { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 860px) {
  .demo-stage { grid-template-columns: 1fr; }
  .demo-chat, .demo-browser { min-height: 0; }
  .demo-log { max-height: 300px; }
}

/* Tools: bento grid */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(18, 20, 27, .8), rgba(9, 9, 11, .6)); overflow: hidden; }
.tool-card.wide { grid-column: span 2; }
.tool-card p { color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { padding: 3px 9px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 999px; background: rgba(24, 24, 27, .7); color: #d4d4d8; font-size: 12px; font-weight: 600; }
.tool-art { margin-top: 8px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 12px; background: #0b0d14; padding: 10px; font: 11.5px/1.5 ui-monospace, Menlo, monospace; color: #cbd5e1; overflow: hidden; }
.tool-art .ln { color: #52525b; display: inline-block; width: 22px; }
.tool-art .k { color: #c4b5fd; } .tool-art .s { color: #86efac; } .tool-art .f { color: #93c5fd; } .tool-art .c { color: #71717a; }
.tool-art .row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-art .add { background: rgba(34, 197, 94, .12); } .tool-art .del { background: rgba(244, 63, 94, .12); text-decoration: line-through; opacity: .7; }
.tool-art-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tool-art-tabs span { padding: 2px 8px; border-radius: 6px; background: rgba(148, 163, 184, .1); color: #a1a1aa; }
.tool-art-tabs span.on { background: rgba(96, 165, 250, .2); color: #eff6ff; }
.tool-art-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tool-art-split > div { min-height: 44px; border: 1px dashed rgba(148, 163, 184, .28); border-radius: 8px; padding: 6px; color: #a1a1aa; }
.tool-art-split > div.on { border-style: solid; border-color: rgba(96, 165, 250, .5); color: #eff6ff; }
@media (max-width: 1024px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: 1fr; } .tool-card.wide { grid-column: auto; } }
