/* MontnetsWork · landing page (fake door test). No build step; plain CSS. */
:root {
  --bg-dark: #061226;
  --bg-dark-2: #0c1f3d;
  --ink: #0b1a33;
  --ink-2: #44587a;
  --ink-3: #5a6f91;
  --line: #d8e5f4;
  --tint: #f2f7fd;
  --white: #ffffff;
  --brand: #0b6bdc;
  --brand-2: #0753b0;
  --teal: #14b8a6;
  --on-dark: #e6eefb;
  --on-dark-2: #9db3d3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4aa3ff; outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.container--narrow { width: min(820px, calc(100% - 40px)); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 107, 220, .35); }
.btn--primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn--ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 14px 30px; font-size: 16px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease; }
.nav.is-scrolled { background: rgba(6, 18, 38, .82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--on-dark-2); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; background: var(--bg-dark); color: var(--on-dark); padding: 136px 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 20% 0%, rgba(26, 115, 255, .45), transparent 70%),
    radial-gradient(560px 320px at 85% 10%, rgba(0, 160, 240, .30), transparent 70%);
}
.hero__inner { position: relative; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: 13px; color: var(--on-dark-2); background: rgba(255, 255, 255, .04); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4aa3ff; box-shadow: 0 0 0 4px rgba(74, 163, 255, .22); }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.18; letter-spacing: -.5px; color: #fff; font-weight: 800; }
.grad { background: linear-gradient(90deg, #b4e0ff, #4cc9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 760px; margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 18px); color: var(--on-dark-2); }
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--on-dark-2); }

.industries { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--on-dark-2); }
.industries span { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: var(--on-dark); background: rgba(255, 255, 255, .05); }
.industries em { font-style: normal; }

/* Product mock */
.mock-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.mock-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: var(--on-dark-2); font-size: 14px; font-weight: 600; transition: all .15s ease; }
.mock-tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.mock-tab.is-active { color: #fff; border-color: #4aa3ff; background: rgba(26, 115, 255, .35); }
.mock { display: flex; flex-direction: column; margin: 20px auto 0; max-width: 1040px; text-align: left; background: var(--bg-dark-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.mock__dots { display: inline-flex; gap: 6px; }
.mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: #44587a; }
.mock__dots i:nth-child(1) { background: #f87171; } .mock__dots i:nth-child(2) { background: #fbbf24; } .mock__dots i:nth-child(3) { background: #4ade80; }
.mock__title { font-size: 13px; color: var(--on-dark-2); flex: 1; min-width: 0; text-align: center; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 1.6; }
.badge--soft { background: rgba(120, 180, 255, .16); color: #a9cdfa; }
.mock__body { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 0; min-height: 360px; }
.mock__chat, .mock__canvas, .mock__cost { padding: 20px; }
.mock__chat, .mock__canvas, .mock__cost { animation: fade .35s ease; }
.mock__chat { display: flex; flex-direction: column; gap: 12px; border-right: 1px solid rgba(255, 255, 255, .08); }
.mock__canvas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 18px 18px; }
.mock__cost { border-left: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }

.msg { font-size: 13.5px; line-height: 1.6; padding: 10px 14px; border-radius: 14px; max-width: 92%; }
.msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg--agent { align-self: flex-start; background: rgba(255, 255, 255, .07); color: var(--on-dark); border-bottom-left-radius: 4px; }
.msg--short { max-width: 70%; }
.msg code, .chip { font-family: var(--mono); font-size: 12px; }
.msg code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.steps { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--on-dark-2); }
.steps li::before { content: "✓"; display: inline-block; width: 18px; color: var(--teal); font-weight: 700; }
.chip { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(20, 184, 166, .15); color: #99f6e4; }

.node { width: 100%; max-width: 230px; padding: 9px 14px; border-radius: 12px; font-size: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); }
.node small { display: block; font-size: 11px; letter-spacing: .6px; color: var(--on-dark-2); }
.node--trigger { border-color: rgba(122, 167, 255, .7); background: rgba(26, 115, 255, .2); }
.node--im { border-color: rgba(94, 234, 212, .6); background: rgba(20, 184, 166, .16); }
.node--cond { border-style: dashed; }
.node--voice { border-color: rgba(244, 114, 182, .6); background: rgba(244, 114, 182, .12); }
.node--sms { border-color: rgba(245, 158, 107, .65); background: rgba(245, 158, 107, .13); }
.link { width: 2px; height: 16px; background: linear-gradient(#4aa3ff, #14b8a6); opacity: .8; }

.mock__cost h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; color: #fff; }
.mock__cost dl { margin: 14px 0; display: grid; gap: 10px; }
.mock__cost dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mock__cost dt { color: var(--on-dark-2); }
.mock__cost dd { margin: 0; color: var(--on-dark); font-family: var(--mono); font-size: 12px; text-align: right; }
.mock__total { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .18); font-size: 13px; }
.mock__total b { color: #5eead4; font-weight: 600; }
.mock__ok { margin-top: 16px; padding: 8px 12px; font-size: 12.5px; border-radius: 10px; background: rgba(34, 197, 94, .14); color: #86efac; }

/* Pillars */
.pillars { background: var(--white); padding: 72px 0 8px; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar h3 { margin: 14px 0 8px; font-size: 18px; }
.pillar p { color: var(--ink-2); font-size: 15px; }

.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #e6f1ff, #cfe5ff); color: var(--brand); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--bg-dark); color: var(--on-dark); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.section__head h2 { margin-top: 10px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -.3px; }
.section__head p:not(.kicker) { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.section__head--dark h2 { color: #fff; }
.section__head--dark p:not(.kicker) { color: var(--on-dark-2); }
.section--dark .kicker { color: #5eead4; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card, .scene { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover, .scene:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #a9cdfa; }
.card h3, .scene h3 { margin: 16px 0 8px; font-size: 18px; }
.card p, .scene p { color: var(--ink-2); font-size: 15px; }
.scene__tag { display: inline-block; padding: 2px 12px; font-size: 12.5px; font-weight: 600; border-radius: 999px; background: #e6f1ff; color: var(--brand-2); }
.scene h3 { margin-top: 14px; }

/* Tabs */
.tabs { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.tabs__list { display: grid; gap: 10px; }
.tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 16px; transition: all .15s ease; }
.tab b { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.tab:hover { border-color: #a9cdfa; }
.tab.is-active { border-color: var(--brand); color: var(--ink); box-shadow: 0 6px 18px rgba(11, 107, 220, .14); }
.tab.is-active b { color: var(--brand); }
.tabs__panels { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; min-height: 320px; }
.tabs__panels { display: grid; }
/* All panels share one grid cell so the card is always as tall as the tallest panel (no layout jump when switching). */
.panel { grid-area: 1 / 1; display: grid; gap: 28px; grid-template-columns: 1fr 1.1fr; align-items: center; visibility: hidden; }
.panel.is-active { visibility: visible; animation: fade .3s ease; }
.panel[hidden] { display: grid; }
.panel__text h3 { font-size: 22px; line-height: 1.4; }
.panel__text p { margin-top: 12px; color: var(--ink-2); }
.panel__demo { display: grid; gap: 12px; min-width: 0; }
.panel__demo .msg--agent { background: var(--tint); color: var(--ink); }
.panel__demo .msg code { background: #d3e7ff; color: var(--brand-2); }
.panel__demo .chip { background: #ccfbf1; color: #0f766e; }
.code { margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--bg-dark); color: var(--on-dark); font-family: var(--mono); font-size: 13px; line-height: 1.75; overflow-x: auto; }
.c-mute { color: #7f95b8; } .c-key { color: #8fc4ff; } .c-str { color: #5eead4; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Designer */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.designer { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr) 320px; gap: 20px; align-items: start; user-select: none; -webkit-user-select: none; }
.palette, .stage, .meter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.palette h3, .meter h3 { font-size: 16px; }
.palette__tip { margin: 4px 0 14px; font-size: 13px; color: var(--ink-3); }
.palette__list { display: grid; gap: 8px; }
.pal { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pal.is-lift { border-color: var(--kind); box-shadow: 0 8px 20px rgba(11, 26, 51, .16); transform: scale(1.04); }
.pal i, .ldot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--kind, #94a3b8); display: inline-block; }
.pal--trigger, .fnode--trigger, .pal--delay, .fnode--delay, .pal--im, .fnode--im, .pal--sms, .fnode--sms, .pal--voice, .fnode--voice, .pal--cond, .fnode--cond, .pal--ai, .fnode--ai, .pal--end, .fnode--end, 
.chip-btn { cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: all .15s; }

.pal--trigger, .fnode--trigger { --kind: #4aa3ff; }
.pal--delay, .fnode--delay { --kind: #94a3b8; }
.pal--im, .fnode--im, .ldot--im, .seg--im { --kind: #14b8a6; }
.pal--sms, .fnode--sms, .ldot--sms, .seg--sms { --kind: #f59e6b; }
.pal--voice, .fnode--voice, .ldot--voice, .seg--voice { --kind: #f472b6; }
.pal--cond, .fnode--cond { --kind: #a78bfa; }
.pal--ai, .fnode--ai { --kind: #38bdf8; }
.pal--end, .fnode--end { --kind: #64748b; }

.flow { min-height: 548px; padding: 22px 18px; border-radius: 14px; border: 1px dashed #b8cfeb; background-color: #f6faff; background-image: radial-gradient(#d3e3f7 1px, transparent 1px); background-size: 18px 18px; display: flex; flex-direction: column; align-items: center; }
.flow__empty { margin: auto; color: var(--ink-3); font-size: 15px; }
.flow__empty.is-hidden { display: none; }
.fnode { position: relative; width: 100%; max-width: 380px; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 8px; margin-top: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--kind); box-shadow: 0 2px 8px rgba(11, 26, 51, .06); transition: box-shadow .15s, opacity .15s; }
.fnode:first-child { margin-top: 0; }
.fnode.has-link::before { content: ""; position: absolute; left: 50%; top: -23px; width: 2px; height: 22px; background: linear-gradient(#b8cfeb, var(--kind)); }
.fnode--cond { border-style: dashed; border-left-style: solid; }
.fnode.is-new { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.flow.is-fading { opacity: 0; transition: opacity .4s ease; }
.flow { transition: opacity .3s ease; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.fnode__grip { padding: 6px 4px; color: #9fb3d1; letter-spacing: -2px; font-weight: 700; }
.fnode__body { flex: 1; min-width: 0; }
.fnode__body small { display: block; font-size: 11.5px; letter-spacing: .5px; color: var(--ink-3); }
.fnode__body b { font-size: 14.5px; }
.slot { width: 100%; max-width: 380px; margin-top: 22px; padding: 12px; text-align: center; font-size: 13px; color: var(--brand); border: 2px dashed var(--brand); border-radius: 14px; background: rgba(11, 107, 220, .06); }
.slot:first-child { margin-top: 0; }


/* Reach meter */
.meter { position: sticky; top: 84px; }
.meter__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge--demo { background: #fff3e6; color: #a8530f; }
.meter__value { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; color: var(--brand); font-weight: 800; line-height: 1; }
.meter__value span { font-size: 56px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.meter__value small { font-size: 22px; }
.meter__delta { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.meter__delta.is-up { color: #0e7a58; font-weight: 700; }
.meter__bar { display: flex; height: 14px; margin-top: 16px; border-radius: 999px; overflow: hidden; background: #e8eff8; }
.seg { display: block; height: 100%; background: var(--kind); transition: width .45s ease; }
.seg--rest { background: #e8eff8; }
.meter__legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.meter__legend li { display: inline-flex; align-items: center; gap: 6px; }
.ldot--rest { background: #cfdcee; }
.meter__fallback { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.meter__checks { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; }
.meter__checks li::before { display: inline-block; width: 20px; font-weight: 800; }
.meter__checks .is-ok { color: #0e7a58; }
.meter__checks .is-ok::before { content: "✓"; }
.meter__checks .is-warn { color: #a8530f; }
.meter__checks .is-warn::before { content: "!"; }
.meter__note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.designer__bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2dc999; box-shadow: 0 0 0 0 rgba(45, 201, 153, .5); animation: pulse 1.6s infinite; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.chip-btn.is-paused { background: var(--brand); border-color: var(--brand); color: #fff; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(45, 201, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 201, 153, 0); } }

/* Scripted cursor */
.cursor { position: absolute; top: 0; left: 0; z-index: 20; pointer-events: none; transform: translate(40%, 90%); transition: transform .85s cubic-bezier(.22, .8, .3, 1); }
.cursor svg { filter: drop-shadow(0 3px 5px rgba(11, 26, 51, .35)); transition: transform .15s; transform-origin: 4px 2px; }
.cursor.is-down svg { transform: scale(.88); }
.cursor__chip { position: absolute; left: 20px; top: 18px; padding: 6px 14px; border-radius: 999px; background: var(--kind, #0b6bdc); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 22px rgba(11, 26, 51, .3); opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.cursor.has-chip .cursor__chip { opacity: 1; transform: none; }
.cursor[hidden] { display: none; }

.designer__cta { margin-top: 36px; text-align: center; }

/* Compare */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--tint); font-size: 14px; color: var(--ink-2); }
.compare tbody th { text-align: left; font-weight: 600; }
.compare td { color: var(--ink-3); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .is-us { background: #e6f1ff; color: var(--brand-2); font-weight: 700; }
.compare thead .is-us { background: var(--brand); color: #fff; }
.fineprint { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* Safety */
.safety { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.safety li { padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.safety b { display: block; margin-bottom: 6px; color: #fff; font-size: 16px; }
.safety span { color: var(--on-dark-2); font-size: 14.5px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Final CTA */
.final { background: linear-gradient(135deg, #08306b, #0b6bdc); color: #fff; text-align: center; padding: 88px 0; }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); }
.final p { margin: 14px 0 30px; color: rgba(255, 255, 255, .85); font-size: 17px; }
.final .btn--primary { background: #fff; color: var(--brand-2); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.final .btn--primary:hover { background: #e6f1ff; }

/* Footer */
.footer { background: var(--bg-dark); color: var(--on-dark-2); padding: 56px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 12px; max-width: 280px; }
.footer__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-block; padding: 9px 0; color: var(--on-dark-2); text-decoration: none; }
.footer ul a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; font-size: 13px; line-height: 1.7; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 100; max-width: min(92vw, 460px);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 14px; background: var(--bg-dark); color: #fff; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Pricing */
.price { display: flex; flex-direction: column; gap: 4px; }
.price h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink-2); }
.price__value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.price p:not(.price__value) { flex: 1; margin-bottom: 18px; }
.price .btn { align-self: flex-start; padding: 11px 26px; font-size: 15px; }
.final__note { margin: 14px 0 0 !important; font-size: 14px !important; color: rgba(255, 255, 255, .75) !important; }

/* Mobile sticky CTA */
.mbar { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__chat, .mock__cost { border: 0; }
  .mock__canvas { padding: 24px 20px; }
  .grid--3, .safety { grid-template-columns: 1fr 1fr; }
  .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tabs { grid-template-columns: 1fr; }
  .designer { grid-template-columns: 1fr; }
  .palette__list { grid-template-columns: repeat(4, 1fr); }
  .cursor { display: none; }
  .meter { position: static; }
  .tabs__list { grid-template-columns: repeat(2, 1fr); }
  .panel, .panel.is-active { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 32px); }
  .nav__toggle { display: block; padding: 12px; margin-right: -8px; }
  .nav__inner { gap: 12px; }
  .brand { font-size: 15px; white-space: nowrap; }
  .brand img { width: 24px; height: 24px; }
  .nav__actions .btn { white-space: nowrap; padding: 9px 16px; min-height: 40px; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 8px 16px 20px; flex-direction: column; gap: 0;
    background: rgba(6, 18, 38, .97); backdrop-filter: blur(12px); display: none; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }

  .hero { padding: 96px 0 48px; }
  .hero h1 { font-size: 36px; margin-top: 18px; }
  .hero__sub { font-size: 16px; margin-top: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .hero__cta .btn { min-height: 50px; }
  .industries { margin-top: 18px; }
  .industries span { padding: 2px 10px; }
  .grad { white-space: nowrap; }

  /* Hero product mock: keep the chat + canvas, drop the cost column and extra rows */
  .mock-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 36px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .mock-tabs::-webkit-scrollbar { display: none; }
  .mock-tab { flex: none; min-height: 40px; }
  .mock__cost, .mock .msg--short, .mock .steps { display: none; }
  .mock__body { min-height: 0; }
  .mock__chat, .mock__canvas { padding: 16px; }
  .mock__canvas { padding-top: 8px; }
  .mock__title { font-size: 12px; }

  .section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head h2 { font-size: 26px; }
  .section__head p:not(.kicker) { font-size: 16px; }
  .pillars { padding: 48px 0 0; }
  .pillars__grid { grid-template-columns: 1fr; gap: 24px; }
  .pillar { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .pillar .icon { grid-row: 1 / 3; }
  .pillar h3 { margin: 0 0 4px; }

  .grid--3, .safety { grid-template-columns: 1fr; gap: 14px; }
  .card, .scene { padding: 20px; }
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .card .icon { grid-row: 1 / 3; }
  .card h3 { margin: 0 0 4px; }
  .pricing .card { display: flex; }
  .scene h3 { margin-top: 10px; }
  .safety li { padding: 18px; }

  .tabs__list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tab { padding: 14px; min-height: 48px; }
  .tabs__panels { padding: 20px; min-height: 0; }
  .panel__text h3 { font-size: 19px; }

  /* Designer demo: hide the node palette on small screens; the canvas and meter carry the story */
  .palette { display: none; }
  .designer { gap: 14px; }
  .stage, .meter { padding: 14px; }
  .flow { min-height: 440px; padding: 16px 10px; }
  .meter__value span { font-size: 44px; }
  .designer__cta { margin-top: 28px; }
  .designer__cta .btn { width: 100%; min-height: 50px; }

  .table-wrap { margin-inline: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .compare { min-width: 560px; font-size: 14px; }
  .compare th, .compare td { padding: 14px 12px; }
  .compare tbody th { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; box-shadow: 1px 0 0 var(--line); }
  .compare thead th:first-child { position: sticky; left: 0; background: var(--tint); z-index: 1; }

  .faq summary { padding: 16px 0; min-height: 48px; }
  .faq details { padding: 0 16px; }

  .final { padding: 64px 0; }
  .final .btn { width: 100%; max-width: 360px; min-height: 52px; }

  .footer { padding: 40px 0 24px; }
  .chip-btn { min-height: 40px; padding-inline: 18px; }
  .footer__bottom a { padding: 10px 0; display: inline-block; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 18, 38, .96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 15px;
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mbar.is-visible { transform: none; }
  .mbar .btn { min-height: 44px; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Footer links + legal pages */
.footer a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #fff; }
.legal-nav { position: static; background: var(--bg-dark); }
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.25; margin-bottom: 8px; }
.legal .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--brand); }
