:root {
  color-scheme: light;
  --white: #fff;
  --ink: #051b33;
  --ink-2: #1d3a57;
  --muted: #4a6580;
  --blue: #0a5bd8;
  --brand: #0077b6;
  --cyan: #19c3ef;
  --cyan-soft: #e5f7fd;
  --line: #dbe9f3;
  --line-strong: #bcd8ea;
  --surface: #f6fafd;
  --surface-2: #eef6fc;
  --green-soft: #e5f6ef;
  --amber-soft: #fdf0dc;
  --violet-soft: #efebfd;
  --violet: #6b4fd1;
  --green: #0b7350;
  --amber: #9a5306;
  --grad: linear-gradient(100deg, #0a5bd8 0%, #0a8fd8 45%, #19c3ef 100%);
  --shadow-sm: 0 1px 2px rgba(5, 27, 51, .04), 0 4px 14px rgba(5, 60, 110, .05);
  --shadow-lg: 0 2px 4px rgba(5, 27, 51, .03), 0 24px 60px -12px rgba(10, 91, 216, .18);
  --radius: 20px;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { color: #fff; background: var(--blue); }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ambient light */
.page-aura { position: absolute; inset: 0 0 auto; height: 1100px; overflow: hidden; pointer-events: none; z-index: -1; }
.aura { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.aura-a { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, #9fe3fb, transparent 70%); }
.aura-b { width: 520px; height: 520px; right: 28%; top: 260px; background: radial-gradient(circle, #c9dcff, transparent 70%); }
.aura-c { width: 460px; height: 460px; left: -160px; top: 120px; background: radial-gradient(circle, #d9f4fd, transparent 70%); }

/* Nav */
.navbar { position: sticky; top: 14px; z-index: 30; padding-inline: 20px; }
.nav-shell { max-width: 1240px; margin: 14px auto 0; height: 66px; display: flex; align-items: center; gap: 28px; padding: 0 10px 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(188, 216, 234, .7); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-sm); transition: box-shadow .3s, background .3s; }
.navbar.is-scrolled .nav-shell { background: rgba(255, 255, 255, .88); box-shadow: var(--shadow-lg); }
.brand { display: flex; flex-shrink: 0; }
.brand img { display: block; width: 104px; height: auto; }
.desktop-nav { margin-left: auto; display: flex; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.desktop-nav a { white-space: nowrap; }
.desktop-nav a { padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.desktop-nav a:hover { background: var(--cyan-soft); color: var(--blue); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background .2s, transform .2s; }
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.menu-toggle { display: none; }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer { max-width: 1240px; margin: 8px auto 0; padding: 8px 22px; border-radius: 22px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.mobile-drawer a { display: block; padding: 14px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-drawer a:last-child { border: 0; color: var(--blue); }

/* Shared atoms */
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 195, 239, .18); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }
.kicker-light { color: #bfefff; }
.kicker-light::before { background: #fff; }
.document-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; font-size: 16px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.button span { font-size: 19px; font-weight: 400; }
.button-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -8px rgba(10, 91, 216, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(10, 91, 216, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.button-ghost { color: var(--ink); background: rgba(255, 255, 255, .8); border: 1px solid var(--line-strong); }
.button-ghost:hover { border-color: var(--cyan); color: var(--blue); }
.button-light { color: var(--blue); background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.button-light:hover { transform: translateY(-2px); }
.card { position: relative; border-radius: var(--radius); border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(150deg, #cfe6f4, var(--surface-2) 45%, #c4e3f3) border-box; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
[data-spotlight] { overflow: hidden; isolation: isolate; }
[data-spotlight]::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -20%), rgba(25, 195, 239, .14), transparent 60%); opacity: 0; transition: opacity .3s; }
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Hero */
.hero { position: relative; padding-top: 40px; }
.hero-grid { position: absolute; inset: -100px 0 0; z-index: -1; background-image: linear-gradient(rgba(10, 91, 216, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 91, 216, .07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 20%, transparent 75%); }
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 60px 50px; }
h1 { font-size: clamp(64px, 7.6vw, 116px); font-weight: 800; line-height: .96; letter-spacing: -.055em; margin-top: 28px; }
.hero-lead { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; color: var(--ink-2); margin-top: 30px; }
.hero-lead strong { color: var(--blue); font-weight: 700; }
.hero-description { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.7; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Constellation: CEO + 8 verticals */
.constellation { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; margin-inline: auto; }
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: #b9dbee; stroke-width: 1; stroke-dasharray: 3 7; transform-origin: 280px 280px; }
.rays line { stroke: #cfe5f2; stroke-width: 1.5; stroke-linecap: round; transition: stroke .4s, stroke-width .4s; }
.rays line.is-active { stroke: url(#rayGradient); stroke-width: 2.5; stroke-dasharray: 10 8; filter: drop-shadow(0 0 4px rgba(25, 195, 239, .7)); }
.core { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.core-body { position: relative; z-index: 2; width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(circle at 35% 30%, #4fd8fb, #0a5bd8 70%); box-shadow: 0 18px 50px -10px rgba(10, 91, 216, .6), inset 0 2px 6px rgba(255, 255, 255, .45), 0 0 0 8px rgba(255, 255, 255, .7); }
.core-body b { font-family: var(--display); font-size: clamp(18px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.core-body small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.core-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, rgba(25, 195, 239, .9) 75%, transparent 76%); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); }
.core-ring-2 { inset: -14%; opacity: .6; background: conic-gradient(from 180deg, transparent 0 70%, rgba(10, 91, 216, .8) 90%, transparent 91%); }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .9); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: color .35s, border-color .35s, box-shadow .35s, transform .35s; }
.node::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; vertical-align: middle; background: #a9cde2; transition: background .35s, box-shadow .35s; }
.node.is-active { color: var(--blue); border-color: var(--cyan); box-shadow: 0 8px 26px -6px rgba(25, 195, 239, .55); transform: translate(-50%, -50%) scale(1.06); }
.node.is-active::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 195, 239, .2); }
.hud { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(188, 216, 234, .8); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hud strong { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }
.hud-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--blue); }
.hud-status { left: -8%; bottom: -2%; flex-direction: column; align-items: flex-start; gap: 0; min-width: 200px; }
.hud-status::before { content: ''; position: absolute; top: 14px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: #18b37a; box-shadow: 0 0 0 4px rgba(24, 179, 122, .18); }
.hud-audit { right: 0; top: -1%; }
.check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; background: linear-gradient(135deg, #18b37a, #0f8f86); }

.hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 70px; }
.hero-description strong { color: var(--ink); font-weight: 600; }
.proof-icon { width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; display: grid !important; place-items: center; font-size: 16px; color: #fff !important; background: var(--grad); }
.proof-card { padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.proof-card strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.proof-card span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 22px 0; }
.marquee li { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.marquee li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: .7; }

/* Sections */
.section { position: relative; padding-block: 120px; }
/* Tinted sections fade in and out of white, so no section starts with a hard edge. */
.section-tint { background: linear-gradient(180deg, #fff 0, var(--surface) 160px, var(--surface) calc(100% - 200px), #fff 100%); }
.section-heading { display: grid; grid-template-columns: 1fr; max-width: 820px; margin-bottom: 56px; }
.section-heading h2 { margin-top: 20px; }
.section-heading > p { margin-top: 22px; max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--muted); }
h2 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }

/* Area console */
.console { border-radius: 24px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.console-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d6e4ee; }
.console-bar span:first-child { background: #9fe3fb; }
.console-bar em { margin-left: 14px; font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--muted); }
.console-body { display: grid; grid-template-columns: 230px 1fr; }
.area-tabs { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--surface)); }
.area-button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.area-button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c6dbe8; transition: background .2s, box-shadow .2s; }
.area-button:hover { background: #fff; color: var(--blue); }
.area-button.is-active { background: #fff; color: var(--blue); font-weight: 600; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-strong); }
.area-button.is-active::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 195, 239, .2); }
.area-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 44px; min-height: 360px; align-content: start; }
.area-question h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin-top: 16px; }
.area-question p { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.area-deliverable { padding: 26px; border-radius: 18px; background: linear-gradient(160deg, var(--surface), #fff); border: 1px solid var(--line); }
.area-deliverable ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.area-deliverable li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; }
.area-deliverable li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--grad); }
.source-note { display: inline-block; padding: 6px 10px; border-radius: 8px; font-family: var(--mono); font-size: 11px; color: var(--blue); background: var(--cyan-soft); }
.area-caption { display: flex; justify-content: space-between; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--surface); }
.area-caption a { color: var(--blue); font-weight: 500; }

/* Reasoning: debate + lineage */
.reasoning-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.debate, .lineage { padding: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.replay { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--blue); }
.debate-thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg > div { flex: 1; padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: var(--surface); border: 1px solid var(--line); }
.msg b { display: block; font-size: 14px; font-weight: 600; }
.msg b em { font-style: normal; font-weight: 500; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.msg p { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: #fff; background: var(--grad); }
.msg-auditor .avatar { background: linear-gradient(135deg, #e08a1e, #b5650a); }
.msg-auditor > div { background: var(--amber-soft); border-color: #f3d9b5; }
.msg-comercial .avatar { background: linear-gradient(135deg, #7b63e0, #5a3fc0); }
.msg-ceo .avatar { background: var(--ink); }
.msg-ceo > div { background: var(--surface-2); border-color: #c7defa; }
.msg-human .avatar { background: #fff; color: var(--green); border: 1.5px solid #a9dcc8; }
.msg-human > div { background: var(--green-soft); border-color: #bfe5d4; }
.msg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-tags i, .lin-tag { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.t-det { color: #0068a8; background: var(--cyan-soft); }
.t-syn { color: var(--violet); background: var(--violet-soft); }
.t-val { color: var(--green); background: var(--green-soft); }
.t-ok { color: var(--green); background: var(--green-soft); }
.t-warn { color: var(--amber); background: var(--amber-soft); }
.panel-note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.lineage-target { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lineage-chain { list-style: none; padding: 0; margin: 0; position: relative; }
.lineage-chain::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 30px; width: 2px; background: linear-gradient(180deg, #19c3ef, #0a5bd8 60%, #18b37a); opacity: .35; }
.lineage-chain::after { content: ''; position: absolute; left: 14px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px 3px rgba(25, 195, 239, .7); opacity: 0; }
.lineage-chain li { position: relative; display: flex; gap: 16px; padding-bottom: 20px; }
.lineage-chain li:last-child { padding-bottom: 0; }
.lin-node { position: relative; z-index: 1; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--blue); background: #fff; border: 1.5px solid var(--line-strong); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.lin-node-human { color: var(--green); border-color: #a9dcc8; }
.lineage-chain li.is-lit .lin-node { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 0 0 5px rgba(25, 195, 239, .16); }
.lineage-chain li.is-lit .lin-node-human { background: linear-gradient(135deg, #18b37a, #0f8f86); }
.lineage-chain b { font-size: 15px; font-weight: 600; margin-right: 8px; }
.lineage-chain p { margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lineage-chain small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--blue); }

/* Separation of data */
.separation-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 28px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.sep { padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; border: 1px solid; }
.sep-det { color: #0068a8; background: var(--cyan-soft); border-color: #b7e0f3; }
.sep-syn { color: var(--violet); background: var(--violet-soft); border-color: #d6ccf6; }
.sep-audit { color: var(--amber); background: var(--amber-soft); border-color: #f3d9b5; }
.sep-human { color: var(--green); background: var(--green-soft); border-color: #bfe5d4; }
.sep-learn { color: #fff; background: var(--grad); border-color: transparent; }
.sep-plus { font-size: 22px; font-weight: 700; color: #d23a5a; }
.sep-arrow { color: var(--muted); font-size: 18px; }

/* Learning loop */
.learning { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 34px; }
.learning h3 { margin-top: 12px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.learning p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: loop; position: relative; }
.loop li { position: relative; counter-increment: loop; padding: 18px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; transition: background .4s, border-color .4s, box-shadow .4s; }
.loop li::before { content: counter(loop, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 11px; color: var(--blue); margin-bottom: 8px; }
.loop li:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--cyan); font-weight: 700; }
.loop li:last-child::after { content: '↺'; position: absolute; right: 10px; top: 8px; color: var(--cyan); }
.loop b { display: block; font-family: var(--display); font-size: 17px; font-weight: 800; }
.loop span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.loop li.is-on { background: #fff; border-color: var(--cyan); box-shadow: 0 10px 26px -10px rgba(25, 195, 239, .6); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.work-grid .card { padding: 30px 26px 26px; display: flex; flex-direction: column; min-height: 340px; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 10px 24px -8px rgba(10, 91, 216, .6); }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-number { margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.work-grid h3 { margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.work-grid p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.step-foot { margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }

/* Technical */
.data-taxonomy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.data-card { padding: 30px 28px; --tone: var(--blue); --tone-bg: var(--cyan-soft); }
.tone-syn { --tone: var(--violet); --tone-bg: var(--violet-soft); }
.tone-val { --tone: var(--green); --tone-bg: var(--green-soft); }
.data-card::after { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--tone); opacity: .8; }
.taxonomy-tag { display: inline-block; padding: 5px 10px; border-radius: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--tone); background: var(--tone-bg); }
.data-card h3 { margin-top: 20px; font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.data-card h4 { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.data-card > p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.data-example { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-strong); }
.data-example span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--tone); }
.data-example p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.technical-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; align-items: start; }
.technical-details details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.technical-details details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.technical-details summary { display: flex; gap: 16px; align-items: center; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.technical-details summary::-webkit-details-marker { display: none; }
.technical-details summary > span { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.technical-details summary b { margin-left: auto; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 18px; color: var(--blue); background: var(--cyan-soft); transition: transform .25s; }
.technical-details details[open] summary b { transform: rotate(45deg); }
.technical-details details > p { padding: 0 22px 22px 52px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* Implementation */
.implementation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.implementation-layout > div > h2 { margin-top: 20px; }
.implementation-layout > div > p { margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 460px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 16px; }
.timeline::before { content: ''; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, #19c3ef, #0a5bd8); opacity: .3; }
.timeline li { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px 24px 22px 0; }
.timeline-dot { flex-shrink: 0; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 500; color: #fff; background: var(--grad); box-shadow: 0 12px 28px -10px rgba(10, 91, 216, .6), 0 0 0 6px #fff; }
.timeline h3 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.timeline p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Contact */
.contact-section { padding-block: 40px 110px; }
.contact-panel { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; padding: 72px 64px; border-radius: 32px; color: #fff; background: linear-gradient(120deg, #0a3fa8, #0a5bd8 40%, #0aa2dc); box-shadow: 0 40px 80px -30px rgba(10, 91, 216, .55); }
.contact-mesh { position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at 85% 20%, rgba(79, 216, 251, .38), transparent 60%), radial-gradient(400px circle at 10% 110%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: auto, auto, 44px 44px, 44px 44px; }
.contact-panel h2 { margin-top: 18px; color: #fff; font-size: clamp(34px, 3.8vw, 54px); }
.contact-panel p { margin-top: 18px; max-width: 520px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .85); }
.contact-action { justify-self: end; text-align: right; }
.contact-email { display: block; margin-top: 18px; font-size: 16px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(5, 27, 51, .45); }
.contact-email:hover { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-main { display: flex; align-items: center; gap: 50px; padding-block: 36px; }
.footer-main .brand img { width: 100px; }
.footer-main p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-main nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.footer-main nav a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--blue); }

/* Floating demo */
.floating-sala { position: fixed; z-index: 40; right: 20px; bottom: 20px; }
.floating-sala[hidden] { display: none; }
.sala-dismiss { position: absolute; z-index: 2; top: -8px; right: -8px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--muted); font-size: 15px; box-shadow: var(--shadow-sm); }
.sala-launcher { display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); text-align: left; transition: transform .2s; }
.sala-launcher:hover { transform: translateY(-2px); }
.sala-launcher[hidden] { display: none; }
.sala-launcher strong { display: block; font-size: 14px; }
.sala-launcher small { display: block; margin-top: 2px; font-size: 12px; color: var(--blue); }
.mini-core { position: relative; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4fd8fb, #0a5bd8 70%); box-shadow: 0 6px 18px -4px rgba(10, 91, 216, .6); }
.mini-core i { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); }
.mini-core { display: grid; place-items: center; color: #fff; }
.mini-core svg { width: 56%; height: 56%; }
.mini-online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.mini-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; pointer-events: none; }
.sala-nudge { position: absolute; right: 0; bottom: calc(100% + 14px); width: max-content; max-width: min(300px, calc(100vw - 40px)); display: flex; align-items: start; gap: 4px; padding: 12px 10px 12px 16px; border: 1px solid var(--line-strong); border-radius: 18px 18px 4px 18px; background: #fff; box-shadow: var(--shadow-lg); }
.sala-nudge[hidden] { display: none; }
.sala-nudge-text { flex: 1; padding: 0; border: 0; background: none; text-align: start; font: inherit; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.sala-nudge-text:hover .sala-nudge-msg { color: var(--blue); }
.sala-nudge-close { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 14px; line-height: 1; }
.sala-nudge-dots { display: none; gap: 4px; padding: 6px 0; }
.sala-nudge-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .35; }
.sala-nudge.is-typing .sala-nudge-dots { display: inline-flex; }
.sala-nudge.is-typing .sala-nudge-msg { display: none; }
[dir="rtl"] .sala-nudge { right: auto; left: 0; border-radius: 18px 18px 18px 4px; padding: 12px 16px 12px 10px; }
.sala-demo { width: 380px; max-height: min(720px, calc(100dvh - 110px)); overflow-y: auto; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -20px rgba(5, 40, 90, .35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.sala-demo[hidden] { display: none; }
.sala-demo-header { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 18px; }
.sala-demo-header h3 { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sala-demo-header > button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 18px; color: var(--muted); }
.sala-question-label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.sala-demo textarea { display: block; width: 100%; min-height: 100px; resize: vertical; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.55; transition: border-color .2s, box-shadow .2s; }
.sala-demo textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 195, 239, .18); }
.sala-demo textarea::placeholder { color: #6b8499; }
.sala-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 12px 18px; }
.sala-suggestions button { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--blue); transition: background .2s; }
.sala-suggestions button:hover { background: var(--cyan-soft); }
.sala-demo form > button { width: 100%; font-size: 15px; min-height: 50px; }
.sala-demo-result { margin-top: 20px; padding: 18px; border-radius: 16px; background: linear-gradient(160deg, var(--surface), #fff); border: 1px solid var(--line); }
.sala-demo-result blockquote { margin: 12px 0; padding: 10px 12px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: #fff; font-size: 13px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.sala-demo-result strong { display: block; margin-top: 8px; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--blue); }
.sala-demo-result p { margin-top: 10px; font-size: 14px; line-height: 1.65; }
.sala-demo-result small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.sala-demo-note { margin-top: 16px; font-size: 11px; line-height: 1.6; color: var(--muted); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .aura-a { animation: drift 18s ease-in-out infinite; }
  .aura-b { animation: drift 22s ease-in-out infinite reverse; }
  .aura-c { animation: drift 26s ease-in-out infinite; }
  @keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } }
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .constellation { animation: fadeScale 1.2s cubic-bezier(.2, .7, .2, 1) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes fadeScale { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
  .orbit-outer { animation: spin 90s linear infinite; }
  .orbit-inner { animation: spin 60s linear infinite reverse; }
  .core-ring { animation: spin 6s linear infinite; }
  .core-ring-2 { animation: spin 11s linear infinite reverse; }
  .mini-core i { animation: spin 2.4s linear infinite; }
  .mini-core::after { animation: callPulse 2.6s ease-out infinite; }
  @keyframes callPulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.7); } }
  .mini-core svg { animation: nudgeWiggle 5s ease-in-out 2s infinite; }
  @keyframes nudgeWiggle { 0%, 84%, 100% { transform: none; } 87% { transform: rotate(-14deg) scale(1.08); } 90% { transform: rotate(12deg) scale(1.08); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }
  .sala-nudge:not([hidden]) { animation: nudgeIn .45s cubic-bezier(.2, .9, .3, 1.3) both; transform-origin: bottom right; }
  [dir="rtl"] .sala-nudge:not([hidden]) { transform-origin: bottom left; }
  @keyframes nudgeIn { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
  .sala-nudge-dots i { animation: nudgeDot 1s ease-in-out infinite; }
  .sala-nudge-dots i:nth-child(2) { animation-delay: .15s; }
  .sala-nudge-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes nudgeDot { 0%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .rays line.is-active { animation: flow .9s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -36; } }
  .hud-audit { animation: bob 7s ease-in-out infinite; }
  .hud-status { animation: bob 8s ease-in-out infinite reverse; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .marquee-track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal][data-spotlight].is-visible:hover { transform: translateY(-4px); }
  .js .debate.is-playing .msg { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
  .js .debate.is-playing .msg.is-shown { opacity: 1; transform: none; }
  .js .lineage.is-playing .lineage-chain::after { opacity: 1; animation: pulseDown 4.2s cubic-bezier(.5, 0, .5, 1) infinite; }
  @keyframes pulseDown { 0% { top: 18px; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 30px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1150px) {
  .container { width: calc(100% - 56px); }
  .desktop-nav a { padding-inline: 10px; }
  .hero-layout { gap: 24px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid .card { min-height: 0; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .learning { grid-template-columns: 1fr; gap: 26px; }
  .implementation-layout { gap: 50px; }
  .hud-status { left: 0; }
  .hud-audit { right: 0; }
}
/* Tablet: the full menu no longer fits on one line, so it moves into the drawer. */
@media (max-width: 1150px) {
  .desktop-nav { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; flex-shrink: 0; }
  .menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; padding-block: 50px 30px; gap: 50px; }
  .constellation { max-width: 520px; }
  .console-body { grid-template-columns: 1fr; }
  .area-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; scrollbar-width: none; }
  .area-tabs::-webkit-scrollbar { display: none; }
  .area-button { flex-shrink: 0; white-space: nowrap; }
  .area-detail { grid-template-columns: 1fr; gap: 28px; padding: 32px; min-height: 0; }
  .reasoning-grid { grid-template-columns: 1fr; }
  .data-taxonomy { grid-template-columns: 1fr; }
  .implementation-layout { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 56px 40px; gap: 34px; }
  .contact-action { justify-self: start; text-align: left; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 96px; }
  .container { width: calc(100% - 32px); }
  .navbar { top: 10px; padding-inline: 12px; }
  .nav-shell { margin-top: 10px; height: 60px; gap: 10px; padding: 0 8px 0 16px; }
  .brand img { width: 88px; }
  .nav-cta { padding: 10px 14px; font-size: 13px; }
  .hero { padding-top: 10px; }
  .chip { font-size: 12px; }
  h1 { font-size: clamp(50px, 14vw, 72px); }
  .hero-description { font-size: 16.5px; }
  .hero-actions .button { width: 100%; }
  .node { font-size: 11.5px; padding: 6px 9px; }
  .node::before { width: 5px; height: 5px; margin-right: 5px; }
  .core-body small { display: none; }
  .hud { padding: 9px 11px; border-radius: 12px; }
  .hud strong { font-size: 11px; }
  .hud-label { font-size: 10px; }
  .hud-status { min-width: 0; left: -2px; bottom: -4%; }
  .hud-status::before { top: 10px; right: 10px; width: 6px; height: 6px; }
  .hud-audit { right: -2px; top: -3%; }
  .check { width: 24px; height: 24px; font-size: 12px; }
  .hero-proof { gap: 10px; padding-bottom: 50px; }
  .proof-card { padding: 16px; }
  .proof-card strong { font-size: 17px; }
  .proof-card span { font-size: 13px; }
  .proof-icon { margin-bottom: 10px; width: 30px; height: 30px; }
  .separation-bar { justify-content: flex-start; padding: 16px; }
  .sep { font-size: 12.5px; padding: 7px 11px; }
  .learning { padding: 22px 18px; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop li:nth-child(2)::after { display: none; }
  .marquee li { font-size: 15px; gap: 30px; padding-right: 30px; }
  .section { padding-block: 80px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading > p { font-size: 16.5px; }
  .console { border-radius: 20px; }
  .console-bar em { font-size: 11px; }
  .area-detail { padding: 24px 20px; }
  .area-deliverable { padding: 20px; }
  .area-caption { flex-direction: column; gap: 8px; padding: 14px 20px; }
  .debate, .lineage { padding: 20px 16px; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 10px; }
  .msg { gap: 9px; }
  .msg > div { padding: 12px 13px; }
  .work-grid { grid-template-columns: 1fr; }
  .technical-details { grid-template-columns: 1fr; }
  .technical-details summary { font-size: 16px; padding: 18px; gap: 12px; }
  .technical-details details > p { padding: 0 18px 18px; }
  .timeline-dot { width: 52px; height: 52px; border-radius: 16px; font-size: 13px; }
  .timeline::before { left: 25px; }
  .timeline li { padding-block: 12px; gap: 18px; }
  .timeline h3 { font-size: 22px; }
  .contact-section { padding-bottom: 80px; }
  .contact-panel { padding: 44px 24px; border-radius: 26px; }
  .contact-panel p { font-size: 16px; }
  .contact-action .button { width: 100%; }
  .footer-main { flex-wrap: wrap; gap: 18px; }
  .footer-main p { order: 3; width: 100%; font-size: 13px; }
  .footer-bottom { font-size: 12px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .floating-sala { right: 12px; bottom: 12px; }
  .sala-launcher { padding: 7px 16px 7px 7px; gap: 10px; }
  .mini-core { width: 34px; height: 34px; }
  .sala-launcher strong { font-size: 13px; }
  .sala-launcher small { font-size: 11px; }
  .sala-demo { width: calc(100vw - 24px); padding: 18px; }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .node { font-size: 11px; padding: 5px 8px; }
}

/* Language selector */
.lang { position: relative; flex-shrink: 0; }
.flag { display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(5, 27, 51, .12); overflow: hidden; flex-shrink: 0; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); transition: border-color .2s, background .2s; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: var(--cyan); background: var(--cyan-soft); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: 250px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -16px rgba(5, 40, 90, .3); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lang-menu[hidden] { display: none; }
.lang-title { display: block; padding: 4px 10px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.lang-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.lang-menu a small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--cyan-soft); color: var(--blue); outline: none; }
.lang-menu a[aria-current="true"] { background: #fff; color: var(--blue); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.lang-menu a[aria-current="true"] small { color: var(--blue); }
.lang-menu a[aria-current="true"] small::before { content: '✓ '; }
@media (prefers-reduced-motion: no-preference) {
  .lang-menu:not([hidden]) { animation: langIn .18s cubic-bezier(.2, .7, .2, 1); }
  @keyframes langIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1150px) { .lang { margin-left: auto; } .nav-cta { margin-left: 0; } }
@media (max-width: 680px) {
  .lang-toggle { height: 40px; padding: 0 9px 0 10px; gap: 6px; }
  .lang-code { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { margin-left: 0; }
  .lang-menu a small { display: none; }
  .lang-menu { position: fixed; top: 80px; left: 12px; right: 12px; width: auto; }
  .lang-menu ul { grid-template-columns: 1fr 1fr; }
}

/* First-visit language suggestion */
.lang-suggest { max-width: 1240px; margin: 8px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 10px 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); width: fit-content; }
.lang-suggest[hidden] { display: none; }
/* Out of the way once the visitor scrolls; it comes back at the top of the page. */
.navbar.is-scrolled .lang-suggest { display: none; }
.lang-suggest a { font-size: 14px; font-weight: 600; color: var(--blue); }
.lang-suggest button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 15px; line-height: 1; }

/* Japanese */
:lang(zh) { --display: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --sans: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: -.01em; line-break: strict; word-break: normal; }
:lang(zh) h1 { font-size: clamp(48px, 6vw, 88px); line-height: 1.12; }
:lang(zh) h2 { line-height: 1.22; }
:lang(zh) .hero-lead, :lang(zh) .work-grid h3, :lang(zh) .data-card h3 { letter-spacing: 0; }
:lang(ja) { --display: 'Manrope', 'Noto Sans JP', 'Hiragino Sans', sans-serif; --sans: 'Inter', 'Noto Sans JP', 'Hiragino Sans', sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: -.01em; line-break: strict; word-break: normal; }
:lang(ja) h1 { font-size: clamp(48px, 6vw, 88px); line-height: 1.12; }
:lang(ja) h2 { line-height: 1.22; }
:lang(ja) .hero-lead, :lang(ja) .work-grid h3, :lang(ja) .data-card h3 { letter-spacing: 0; }

/* Hebrew: right-to-left */
:lang(he) { --display: 'Manrope', 'Noto Sans Hebrew', 'Arial Hebrew', sans-serif; --sans: 'Inter', 'Noto Sans Hebrew', 'Arial Hebrew', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: -.01em; }
[dir="rtl"] .desktop-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu a small { margin-left: 0; margin-right: auto; }
[dir="rtl"] .area-deliverable li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .area-deliverable li::before { left: auto; right: 0; }
[dir="rtl"] .lineage-chain::before { left: auto; right: 17px; }
[dir="rtl"] .lineage-chain::after { left: auto; right: 14px; }
[dir="rtl"] .lineage-chain b { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .msg > div { border-radius: 16px 4px 16px 16px; }
[dir="rtl"] .msg b em { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .loop li:not(:last-child)::after { right: auto; left: -11px; content: '←'; }
[dir="rtl"] .loop li:last-child::after { right: auto; left: 10px; }
[dir="rtl"] .timeline::before { left: auto; right: 31px; }
[dir="rtl"] .timeline li { padding: 22px 0 22px 24px; }
[dir="rtl"] .technical-details summary b { margin-left: 0; margin-right: auto; }
[dir="rtl"] .technical-details details > p { padding: 0 52px 22px 22px; }
[dir="rtl"] .contact-action { text-align: left; justify-self: start; }
[dir="rtl"] .footer-main nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .floating-sala { right: auto; left: 20px; }
[dir="rtl"] .sala-dismiss { right: auto; left: -8px; }
[dir="rtl"] .sala-launcher { padding: 10px 10px 10px 22px; text-align: right; }
[dir="rtl"] .sala-demo-result blockquote { border-left: 0; border-right: 3px solid var(--cyan); border-radius: 10px 0 0 10px; }
[dir="rtl"] .hud-status::before { right: auto; left: 14px; }
[dir="rtl"] .hud-status { left: 0; }
[dir="rtl"] .constellation, [dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .constellation .node, [dir="rtl"] .constellation .hud, [dir="rtl"] .marquee li { direction: rtl; }
@media (max-width: 960px) {
  [dir="rtl"] .lang { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .contact-action { text-align: right; }
}
@media (max-width: 680px) {
  [dir="rtl"] .timeline::before { right: 25px; }
  [dir="rtl"] .technical-details details > p { padding: 0 18px 18px; }
  [dir="rtl"] .floating-sala { left: 12px; }
  [dir="rtl"] .sala-launcher { padding: 7px 7px 7px 16px; }
}

/* Long words (German, French, Dutch…) must never widen the hero on phones. */
.hero-copy { min-width: 0; }
h1, h2 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 680px) {
  :lang(de) h1, :lang(nl) h1 { hyphens: auto; }
  :lang(de) h1, :lang(fr) h1, :lang(nl) h1, :lang(pt) h1, :lang(it) h1 { font-size: clamp(40px, 11.5vw, 64px); }
  :lang(de) h2, :lang(nl) h2 { hyphens: auto; }
}
.technical-details details { min-width: 0; }
.technical-details summary { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Mobile UX refinements ---------- */
.technical-details summary > span { flex-shrink: 0; overflow-wrap: normal; white-space: nowrap; }
.floating-sala { transition: opacity .3s, transform .3s; }
.floating-sala.is-tucked { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 680px) {
  .section { padding-block: 64px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { margin-top: 16px; font-size: 16px; }
  .kicker { font-size: 11.5px; letter-spacing: .05em; gap: 10px; }
  .kicker::before { width: 18px; }

  /* Hero: tighter rhythm, both actions visible */
  .hero-layout { padding-block: 34px 26px; gap: 34px; }
  h1 { margin-top: 20px; }
  .hero-lead { margin-top: 20px; font-size: 21px; }
  .hero-description { font-size: 16px; line-height: 1.62; margin-top: 14px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { min-height: 50px; }

  /* Constellation: one status card under the diagram, nothing overlapping the nodes */
  .constellation { margin-bottom: 34px; }
  .hud-audit { display: none; }
  .hud-status { left: 50%; right: auto; bottom: -40px; transform: translateX(-50%); animation: none !important; flex-direction: row; align-items: center; gap: 10px; padding: 9px 30px 9px 14px; white-space: nowrap; }
  [dir="rtl"] .hud-status { left: 50%; right: auto; padding: 9px 14px 9px 30px; }
  .hud-status .hud-label { margin: 0; }
  .hud-status::before { top: 50%; transform: translateY(-50%); }

  /* Horizontal, swipeable rows instead of very tall stacks */
  .data-taxonomy, .work-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 18px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .data-taxonomy::-webkit-scrollbar, .work-grid::-webkit-scrollbar { display: none; }
  .data-taxonomy > *, .work-grid > * { flex: 0 0 86%; scroll-snap-align: start; }
  .data-card { padding: 24px 20px; }
  .data-card h3 { font-size: 27px; margin-top: 16px; }
  .work-grid .card { padding: 22px 20px; }
  .work-grid h3 { font-size: 25px; }
  .step-number { margin-top: 18px; }

  /* Separation flow: one line you can swipe */
  .separation-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-top: 8px; margin-inline: -16px; padding: 14px 16px; border-radius: 0; border-inline: 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .separation-bar::-webkit-scrollbar { display: none; }
  .separation-bar > * { flex-shrink: 0; }

  /* Area tabs: show that the row scrolls */
  .area-tabs { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); padding-right: 40px; }
  .console-bar { display: none; }
  .area-question h3 { font-size: 24px; }

  /* Floating demo: compact round button that never covers reading */
  .sala-launcher { padding: 6px; gap: 0; border-radius: 50%; }
  .sala-launcher > span:not(.mini-core) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mini-core { width: 46px; height: 46px; }
  .sala-dismiss { width: 22px; height: 22px; top: -6px; right: -6px; font-size: 13px; }
  .floating-sala { right: 14px; bottom: 14px; }
  [dir="rtl"] .floating-sala { left: 14px; right: auto; }
  [dir="rtl"] .sala-launcher { padding: 6px; }
  .sala-nudge { max-width: min(270px, calc(100vw - 32px)); bottom: calc(100% + 10px); padding: 10px 8px 10px 14px; }
  .sala-nudge-text { font-size: 13px; }
  .mini-online { width: 11px; height: 11px; }

  /* Mobile menu: dim what's behind */
  .mobile-drawer:not([hidden]) { box-shadow: 0 24px 60px -16px rgba(5, 40, 90, .3), 0 0 0 100vmax rgba(5, 27, 51, .18); }

  .timeline li { padding-block: 10px; }
  .contact-panel h2 { font-size: 32px; }
}
.swipe-hint { display: none; align-items: center; gap: 8px; margin: -6px 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.swipe-hint::after { content: '→'; color: var(--cyan); font-size: 14px; }
[dir="rtl"] .swipe-hint::after { content: '←'; }
@media (max-width: 680px) { .swipe-hint { display: flex; } }
@media (max-width: 680px) {
  [dir="rtl"] .separation-bar, [dir="rtl"] .area-tabs { -webkit-mask-image: linear-gradient(270deg, #000 80%, transparent); mask-image: linear-gradient(270deg, #000 80%, transparent); }
  [dir="rtl"] .area-tabs { padding-right: 12px; padding-left: 40px; }
}

/* ---------- Animated demo: chat + tracking panel ---------- */
.live { border-radius: 24px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.live-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.live-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 600; background: #24445e; }
.live-top b { font-weight: 500; font-size: 15px; }
.live-pills { margin-left: auto; display: flex; gap: 6px; }
.live-pill { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.live-pill.is-strong { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; align-content: start; padding: 22px 24px 8px; background: var(--surface); }
.live-zone { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--cyan-soft); }
.live-crumb { font-size: 13px; color: var(--muted); }
.live-title { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.live-user { margin: 16px 0 14px auto; max-width: 86%; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.live-who { display: block; font-size: 12px; color: var(--muted); }
.live-user p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; min-height: 1.5em; }
.live-user p.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.live-agent { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.live-agent-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.live-agent-head svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.live-plan-first { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; }
.live-plan-line { margin-top: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.live-ask, .live-answered { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.live-ask b, .live-answered b { font-size: 14.5px; font-weight: 600; }
.live-ask > p { margin-top: 8px; font-size: 14px; }
.live-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.live-opt { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font-size: 13.5px; transition: background .25s, border-color .25s, color .25s, transform .2s; }
.live-opt.is-picked { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.03); }
.live-ask small, .live-answered small { display: block; font-size: 12px; color: var(--muted); }
.live-input { display: block; margin-top: 6px; padding: 10px 12px; min-height: 52px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: #8aa0b3; }
.live-ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.live-continue { padding: 8px 14px; border-radius: 9px; background: var(--line); color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background .25s, transform .15s; }
.live-continue.is-ready { background: var(--blue); color: #fff; }
.live-continue.is-pressed { transform: scale(.94); }
.live-answered p { margin-top: 6px; font-size: 14px; }
.live-answered small { margin-top: 6px; }
.live-status { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.live-status b { font-size: 14px; font-weight: 600; }
.live-status p { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.live-timer { flex-shrink: 0; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.live-activity { margin-top: 12px; }
.live-activity-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.live-activity-head b { font-size: 14px; font-weight: 600; color: var(--blue); }
.live-activity-head small { font-size: 12px; color: var(--muted); }
.live-activity ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.live-activity li { position: relative; padding-left: 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; white-space: normal; }
.live-activity li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.live-activity li.is-warn { color: var(--amber); }
.live-activity li.is-warn::before { background: #e08a1e; }
.live-activity li.is-ok::before { background: #18b37a; }
.live-result { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #bfe5d4; background: linear-gradient(160deg, var(--green-soft), #fff); }
.live-result strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.live-result ul { margin: 8px 0 10px; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.live-actions { display: flex; gap: 8px; margin-top: 12px; }
.live-btn { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 500; }
.live-btn.is-primary { background: var(--green); border-color: var(--green); color: #fff; }
.live-cost { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.live-cost b { display: block; font-weight: 600; color: var(--muted); }
.live-cost span { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.live-panel { position: sticky; top: 100px; padding: 16px 16px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.live-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.live-panel-head b { font-size: 14.5px; font-weight: 600; }
.live-panel-head span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.live-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.live-steps li { display: flex; gap: 10px; align-items: flex-start; }
.live-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); background: #fff; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.live-steps b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.live-steps em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--muted); }
.live-steps li.is-running .live-num { color: transparent; border-color: #24445e; background: radial-gradient(circle, #24445e 0 4px, #fff 5px); box-shadow: 0 0 0 4px rgba(25, 195, 239, .18); }
.live-steps li.is-running em { color: var(--blue); }
.live-steps li.is-done .live-num { color: #fff; border-color: var(--green); background: var(--green); font-size: 0; }
.live-steps li.is-done .live-num::after { content: '✓'; font-size: 11px; }
.live-badge { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--amber); background: var(--amber-soft); }
.live-badge.is-resolved { color: var(--green); background: var(--green-soft); }
.live-badge[hidden] { display: none; }
.live-review { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.live-review b { font-size: 13px; font-weight: 600; }
.live-review b span { font-weight: 400; color: var(--muted); }
.live-review p { margin-top: 5px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.live-panel-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--muted); }
.live-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px 16px; background: var(--surface); }
.live-foot small { font-size: 12px; color: var(--muted); }
/* Playback states (set by app.js). */
.live [data-live].is-off { display: none; }
.live.is-playing [data-live].is-in { animation: liveIn .45s cubic-bezier(.2, .7, .2, 1); }
.live-steps li.is-pulse { animation: livePulse .9s ease-out; }
.live-activity li.is-off { display: none; }
.live-activity li.is-in { animation: liveIn .35s ease-out; }
@keyframes liveIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes livePulse { 0% { background: rgba(25, 195, 239, .16); } 100% { background: transparent; } }
[dir="rtl"] .live-pills { margin-left: 0; margin-right: auto; }
[dir="rtl"] .live-user { margin: 16px auto 14px 0; }
[dir="rtl"] .live-activity li { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .live-activity li::before { left: auto; right: 2px; }
[dir="rtl"] .live-result ul { padding-left: 0; padding-right: 18px; }
@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-panel { position: static; order: -1; }
}
@media (max-width: 680px) {
  .live { border-radius: 18px; margin-inline: -4px; }
  .live-top { padding: 12px 14px; gap: 10px; }
  .live-pill { padding: 5px 8px; font-size: 12px; }
  .live-pill:not(.is-strong) { display: none; }
  .live-grid { padding: 14px 12px 6px; gap: 12px; }
  .live-review p, .live-panel-note { display: none; }
  .live-review { margin-top: 10px; padding-top: 10px; }
  .live-title { font-size: 19px; }
  .live-user { max-width: 94%; }
  .live-agent { padding: 14px; }
  .live-status { flex-direction: column; gap: 6px; }
  .live-foot { padding: 10px 14px 14px; }
}

/* ---------- Floating Sala chat ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sala-demo { width: 420px; height: min(680px, calc(100dvh - 110px)); max-height: none; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sala-demo-header { padding: 16px 18px 12px; margin: 0; border-bottom: 1px solid var(--line); background: #fff; }
.sala-demo-header h3 { margin-top: 4px; font-size: 19px; }
.sala-mode { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--blue); }
.sala-mode::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 195, 239, .18); }
.sala-mode.is-live { color: var(--green); }
.sala-mode.is-live::before { background: #18b37a; box-shadow: 0 0 0 4px rgba(24, 179, 122, .18); }
.sala-thread { flex: 1; overflow-y: auto; padding: 16px 16px 8px; background: var(--surface); overscroll-behavior: contain; }
.sala-welcome .sala-question-label { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.sala-welcome .sala-suggestions { flex-direction: column; align-items: stretch; }
.sala-welcome .sala-suggestions button { text-align: left; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; }
.sala-turn { display: grid; gap: 10px; margin-bottom: 18px; }
.sala-user { justify-self: end; max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--blue); color: #fff; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; animation: liveIn .3s ease-out; }
.sala-agent { padding: 14px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; animation: liveIn .3s ease-out; }
.sala-agent > * { animation: liveIn .35s ease-out; }
.sala-agent-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sala-agent-avatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 8.5px; color: #fff; background: var(--ink); }
.sala-typing { display: inline-flex; gap: 3px; margin-left: 4px; }
.sala-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: typingDot 1s infinite ease-in-out; }
.sala-typing i:nth-child(2) { animation-delay: .15s; }
.sala-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sala-plan-title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.sala-steps { margin-top: 0; gap: 9px; }
.sala-steps b { font-size: 13px; }
.sala-review { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.sala-agent .live-ask, .sala-agent .live-answered, .sala-agent .live-status, .sala-agent .live-result, .sala-agent .live-cost { margin-top: 0; }
.sala-clarify .live-opt { font: inherit; font-size: 13px; cursor: pointer; }
.sala-clarify .live-opt:hover, .sala-clarify .live-opt:focus-visible { border-color: var(--blue); color: var(--blue); }
.sala-clarify-input { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; resize: none; }
.sala-clarify-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 195, 239, .18); }
.sala-clarify .live-continue { border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.sala-clarify .live-continue:disabled { cursor: default; }
.sala-activity summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue); }
.sala-activity ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.sala-activity li { position: relative; padding-left: 14px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.sala-activity li::before { content: ''; position: absolute; left: 1px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.sala-activity li.is-warn { color: var(--amber); }
.sala-activity li.is-warn::before { background: #e08a1e; }
.sala-activity li.is-ok::before { background: #18b37a; }
.sala-agent .live-result p { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.sala-agent .live-result strong { font-size: 16px; }
.sala-sources { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.sala-agent .live-result .msg-tags { margin-top: 8px; }
.sala-agent .live-btn { font: inherit; font-size: 13px; cursor: pointer; transition: opacity .2s, transform .15s; }
.sala-agent .live-btn:hover:not(:disabled) { transform: translateY(-1px); }
.sala-agent .live-btn:disabled { cursor: default; opacity: .45; }
.sala-agent .live-btn.is-chosen { opacity: 1; box-shadow: 0 0 0 3px rgba(18, 134, 95, .2); }
.sala-message { padding: 10px 12px; border-radius: 10px; background: var(--green-soft); border: 1px solid #bfe5d4; font-size: 13px; line-height: 1.5; color: #0f5e45; }
.sala-error { padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); font-size: 13px; color: var(--amber); }
.sala-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.sala-composer textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 14px; line-height: 1.45; resize: none; color: var(--ink); }
.sala-composer textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 195, 239, .16); }
.sala-send { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--grad); cursor: pointer; transition: transform .15s; }
.sala-send:hover { transform: translateY(-1px); }
.sala-send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sala-demo .sala-demo-note { margin: 0; padding: 6px 14px 10px; font-size: 10.5px; background: #fff; }
[dir="rtl"] .sala-user { justify-self: start; border-radius: 14px 14px 14px 4px; }
[dir="rtl"] .sala-agent { border-radius: 14px 4px 14px 14px; }
[dir="rtl"] .sala-welcome .sala-suggestions button { text-align: right; }
[dir="rtl"] .sala-activity li { padding-left: 0; padding-right: 14px; }
[dir="rtl"] .sala-activity li::before { left: auto; right: 1px; }
[dir="rtl"] .sala-send svg { transform: none; }
[dir="rtl"] .sala-typing { margin-left: 0; margin-right: 4px; }
@media (max-width: 680px) {
  .floating-sala:has(.sala-demo:not([hidden])) { inset: 0; background: rgba(5, 27, 51, .32); }
  .sala-demo { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 92dvh; border-radius: 22px 22px 0 0; }
  .sala-composer textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sala-typing i { animation: none; opacity: .6; }
}
.floating-sala:has(.sala-demo:not([hidden])) .sala-dismiss, .floating-sala:has(.sala-nudge:not([hidden])) .sala-dismiss { display: none; }
.sala-demo .sala-composer textarea { display: block; width: auto; min-height: 42px; flex: 1; }
.sala-demo form > button.sala-send { width: 42px; min-height: 42px; padding: 0; }
.sala-composer { position: relative; }
.sala-tab-hint { display: none; position: absolute; right: 62px; bottom: 21px; padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 600 10px/1.4 'IBM Plex Mono', monospace; color: var(--muted); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .sala-composer.has-hint .sala-tab-hint { display: block; }
  .sala-composer.has-hint textarea { padding-right: 58px; }
}
[dir="rtl"] .sala-tab-hint { right: auto; left: 62px; }
[dir="rtl"] .sala-composer.has-hint textarea { padding-right: 12px; padding-left: 58px; }
.sala-composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sala-answer ul { margin: 8px 0 4px; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.sala-answer ul li + li { margin-top: 4px; }
.sala-unlock { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sala-unlock b { grid-column: 1 / -1; font-size: 13px; }
.sala-unlock input { min-width: 0; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-strong); font: inherit; font-size: 14px; }
.sala-unlock input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 195, 239, .18); }
.sala-unlock-msg { grid-column: 1 / -1; font-size: 12px; color: var(--amber); }
.sala-unlock-msg:empty { display: none; }
.sala-quota { font-size: 12px; color: var(--muted); }
[dir="rtl"] .sala-answer ul { padding-left: 0; padding-right: 18px; }

/* Sticky progress + live chain of thought in the floating chat */
.sala-tracker { position: sticky; top: -16px; z-index: 3; margin: -16px -16px 14px; padding: 12px 16px 10px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px -14px rgba(5, 40, 90, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sala-tracker[hidden] { display: none; }
.sala-tracker-top { display: flex; align-items: center; gap: 10px; }
.sala-tracker-dots { display: flex; gap: 4px; flex-shrink: 0; }
.sala-tracker-dots i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); background: #fff; transition: background .3s, color .3s, border-color .3s; }
.sala-tracker-dots i.is-running { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 3px rgba(25, 195, 239, .22); animation: trackPulse 1.2s ease-in-out infinite; }
.sala-tracker-dots i.is-done { color: #fff; border-color: var(--green); background: var(--green); }
@keyframes trackPulse { 50% { box-shadow: 0 0 0 6px rgba(25, 195, 239, .08); } }
.sala-tracker-label { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sala-tracker-time { flex-shrink: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sala-tracker-thought { margin-top: 6px; padding-left: 16px; position: relative; font-size: 12px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sala-tracker-thought:empty { display: none; }
.sala-tracker-thought::before { content: ''; position: absolute; left: 2px; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: trackPulse 1.2s ease-in-out infinite; }
.sala-tracker-thought.is-new { animation: liveIn .35s ease-out; }
.sala-tracker.is-done .sala-tracker-thought::before { background: var(--green); animation: none; }
.sala-thoughts { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
.sala-thoughts summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.sala-thoughts ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.sala-thoughts li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); animation: liveIn .35s ease-out; }
.sala-thoughts li time { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 2px; }
.sala-thoughts li.is-reason span { padding: 6px 9px; border-radius: 9px; background: var(--violet-soft); color: #3d2d86; font-style: italic; }
[dir="rtl"] .sala-tracker-thought { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .sala-tracker-thought::before { left: auto; right: 2px; }
@media (prefers-reduced-motion: reduce) { .sala-tracker-dots i.is-running, .sala-tracker-thought::before { animation: none; } }

/* Answer lineage and thumbs up/down */
.sala-trace { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #cfe4f2; }
.sala-trace summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.sala-trace-doc { margin-top: 8px !important; font-family: var(--mono); font-size: 11px !important; color: var(--ink-2) !important; }
.sala-trace-sources { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.sala-trace-sources li { padding: 8px 10px; border-radius: 10px; background: var(--surface); border-left: 3px solid #b9d4e6; }
.sala-trace-sources li.is-verified { border-left-color: #18b37a; }
.sala-trace-sources b { display: block; font-size: 12.5px; }
.sala-trace-sources blockquote { margin: 4px 0; font-size: 12.5px; line-height: 1.5; font-style: italic; color: var(--ink-2); overflow-wrap: anywhere; }
.sala-trace-sources blockquote::before { content: '“'; }
.sala-trace-sources blockquote::after { content: '”'; }
.sala-trace-sources small { font-size: 11px; color: var(--muted); }
.sala-trace-sources li.is-verified small { color: var(--green); }
.sala-trace-note { margin-top: 6px !important; font-size: 11.5px !important; color: var(--muted) !important; }
.sala-trace-meta { margin-top: 8px !important; font-size: 11px !important; color: var(--muted) !important; }
.sala-trace-meta code { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 5px; background: var(--surface); color: var(--ink-2); }
.sala-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sala-feedback > span { margin-right: 4px; }
.sala-thumb { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; }
.sala-thumb:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--cyan); }
.sala-thumb:disabled { cursor: default; opacity: .4; }
.sala-thumb.is-chosen { opacity: 1; background: var(--cyan-soft); border-color: var(--cyan); }
.sala-feedback-msg { flex-basis: 100%; font-size: 12px; color: var(--green); }
.sala-feedback-form { flex-basis: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.sala-feedback-form textarea { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-strong); font: inherit; font-size: 13px; resize: none; }
.sala-feedback-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 195, 239, .18); }
[dir="rtl"] .sala-trace-sources li { border-left: 0; border-right: 3px solid #b9d4e6; }
[dir="rtl"] .sala-trace-sources li.is-verified { border-right-color: #18b37a; }
[dir="rtl"] .sala-feedback > span { margin-right: 0; margin-left: 4px; }

/* ---------- The Sala on a full screen (desktop) ---------- */
.sala-stage, .sala-side, .sala-room-launch, .sala-room-tabs { display: none; }
.sala-room-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.sala-room-toggle:hover { border-color: var(--cyan); }

.sala-demo-actions { display: flex; align-items: center; gap: 8px; }
#salaClose { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
#salaClose:hover { border-color: var(--cyan); color: var(--blue); }
.room-try { position: absolute; z-index: 3; right: 0; bottom: 3%; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 700 14.5px/1 var(--display); box-shadow: 0 14px 34px -10px rgba(10, 91, 216, .65); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.room-try:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(10, 91, 216, .75); }
.room-try-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffc4; box-shadow: 0 0 0 4px rgba(125, 255, 196, .25); }
.constellation .core { cursor: default; }
@media (min-width: 1100px) and (min-height: 600px) {
  .sala-room-launch { display: inline-flex; align-items: center; gap: 6px; position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer; }
  .sala-room-launch:hover { background: var(--blue); }
  .floating-sala:has(.sala-launcher[hidden]) .sala-room-launch { display: none; }
  [dir="rtl"] .sala-room-launch { right: auto; left: calc(100% + 10px); }
}
html.sala-room-open { overflow: hidden; }
.floating-sala.is-room { inset: 0; z-index: 60; display: grid; padding: 18px; background: rgba(5, 27, 51, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.floating-sala.is-room > .sala-dismiss, .floating-sala.is-room .sala-nudge, .floating-sala.is-room .sala-room-launch { display: none; }
@media (min-width: 1100px) and (min-height: 600px) {
  .floating-sala.is-room .sala-demo { width: min(1560px, 100%); height: 100%; margin: auto; display: grid; grid-template-columns: minmax(400px, 1.05fr) minmax(380px, 1fr) minmax(320px, 360px); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "head head head" "thread stage side" "composer stage side" "note stage side"; border-radius: 24px; }
}
.is-room .sala-demo-header { grid-area: head; padding: 16px 22px; }
.is-room .sala-demo-header h3 { font-size: 22px; }
.is-room .sala-thread { grid-area: thread; padding: 20px 22px 10px; }
.is-room .sala-composer { grid-area: composer; }
.is-room .sala-demo-note { grid-area: note; }
.is-room .sala-tracker, .is-room .sala-thread .sala-plan, .is-room .sala-thread .live-status, .is-room .sala-thread .sala-thoughts, .is-room .sala-thread .live-cost { display: none; }
.is-room .sala-stage { grid-area: stage; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 14px; min-height: 0; padding: 20px 24px; border-inline: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, var(--surface-2), #fff 70%); overflow: hidden; }
.is-room .sala-side { grid-area: side; display: block; position: static; margin: 0; border: 0; border-radius: 0; overflow-y: auto; padding: 20px 20px 18px; }
.sala-side .live-zone { display: inline-block; margin-bottom: 12px; }
.sala-side-idle { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sala-side-q { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.sala-side-status { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.sala-side-status[hidden] { display: none; }
.sala-side-status b { font-size: 13px; }
.sala-side-status p { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.sala-side-status span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.sala-side-sec[hidden] { display: none; }
.sala-side-sec ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.sala-side-sec li { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.sala-side-sec time { flex-shrink: 0; min-width: 44px; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 1px; }
#sideSources li { flex-direction: column; gap: 1px; }
#sideSources small { font-size: 11px; color: var(--muted); }
#sideSources li.is-verified small { color: var(--green); }
.sala-side-cost { margin-top: 12px; font-size: 12px; color: var(--muted); }
.sala-side-cost[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .room-try-dot { animation: callPulseDot 1.8s ease-out infinite; }
  @keyframes callPulseDot { 0% { box-shadow: 0 0 0 0 rgba(125, 255, 196, .6); } 100% { box-shadow: 0 0 0 10px rgba(125, 255, 196, 0); } }
    @keyframes corePulse { 50% { transform: scale(1.06); } }
      @keyframes bubbleIn { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
}

/* Booking a demo by chat */
.sala-book-text { font-size: 14px; line-height: 1.55; color: var(--ink); }
.sala-book-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sala-book-actions button { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.sala-book-actions button:hover:not(:disabled) { border-color: var(--cyan); color: var(--blue); }
.sala-book-actions button:disabled { cursor: default; opacity: .45; }
.sala-book-actions button.is-chosen { opacity: 1; border-color: var(--blue); color: var(--blue); background: var(--surface-2); }
.sala-book-actions button.is-send { border: 0; background: var(--grad); color: #fff; font-weight: 600; }
.sala-book-actions button.is-send:hover:not(:disabled) { color: #fff; filter: brightness(1.05); }
.sala-book-actions button.is-quiet { border-color: transparent; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sala-book-actions button.is-day, .sala-book-actions button.is-time { font-family: var(--mono); font-size: 12px; text-transform: capitalize; }
.sala-book-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.sala-book-summary dt { color: var(--muted); }
.sala-book-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-transform: none; }
.sala-book-privacy { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.sala-agent.is-booked { border-color: #bfe5d4; background: var(--green-soft); }
.sala-welcome .sala-book-chip { border-color: var(--blue); color: var(--blue); font-weight: 600; }

/* Stage: who you talk to, the 3D Sala, and what to ask */
.stage-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stage-avatar { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--display); color: #fff; background: radial-gradient(circle at 35% 30%, #4fd8fb, #0a5bd8 70%); box-shadow: 0 10px 24px -8px rgba(10, 91, 216, .6), 0 0 0 4px #fff, 0 0 0 6px rgba(25, 195, 239, .35); }
.sala-stage.is-area .stage-avatar { background: var(--ink); }
.stage-kicker { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.stage-card strong { display: block; margin-top: 2px; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.stage-card p { margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.stage3d { position: relative; flex: 1; min-height: 260px; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.node3d { position: absolute; left: 0; top: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .94); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); box-shadow: var(--shadow-sm); cursor: pointer; will-change: transform; transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.node3d::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 50%; vertical-align: middle; background: #a9cde2; }
.node3d:hover { border-color: var(--cyan); color: var(--blue); }
.node3d.is-picked { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 26px -8px rgba(10, 91, 216, .7); }
.node3d.is-picked::before { background: #7dffc4; }
.core3d { position: absolute; left: 50%; top: 50%; z-index: 15; transform: translate(-50%, -50%); width: 120px; height: 120px; border: 0; border-radius: 50%; background: none; display: grid; place-content: center; text-align: center; cursor: pointer; }
.core3d b { font: 800 26px/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-shadow: 0 0 18px #fff, 0 0 8px #fff; }
.core3d small { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); text-shadow: 0 0 10px #fff; }
.stage-invite { padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(10, 91, 216, .07), rgba(25, 195, 239, .1)); border: 1px solid rgba(25, 195, 239, .35); }
.stage-invite > p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.stage-invite-icon { font-size: 16px; }
.stage-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stage-examples button { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font: inherit; font-size: 13px; line-height: 1.35; text-align: start; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.stage-examples button:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.stage-bubble { position: absolute; z-index: 30; width: max-content; max-width: 240px; padding: 9px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; color: var(--ink); transform: translate(-50%, calc(-100% - 22px)); pointer-events: none; }
.stage-bubble.is-below { transform: translate(-50%, 22px); }
.stage-bubble.is-ceo { left: 50%; top: 50%; max-width: 280px; background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; transform: translate(-50%, calc(-100% - 78px)); }
.stage-bubble.is-out { opacity: 0; transition: opacity .35s; }
/* Particle effects */
.fx-layer { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; pointer-events: none; }
.fx-hidden { opacity: 0 !important; }
.fx-reveal { animation: fxReveal .6s ease-out; }
@keyframes fxReveal { from { opacity: 0; filter: blur(6px) brightness(1.6); transform: scale(.96); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .stage-bubble { animation: bubbleIn .35s cubic-bezier(.2, .9, .3, 1.3) both; }
  .floating-sala.is-room .sala-demo.fx-enter { animation: roomIn .9s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes roomIn { 0% { opacity: 0; clip-path: circle(0% at 96% 96%); transform: scale(.97); } 60% { opacity: 1; } 100% { opacity: 1; clip-path: circle(150% at 96% 96%); transform: none; } }
  .floating-sala.is-room .sala-demo.fx-enter > * { animation: roomPart .7s cubic-bezier(.2, .8, .2, 1) both; }
  .floating-sala.is-room .sala-demo.fx-enter > .sala-demo-header { animation-delay: .25s; }
  .floating-sala.is-room .sala-demo.fx-enter > .sala-thread, .floating-sala.is-room .sala-demo.fx-enter > .sala-composer, .floating-sala.is-room .sala-demo.fx-enter > .sala-demo-note { animation-delay: .4s; }
  .floating-sala.is-room .sala-demo.fx-enter > .sala-stage { animation: roomStage .9s cubic-bezier(.2, .8, .2, 1) .5s both; }
  .floating-sala.is-room .sala-demo.fx-enter > .sala-side { animation-delay: .65s; }
  @keyframes roomPart { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes roomStage { from { opacity: 0; transform: scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  .floating-sala.is-room { animation: roomBackdrop .5s ease-out both; }
  @keyframes roomBackdrop { from { background: rgba(5, 27, 51, 0); backdrop-filter: blur(0); } }
}

.stage-caption, .stage-caret, .stage-track, .stage-picker, .sala-side-back { display: none; }
/* The Sala on phones and tablets: a floating mini 3D in the header, the whole screen for the chat */
@media (max-width: 1099px), (max-height: 599px) {
  .floating-sala.is-room { padding: 0; }
  .floating-sala.is-room .sala-demo { position: relative; width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "thread" "composer"; }
  .is-room .sala-demo-header { min-height: 64px; padding: 8px 10px; align-items: center; background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .is-room .sala-demo-header > div:first-child { visibility: hidden; }
  .is-room .sala-demo-note, .is-room .sala-room-tabs, .is-room .stage-invite, .is-room .core3d, .is-room .stage-avatar, .is-room #salaTalkRole { display: none; }
  .is-room .sala-room-toggle { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; }
  .is-room .sala-room-toggle span { font-size: 15px; }
  .is-room .sala-stage { position: absolute; z-index: 4; top: 0; left: 0; right: 96px; height: 64px; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 4px 6px; background: none; border: 0; overflow: visible; }
  .is-room .stage3d { flex: none; order: -1; width: 64px; height: 56px; min-height: 0; }
  .is-room .stage-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
  .is-room .stage-card > div { min-width: 0; flex: 1; }
  .is-room .stage-kicker { font-size: 10.5px; letter-spacing: .1em; }
  .is-room .stage-card strong { display: flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 17px; }
  .is-room .stage-caret { display: inline; font-size: 11px; color: var(--blue); }
  .is-room .stage-caption { display: block; margin-top: 1px; min-height: 15px; font-size: 11px; line-height: 1.35; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-room .stage-track:not([hidden]) { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .9); font: 600 11.5px/1 var(--body, inherit); color: var(--ink-2); gap: 5px; }
  .is-room .stage-track.is-busy { border-color: var(--cyan); color: var(--blue); }
  .is-room .sala-demo.is-tab-side .stage-track { background: var(--blue); border-color: var(--blue); color: #fff; }
  .is-room .stage-picker { display: flex; flex-wrap: nowrap; gap: 6px; position: fixed; z-index: 70; top: 64px; left: 0; right: 0; padding: 6px 10px 8px; overflow-x: auto; background: rgba(255, 255, 255, .8); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scrollbar-width: none; }
  .is-room .stage-picker::-webkit-scrollbar { display: none; }
  .is-room .stage-picker .node3d { position: static; flex-shrink: 0; transform: none; opacity: 1; padding: 6px 12px; font-size: 12.5px; }
  .is-room .stage-caret { display: none; }
  .is-room .sala-thread { padding: 58px 12px 8px; }
  .is-room .sala-side { grid-area: thread; display: none; padding: 60px 16px 14px; }
  .is-room .sala-demo.is-tab-side .sala-side { display: block; }
  .is-room .sala-demo.is-tab-side .sala-thread { display: none; }
  .is-room .stage-bubble { display: none; }
  .is-room .sala-side-back { display: inline-flex; margin-bottom: 12px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); }
  .stage-track-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .stage-track.is-busy .stage-track-dot { background: var(--cyan); }
}
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .is-room .stage-caption.is-new { animation: captionIn .35s ease-out; }
  @keyframes captionIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* «Así trabaja la Sala por dentro»: módulo aislado en /recorrido/, se ajusta al alto que informa. */
.rc-embed { display: block; }
.rc-frame { display: block; width: 100%; height: 2400px; border: 0; background: transparent; }

/* Demo de la Sala: informe y papeles de trabajo, «Ver datos y fuentes» y el fork en el borrador. */
.sala-sheets { display: inline-flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.sala-sheets button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.sala-sheets button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(5, 27, 51, .12); }
.sala-papers ol { margin: 10px 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: paso; }
.sala-papers li { counter-increment: paso; position: relative; padding: 8px 10px 8px 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13px; line-height: 1.5; color: var(--ink-2); transition: box-shadow .3s, border-color .3s; }
.sala-papers li::before { content: counter(paso); position: absolute; left: 10px; top: 8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--mono); font-size: 10px; }
.sala-papers li.is-lit { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(25, 195, 239, .35); }
.sala-evidence-open { margin-top: 10px; }
.sala-evidence { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; gap: 8px; font-size: 13px; }
.sala-evidence-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sala-evidence-tabs button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.sala-evidence-tabs button.is-on { border-color: var(--ink-2); background: var(--surface-2); font-weight: 600; color: var(--ink); }
.sala-evidence-body { margin: 0; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.live-actions { flex-wrap: wrap; }
.sala-fork { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed #8c79e0; background: var(--violet-soft); display: grid; gap: 8px; }
.sala-fork textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); resize: vertical; }
.sala-fork p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.sala-fork .live-btn { justify-self: start; }
[dir="rtl"] .sala-papers li { padding: 8px 36px 8px 10px; }
[dir="rtl"] .sala-papers li::before { left: auto; right: 10px; }
.sala-evidence[hidden], .sala-papers[hidden], .sala-sheet[hidden] { display: none; }

/* «Probar la demostración» con XrAI en vivo, y la vuelta. */
.sala-suggestions .sala-try-chip { border-color: #8c79e0; color: #5a43c4; background: var(--violet-soft); font-weight: 600; }
.sala-back-live { margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 11px; color: var(--blue); cursor: pointer; vertical-align: 1px; }
.sala-back-live[hidden], .sala-try-chip[hidden] { display: none; }

/* ---------- v1.22: CTAs a mitad de página y celular de primer nivel ---------- */
.section-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.rc-embed > .container { padding-bottom: 8px; }
.rc-embed .section-cta { margin-top: -48px; }
.sala-nudge-short { display: none; }
.sala-dismiss::after { content: ''; position: absolute; inset: -10px; }
@media (max-width: 680px) {
  .section-cta { flex-direction: column; align-items: stretch; margin-top: 32px; }
  /* «Probá la Sala» debajo de la constelación, sin tapar el nodo de Producto. */
  .constellation { margin-bottom: 104px; }
  .room-try { right: 50%; bottom: -100px; transform: translateX(50%); }
  .room-try:hover { transform: translateX(50%); }
  .section-cta .button { justify-content: center; }
  .rc-embed .section-cta { margin-top: -24px; }
  /* Toques cómodos: zona táctil de 44 px en links y botones chicos. */
  .sala-dismiss { width: 28px; height: 28px; }
  .sala-nudge-close { width: 28px; height: 28px; }
  main a:not([class]) { padding-block: 12px; }
  .footer-main nav a, .footer-bottom a { display: inline-block; padding-block: 12px; }
  .footer { padding-bottom: 84px; }
  .contact-email { margin-top: 6px; padding-block: 12px; }
  .lang-suggest a { padding-block: 12px; }
  .hud-label { font-size: 11px; }
  .lang-menu { background: #fff; }
  /* XrAI invita en una sola línea, al lado de su botón, sin tapar el contenido. */
  .sala-nudge { right: calc(100% + 10px); bottom: 10px; max-width: calc(100vw - 110px); padding: 6px 6px 6px 14px; border-radius: 999px; align-items: center; white-space: nowrap; }
  .sala-nudge-msg { display: none; }
  .sala-nudge-short { display: inline; font-weight: 600; }
  .sala-nudge-text { font-size: 14px; }
  .sala-nudge.is-typing .sala-nudge-short { display: none; }
  [dir="rtl"] .sala-nudge { right: auto; left: calc(100% + 10px); border-radius: 999px; padding: 6px 14px 6px 6px; }
  /* Ciclo de aprendizaje como ciclo real: 01 → 02 ↓ 03 ← 04 ↑. */
  .loop { grid-template-areas: "a b" "d c"; }
  .loop li:nth-child(1) { grid-area: a; } .loop li:nth-child(2) { grid-area: b; } .loop li:nth-child(3) { grid-area: c; } .loop li:nth-child(4) { grid-area: d; }
  .loop li:nth-child(2)::after { display: block; content: '↓'; right: 50%; top: auto; bottom: -15px; transform: translateX(50%); }
  .loop li:nth-child(3)::after { content: '←'; right: auto; left: -11px; }
  .loop li:nth-child(4)::after { content: '↑'; right: 50%; top: -15px; transform: translateX(50%); }
  [dir="rtl"] .loop li:nth-child(1)::after { content: '←'; }
  [dir="rtl"] .loop li:nth-child(2)::after { content: '↓'; left: 50%; right: auto; transform: translateX(-50%); }
  [dir="rtl"] .loop li:nth-child(3)::after { content: '→'; left: auto; right: -11px; }
  [dir="rtl"] .loop li:nth-child(4)::after { content: '↑'; left: 50%; right: auto; transform: translateX(-50%); }
  /* Debate: el recuadro crece con la conversación en vez de esperar en blanco. */
  .js .debate.is-playing .msg:not(.is-shown) { display: none; }
  /* Chat en celular: más lugar para la conversación. */
  .sala-demo:has(#salaWelcome[hidden]) .sala-demo-note { display: none; }
  .sala-demo:has(#salaWelcome[hidden]) .sala-demo-header h3 { display: none; }
  .floating-sala:not(.is-room) .sala-thread .live-status { display: none; }
  .sala-tracker-thought { -webkit-line-clamp: 1; }
  .sala-thread .live-actions { flex-direction: column; align-items: stretch; }
  .sala-thread .live-actions > button { width: 100%; min-height: 44px; justify-content: center; text-align: center; }
}
