/* =========================================================
   Visual language ported from the original Talki365 page:
   full-height hero, glass panels, call-flow
   builder, device art, final CTA. Diagrams that explain the product
   live in infographics.css. Token-driven for both themes.
   ========================================================= */

:root {
  --cyan: var(--primary); --violet: rgb(var(--a2)); --accent-glow: rgba(var(--a1), .25);
  --grad: linear-gradient(120deg, var(--primary), rgb(var(--a3, var(--a1))) 50%, rgb(var(--a2)));
  --node-bg: var(--surface); --t-slow: 900ms; --globe-dot: 60,110,100;
  --heading-grad: none; --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  --atmo-1: rgba(var(--a1), .10); --atmo-2: rgba(var(--a2), .08);
  --a3: 61,138,130;
}
html[data-theme="partner"] { --globe-dot: 190,215,210; --heading-grad: linear-gradient(180deg, #fff 30%, #c7dcd8); --atmo-1: rgba(var(--a1), .14); --atmo-2: rgba(var(--a2), .16); --a3: 61,138,130; --node-bg: rgba(14,42,48,.88); }
html[data-theme="partner"] .card, html[data-theme="partner"] .frame { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }

/* ---------- Hero: full-height composition ---------- */
.hero--tall { min-height: min(calc(100svh - var(--header-h)), 860px); display: flex; align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 120px); }
.hero--tall .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
.hero--tall h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); letter-spacing: -.035em; line-height: 1.02; }
.hero--tall .hero__net { opacity: .55; }
html[data-theme="partner"] .hero--tall .hero__net{ opacity: 1; }
.hero__atmo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 500px at 15% 20%, var(--atmo-1), transparent 60%), radial-gradient(700px 500px at 85% 70%, var(--atmo-2), transparent 60%), linear-gradient(180deg, rgba(var(--bg-rgb), 0) 55%, var(--bg) 100%); }
.hero h1.hero__title--grad { background: var(--heading-grad); -webkit-background-clip: text; background-clip: text; }
html[data-theme="partner"] .hero h1.hero__title--grad{ color: transparent; }
html[data-theme="partner"] .hero h1.hero__title--grad .w{ background: var(--heading-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.hero__chips li { font-size: .8rem; font-weight: 500; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(var(--bg-rgb), .5); backdrop-filter: blur(6px); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; border: 1px solid var(--border-strong); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--primary); transform: translateX(-50%); animation: scrollhint 2s var(--ease) infinite; }
@keyframes scrollhint { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
.hero--tall .panel { background: var(--node-bg); border-color: var(--border-strong); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.hero--tall .panel--1 { left: -9%; bottom: -7%; } .hero--tall .panel--2 { right: -7%; top: -8%; } .hero--tall .panel--3 { display: none; }
.two-col .device-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .hero--tall { min-height: 0; } .hero--tall .hero__inner { grid-template-columns: 1fr; } .hero__scroll { display: none; } .hero--tall .panel--3 { display: none; } }

/* ---------- Node styles shared by boards ---------- */
.node--core { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 22px; min-width: 220px; background: var(--node-bg); }
.node--sat { flex-direction: row; font-size: .88rem; padding: 12px 16px; background: var(--node-bg); }
.node__kicker { display: block; font-size: .72rem; font-weight: 500; color: var(--text-3); letter-spacing: .04em; }
html[data-theme="partner"] .node{ background: var(--node-bg); border-color: var(--border-strong); box-shadow: 0 10px 30px -20px rgba(0,0,0,.9); }
html[data-theme="partner"] .node--hub{ border-color: rgba(var(--a1), .45); background: linear-gradient(180deg, rgba(var(--a1), .1), var(--node-bg)); }

/* ---------- Call-flow builder ---------- */
.flow--builder { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-areas: "incoming hours ivr sales ring user voicemail" ". . . support . . ." ". . . accounts . . ."; padding: 40px 32px; gap: 28px 24px; background: var(--surface); }
.flow__branches { display: contents; }
.node--branch { flex-direction: row; justify-content: flex-start; padding: 12px 14px; min-height: 0; }
.node--branch b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; background: rgba(var(--a1), .15); color: var(--primary); }
@media (max-width: 1100px) { .flow--builder { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "incoming hours ivr" "sales support accounts" "ring user voicemail"; } }
@media (max-width: 960px) { .flow--builder .flow__branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .flow--builder .node--branch { flex-direction: column; gap: 6px; padding: 10px 6px; } }

/* ---------- Feature mesh (12 cards) ---------- */
.feature-mesh .card { overflow: hidden; }
.feature-mesh .card::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--a1), .18), transparent 60%); opacity: 0; transition: opacity var(--t-med), transform var(--t-slow) var(--ease); transform: translate(10px, 10px); pointer-events: none; }
.feature-mesh .card:hover::after { opacity: 1; transform: none; }

/* ---------- Device art (used by the portal device mock) ---------- */
.device-art { position: relative; height: 110px; border-radius: 12px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); overflow: hidden; }
.device-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(var(--ink), .07) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 6s var(--ease) infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.device-art i, .device-art b { position: absolute; border: 1px solid var(--border-strong); background: var(--node-bg); }
.device-art--deskphone i { left: 24px; right: 60px; top: 32px; bottom: 26px; border-radius: 8px 8px 4px 4px; } .device-art--deskphone i::before { content: ""; position: absolute; inset: 8px 8px auto 8px; height: 22px; border-radius: 4px; background: rgba(var(--a1), .18); } .device-art--deskphone b { right: 28px; top: 20px; width: 20px; height: 70px; border-radius: 10px; }
.device-art--conference i { left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%; translate: -50% -50%; } .device-art--conference i::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: rgba(var(--a1), .22); box-shadow: 0 0 14px var(--accent-glow); }
.device-art--laptop i { left: 30px; right: 30px; top: 22px; bottom: 34px; border-radius: 6px 6px 0 0; } .device-art--laptop i::before { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: linear-gradient(135deg, rgba(var(--a1), .2), rgba(var(--a2), .15)); } .device-art--laptop b { left: 18px; right: 18px; bottom: 26px; height: 8px; border-radius: 0 0 6px 6px; }
.device-art--mobile i { left: 50%; top: 14px; width: 46px; height: 84px; border-radius: 10px; translate: -50% 0; } .device-art--mobile i::before { content: ""; position: absolute; inset: 6px 4px; border-radius: 6px; background: linear-gradient(180deg, rgba(var(--a1), .2), rgba(var(--a2), .1)); }
.tree__note { margin-top: 16px; font-size: .75rem; color: var(--text-3); }

/* ---------- Final CTA ---------- */
.cta-band--final { padding-block: clamp(80px, 10vw, 136px); background: var(--bg); }
.cta-band--final h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.035em; background: var(--heading-grad); -webkit-background-clip: text; background-clip: text; }
html[data-theme="partner"] .cta-band--final h2{ color: transparent; }
.cta-band--final .cta-band__net { opacity: .7; }
.cta-band--final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 50% 60%, var(--atmo-1), transparent 60%); pointer-events: none; }

/* ---------- Pipelines (sequential glow) ---------- */
.pipeline { display: flex; align-items: flex-start; }
.pipeline .step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 6px; background: none; border: 0; }
.pipeline .step__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); transition: border-color var(--t-med), box-shadow var(--t-med), background var(--t-med); z-index: 1; }
.pipeline .step::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--border); } .pipeline .step:first-child::before { display: none; }
.pipeline .step::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 500ms ease; } .pipeline .step:first-child::after { display: none; }
.pipeline .step__label { font-size: .85rem; font-weight: 600; color: var(--text-2); } .pipeline .step__meta { font-size: .72rem; color: var(--text-3); margin-top: -6px; font-family: var(--mono); }
.pipeline .step.is-done .step__dot, .pipeline .step.is-active .step__dot { border-color: var(--primary); background: var(--primary); }
.pipeline .step.is-active .step__dot { box-shadow: 0 0 0 6px rgba(var(--a1), .15), 0 0 16px var(--primary); }
.pipeline .step.is-done::after, .pipeline .step.is-active::after { transform: scaleX(1); }
.pipeline .step.is-active .step__label, .pipeline .step.is-done .step__label { color: var(--text); }
@media (max-width: 640px) { .pipeline { flex-direction: column; align-items: stretch; } .pipeline .step { flex-direction: row; text-align: left; align-items: center; padding: 8px 0; gap: 14px; } .pipeline .step::before, .pipeline .step::after { top: auto; right: auto; left: 6px; bottom: 50%; width: 2px; height: 100%; transform-origin: top; } .pipeline .step::after { transform: scaleY(0); } .pipeline .step.is-done::after, .pipeline .step.is-active::after { transform: scaleY(1); } }

/* ---------- Preview theme toggle ---------- */

@media (prefers-reduced-motion: reduce) {
  .device-art::after, .hero__scroll span, .call-card__actions .accept { animation: none !important; }
  .chart__bars rect { transform: scaleY(1); } .soft__device { opacity: 1; transform: none; } .soft__device .call-card { opacity: 1; transform: none; }
  .pipeline .step .step__dot { border-color: var(--primary); background: var(--primary); } .pipeline .step::after { transform: scaleX(1) !important; }
}

/* =========================================================
   Tech layer: word reveal, dot grid, cursor light, tilt,
   animated borders, scroll-linked steps, page transitions
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-out both vt-out; } ::view-transition-new(root) { animation: 220ms ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

.is-words .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(1.5deg); animation: wordin 700ms var(--ease) forwards; animation-delay: calc(var(--w) * 70ms + 120ms); }
@keyframes wordin { to { opacity: 1; transform: none; } }

.dotgrid { position: relative; }
.dotgrid::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(var(--ink), .14) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.dotgrid > :not(.cta-band__net) { position: relative; }

.cursor-light { position: fixed; top: 0; left: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(var(--a1), .10), rgba(var(--a2), .05) 40%, transparent 65%); opacity: 0; transition: opacity 600ms; mix-blend-mode: screen; }
.cursor-light.is-on { opacity: 1; }

[data-tilt] { transition: transform 500ms var(--ease); transform-style: preserve-3d; will-change: transform; }

.glow-border { position: relative; }
.glow-border::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--primary) 85%, rgb(var(--a2)) 95%, transparent 100%); -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ang 6s linear infinite; pointer-events: none; z-index: 2; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }

[data-spy-steps] .step.is-current { border-color: rgba(var(--a1), .6); box-shadow: 0 0 0 4px rgba(var(--a1), .08); }
[data-spy-steps] .step.is-current .step__num { background: var(--primary); color: var(--on-primary); }
.node.is-spied { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--a1), .12), 0 0 24px rgba(var(--a1), .25); }

@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .glow-border::before { animation: none; } .cursor-light { display: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.apps-showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; margin-bottom: 16px; }
.apps-showcase__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; justify-items: center; } .apps-showcase__phones .uc-phone { width: 100%; }
@supports (zoom: 1) { .apps-showcase__phones .uc-phone { width: 300px; zoom: .62; } @media (max-width: 1180px) { .apps-showcase__phones .uc-phone { zoom: .5; } } @media (max-width: 960px) { .apps-showcase__phones .uc-phone { zoom: .62; } } @media (max-width: 640px) { .apps-showcase__phones .uc-phone { zoom: 1; width: 100%; } } } .apps-showcase p { text-align: center; margin-top: 10px; }
@media (max-width: 960px) { .apps-showcase { grid-template-columns: 1fr; } .apps-showcase__phones { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 640px) { .apps-showcase__phones { grid-template-columns: 1fr; width: 100%; max-width: 260px; margin-inline: auto; gap: 20px; } .apps-showcase__phones > div { width: 100%; } }

.hero--tall .hero__visual .frame--hero .frame__body { max-height: 440px; overflow: hidden; }
.hero--tall .hero__visual 