/* ============================================================
   VISIAN SYSTEMS — Design System
   Bold enterprise. Dark, high-contrast, AI-native.
   ============================================================ */

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

:root {
  /* Brand palette (from Visian brand assets) */
  --bg:        #070a14;
  --bg-1:      #0a0e1a;
  --bg-2:      #0f1626;
  --panel:     #121a2e;
  --panel-2:   #16203a;
  --ink:       #eef3ff;
  --muted:     #9aa7c7;
  --faint:     #64719a;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.14);

  --cyan:      #36d0e0;
  --blue:      #6d8cff;
  --violet:    #9b7bff;

  --accent:    var(--blue);
  --grad:      linear-gradient(120deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);
  --grad-soft: linear-gradient(120deg, rgba(54,208,224,.16), rgba(109,140,255,.16), rgba(155,123,255,.16));

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow:    0 24px 60px -24px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(109,140,255,.35);

  --maxw:      1200px;
  --gutter:    clamp(20px, 5vw, 48px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Fira Code", monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3.4vw, 4.6rem);
  --step-5:  clamp(2.7rem, 2rem + 5vw, 6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Animated aurora background */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38vw 38vw at 12% 8%, rgba(109,140,255,.34), transparent 60%),
    radial-gradient(34vw 34vw at 92% 4%, rgba(155,123,255,.32), transparent 58%),
    radial-gradient(42vw 40vw at 78% 82%, rgba(54,208,224,.24), transparent 60%),
    radial-gradient(36vw 36vw at 20% 96%, rgba(109,140,255,.20), transparent 60%);
  filter: blur(18px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

/* Grid + grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.015em; }
p { color: var(--muted); }

::selection { background: rgba(109,140,255,.35); color: #fff; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(64px, 9vw, 130px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .7;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { font-size: var(--step-1); color: var(--muted); margin-top: 1.1rem; }

.lead { font-size: var(--step-1); color: var(--muted); }
.text-grad {
  background: linear-gradient(120deg, var(--cyan), var(--blue), var(--violet), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 50%; } }
@media (prefers-reduced-motion: reduce) { .text-grad { animation: none; } }

/* Typewriter */
.tw-line { white-space: nowrap; }        /* keep "that <phrase>." on one line, no reflow */
.typewriter { display: inline; white-space: nowrap; }
#tw-word { -webkit-text-fill-color: transparent; }
.caret {
  display: inline-block; width: .06em; height: .92em;
  margin-left: .04em; vertical-align: -.08em; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 4px var(--cyan);
  animation: caretblink 1s steps(1) infinite;
}
.typewriter.typing .caret { animation: none; opacity: 1; }
@keyframes caretblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: var(--step-0);
  padding: .95em 1.6em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue), var(--violet), var(--cyan));
  background-size: 200% 100%;
  color: #05070f; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px -8px rgba(109,140,255,.55), 0 0 0 0 rgba(54,208,224,.5);
  animation: btnpulse 3.2s ease-in-out infinite, btnflow 6s linear infinite;
}
@keyframes btnpulse {
  0%,100% { box-shadow: 0 10px 30px -8px rgba(109,140,255,.55), 0 0 0 0 rgba(54,208,224,.0); }
  50%     { box-shadow: 0 14px 40px -8px rgba(109,140,255,.7), 0 0 30px 2px rgba(54,208,224,.35); }
}
@keyframes btnflow { to { background-position: 200% 50%; } }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0% { left: -60%; } 55%,100% { left: 130%; } }
.btn-primary:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } .btn-primary::after { display: none; } }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(54,208,224,.08); transform: translateY(-2px); }
.btn-lg { padding: 1.05em 2em; font-size: var(--step-1); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--cyan);
}
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,10,20,.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 18px; }
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: var(--step--1); color: var(--muted); font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* dropdown */
.nav-item { position: relative; }
.nav-item > a::after { content: ""; }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; min-width: 300px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease;
}
.nav-item:hover .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu a {
  display: block; padding: 11px 13px; border-radius: 10px;
  color: var(--ink) !important; font-size: var(--step--1); transition: background .2s ease;
}
.nav-menu a span { display: block; color: var(--faint); font-size: .78rem; margin-top: 2px; font-weight: 400; }
.nav-menu a:hover { background: var(--grad-soft); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; opacity: .28;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 55%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 55%, transparent);
}
.hero-inner { max-width: 940px; }
.hero h1 { margin-block: 1.2rem 1.5rem; }
.hero .lead { max-width: 640px; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .5em 1em; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  font-size: var(--step--1); color: var(--muted); font-family: var(--mono); letter-spacing: .02em;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.trust-stat { background: var(--bg-1); padding: 32px 28px; }
.trust-stat .num {
  font-size: var(--step-3); font-weight: 700; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.trust-stat .label { color: var(--muted); font-size: var(--step--1); margin-top: .3rem; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 52px); margin-top: 42px; opacity: .7; }
.logos span { font-weight: 600; color: var(--faint); letter-spacing: .01em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderspin { to { --angle: 360deg; } }

.card {
  --angle: 0deg;
  --edge: conic-gradient(from var(--angle),
    rgba(54,208,224,.55), rgba(109,140,255,.12), rgba(155,123,255,.55),
    rgba(109,140,255,.12), rgba(54,208,224,.55));
  background:
    linear-gradient(180deg, var(--panel), var(--bg-2)) padding-box,
    var(--edge) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
  position: relative; overflow: hidden;
}
/* cursor-following spotlight */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(109,140,255,.28), rgba(54,208,224,.10) 30%, transparent 55%);
  transition: opacity .4s ease;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-6px);
  animation: borderspin 4.5s linear infinite;
  box-shadow: 0 0 0 1px rgba(109,140,255,.35), 0 30px 70px -24px rgba(109,140,255,.6), 0 0 60px -20px rgba(54,208,224,.5);
}
.card:hover::before { opacity: 1; }
/* Showcase cards get an always-on living border */
.service-card, .bento .card, .case-card {
  animation: borderspin 14s linear infinite;
}
.service-card:hover, .bento .card:hover, .case-card:hover { animation-duration: 4.5s; }
@media (prefers-reduced-motion: reduce) {
  .card, .service-card, .bento .card, .case-card { animation: none !important; }
  .card { --edge: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)); }
}

/* service card */
.service-card { display: flex; flex-direction: column; min-height: 100%; }
.service-card .idx { font-family: var(--mono); color: var(--faint); font-size: var(--step--1); letter-spacing: .1em; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 4px 0 20px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--cyan); }
.service-card h3 { margin-bottom: .6rem; }
.service-card .tagline { color: var(--ink); font-weight: 600; margin-bottom: .7rem; }
.service-card ul { list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.service-card li { position: relative; padding-left: 1.5em; color: var(--muted); font-size: var(--step--1); }
.service-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }
.service-card .link-arrow { margin-top: auto; }
.card-glow-top::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover.card-glow-top::after { opacity: 1; }

/* case study card */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-visual {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  background: var(--bg-1); overflow: hidden;
}
.case-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  background: radial-gradient(120% 120% at 20% 0%, rgba(54,208,224,.22), transparent 55%),
              radial-gradient(120% 120% at 100% 100%, rgba(155,123,255,.28), transparent 55%);
}
.case-visual .metric {
  position: relative; text-align: center; padding: 20px;
}
.case-visual .metric b {
  display: block; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: #fff;
}
.case-visual .metric small { color: var(--muted); font-size: var(--step--1); letter-spacing: .02em; }
.case-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--line-2); border-radius: 999px; padding: .35em .8em; margin-bottom: 1rem; align-self: flex-start;
}
.case-body h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.case-body p { font-size: var(--step--1); }
.case-body .link-arrow { margin-top: 1.2rem; font-size: var(--step--1); }
a.case-card-link {
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
a.case-card-link:hover { transform: translateY(-4px); }
a.case-card-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.case-study-hero .tag { margin-bottom: 1rem; }
.case-feature-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow); margin-bottom: clamp(28px, 4vw, 48px);
}
.case-feature-visual img { width: 100%; height: auto; display: block; vertical-align: middle; }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
}
.case-meta-label {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .5rem;
}
.case-meta-item strong { font-size: var(--step-0); color: var(--ink); }
.case-meta-stack .stack { margin-top: .35rem; }
.case-section { border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 56px); }
.case-split .prose h3:first-of-type { margin-top: 0; }
.stack { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.stack span { font-family: var(--mono); font-size: .72rem; color: var(--faint); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 6px; padding: .3em .6em; }

/* product feature */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.product.rev { grid-template-columns: 1fr 1.1fr; }
.product.rev .product-media { order: -1; }
.product-media {
  border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: var(--panel);
  box-shadow: var(--shadow); position: relative;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph { aspect-ratio: 4/3; background: var(--grad-soft); display: grid; place-items: center; }
.product-tag { color: var(--cyan); font-family: var(--mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; }
.product h3 { margin: .6rem 0 1rem; }
.product ul { list-style: none; margin: 1.4rem 0; display: grid; gap: .7rem; }
.product li { position: relative; padding-left: 1.7em; color: var(--muted); }
.product li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }

/* process steps */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg-1); padding: clamp(26px,3vw,40px); display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; align-items: start; }
.step .n { font-size: var(--step-3); font-weight: 800; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.step p { font-size: var(--step--1); }

/* tech columns */
.tech-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.tech-col h4 { font-size: var(--step--1); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2rem; }
.tech-col ul { list-style: none; display: grid; gap: .7rem; }
.tech-col li { color: var(--muted); font-size: var(--step--1); padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.tech-col li b { color: var(--ink); font-weight: 600; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote { display: flex; flex-direction: column; }
.quote .mark { font-size: 3rem; line-height: .5; color: var(--blue); font-weight: 800; height: 1.2rem; }
.quote blockquote { font-size: var(--step-1); color: var(--ink); font-weight: 500; margin: 1.2rem 0 1.6rem; line-height: 1.4; }
.quote cite { margin-top: auto; font-style: normal; }
.quote cite b { display: block; color: var(--ink); }
.quote cite span { color: var(--faint); font-size: var(--step--1); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 26px 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; }
.faq-q .ic { flex: 0 0 auto; width: 24px; height: 24px; position: relative; transition: transform .3s ease; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--cyan); }
.faq-q .ic::before { width: 16px; height: 2px; }
.faq-q .ic::after { width: 2px; height: 16px; transition: transform .3s ease; }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 26px; color: var(--muted); }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-1)); border: 1px solid var(--line-2);
}
.cta-band::before {
  content: ""; position: absolute; inset: -2px; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(109,140,255,.28), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 720px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin: 1.2rem auto 2rem; font-size: var(--step-1); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 90px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { height: 30px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 300px; font-size: var(--step--1); }
.footer-brand .addr { margin-top: 1.2rem; color: var(--faint); font-size: .82rem; line-height: 1.7; }
.footer-col h5 { font-size: .78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .7rem; }
.footer-col a { color: var(--muted); font-size: var(--step--1); transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero .container { max-width: 880px; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero .lead { margin-top: 1.4rem; }
.breadcrumb { font-family: var(--mono); font-size: var(--step--1); color: var(--faint); margin-bottom: 1.4rem; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--cyan); }
.prose h2 { font-size: var(--step-2); margin: 2.4rem 0 1rem; }
.prose h3 { font-size: var(--step-1); margin: 1.8rem 0 .8rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.4rem 1.2rem; }
.prose li { color: var(--muted); margin-bottom: .6rem; }
.prose strong { color: var(--ink); }
.prose .container { max-width: 820px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(38px) scale(.97); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; } }

/* Scroll progress beam */
.scroll-beam { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: var(--grad); box-shadow: 0 0 12px rgba(109,140,255,.8); transition: width .1s linear; }

/* Bento big-number glow pulse */
.bento .big { text-shadow: 0 0 30px rgba(109,140,255,.35); animation: numpulse 4s ease-in-out infinite; }
@keyframes numpulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .bento .big { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .tech-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product, .product.rev { grid-template-columns: 1fr; }
  .product.rev .product-media { order: 0; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open + .mobile-menu { display: block; }
  .grid-2, .grid-3, .grid-4, .tech-grid, .quotes { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: .6rem; }
  .footer-top { grid-template-columns: 1fr; }
  .hero .lead { font-size: 1.1rem; }
}

/* ============================================================
   FUTURISTIC UPGRADES
   ============================================================ */

/* Heavier, more confident section headings */
h2 { font-weight: 800; }
.section-head h2 { letter-spacing: -.035em; }
.eyebrow {
  padding: .35em .85em; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(54,208,224,.06); color: var(--cyan);
}
.eyebrow::before { display: none; }

/* Global pointer glow */
.pointer-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--px, -100px) var(--py, -100px), rgba(109,140,255,.06), transparent 60%);
  transition: opacity .3s ease;
}

/* Gradient hairline divider */
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, rgba(109,140,255,.5) 50%, var(--line-2) 80%, transparent); margin: 0; }

/* Section number watermark */
.sec-index { position: absolute; top: clamp(24px,4vw,48px); right: var(--gutter); font-family: var(--mono); font-size: var(--step--1); letter-spacing: .3em; color: var(--faint); opacity: .55; }

/* Logo marquee */
.marquee { margin-top: 42px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: clamp(28px,5vw,64px); animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--faint); font-weight: 600; font-size: var(--step-1); white-space: nowrap; letter-spacing: -.01em; transition: color .2s ease; }
.marquee-track span:hover { color: var(--ink); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Trust stat glow */
.trust-grid { position: relative; box-shadow: 0 40px 120px -50px rgba(109,140,255,.5); }
.trust-stat { position: relative; transition: background .3s ease; }
.trust-stat:hover { background: var(--panel); }
.trust-stat::after { content: ""; position: absolute; left: 28px; bottom: 22px; width: 24px; height: 2px; background: var(--grad); opacity: .0; transition: opacity .3s ease, width .3s ease; }
.trust-stat:hover::after { opacity: 1; width: 40px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 20px; }
.bento .card { display: flex; flex-direction: column; justify-content: flex-end; }
.bento .feat { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.bento .wide { grid-column: span 2; }
.bento .full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(20px,3vw,40px); justify-content: flex-start; }
.bento .full .ic { margin: 0; flex: 0 0 auto; }
.bento .full > div { flex: 1; }
.bento .full h3 { margin-top: 0 !important; }
.bento .big { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento .cap { color: var(--muted); font-size: var(--step--1); margin-top: .5rem; }
.bento .feat h3 { font-size: var(--step-2); margin: 1rem 0 .6rem; }
.bento .badge { display: inline-flex; align-items: center; gap: .5em; align-self: flex-start; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 999px; padding: .4em .85em; margin-top: 1.2rem; }
.bento .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.bento .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: auto; }
.bento .ic svg { width: 22px; height: 22px; stroke: var(--cyan); }

/* Solutions grid */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sol { padding: 24px 24px; }
.sol .sic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 16px; }
.sol .sic svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sol h4 { font-size: var(--step-0); margin-bottom: .35rem; letter-spacing: -.01em; }
.sol p { font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 900px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sol-grid { grid-template-columns: 1fr; } }

/* Process connector */
.steps { counter-reset: step; }
.step { position: relative; }
.step .n { position: relative; }
.service-icon { transition: transform .35s ease, box-shadow .35s ease; }
.card:hover .service-icon { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(54,208,224,.5); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .feat { grid-column: span 2; grid-row: span 1; }
  .bento .wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento .feat, .bento .wide { grid-column: span 1; }
}

/* Rating strip */
.rating-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px,3vw,34px); margin: 0 auto 44px; padding: 18px 26px; max-width: 900px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); text-align: center; }
.rating-strip .stars { color: #ffce54; font-size: 1.25rem; letter-spacing: 2px; text-shadow: 0 0 14px rgba(255,206,84,.5); }
.rating-strip .rs-item { color: var(--muted); font-size: var(--step--1); }
.rating-strip .rs-item b { color: var(--ink); }
.rating-strip .rs-sep { width: 1px; height: 26px; background: var(--line-2); }
@media (max-width: 620px) { .rating-strip .rs-sep { display: none; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { display: flex; flex-direction: column; }
.price-card .ptag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem; }
.price-card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.price-card .amount { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: .4rem 0 .2rem; }
.price-card .per { color: var(--faint); font-size: var(--step--1); }
.price-card ul { list-style: none; display: grid; gap: .55rem; margin: 1.3rem 0 1.6rem; }
.price-card li { position: relative; padding-left: 1.5em; color: var(--muted); font-size: var(--step--1); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-card.feature { border: 1px solid transparent; background: linear-gradient(180deg, var(--panel-2), var(--bg-2)) padding-box, var(--grad) border-box; }
.badge-pop { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #05070f; background: var(--grad); border-radius: 999px; padding: .3em .7em; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
table.cmp thead th { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
table.cmp thead th.us { color: var(--cyan); }
table.cmp td.us { color: var(--ink); font-weight: 600; background: rgba(54,208,224,.05); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Quiz / Assessment ---------- */
.quiz { max-width: 720px; margin-inline: auto; }
.qprogress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 30px; }
.qprogress > i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(109,140,255,.7); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.qnum { font-family: var(--mono); color: var(--cyan); font-size: var(--step--1); letter-spacing: .12em; }
.qtext { font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; margin: .6rem 0 1.5rem; line-height: 1.15; }
.qopts { display: grid; gap: 12px; }
.qopt { text-align: left; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--ink); cursor: pointer; font-size: var(--step-0); transition: border-color .2s, background .2s, transform .12s; display: flex; align-items: center; gap: 13px; font-family: inherit; }
.qopt:hover { border-color: var(--cyan); background: rgba(54,208,224,.07); }
.qopt:active { transform: scale(.995); }
.qopt .rdot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--faint); flex: 0 0 auto; transition: all .15s; }
.qopt.sel { border-color: var(--cyan); background: rgba(54,208,224,.1); }
.qopt.sel .rdot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.qnav .qback { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: var(--step--1); font-family: inherit; }
.qnav .qback:hover { color: var(--ink); }
.qnav .qback[hidden] { visibility: hidden; }

.result-head { text-align: center; margin-bottom: 34px; }
.result-score { font-size: clamp(3.4rem, 9vw, 5.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 40px rgba(109,140,255,.3); }
.result-band { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-size: var(--step--1); margin-top: .6rem; }
.dims { display: grid; gap: 16px; margin: 6px 0 30px; }
.dim { }
.dim .dl { display: flex; justify-content: space-between; font-size: var(--step--1); margin-bottom: 7px; }
.dim .dl b { color: var(--ink); font-weight: 600; }
.dim .dl span { color: var(--faint); font-family: var(--mono); }
.dim .track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dim .track > i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.recos { display: grid; gap: 12px; margin: 0 0 30px; }
.reco { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.reco .rc { color: var(--cyan); flex: 0 0 auto; margin-top: 2px; }
.reco p { font-size: var(--step--1); color: var(--muted); }
.reco b { color: var(--ink); }

/* ---------- Rich footer (SecureSafety-style) ---------- */
.footer-offices { margin-top: 1.3rem; display: grid; gap: 12px; }
.footer-offices .office { color: var(--faint); font-size: .82rem; line-height: 1.65; }
.footer-offices .office b { display: block; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.footer-contact { margin-top: 1.1rem; font-size: var(--step--1); color: var(--faint); }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 10px; margin-top: 1.4rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s, transform .2s; }
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(54,208,224,.06); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 50px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer-badges .bl { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.fbadge { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .45em .9em; background: rgba(255,255,255,.02); }
.fbadge::before { content: "✓"; color: var(--cyan); font-size: .8em; }
.footer-legal a:hover { color: var(--cyan); }

/* ---------- Announcement bar ---------- */
.announce { position: relative; z-index: 101; text-align: center; font-size: var(--step--1); padding: 9px 16px; background: linear-gradient(90deg, rgba(54,208,224,.13), rgba(109,140,255,.13), rgba(155,123,255,.13)); border-bottom: 1px solid var(--line); color: var(--muted); }
.announce .atag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #05070f; background: var(--grad); border-radius: 999px; padding: .25em .7em; margin-right: .7em; }
.announce a { color: var(--ink); font-weight: 600; }
.announce a:hover .arrow { transform: translateX(3px); }
.announce .arrow { display: inline-block; color: var(--cyan); transition: transform .2s ease; }

/* Hero value-prop checklist + microcopy */
.hero-checks { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 1.7rem; list-style: none; }
.hero-checks li { display: flex; align-items: center; gap: .55em; color: var(--muted); font-size: var(--step--1); }
.hero-checks .ck { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); font-size: .72rem; font-weight: 700; }
.cta-micro { margin-top: 1rem; color: var(--faint); font-size: .84rem; }
.cta-micro b { color: var(--muted); font-weight: 600; }

/* Works-with-your-stack row */
.stack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; margin-top: 30px; }
.stack-row .lbl { color: var(--faint); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.stack-row .sl { font-family: var(--mono); font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .42em .9em; background: rgba(255,255,255,.02); transition: color .2s, border-color .2s; }
.stack-row .sl:hover { color: var(--ink); border-color: var(--cyan); }

/* Outcomes band */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.impact .it { background: var(--bg-1); padding: clamp(26px,3vw,38px); text-align: center; }
.impact .it b { display: block; font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.impact .it span { color: var(--muted); font-size: var(--step--1); display: block; margin-top: .5rem; }
.impact .it em { display: block; color: var(--faint); font-style: normal; font-family: var(--mono); font-size: .72rem; margin-top: .3rem; }
@media (max-width: 700px) { .impact { grid-template-columns: 1fr; } }

/* "Replaces" tag on solution tiles */
.sol .repl { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: .68rem; letter-spacing: .02em; color: var(--faint); }
.sol .repl b { color: var(--cyan); font-weight: 500; }

/* ---------- Showcase: interactive product mockups ---------- */
.sc-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.sc-tab { font-family: inherit; font-size: var(--step--1); font-weight: 600; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 999px; padding: .62em 1.25em; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.sc-tab:hover { color: var(--ink); border-color: var(--cyan); }
.sc-tab.active { color: #05070f; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(109,140,255,.5); }
.sc-stage { max-width: 900px; margin: 0 auto; }
.mock-window { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); box-shadow: 0 40px 100px -40px rgba(109,140,255,.4); }
.mw-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.mw-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mw-bar i:nth-child(1) { background: #ff5f57; } .mw-bar i:nth-child(2) { background: #febc2e; } .mw-bar i:nth-child(3) { background: #28c840; }
.mw-bar em { font-style: normal; font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-left: 10px; }
.mw-live { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .7rem; color: var(--cyan); }
.mw-live .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: caretblink 1.2s steps(1) infinite; }
.mw-body { padding: clamp(22px,3.5vw,40px); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.sc-panel { width: 100%; }
.sc-panel[hidden] { display: none; }

/* chat bubbles (voice + rag) */
.chat { display: grid; gap: 12px; max-width: 580px; margin: 0 auto; }
.bub { padding: 12px 16px; border-radius: 14px; font-size: var(--step--1); max-width: 82%; line-height: 1.45; }
.bub.user { background: rgba(255,255,255,.05); border: 1px solid var(--line); justify-self: end; border-bottom-right-radius: 4px; color: var(--muted); }
.bub.ai { background: var(--grad-soft); border: 1px solid var(--line-2); justify-self: start; border-bottom-left-radius: 4px; color: var(--ink); }
.bub .who { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.chip-ok { display: inline-flex; gap: .5em; align-items: center; margin-top: 4px; justify-self: start; font-family: var(--mono); font-size: .72rem; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 999px; padding: .45em .9em; background: rgba(54,208,224,.06); }
.cite { display: inline-flex; gap: .4em; align-items: center; font-family: var(--mono); font-size: .68rem; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 6px; padding: .2em .5em; margin-top: 6px; }

/* automation flow */
.flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.fnode { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; width: 108px; }
.fnode .fb { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); }
.fnode .fb svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fnode .fl { font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.farrow { color: var(--faint); font-size: 1.2rem; margin-top: -18px; }

/* multi-agent */
.agents { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; }
.agtask { text-align: center; font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-bottom: 4px; }
.agrow { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--bg-1); }
.agrow .av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); font-size: .8rem; }
.agrow b { color: var(--ink); font-weight: 600; font-size: var(--step--1); }
.agrow .st { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--cyan); display: inline-flex; align-items: center; gap: .4em; }
.agrow .st.wait { color: var(--faint); }
.agrow .st .pd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 68px 0 0; z-index: 99;
  background: rgba(7,10,20,.97); backdrop-filter: blur(20px); padding: 28px var(--gutter);
  overflow-y: auto;
}
.mobile-menu.show { display: block; }
.mobile-menu a { display: block; padding: 16px 0; font-size: var(--step-2); border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu .btn { margin-top: 28px; width: 100%; }
