/* Aurexa / Velion - shared stylesheet.
   Layout: left-aligned editorial column (max 1120px), Roman inscription caps for
   wordmarks and big headings, plain sans for reading. Velion pages swap the
   accent to "signal" blue via html[data-brand="velion"]. */
:root {
  --bg: #F2F3EF;        /* limestone */
  --surface: #FFFFFF;
  --ink: #141A26;
  --muted: #586070;
  --line: #D8DBD2;
  --gold: #8E6A28;      /* aurum - text-safe on limestone */
  --gold-soft: #E9DFC7;
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-ink: #FFFFFF;
  --f-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-body: "Figtree", "Noto Sans Sinhala", "Segoe UI", system-ui, sans-serif;
  --f-si: "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2.125rem; --s4: clamp(2.5rem, 6vw, 4.5rem);
  --radius: 10px;
  color-scheme: light;
}
html[data-brand="velion"] { --accent: #1D6A93; --accent-soft: #D8E8F1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E131B; --surface: #151C27; --ink: #E8EAE5; --muted: #9AA3B1; --line: #263042;
    --gold: #D2AD61; --gold-soft: #3A3121; --accent-ink: #0E131B; color-scheme: dark;
  }
  html[data-brand="velion"]:not([data-theme="light"]) { --accent: #6CC2E6; --accent-soft: #17324A; }
}
:root[data-theme="dark"] {
  --bg: #0E131B; --surface: #151C27; --ink: #E8EAE5; --muted: #9AA3B1; --line: #263042;
  --gold: #D2AD61; --gold-soft: #3A3121; --accent-ink: #0E131B; color-scheme: dark;
}
html[data-brand="velion"][data-theme="dark"] { --accent: #6CC2E6; --accent-soft: #17324A; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s0)/1.65 var(--f-body); }
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Sinhala appears only inside the demo (Velion itself speaks Sinhala) */
[lang="si"] { font-family: var(--f-si); line-height: 1.8; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.mark { font: 600 1.25rem/1 var(--f-display); letter-spacing: .14em; color: var(--ink); text-decoration: none; }
.mark small { display: block; font: 500 .625rem/1.4 var(--f-body); letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--s-1); font-weight: 500; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* type */
h1, h2, h3 { text-wrap: balance; margin: 0; }
.eyebrow { font: 600 .72rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.display { font: 600 var(--s4)/1.04 var(--f-display); letter-spacing: .04em; }
h2 { font: 600 var(--s3)/1.15 var(--f-display); letter-spacing: .03em; }
h3 { font-size: var(--s1); font-weight: 650; line-height: 1.35; }
.lead { font-size: var(--s1); color: var(--muted); max-width: 60ch; }
p { margin: 0; max-width: 68ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .9em; }

section { padding-block: clamp(48px, 8vw, 96px); }
section + section { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 28px; align-content: start; }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 var(--s0)/1 var(--f-body);
  text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.feat { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.feat .tag { font: 500 .7rem/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 600; width: 34%; }

/* steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding-block: 26px; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(s, upper-roman); font: 600 1.5rem/1 var(--f-display); color: var(--accent); grid-row: span 3; padding-top: 2px; }
.steps > li > * { grid-column: 2; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 68ch; }
kbd { font: 500 .85em var(--f-mono); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
ul.plain { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 68ch; }

/* faq */
details { border-top: 1px solid var(--line); padding-block: 18px; max-width: 78ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: var(--s1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding-top: 10px; color: var(--muted); display: grid; gap: 10px; }

/* release log */
.release { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px 40px; padding-block: 32px; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; }
.release .name { font: 600 var(--s2)/1.1 var(--f-display); letter-spacing: .04em; }
.release .meta { font: 500 var(--s-1)/1.5 var(--f-mono); color: var(--muted); }
@media (max-width: 700px) { .release { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: var(--s-1); color: var(--muted); }
footer .wrap { display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
footer a { color: var(--muted); }
.copy { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy button { font: 600 .75rem/1 var(--f-body); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

.mark .beta { font: 600 .58rem/1 var(--f-body); letter-spacing: .14em; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 3px 6px; margin-left: 8px; vertical-align: 3px; }

/* demo: the stage mimics the app's HUD, so it keeps one dark look in both themes */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: minmax(0, 1fr); } }
.demo-stage { --hud-bg: #0B111A; --hud-panel: #121B27; --hud-ink: #E6EDF5; --hud-muted: #8FA1B5; --hud-line: #22324A;
  --ring-a: #6CC2E6; --ring-l: #22324A; --gold: #D2AD61;
  background: var(--hud-bg); color: var(--hud-ink); border-radius: 18px; padding: clamp(16px, 3vw, 26px);
  display: grid; gap: 18px; min-width: 0; border: 1px solid var(--hud-line); }
.demo-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.demo-status { font: 600 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hud-muted);
  display: inline-flex; align-items: center; gap: 8px; }
.demo-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hud-muted); }
.demo-status[data-state="listening"]::before, .demo-status[data-state="speaking"]::before { background: #6CC2E6; }
.demo-status[data-state="thinking"]::before { background: #D2AD61; }
.demo-tag { font: 500 .7rem/1 var(--f-mono); color: var(--hud-muted); border: 1px solid var(--hud-line); border-radius: 999px; padding: 5px 9px; }
.demo-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 520px) { .demo-body { grid-template-columns: minmax(0, 1fr); } #demoRing { width: 120px !important; justify-self: center; } }
#demoRing { width: 150px; aspect-ratio: 1; max-width: 100%; }
.demo-log { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; min-width: 0; }
.bubble { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--hud-panel); max-width: 92%; }
.bubble.me { justify-self: end; background: #1A2B40; }
.bubble .who { font: 600 .66rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hud-muted); }
.bubble.velion .who { color: #6CC2E6; }
.bubble p { margin: 0; min-height: 1.4em; }
.demo-card:empty { display: none; }
.dcard { background: var(--hud-panel); border: 1px solid var(--hud-line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 12px; }
.dcard-title { font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #D2AD61; }
.dcard dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.dcard dt { color: var(--hud-muted); }
.dcard dd { margin: 0; }
.dcard-foot { font-size: var(--s-1); color: var(--hud-muted); }
.dcard-file { margin: 0; color: var(--hud-ink); }
.dcard .btn { --accent: #6CC2E6; --accent-ink: #0B111A; padding: 9px 16px; font-size: .9rem; }
.dcard .btn.ghost { color: var(--hud-ink); border-color: var(--hud-line); }
.dcard .btn:disabled { opacity: .5; cursor: default; }
.fakewin { border: 1px solid var(--hud-line); border-radius: 8px; overflow: hidden; }
.fakebar { background: #1E2A3A; padding: 6px 10px; font: 500 .75rem/1 var(--f-mono); color: var(--hud-muted); }
.fakewin pre { margin: 0; padding: 12px; font: 400 .8rem/1.5 var(--f-mono); color: #F2B8B5; overflow-x: auto; white-space: pre; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .picks { grid-template-columns: minmax(0, 1fr); } }
.pick { text-align: left; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 500 var(--s0)/1.35 var(--f-body); cursor: pointer; }
.pick:hover { border-color: var(--accent); }
.pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pick .tag { font: 500 .66rem/1 var(--f-mono); letter-spacing: .08em; color: var(--accent); }
.ask { display: grid; gap: 8px; }
.ask label { font-weight: 600; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.ask-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sound { display: flex; gap: 10px; align-items: center; font-size: var(--s-1); color: var(--muted); }

/* ===== Motion (motion.js adds html.motion; nothing here applies without it) ============= */
.mx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--gold))); pointer-events: none; }
html.motion .top { transition: box-shadow .4s ease; }
html.motion .top.mx-scrolled { box-shadow: 0 8px 30px -18px color-mix(in srgb, var(--ink) 55%, transparent); }
html.mx-locked, html.mx-locked body { overflow: hidden; }

/* ---- intro: logo assembles, name drops in, then the curtain opens ---- */
.mx-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; }
.mx-pane { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); transition: transform 1s cubic-bezier(.7,0,.2,1); }
.mx-p1 { top: 0; } .mx-p2 { bottom: 0; }
.mx-pane::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; transition: opacity .3s ease; }
.mx-p1::after { bottom: 0; } .mx-p2::after { top: 0; }
.mx-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; transition: opacity .45s ease, transform .6s cubic-bezier(.7,0,.2,1), filter .45s ease; }
.mx-logo { width: 84px; height: 84px; border-radius: 20px; opacity: 0; transform: scale(.3) rotate(-120deg); filter: blur(12px);
  transition: opacity .6s ease, transform 1s cubic-bezier(.2,1.2,.3,1), filter .7s ease; }
.mx-name { font: 600 clamp(1.6rem, 4vw, 2.4rem)/1 var(--f-display); letter-spacing: .32em; color: var(--ink); padding-left: .32em; white-space: nowrap; }
.mx-name span { display: inline-block; opacity: 0; transform: translateY(-.9em) rotateX(80deg); filter: blur(6px);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2,1.1,.3,1), filter .5s ease; transition-delay: calc(.45s + var(--i) * .07s); }
.mx-line { width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1) .95s; }
.mx-play .mx-logo { opacity: 1; transform: none; filter: none; animation: mx-pulse 1.6s ease .9s; }
.mx-play .mx-name span { opacity: 1; transform: none; filter: none; }
.mx-play .mx-line { transform: scaleX(1); }
@keyframes mx-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.mx-out .mx-core { opacity: 0; transform: scale(1.12); filter: blur(8px); }
.mx-out .mx-p1 { transform: translateY(-101%); transition-delay: .18s; }
.mx-out .mx-p2 { transform: translateY(101%); transition-delay: .18s; }
.mx-out .mx-pane::after { opacity: 1; }
.mx-out { pointer-events: none; }

/* ---- hero aurora: soft light drifting behind the text ---- */
.mx-hero { position: relative; overflow: hidden; isolation: isolate; }
.mx-aura { position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.8s ease .3s;
  transform: translate(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -24px)); }
html.mx-go .mx-aura { opacity: 1; }
.mx-aura i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.mx-aura i:nth-child(1) { width: 46vmax; height: 46vmax; left: 48%; top: -12%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  animation: mx-float1 18s ease-in-out infinite alternate; }
.mx-aura i:nth-child(2) { width: 38vmax; height: 38vmax; left: 8%; top: 30%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 35%, transparent), transparent 65%);
  animation: mx-float2 22s ease-in-out infinite alternate; }
.mx-aura i:nth-child(3) { width: 30vmax; height: 30vmax; left: 62%; top: 45%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, #8f7bff 20%), transparent 65%);
  animation: mx-float3 26s ease-in-out infinite alternate; }
@keyframes mx-float1 { to { transform: translate(-12%, 14%) scale(1.15); } }
@keyframes mx-float2 { to { transform: translate(18%, -10%) scale(.9); } }
@keyframes mx-float3 { to { transform: translate(-20%, -16%) scale(1.2); } }

/* ---- building blocks: every piece waits until it gets .mx-shown ---- */
html.motion [data-mx="rise"] { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1), filter .8s ease; transition-delay: var(--d, 0s); }
html.motion [data-mx="drop"] { opacity: 0; transform: translateY(-22px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,1.2,.3,1); transition-delay: var(--d, 0s); display: inline-block; }
html.motion .mark[data-mx="drop"] { display: block; }
html.motion [data-mx="pop"] { opacity: 0; transform: scale(.6) translateY(14px); transition: opacity .5s ease, transform .8s cubic-bezier(.2,1.5,.35,1); transition-delay: var(--d, 0s); }
html.motion [data-mx="slide"] { opacity: 0; transform: translateX(-36px); filter: blur(4px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .7s ease; transition-delay: var(--d, 0s); }
html.motion [data-mx="side-l"], html.motion [data-mx="side-r"] { opacity: 0; filter: blur(6px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter .9s ease; transition-delay: var(--d, 0s); }
html.motion [data-mx="side-l"] { transform: translateX(-60px) rotate(-2.5deg); }
html.motion [data-mx="side-r"] { transform: translateX(60px) rotate(2.5deg); }
html.motion [data-mx="spread"] { opacity: 0; letter-spacing: .9em; filter: blur(4px); transition: opacity .8s ease, letter-spacing 1.1s cubic-bezier(.2,.8,.2,1), filter .8s ease; transition-delay: var(--d, 0s); }
html.motion [data-mx="img"] { opacity: 0; clip-path: inset(50% 50% 50% 50% round 24px); transform: scale(1.25) rotate(-8deg);
  transition: opacity .6s ease, clip-path 1.1s cubic-bezier(.7,0,.2,1), transform 1.3s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
html.motion [data-mx="spin"] { opacity: 0; transform: scale(.5) rotate(-90deg); filter: blur(10px);
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2,.9,.2,1), filter 1.2s ease; transition-delay: var(--d, 0s); }
html.motion [data-mx].mx-shown { opacity: 1; transform: none; filter: none; }
html.motion [data-mx="img"].mx-shown { clip-path: inset(0 0 0 0 round 0); }
html.motion [data-mx="spread"].mx-shown { letter-spacing: .2em; }

/* words arrive one after another */
html.motion [data-mx="words"] .mx-w { display: inline-block; opacity: 0; transform: translateY(.7em) rotate(3deg); filter: blur(8px);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .6s ease;
  transition-delay: calc(var(--d, 0s) + var(--i) * var(--step, .035s)); }
html.motion [data-mx="words"].mx-shown .mx-w { opacity: 1; transform: none; filter: none; }
html.motion h2[data-mx="words"]::after { content: ""; display: block; width: 0; height: 2px; margin-top: 12px; background: var(--accent); transition: width 1s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0s) + .5s); }
html.motion h2[data-mx="words"].mx-shown::after { width: 56px; }

/* the big wordmark flies together from scattered letters, then a light sweeps across */
html.motion [data-mx="scatter"] .mx-word { display: inline-block; white-space: nowrap; }
html.motion [data-mx="scatter"] .mx-ch { display: inline-block; opacity: 0; filter: blur(12px);
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(.4);
  transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,1,.25,1), filter .9s ease; transition-delay: calc(var(--d, 0s) + var(--i) * .045s); }
html.motion [data-mx="scatter"].mx-shown .mx-ch { opacity: 1; transform: none; filter: none; }
html.motion .mx-hero [data-mx="scatter"] { background: linear-gradient(100deg, var(--ink) 0 42%, var(--accent) 50%, var(--ink) 58% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; }
html.motion .mx-hero [data-mx="scatter"] .mx-ch { color: transparent; }
html.motion .mx-hero [data-mx="scatter"].mx-shown { animation: mx-sheen 1.6s ease calc(var(--d, 0s) + 1s + var(--letters, 6) * .045s) both; }
@keyframes mx-sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* ---- light that follows the pointer on cards; a gentle lift on hover ---- */
.mx-glow { position: relative; isolation: isolate; }
.mx-glow::before { content: ""; position: absolute; inset: -14px -16px; border-radius: 14px; pointer-events: none; opacity: 0; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transition: opacity .35s ease; }
.mx-glow:hover::before { opacity: 1; }
html.motion .feat.mx-shown:hover, html.motion .product.mx-shown:hover { transform: translateY(-4px); transition: transform .35s cubic-bezier(.2,.8,.2,1); transition-delay: 0s; }
html.motion .feat:hover { border-top-color: var(--accent); }

/* buttons: a light sweeps across on hover */
html.motion .btn { position: relative; overflow: hidden; }
html.motion .btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s ease; }
html.motion .btn.mx-shown:hover { transform: translateY(-2px); transition: transform .25s ease, filter .25s ease; transition-delay: 0s; }
html.motion .btn:hover::after { left: 120%; }

/* nav underline grows in */
html.motion .nav a { position: relative; }
html.motion .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s ease; }
html.motion .nav a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .mx-aura, .mx-progress, .mx-intro { display: none !important; }
  html.motion *, html.motion *::before, html.motion *::after { animation: none !important; transition: none !important; }
}
html.motion .btn[aria-disabled="true"].mx-shown { opacity: .55; }
html.motion body { overflow-x: clip; }

/* ===== Velion screenshots gallery ===== */
.gal { margin: 0; display: grid; gap: 14px; }
.gal-stage { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #050b14;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent); aspect-ratio: 1600 / 823; }
.gal-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease, transform .5s ease; }
.gal-img.gal-fade { opacity: 0; transform: scale(.99); }
.gal-cap { font-size: var(--s-1); min-height: 1.6em; }
.gal-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gal-thumbs button { all: unset; cursor: pointer; display: grid; gap: 6px; justify-items: center; font: 600 .75rem/1 var(--f-body); color: var(--muted); letter-spacing: .04em; }
.gal-thumbs img { width: 100%; height: auto; border-radius: 8px; border: 2px solid transparent; opacity: .65; transition: opacity .25s ease, border-color .25s ease, transform .25s ease; }
.gal-thumbs button:hover img { opacity: 1; transform: translateY(-2px); }
.gal-thumbs button[aria-selected="true"] { color: var(--ink); }
.gal-thumbs button[aria-selected="true"] img { opacity: 1; border-color: var(--accent); }
.gal-thumbs button:focus-visible img { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .gal-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== Light / dark switch ===== */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; transition: border-color .25s ease, transform .3s ease; }
.theme-btn:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-btn svg { width: 17px; height: 17px; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .5s ease, color .5s ease, border-color .5s ease !important; }

/* ===== Contact us ===== */
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: center; align-content: center; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-item .ic { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item small { color: var(--muted); font-size: var(--s-1); letter-spacing: .04em; }
.contact-item .val { font: 600 var(--s1)/1.3 var(--f-body); color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-item a.val:hover { color: var(--accent); }
.contact-item .copy { gap: 10px; }
