/* INELVEX site styles. All values come from css/tokens.css. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.5rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Standard Cyrillic letterforms for bg too (Plex would otherwise switch to Bulgarian cursive-style forms). */
  font-feature-settings: "locl" 0;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .closing :focus-visible, .site-header.is-over-hero :focus-visible, .fallback :focus-visible { outline-color: var(--c-accent-bright); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: 0.6rem 1rem; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* ---------- type ---------- */
.kicker { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.kicker--dark { color: var(--c-accent-bright); }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; color: var(--c-text); }
.h2--dark { color: var(--c-dark-text); }
.lead { font-size: 1.075rem; line-height: 1.65; color: var(--c-muted); max-width: 38rem; }
.lead--dark { color: var(--c-dark-muted); }

.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 46rem; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1rem 4rem; align-items: end; }
.section-head--split > div { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.8rem 1.5rem; border-radius: 0.65rem; border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-strong); }
.btn-light { background: var(--c-accent-bright); color: #0A0C16; box-shadow: 0 10px 30px rgba(47, 79, 189, 0.35); }
.btn-light:hover { background: #A7B6EE; }
.btn-ghost { border-color: var(--c-dark-border); color: var(--c-dark-text); background: transparent; }
.btn-ghost:hover { border-color: rgba(190, 200, 240, 0.5); background: rgba(255, 255, 255, 0.04); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(251, 250, 247, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-border); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.site-header.is-over-hero { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 8, 15, 0.94); border-bottom-color: rgba(150, 160, 210, 0.12); color: var(--c-dark-text); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand-wrap { display: flex; align-items: center; gap: 0.6rem; }
/* Wordmark: Literata caps, wide tracking. Optical margin keeps the tracked last letter from looking off-centre. */
.brand, .footer-brand { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.22em; margin-right: -0.22em; text-decoration: none; line-height: 1; }
.brand { font-size: 1.08rem; padding: 0.75rem 0; }
.brand-img { height: 1.6rem; width: auto; }
.badge-staging { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid currentColor; opacity: 0.7; text-decoration: none; color: inherit; white-space: nowrap; transition: opacity .2s var(--ease); }
.badge-staging:hover, .badge-staging:focus-visible { opacity: 1; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { position: relative; text-decoration: none; font-size: 0.9rem; font-weight: 500; opacity: 0.78; padding: 0.6rem 0; transition: opacity .2s var(--ease); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }
/* Current section: amber = selected. */
.site-nav a[aria-current] { opacity: 1; }
.site-nav a[aria-current]::after { transform: scaleX(1); height: 2px; background: var(--c-amber); }
.is-over-hero .site-nav a[aria-current]::after { background: var(--c-amber-bright); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: flex; border: 1px solid var(--c-border); border-radius: 999px; padding: 0.15rem; }
.is-over-hero .lang-switch { border-color: var(--c-dark-border); }
.lang-switch button { min-width: 2.4rem; min-height: 2.25rem; padding: 0 0.55rem; border: 0; border-radius: 999px; background: transparent; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; opacity: 0.7; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: var(--c-accent); color: #fff; opacity: 1; }
.is-over-hero .lang-switch button[aria-pressed="true"] { background: var(--c-dark-text); color: var(--c-dark); }
.is-over-hero .header-cta { background: var(--c-accent-bright); color: #0A0C16; }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-border); border-radius: 0.6rem; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.is-over-hero .nav-toggle { border-color: var(--c-dark-border); }
.nav-toggle span { width: 1.1rem; height: 1.5px; background: currentColor; transition: transform .2s var(--ease); }
.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; background: var(--c-bg); color: var(--c-text); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-md); display: none; }
  .site-nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--c-border); opacity: 1; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current] { color: var(--c-amber-text); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  /* No room next to the wordmark: the badge sits right under it, inside the header height. */
  .brand-wrap { position: relative; }
  .badge-staging { position: absolute; left: 0; top: calc(100% - 0.5rem); font-size: 0.5rem; line-height: 1; padding: 0.12rem 0.35rem; letter-spacing: 0.14em; }
  .header-actions { gap: 0.5rem; }
  .footer-demo { padding-right: 4.5rem; } /* clear of the fixed chat launcher */
  .lang-switch button { min-width: 2.35rem; min-height: 2.5rem; padding: 0 0.4rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--c-dark-text);
  background:
    radial-gradient(ellipse 55% 60% at 74% 46%, rgba(47, 79, 189, 0.30) 0%, transparent 70%),
    radial-gradient(ellipse 45% 50% at 0% 100%, rgba(90, 70, 190, 0.14) 0%, transparent 70%),
    linear-gradient(172deg, var(--c-dark-2) 0%, var(--c-dark) 60%);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.has-flow > .flow-canvas { opacity: 1; }
/* Keep the headline readable: the field is quieter behind the copy, full strength around the assistant. */
.hero .flow-canvas { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 38%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 38%, #000 62%); }
@media (max-width: 960px) { .hero .flow-canvas { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.55) 40%, #000 65%); mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.55) 40%, #000 65%); } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; min-height: min(52rem, calc(100svh - var(--header-h))); padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(6rem, 10vw, 8.5rem); }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; max-width: 36rem; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -0.015em; }
.hero-title em { font-style: normal; color: var(--c-amber-bright); }
.hero-sub { font-size: 1.12rem; line-height: 1.6; color: var(--c-dark-muted); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.4rem; }
.hero-note { font-size: 0.875rem; color: var(--c-dark-muted); display: flex; align-items: center; gap: 0.6rem; }
.hero-note::before { content: ""; width: 1.5rem; height: 1px; background: var(--c-dark-muted); opacity: 0.6; }

/* Assistant as a node of the system: the streams converge on it. */
.hero-system { position: relative; display: flex; justify-content: center; }
.hero-system::before,
.hero-system::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(var(--ring-scale, 1)); transition: opacity .9s var(--ease), transform 1.2s var(--ease), border-color .9s var(--ease); }
.hero-system::before { z-index: 0; width: 42rem; height: 42rem; border: 1px solid rgba(142, 162, 232, 0.12); opacity: 0.7; }
.hero-system::after { z-index: 0; width: 33rem; height: 33rem; border: 1px solid rgba(142, 162, 232, 0.16); opacity: 0.6; background: radial-gradient(circle, rgba(47, 79, 189, 0.20) 0%, transparent 65%); }
.hero[data-flow-state="engaged"] .hero-system { --ring-scale: 0.97; }
.hero[data-flow-state="converging"] .hero-system { --ring-scale: 0.9; }
.hero[data-flow-state="forming"] .hero-system { --ring-scale: 0.84; }
.hero[data-flow-state="forming"] .hero-system::after,
.hero[data-flow-state="resolved"] .hero-system::after { border-color: rgba(226, 174, 108, 0.45); opacity: 1; }
.hero[data-flow-state="resolved"] .hero-system { --ring-scale: 0.8; }

.system-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 25.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(20, 24, 42, 0.92), rgba(9, 11, 20, 0.94));
  border: 1px solid var(--c-dark-border);
  box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* No backdrop-filter: re-blurring an animated canvas every frame is expensive. */
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.system-panel[data-state="converging"],
.system-panel[data-state="forming"] { border-color: rgba(142, 162, 232, 0.45); box-shadow: var(--shadow-dark), 0 0 0 4px rgba(47, 79, 189, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.system-panel[data-state="resolved"] { border-color: rgba(226, 174, 108, 0.55); box-shadow: var(--shadow-dark), 0 0 0 4px rgba(185, 119, 46, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.sp-head { display: flex; align-items: center; gap: 0.75rem; }
.sp-mark { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: rgba(142, 162, 232, 0.12); border: 1px solid rgba(142, 162, 232, 0.3); }
.sp-mark img { width: 1.6rem; height: 1.6rem; }
.sp-title { display: flex; flex-direction: column; line-height: 1.3; }
.sp-title strong { font-size: 0.95rem; letter-spacing: 0.02em; }
.sp-state { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--c-dark-muted); }
.sp-state i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--c-accent-bright); box-shadow: 0 0 0 3px rgba(142, 162, 232, 0.18); }
.system-panel[data-state="converging"] .sp-state i,
.system-panel[data-state="forming"] .sp-state i { animation: pulse 1.1s ease-in-out infinite; }
.system-panel[data-state="resolved"] .sp-state i { background: var(--c-amber-bright); box-shadow: 0 0 0 3px rgba(226, 174, 108, 0.22); }
.system-panel[data-state="resolved"] .sp-state { color: var(--c-amber-bright); }
@keyframes pulse { 50% { opacity: 0.35; } }
.sp-block { display: flex; flex-direction: column; gap: 0.55rem; }
.sp-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(169, 173, 192, 0.85); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sp-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.76rem; border: 1px solid rgba(142, 162, 232, 0.35); color: var(--c-dark-text); background: rgba(142, 162, 232, 0.08); }
.sp-chip.is-coming_soon, .sp-chip.is-disabled { border-style: dashed; border-color: rgba(169, 173, 192, 0.3); color: var(--c-dark-muted); background: transparent; }
.sp-chip-icon .icon { width: 0.95rem; height: 0.95rem; }
.sp-questions { display: flex; flex-direction: column; gap: 0.45rem; }
.sp-q { text-align: left; padding: 0.65rem 0.8rem; border-radius: 0.65rem; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.04); color: var(--c-dark-text); font-size: 0.875rem; line-height: 1.4; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.sp-q:hover { border-color: rgba(142, 162, 232, 0.5); background: rgba(142, 162, 232, 0.1); transform: translateX(2px); }
.sp-input { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3rem; padding: 0.4rem 0.4rem 0.4rem 0.9rem; border-radius: 0.75rem; border: 1px solid rgba(142, 162, 232, 0.4); background: rgba(5, 6, 11, 0.6); color: var(--c-dark-muted); font-size: 0.9rem; cursor: text; text-align: left; }
.sp-input:hover { border-color: var(--c-accent-bright); color: var(--c-dark-text); }
.sp-send { width: 2.3rem; height: 2.3rem; flex-shrink: 0; border-radius: 0.55rem; display: grid; place-items: center; background: var(--c-accent-bright); color: #0A0C16; }
.sp-send svg { width: 1.1rem; height: 1.1rem; }
.sp-notice { font-size: 0.72rem; line-height: 1.45; color: rgba(169, 173, 192, 0.8); }

.wave { position: absolute; left: 0; width: 100%; height: clamp(2.5rem, 5vw, 4.5rem); z-index: 3; pointer-events: none; }
.wave--bottom { bottom: -1px; fill: var(--c-bg); }
.wave--top { top: -1px; fill: var(--c-bg); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .hero-system::before { width: 36rem; height: 36rem; }
  .hero-system::after { width: 28rem; height: 28rem; }
  .system-panel { max-width: 30rem; }
}
@media (max-width: 640px) {
  .hero { --flow-density: 2600; --flow-pointer: 0; }
  .hero-inner { padding-top: 2rem; padding-bottom: 4.75rem; gap: 2.25rem; }
  .hero-copy { gap: 1rem; }
  .hero-title { font-size: clamp(2.1rem, 9.4vw, 2.7rem); line-height: 1.04; }
  .hero-sub { font-size: 1rem; line-height: 1.55; }
  .hero-actions { flex-wrap: nowrap; gap: 0.6rem; margin-top: 0.2rem; }
  .hero-actions .btn { flex: 1 1 0; min-height: 2.9rem; padding: 0.6rem 0.75rem; font-size: 0.95rem; text-align: center; }
  .hero-note { font-size: 0.8rem; }
  .system-panel { padding: 1.1rem; gap: 1rem; }
  .sp-questions .sp-q:nth-child(3) { display: none; }
  .hero-system::before { width: 26rem; height: 26rem; }
  .hero-system::after { width: 20rem; height: 20rem; }
}
@media (max-width: 359px) {
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex-basis: 100%; }
}

/* ---------- offer band ---------- */
.offer { padding: clamp(2.5rem, 5vw, 3.75rem) 0 0; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.offer-item { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1.1rem; border-top: 1px solid var(--c-border-strong); }
.offer-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.offer-item p { font-size: 0.94rem; color: var(--c-muted); line-height: 1.55; max-width: 22rem; }
@media (max-width: 860px) {
  .offer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- channels ---------- */
.channels { --flow-stream: 47, 79, 189; --flow-amber: 185, 119, 46; --flow-alpha: 0.3; --flow-alpha-glow: 0.25; --flow-speed: 52; --flow-trail: 0.032; --flow-density: 1300; --flow-pointer: 0; --flow-static-alpha: 1; padding-top: clamp(5rem, 10vw, 7.5rem); }
.ch-diagram { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; }
.ch-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ch-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.85rem; }
.ch-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.ch-item.is-active { border-color: rgba(47, 79, 189, 0.28); }
.ch-item.is-active:hover, .ch-item.is-active:focus-within { border-color: rgba(47, 79, 189, 0.55); box-shadow: var(--shadow-md); }
.ch-item.is-coming_soon, .ch-item.is-disabled { background: rgba(251, 250, 247, 0.85); border-style: dashed; box-shadow: none; }
.ch-icon { width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; display: grid; place-items: center; background: rgba(47, 79, 189, 0.08); color: var(--c-accent); }
.is-coming_soon .ch-icon, .is-disabled .ch-icon { background: var(--c-panel); color: var(--c-muted); }
.ch-icon .icon { width: 1.35rem; height: 1.35rem; }
.ch-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.ch-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ch-name { font-size: 1rem; font-weight: 600; }
.ch-status { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.45rem; border-radius: 999px; }
.ch-status--active { color: #1E6A3F; background: rgba(46, 140, 87, 0.12); }
.ch-status--coming_soon { color: var(--c-muted); background: transparent; border: 1px dashed var(--c-border-strong); }
.ch-status--disabled { color: var(--c-muted); background: var(--c-panel); }
.ch-text { font-size: 0.9rem; color: var(--c-muted); line-height: 1.5; }
.ch-action { align-self: flex-start; margin-top: 0.15rem; min-height: 2.75rem; padding: 0.4rem 0; align-items: center; border: 0; background: none; color: var(--c-accent); font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }
.ch-action::after { content: "→"; }
.ch-action:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.ch-handle { font-weight: 500; color: var(--c-muted); order: 2; }
.ch-action .ch-handle + * { order: 3; }

.ch-core { position: relative; z-index: 1; display: flex; justify-content: center; }
.core-node { position: relative; width: clamp(11.5rem, 17vw, 13.5rem); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.75rem; text-align: center; color: var(--c-dark-text); background: radial-gradient(circle at 50% 38%, #1A2142 0%, var(--c-dark) 72%); box-shadow: 0 24px 60px rgba(9, 11, 20, 0.22); outline: 1px solid rgba(47, 79, 189, 0.22); outline-offset: 12px; }
/* The amber arc marks where ordered outcomes leave the shared core. */
.core-node::after { content: ""; position: absolute; inset: -13px; border-radius: 50%; border: 1px solid transparent; border-right-color: rgba(185, 119, 46, 0.7); transform: rotate(0deg); }
.core-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.22em; margin-right: -0.22em; }
.core-text { font-size: 0.8rem; line-height: 1.45; color: var(--c-dark-muted); max-width: 10rem; }

.ch-out { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.9rem; }
.ch-out-title { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-amber-text); }
.ch-out ul { display: flex; flex-direction: column; gap: 1.5rem; }
.ch-out li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.35; background: var(--c-bg); padding: 0.25rem 0; }
.out-dot { width: 0.65rem; height: 0.65rem; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--c-amber); background: var(--c-bg); }
.ch-foot { margin-top: 2.5rem; font-size: 0.95rem; color: var(--c-muted); display: flex; align-items: center; gap: 0.75rem; }
.ch-foot::before { content: ""; width: 2rem; height: 1px; background: var(--c-border-strong); flex-shrink: 0; }

@media (max-width: 959px) {
  .ch-diagram { grid-template-columns: 1fr; gap: 0; }
  .ch-core { padding: 3rem 0; }
  .ch-diagram:not(.has-flow) .ch-core::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--c-border-strong); }
  .ch-core { padding: 3.5rem 0; }
  .core-node::after { border-right-color: transparent; border-bottom-color: rgba(185, 119, 46, 0.7); }
  .core-node { width: 12rem; }
  .ch-out { align-items: flex-start; }
}

/* ---------- automate ---------- */
.automate { background: var(--c-panel); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.auto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.auto-group { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg); border: 1px solid var(--c-border); background: rgba(255, 255, 255, 0.55); }
.auto-group-head { display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; row-gap: 0.5rem; align-items: baseline; align-content: start; }
.auto-index { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--c-accent); width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid rgba(47, 79, 189, 0.35); display: grid; place-items: center; align-self: center; }
.auto-group-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
.auto-group-head p { grid-column: 2; color: var(--c-muted); font-size: 0.97rem; max-width: 30rem; }
.auto-rows { display: flex; flex-direction: column; }
.auto-row { padding: 1rem 0; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 0.45rem; }
.auto-row h4 { font-size: 1rem; font-weight: 600; }
.auto-flow { display: grid; grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr); align-items: center; gap: 0.75rem; font-size: 0.9rem; line-height: 1.45; }
.auto-flow .from { color: var(--c-muted); }
.auto-flow .to { color: var(--c-text); font-weight: 500; }
/* Situation (muted) resolves into a result: the arrow ends in amber. */
.auto-flow .arrow { position: relative; height: 1px; background: linear-gradient(90deg, var(--c-border-strong), var(--c-amber)); }
.auto-flow .arrow::after { content: ""; position: absolute; right: -1px; top: -3.5px; border: 4px solid transparent; border-left: 6px solid var(--c-amber); border-right: 0; }

/* Secondary groups: open columns, no card chrome, so the lead block dominates. */
.auto-group:not(.auto-group--lead) { background: none; border: 0; border-radius: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--c-border-strong); }
.auto-group:not(.auto-group--lead) .auto-row:first-child { border-top: 0; padding-top: 0.25rem; }
.auto-grid { row-gap: clamp(2rem, 4vw, 3rem); column-gap: clamp(1.5rem, 4vw, 3.5rem); }

/* Lead block: full width, the three conversation processes read left to right. */
.auto-group--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: 2.5rem; background: var(--c-surface); box-shadow: var(--shadow-md); }
.auto-group--lead .auto-group-head h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.auto-group--lead .auto-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.75rem; }
.auto-group--lead .auto-row { border-top: 0; border-left: 1px solid var(--c-border); padding: 0.25rem 0 0.25rem 1.5rem; gap: 0.75rem; }
.auto-group--lead .auto-flow { grid-template-columns: 1fr; gap: 0.6rem; }
.auto-group--lead .auto-flow .arrow,
.auto-group--lead .auto-flow .arrow::after { right: auto; left: -3.5px; top: auto; bottom: -1px; border: 4px solid transparent; border-top: 6px solid var(--c-amber); border-bottom: 0; }
.auto-group--lead .auto-flow .to { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; }

@media (max-width: 1020px) {
  .auto-group--lead { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 860px) {
  .auto-grid { grid-template-columns: 1fr; }
  .auto-group--lead .auto-rows { grid-template-columns: 1fr; gap: 0; }
  .auto-group--lead .auto-row { border-left: 0; border-top: 1px solid var(--c-border); padding: 1.1rem 0; }
}
@media (max-width: 520px) {
  .auto-flow { grid-template-columns: 1fr; gap: 0.35rem; }
  .auto-flow .arrow { width: 1px; height: 0.9rem; margin-left: 0.35rem; background: linear-gradient(180deg, var(--c-border-strong), var(--c-amber)); }
  .auto-flow .arrow::after { right: auto; left: -3.5px; top: auto; bottom: -1px; border: 4px solid transparent; border-top: 6px solid var(--c-amber); border-bottom: 0; }
}

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.process-grid .section-head { margin-bottom: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.4rem; height: 1px; background: linear-gradient(90deg, var(--c-accent), var(--c-border) 75%); opacity: 0.6; }
.step { position: relative; display: flex; flex-direction: column; gap: 0.55rem; }
.step-num { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg); border: 1px solid rgba(47, 79, 189, 0.45); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--c-accent); margin-bottom: 0.6rem; position: relative; }
.step h3 { font-size: var(--fs-h3); font-weight: 600; }
.step p { color: var(--c-muted); font-size: 0.95rem; max-width: 22rem; }
@media (max-width: 1020px) {
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps::before { left: 1.4rem; right: auto; top: 1.4rem; bottom: 1.4rem; width: 1px; height: auto; background: linear-gradient(180deg, var(--c-accent), var(--c-border)); }
  .step { padding-left: 4rem; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- closing ---------- */
.closing { --flow-alpha: 0.14; --flow-alpha-glow: 0.22; --flow-speed: 42; --flow-trail: 0.035; --flow-density: 2600; --flow-pointer: 0; --flow-static-alpha: 0.6; position: relative; overflow: hidden; color: var(--c-dark-text); background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(47, 79, 189, 0.22), transparent 70%), linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%); padding-top: clamp(6rem, 11vw, 9rem); }
.closing-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: end; padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.closing-head { display: flex; flex-direction: column; gap: 1rem; }
.closing-actions { margin-top: 0.6rem; }
.contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--c-dark-border); background: var(--c-dark-surface); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.contact-link:hover { border-color: rgba(142, 162, 232, 0.55); background: rgba(142, 162, 232, 0.08); }
.contact-icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 0.65rem; display: grid; place-items: center; background: rgba(142, 162, 232, 0.12); color: var(--c-accent-bright); }
.contact-icon .icon { width: 1.25rem; height: 1.25rem; }
.contact-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contact-label { font-size: 0.78rem; color: var(--c-dark-muted); }
.contact-value { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.site-footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; padding-top: 1.75rem; padding-bottom: 2rem; border-top: 1px solid var(--c-dark-border); font-size: 0.82rem; color: var(--c-dark-muted); }
.site-footer.container { border-top: 0; box-shadow: inset 0 1px 0 var(--c-dark-border); }
.footer-brand { color: var(--c-dark-text); font-size: 0.95rem; }
.footer-link { color: var(--c-dark-text); text-underline-offset: 0.25em; }
.footer-meta:last-child { margin-left: auto; }
.footer-review { color: var(--c-dark-text); font-style: italic; opacity: 0.8; }
/* Demo note: own row under the links; the header "Demo" badge links here. */
.footer-demo { order: 1; flex: 0 0 100%; line-height: 1.55; }
@media (max-width: 860px) {
  .closing-inner { grid-template-columns: 1fr; }
  .footer-meta:last-child { margin-left: 0; }
}

/* ---------- launcher + fallback ---------- */
.launcher { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 1px solid rgba(142, 162, 232, 0.45); background: radial-gradient(circle at 35% 30%, #2A3A80, var(--c-dark) 75%); color: var(--c-dark-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 32px rgba(9, 11, 20, 0.35), 0 0 0 4px rgba(47, 79, 189, 0.12); transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease); }
.launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(9, 11, 20, 0.4), 0 0 0 5px rgba(47, 79, 189, 0.18); }
.launcher svg { width: 1.6rem; height: 1.6rem; grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.launcher.is-tucked { opacity: 0; transform: scale(.6); visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.launcher .launcher-close { opacity: 0; transform: rotate(-45deg); }
.launcher[data-open="true"] .launcher-open { opacity: 0; transform: rotate(45deg); }
.launcher[data-open="true"] .launcher-close { opacity: 1; transform: none; }

.fallback { position: fixed; right: 1.5rem; bottom: 6rem; z-index: 60; width: min(23rem, calc(100vw - 2rem)); display: flex; flex-direction: column; gap: 0.9rem; padding: 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--c-dark-border); background: linear-gradient(165deg, #12162A, var(--c-dark) 70%); color: var(--c-dark-text); box-shadow: var(--shadow-dark); animation: rise .25s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.fallback-head { display: flex; align-items: center; gap: 0.7rem; }
.fallback-head img { width: 2rem; height: 2rem; }
.fallback-head strong { flex: 1; font-size: 0.98rem; line-height: 1.3; }
.fallback-close { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; border: 0; background: transparent; color: var(--c-dark-muted); display: grid; place-items: center; cursor: pointer; }
.fallback-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--c-dark-text); }
.fallback-close svg { width: 1.2rem; height: 1.2rem; }
.fallback-text { font-size: 0.9rem; color: var(--c-dark-muted); }
.contact-list--compact { gap: 0.5rem; }
.contact-list--compact .contact-link { padding: 0.75rem 0.9rem; }
.contact-list--compact .contact-icon { width: 2.1rem; height: 2.1rem; }
.fallback-notice { font-size: 0.72rem; color: rgba(169, 173, 192, 0.85); border-top: 1px solid var(--c-dark-border); padding-top: 0.75rem; }
@media (max-width: 540px) {
  .launcher { right: 1rem; bottom: 1rem; }
  .fallback { right: 1rem; bottom: 5.4rem; }
}

.commercial-offer { scroll-margin-top: 6rem; }
.commercial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 2rem 0; }
.commercial-grid article { border-top: 1px solid var(--c-border); padding-top: 1.25rem; min-width: 0; }
.commercial-grid h3 { font-size: 1.15rem; margin: 0 0 .75rem; }
.commercial-grid p, .commercial-note { color: var(--c-muted); line-height: 1.65; }
.commercial-note { max-width: 65rem; margin: 1rem 0; }
.commercial-offer .btn { margin-top: 1rem; }
.preview-notice { padding: .5rem 1rem; background: #fff0cc; color: #302510; text-align: center; font: 14px/1.5 sans-serif; }
@media (max-width: 640px) { .commercial-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
