/* ViH Samvad public site. Builds on vih.css; all colours are theme tokens. */

body { background: var(--surface); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
section { padding: 104px 0; position: relative; }
section.alt { background: var(--bg); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.label { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.h2 { text-wrap: balance; margin: 0 0 16px; font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.sub { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-3); max-width: 620px; }
.center { text-align: center; } .center .sub { margin: 0 auto; }

/* progress + nav */
.progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 100%; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(17, 17, 20, .35); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 72px; transition: height .3s var(--ease-out); }
.nav.scrolled .nav-in { height: 62px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 36px; width: auto; }
.logo .bar { width: 1px; height: 26px; background: var(--line-strong); }
.logo b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.links { display: flex; gap: 30px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.links a { position: relative; transition: color .15s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.arrow .ic { transition: transform .25s var(--ease-out); }
.arrow:hover .ic { transform: translateX(3px); }

/* hero */
.hero { padding: 88px 0 56px; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--brand-25) 0%, var(--surface) 72%); }
.hero::before { content: ""; position: absolute; top: -180px; left: 50%; width: 900px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .16), transparent); pointer-events: none; }
.hero .grid-bg { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); pointer-events: none; }
.eyebrow { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--brand-100); color: var(--brand-800);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); animation: rise .7s var(--ease-out) both; }
.eyebrow .new { padding: 2px 9px; border-radius: 999px; background: var(--brand-50); font-size: 11.5px; }
.hero h1 { position: relative; margin: 26px auto 22px; max-width: 900px; font-size: 68px; font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 8px; }
.hero h1 .line > span { display: inline-block; animation: up .9s var(--ease-out) both; text-wrap: balance; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes up { from { transform: translateY(105%); } to { transform: none; } }
.hero .lede { position: relative; margin: 0 auto 36px; max-width: 680px; font-size: 19px; line-height: 1.65; color: var(--ink-2); animation: rise .8s .25s var(--ease-out) both; }
.hero .ctas { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; animation: rise .8s .35s var(--ease-out) both; }
.trust { position: relative; margin-top: 26px; font-size: 13px; color: var(--ink-3); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; animation: rise .8s .45s var(--ease-out) both; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { color: #10b981; }

/* hero visual: a phone call becoming a live agent conversation */
.stage { position: relative; margin: 64px auto 0; max-width: 1040px; animation: rise 1s .5s var(--ease-out) both; }
.stage-in { display: grid; grid-template-columns: 1fr 110px 1.08fr; align-items: center; text-align: left; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.panel .wb { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--sunken); border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--ink-4); }
.panel .wb i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.panel .wb span { margin-left: 8px; }
.callee { display: flex; align-items: center; gap: 14px; padding: 20px 18px 8px; }
.callee .ph { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); animation: ringing 1.8s var(--ease) infinite; }
@keyframes ringing { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .45); } 70% { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); } }
.callee b { display: block; font-size: 18px; letter-spacing: -.02em; }
.callee small { font-size: 12.5px; color: var(--ink-3); }
.fld { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.fld > span:first-child { width: 92px; flex: none; white-space: nowrap; color: var(--ink-4); font-size: 12.5px; }
.bars { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 18px 18px; margin-top: 6px; }
.bars i { flex: 1; height: 5px; border-radius: 3px; background: var(--grad); animation: bar 1.2s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -90ms); }
.bars i:nth-child(3n) { --n: 3; } .bars i:nth-child(3n+1) { --n: 7; } .bars i:nth-child(4n) { --n: 5; } .bars i:nth-child(5n) { --n: 9; } .bars i:nth-child(7n) { --n: 1; }
@keyframes bar { 0%, 100% { height: 5px; } 50% { height: 30px; } }
.wire { position: relative; height: 2px; margin: 0 10px; background-image: linear-gradient(90deg, var(--brand-300) 50%, transparent 50%); background-size: 10px 2px; }
.wire::before, .wire::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; }
.wire::after { left: 0; background: var(--brand); box-shadow: 0 0 0 5px rgba(124, 58, 237, .18); animation: travel 2.2s var(--ease) infinite; }
.wire::before { right: 0; background: var(--pink); box-shadow: 0 0 0 5px rgba(236, 72, 153, .18); animation: travel-back 2.2s 1.1s var(--ease) infinite; opacity: 0; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
@keyframes travel-back { from { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { right: calc(100% - 10px); opacity: 0; } }
.agent .ah { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.agent .ah b { font-size: 14px; }
.agent .ah .v { margin-left: auto; }
.agent .arow { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; font-size: 13.2px; color: var(--ink-2); opacity: 0; animation: rise .6s var(--ease-out) forwards; }
.agent .arow:nth-of-type(2) { animation-delay: 1.1s; } .agent .arow:nth-of-type(3) { animation-delay: 1.5s; } .agent .arow:nth-of-type(4) { animation-delay: 1.9s; } .agent .arow:nth-of-type(5) { animation-delay: 2.3s; }
.agent .arow .ic { margin-top: 1px; color: var(--brand); }
.agent .arow .t { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--brand-800); background: var(--brand-50); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.agent .afoot { display: flex; gap: 8px; padding: 12px 18px 16px; flex-wrap: wrap; }

/* stats */
.stats { padding: 40px 0 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.stat { padding: 26px 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.steps .line { position: absolute; top: 25px; left: 12%; right: 12%; height: 2px; background: var(--line); overflow: hidden; }
.steps .line i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out); }
.steps.in .line i { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .n { width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--brand-100); color: var(--brand);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--spring), background .25s, color .25s; }
.step:hover .n { transform: translateY(-4px) scale(1.06); background: var(--brand); color: #fff; }
.step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.feat { position: relative; padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s var(--ease-out), background .25s; }
.feat::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, .14), transparent); opacity: 0; transition: opacity .35s; }
.feat:hover { transform: translateY(-4px); border-color: var(--brand-300); background: var(--surface); box-shadow: 0 16px 40px -18px rgba(124, 58, 237, .35); }
.feat:hover::after { opacity: 1; }
.feat .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; transition: transform .4s var(--spring), background .25s, color .25s; }
.feat:hover .fi { transform: rotate(-6deg) scale(1.06); background: var(--grad); color: #fff; }
.feat h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-3); }

/* split sections */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.bul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.bul li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bul .ic { color: var(--brand); margin-top: 2px; }

/* console mock */
.mock { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock .wb { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--sunken); border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--ink-4); }
.mock .wb i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock .wb span { margin-left: 8px; }
.mock .wb .lv { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-3); }
.mock-b { padding: 18px; display: grid; gap: 14px; }
.mk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.mk b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.mk span { font-size: 12px; color: var(--ink-3); }
.mchart { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 14px 14px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.mchart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand); height: calc(var(--h) * 1%); transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.mchart i.p { background: var(--pink); }
.in .mchart i { transform: none; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.mrow .who { font-weight: 650; }
.mrow .wv { display: inline-flex; align-items: center; gap: 3px; height: 18px; color: var(--brand); margin-left: auto; }
.mrow .wv i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; animation: wv 1.1s ease-in-out infinite; }
.mrow .wv i:nth-child(2) { animation-delay: -.9s; } .mrow .wv i:nth-child(3) { animation-delay: -.6s; } .mrow .wv i:nth-child(4) { animation-delay: -.3s; } .mrow .wv i:nth-child(5) { animation-delay: -.75s; }
@keyframes wv { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.mrow .tm { font-variant-numeric: tabular-nums; color: var(--ink-3); min-width: 34px; text-align: right; }

/* api */
.codewin { border-radius: 18px; background: #0d0d12; box-shadow: 0 40px 80px -30px rgba(26, 11, 61, .6); overflow: hidden; border: 1px solid #1f1f2b; }
.codewin .wb { display: flex; gap: 7px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #1c1c26; }
.codewin .wb i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a38; }
.codewin .wb span { margin-left: 8px; font-size: 12px; color: #6e6e84; font-family: var(--mono); }
.codewin pre { scrollbar-width: thin; scrollbar-color: #33334a transparent; margin: 0; padding: 20px 22px; min-height: 292px; font-family: var(--mono); font-size: 12.8px; line-height: 1.8; color: #e4e4ef; overflow-x: auto; white-space: pre; }
.codewin pre.swap { animation: fade .35s var(--ease); }
.tabs { display: flex; gap: 6px; padding: 12px 16px 0; }
.tabs button { border: 0; background: transparent; color: #8a8aa0; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.tabs button:hover { color: #fff; }
.tabs button.on { background: #1c1c28; color: #fff; }

/* security */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.sec { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .25s, box-shadow .3s, transform .3s var(--ease-out); }
.sec:hover { border-color: var(--green-line); box-shadow: 0 10px 30px -20px rgba(4, 120, 87, .4); transform: translateY(-2px); }
.sec .ck { width: 26px; height: 26px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.sec h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.sec p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.use { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease-out), border-color .25s; }
.use:hover { transform: translateY(-3px); border-color: var(--brand-300); }
.use .ic { color: var(--brand); margin-bottom: 12px; width: 22px; height: 22px; }
.use h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.use p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }

/* cta + footer */
.cta { background: var(--night); color: #fff; text-align: center; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cta::before { width: 480px; height: 480px; background: rgba(124, 58, 237, .55); top: -220px; left: 8%; animation: drift 18s ease-in-out infinite; }
.cta::after { width: 380px; height: 380px; background: rgba(236, 72, 153, .28); bottom: -220px; right: 10%; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(-40px, 30px) scale(1.08); } }
.cta .h2 { color: #fff; position: relative; }
.cta .sub { position: relative; margin: 0 auto 34px; color: rgba(255, 255, 255, .72); }
.cta .ctas { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-white { background: #fff; color: #1a0b3d; }
.btn-white:hover { box-shadow: 0 12px 30px -10px rgba(255, 255, 255, .45); transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
footer { background: #0d0a1a; color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: 14px; }
.ftop { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fbrand img { height: 44px; width: auto; margin-bottom: 14px; }
.fbrand p { margin: 0; max-width: 360px; line-height: 1.65; color: rgba(255, 255, 255, .6); }
.fcol h5 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.fcol a { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .78); transition: color .15s; }
.fcol a:hover { color: #fff; }
.fbot { padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .45); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .links { display: none; }
  .hero h1 { font-size: 52px; }
  .stage-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wire { width: 2px; height: 46px; margin: 0 auto; background-image: linear-gradient(180deg, var(--brand-300) 50%, transparent 50%); background-size: 2px 10px; }
  .wire::before, .wire::after { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .uses { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } .steps .line { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 68px 0; }
  .nav-in { gap: 12px; height: 62px; }
  .logo img { height: 30px; } .logo b { font-size: 19px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 56px 0 36px; }
  .hero h1 { font-size: 38px; letter-spacing: -.035em; }
  .hero .lede { font-size: 16.5px; }
  .h2 { font-size: 30px; } .sub { font-size: 15.5px; }
  .feats, .sec-grid, .uses, .stat-grid, .steps, .ftop { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; } .stat + .stat { border-top: 1px solid var(--line); }
  .mk { grid-template-columns: minmax(0, 1fr); }
  .codewin pre { padding: 16px; font-size: 11.5px; min-height: 0; }
  .cta .ctas { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
}

/* code colours */
.codewin pre .k { color: #c4b5fd; }
.codewin pre .s { color: #a7f3d0; }
.codewin pre .n { color: #f9a8d4; }
.codewin pre .c { color: #6e6e84; font-style: italic; }
