/* ==========================================================================
   LogicGigs design system — shared by the software-house site, Code Academy and admin
   ========================================================================== */
:root {
  --ink: #0A0F1F;
  --ink-2: #161D31;
  --ink-3: #283049;
  --muted: #5B6478;
  --muted-2: #8A93A8;
  --line: #E4E8F1;
  --line-2: #EEF1F7;
  --bg: #FFFFFF;
  --bg-2: #F4F6FB;
  --bg-3: #EAEFF9;

  --blue: #1F6BFF;
  --blue-d: #0F4FD6;
  --cyan: #19B6FF;
  --pink: #FF2E88;
  --pink-d: #E0126F;
  --lime: #C6F432;
  --violet: #6C4DFF;
  --amber: #F4B740;
  --green: #18B26B;
  --red: #E5484D;

  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 31, .06), 0 2px 8px rgba(10, 15, 31, .05);
  --shadow: 0 10px 30px -12px rgba(10, 15, 31, .22), 0 2px 6px rgba(10, 15, 31, .05);
  --shadow-lg: 0 40px 80px -30px rgba(10, 15, 31, .38), 0 12px 24px -12px rgba(10, 15, 31, .18);
  --glow: 0 0 0 1px rgba(31, 107, 255, .25), 0 18px 50px -12px rgba(31, 107, 255, .55);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Type & spacing scale (calibrated against the reference: section H2 ≈ 32px, body 15–16px, sections ≈ 56–80px) */
  --fs-hero: clamp(40px, 5.6vw, 80px);
  --fs-h1: clamp(34px, 4.2vw, 60px);
  --fs-h2: clamp(26px, 2.4vw, 34px);
  --fs-lede: clamp(16px, 1.15vw, 17px);
  --sec-y: clamp(52px, 5.5vw, 80px);
  --hero-top: clamp(124px, 10.5vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.1; font-family: var(--f-display); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; }
.wrap-narrow { max-width: 820px; }

.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Display type: uppercase, wide, two-tone ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .95;
}
.hl { color: var(--blue); }
.hl-pink { color: var(--pink); }
.hl-lime { color: var(--lime); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 12.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 3vw, 40px); }
.sec-head h2 { font-size: var(--fs-h2); line-height: 1.12; }
.sec-head .bar { width: 56px; height: 4px; border-radius: 4px; background: var(--ink); margin: 14px auto 14px; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 0; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head.left .bar { margin-left: 0; }
.on-dark .sec-head .bar, .sec-head.on-dark .bar { background: var(--lime); }
.on-dark .sec-head p { color: #AEB6CC; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: 0 22px; border-radius: 12px; border: 0;
  background: var(--b); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--b) 80%, transparent);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--b) 90%, transparent); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-pink { --b: var(--pink); }
.btn-ink { --b: var(--ink); }
.btn-lime { --b: var(--lime); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost.light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost.light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--blue); }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: .4em; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.chip.dark { background: rgba(255, 255, 255, .08); color: #D8DEEE; }
.chip.blue { background: color-mix(in srgb, var(--blue) 12%, #fff); color: var(--blue-d); }
.chip.pink { background: color-mix(in srgb, var(--pink) 12%, #fff); color: var(--pink-d); }
.chip.green { background: color-mix(in srgb, var(--green) 14%, #fff); color: #0E7A48; }
.chip.amber { background: color-mix(in srgb, var(--amber) 22%, #fff); color: #8A5A00; }
.chip.red { background: color-mix(in srgb, var(--red) 12%, #fff); color: #B4232A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-badge { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(10, 15, 31, .82); color: #FFD166; font: 700 10.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label, .label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6478' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #EAFBF2; border-color: #BDEBD2; color: #0B6B3D; }
.alert-error { background: #FFF0F0; border-color: #F8C9CB; color: #9E1C22; }
.alert-info { background: #EEF4FF; border-color: #C9DAFF; color: #1D3E91; }

/* ---------- Media fill + frames ---------- */
.media-fill { width: 100%; height: 100%; object-fit: cover; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); isolation: isolate; }
.frame > .media-fill, .frame > .vx { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame.shadow { box-shadow: var(--shadow-lg); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- Prose (markdown) ---------- */
.prose { font-size: 16.5px; line-height: 1.75; color: #242B3F; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.5em; margin-top: 1.9em; font-weight: 800; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.22em; margin-top: 1.6em; font-weight: 800; scroll-margin-top: 110px; }
.prose h4, .prose h5 { font-size: 1.08em; margin-top: 1.4em; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--pink); font-size: 1.12em; color: var(--ink); font-weight: 500; }
.prose code { font-family: var(--f-mono); font-size: .86em; background: var(--bg-2); padding: .15em .4em; border-radius: 6px; color: #C0145F; }
.prose pre.code { position: relative; background: #0B1020; color: #E6EAF5; padding: 22px 22px; border-radius: 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; box-shadow: var(--shadow); }
.prose pre.code code { background: none; color: inherit; padding: 0; font-size: 1em; }
.prose pre.code[data-lang]::before { content: attr(data-lang); position: absolute; top: 10px; right: 14px; font: 600 11px var(--f-mono); color: #7C86A2; text-transform: uppercase; letter-spacing: .08em; }
.prose img { border-radius: 16px; box-shadow: var(--shadow); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose strong { color: var(--ink); }

/* ==========================================================================
   Procedural visuals (.vx) — scale with their container like an image
   ========================================================================== */
.vx { position: relative; width: 100%; container-type: inline-size; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--a) 26%, #fff) 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--a) 18%, #F4F6FB) 0%, transparent 60%), linear-gradient(160deg, #F7F9FE, #E9EEF9); color: var(--ink); }
.vx-stage { position: absolute; inset: 0; font-size: 1cqw; display: grid; place-items: center; padding: 6em 6.5em; }
.vx .vx-ic { width: 1.6em; height: 1.6em; }
.vx.dark, .vx-dark-bg .vx { background: radial-gradient(90% 80% at 80% 0%, color-mix(in srgb, var(--a) 45%, #0A0F1F) 0%, transparent 60%), radial-gradient(70% 70% at 0% 100%, color-mix(in srgb, var(--a) 25%, #0A0F1F) 0%, transparent 60%), #0A0F1F; }

/* Browser window */
.vx-win { width: 100%; height: 100%; background: #fff; border-radius: 1.6em; box-shadow: 0 3em 6em -2.5em rgba(10, 15, 31, .45), 0 0 0 .1em rgba(10, 15, 31, .06); overflow: hidden; display: flex; flex-direction: column; }
.vx-bar { display: flex; align-items: center; gap: .7em; padding: 1.2em 1.6em; background: #F3F5FA; border-bottom: .1em solid #E7EAF2; flex: none; }
.vx-bar > i { width: 1em; height: 1em; border-radius: 50%; background: #FF6159; }
.vx-bar > i:nth-child(2) { background: #FFBD2E; }
.vx-bar > i:nth-child(3) { background: #28C941; }
.vx-url { margin-left: 2em; flex: 1; max-width: 42%; background: #fff; border-radius: 99em; padding: .45em 1.4em; font: 500 1.05em/1.2 var(--f-body); color: #7A8398; box-shadow: inset 0 0 0 .1em #E4E8F1; }
.vx-body { flex: 1; min-height: 0; position: relative; }
.vx-lbl { font-size: 1.05em; color: #7A8398; font-weight: 500; }

/* Dashboard */
.vx-dash { display: grid; grid-template-columns: 6.5em 1fr; height: 100%; }
.vx-side { background: #0B1020; display: flex; flex-direction: column; align-items: center; gap: 1.2em; padding: 1.6em 0; }
.vx-logo { width: 2.8em; height: 2.8em; border-radius: .8em; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 40%, #FF2E88)); margin-bottom: .8em; }
.vx-side span { width: 3.2em; height: 3.2em; border-radius: .9em; display: grid; place-items: center; color: #5E6782; }
.vx-side span.on { background: color-mix(in srgb, var(--a) 25%, transparent); color: #fff; }
.vx-main { padding: 2em 2.4em; display: flex; flex-direction: column; gap: 1.6em; min-width: 0; background: #FAFBFE; }
.vx-head { display: flex; justify-content: space-between; align-items: center; }
.vx-head strong { display: block; font: 800 2em/1.1 var(--f-display); }
.vx-chips { display: flex; gap: .4em; background: #EEF1F7; padding: .35em; border-radius: .9em; }
.vx-chips span { font-size: 1.05em; padding: .35em .9em; border-radius: .6em; color: #7A8398; font-weight: 600; }
.vx-chips span.on { background: #fff; color: var(--ink); box-shadow: 0 .2em .6em rgba(10, 15, 31, .08); }
.vx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em; }
.vx-kpi { background: #fff; border-radius: 1.2em; padding: 1.3em 1.4em; box-shadow: 0 0 0 .1em #EDF0F6; display: grid; gap: .3em; }
.vx-kpi b { font: 800 2.2em/1 var(--f-display); }
.vx-kpi em { font-style: normal; font-size: 1em; font-weight: 700; color: var(--green); }
.vx-kpi.is-a { background: var(--a); color: #fff; box-shadow: 0 1.6em 3em -1.6em var(--a); }
.vx-kpi.is-a .vx-lbl, .vx-kpi.is-a em { color: rgba(255, 255, 255, .85); }
.vx-grid2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.2em; flex: 1; min-height: 0; }
.vx-card { background: #fff; border-radius: 1.2em; padding: 1.3em 1.4em; box-shadow: 0 0 0 .1em #EDF0F6; min-height: 0; }
.vx-cardh { display: flex; justify-content: space-between; font-size: 1.1em; font-weight: 700; margin-bottom: .8em; }
.vx-cardh em { font-style: normal; color: var(--green); font-size: .9em; display: flex; align-items: center; gap: .4em; }
.vx-cardh em::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .3em color-mix(in srgb, var(--green) 25%, transparent); }
.vx-chart svg { width: 100%; height: calc(100% - 2.4em); overflow: visible; }
.vx-barwrap { display: flex; align-items: flex-end; gap: .6em; height: calc(100% - 2.4em); }
.vx-barwrap i { flex: 1; border-radius: .5em .5em .2em .2em; background: color-mix(in srgb, var(--a) 22%, #EEF1F7); }
.vx-barwrap i:nth-child(6) { background: var(--a); }
.vx-table { display: grid; gap: .9em; }
.vx-row { display: grid; grid-template-columns: 1.2em 1fr 1.2fr 3em; align-items: center; gap: 1em; font-size: 1.1em; }
.vx-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-bar2 { height: .6em; background: #EEF1F7; border-radius: 1em; overflow: hidden; }
.vx-bar2 i { display: block; height: 100%; background: var(--a); border-radius: 1em; }
.vx-n { text-align: right; color: #7A8398; font-weight: 600; }
.vx-dot { width: .8em; height: .8em; border-radius: 50%; background: var(--green); display: inline-block; }
.vx-dot.warn { background: var(--amber); }
.vx-dot.run { background: var(--a); }

/* Mobile */
.vx-mob { position: relative; width: 100%; height: 100%; }
.vx-blob { position: absolute; width: 60%; aspect-ratio: 1; left: 20%; top: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 55%, transparent), transparent 70%); filter: blur(2em); }
.vx-phone { position: absolute; top: 50%; width: 27%; aspect-ratio: 9/19; background: #0B1020; border-radius: 4.2em; padding: .9em; box-shadow: 0 4em 6em -3em rgba(10, 15, 31, .6), inset 0 0 0 .25em #2A3149; }
.vx-phone.front { left: 50%; transform: translate(-15%, -50%) rotate(3deg); z-index: 2; }
.vx-phone.back { left: 50%; transform: translate(-100%, -46%) rotate(-7deg) scale(.92); opacity: .97; }
.vx-notch { position: absolute; z-index: 3; top: 1.8em; left: 50%; transform: translateX(-50%); width: 30%; height: 2em; background: #0B1020; border-radius: 1em; }
.vx-screen { width: 100%; height: 100%; background: #F6F8FC; border-radius: 3.4em; overflow: hidden; padding: 4.2em 1.8em 1.8em; display: flex; flex-direction: column; gap: 1.3em; position: relative; }
.vx-status { position: absolute; top: 1.7em; left: 2.4em; right: 2.4em; display: flex; justify-content: space-between; font-size: 1em; font-weight: 700; }
.vx-hello { display: flex; gap: .9em; align-items: center; }
.vx-hello > i { width: 3.4em; height: 3.4em; border-radius: 50%; background: linear-gradient(135deg, var(--a), #FF2E88); }
.vx-hello small, .vx-title2 small { display: block; font-size: 1em; color: #7A8398; }
.vx-hello b { font: 800 1.6em/1.1 var(--f-display); }
.vx-hero-card { position: relative; background: linear-gradient(145deg, var(--a), color-mix(in srgb, var(--a) 55%, #0B1020)); color: #fff; border-radius: 1.8em; padding: 1.6em; overflow: hidden; }
.vx-hero-card small { font-size: 1em; opacity: .8; }
.vx-hero-card b { display: block; font: 900 3.4em/1 var(--f-display); margin: .15em 0; }
.vx-hero-card span { font-size: 1.05em; opacity: .85; }
.vx-ring { --p: 60; width: 6em; height: 6em; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%); mask: radial-gradient(circle, transparent 57%, #000 58%); }
.vx-hero-card .vx-ring { position: absolute; right: 1.4em; top: 50%; transform: translateY(-50%); }
.vx-list { display: grid; gap: .8em; }
.vx-li { display: flex; align-items: center; gap: .9em; background: #fff; border-radius: 1.3em; padding: 1em 1.1em; box-shadow: 0 .3em 1em rgba(10, 15, 31, .05); }
.vx-li > .vx-ic { color: var(--a); width: 2.2em; height: 2.2em; padding: .45em; border-radius: .8em; background: color-mix(in srgb, var(--a) 12%, #fff); }
.vx-li span { flex: 1; display: grid; gap: .4em; }
.vx-li b { font-size: 1.15em; }
.vx-li span i { height: .5em; width: 70%; background: #E9EDF5; border-radius: 1em; }
.vx-li em { font-style: normal; font-size: .95em; color: #7A8398; }
.vx-tabbar { margin-top: auto; display: flex; justify-content: space-around; background: #fff; border-radius: 1.6em; padding: 1.2em; box-shadow: 0 .3em 1em rgba(10, 15, 31, .06); }
.vx-tabbar i { width: 1.8em; height: 1.8em; border-radius: .6em; background: #E1E6F0; }
.vx-tabbar i.on { background: var(--a); }
.vx-title2 b { font: 900 3em/1 var(--f-display); }
.vx-mchart { width: 100%; height: 22%; }
.vx-weekbars { display: flex; gap: .7em; align-items: flex-end; height: 22%; }
.vx-weekbars i { flex: 1; border-radius: .6em; background: #E1E6F0; }
.vx-weekbars i.on { background: var(--a); }
.vx-pill-btn { display: inline-flex; justify-content: center; align-items: center; margin-top: auto; background: var(--ink); color: #fff; border-radius: 99em; padding: 1em 2em; font-weight: 700; font-size: 1.15em; }
.vx-pill-btn.sm { margin: 0; padding: .6em 1.3em; font-size: 1em; background: var(--a); }
.vx-toast { position: absolute; z-index: 4; right: 6%; bottom: 14%; display: flex; gap: 1em; align-items: center; background: #fff; border-radius: 1.4em; padding: 1.2em 1.6em; box-shadow: 0 2em 4em -1.5em rgba(10, 15, 31, .35); font-size: 1.1em; }
.vx-toast > .vx-ic { width: 2.6em; height: 2.6em; padding: .55em; border-radius: 50%; background: var(--green); color: #fff; }
.vx-toast b { display: block; font-size: 1.1em; }
.vx-toast small { color: #7A8398; }

/* Code editor */
.vx-code-wrap, .vx-editor { width: 100%; height: 100%; background: #0B1020; border-radius: 1.6em; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3em 6em -2.5em rgba(10, 15, 31, .55), 0 0 0 .1em rgba(255, 255, 255, .06); color: #D7DDEE; }
.vx-bar.dark { background: #121932; border-color: #1E2744; }
.vx-tab { font: 500 1.05em var(--f-mono); color: #6E7898; padding: .3em 1em; border-radius: .5em; }
.vx-tab.on { color: #fff; background: #1D2645; margin-left: 1.5em; }
.vx-ed-body { flex: 1; display: grid; grid-template-columns: 13em 1fr; min-height: 0; }
.vx-tree { background: #0E1429; border-right: .1em solid #1A2240; padding: 1.4em 1em; display: grid; align-content: start; gap: .5em; }
.vx-tree span { display: flex; align-items: center; gap: .6em; font: 500 1.05em var(--f-mono); color: #6E7898; padding: .4em .7em; border-radius: .5em; }
.vx-tree span.on { background: color-mix(in srgb, var(--a) 25%, transparent); color: #fff; }
.vx-tree .vx-ic { width: 1.3em; height: 1.3em; }
.vx-code { padding: 1.6em 1.4em; font: 400 1.75em/1.7 var(--f-mono); overflow: hidden; white-space: nowrap; }
.vx-ln { display: flex; gap: 1.4em; }
.vx-ln em { font-style: normal; color: #3E4868; width: 1.6em; text-align: right; flex: none; }
.vx-ln i { font-style: normal; }
.t-k { color: #C792EA; } .t-f { color: #82AAFF; } .t-s { color: #C3E88D; } .t-m { color: #F78C6C; } .t-c { color: #5C6A8F; font-style: italic !important; } .t-t { color: #D7DDEE; }
.vx-caret { display: inline-block; width: .55em; height: 1.2em; background: var(--a); vertical-align: middle; animation: vxblink 1.1s steps(1) infinite; }
@keyframes vxblink { 50% { opacity: 0; } }
.vx-term { background: #070B18; border-top: .1em solid #1A2240; padding: 1em 1.6em; font: 500 1.15em var(--f-mono); color: #C8D0E6; }
.vx-term .ok { color: #3DDC97; }
.vx-term .dim { color: #5C6A8F; }

/* AI */
.vx-ai { width: 100%; height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2em; align-items: center; }
.vx-chat { background: #fff; border-radius: 1.8em; padding: 1.8em; box-shadow: 0 3em 6em -2.5em rgba(10, 15, 31, .4); display: grid; gap: 1.2em; font-size: 1.15em; }
.vx-chat-h { display: flex; align-items: center; gap: .7em; }
.vx-chat-h .vx-ic { color: var(--a); }
.vx-live { margin-left: auto; font-size: .85em; font-weight: 700; color: var(--green); }
.vx-msg { padding: 1em 1.2em; border-radius: 1.2em; line-height: 1.35; }
.vx-msg.me { background: var(--ink); color: #fff; margin-left: 18%; border-bottom-right-radius: .3em; }
.vx-msg.bot { background: #F2F5FB; margin-right: 8%; border-bottom-left-radius: .3em; display: grid; gap: .45em; }
.vx-msg.bot small { color: #7A8398; font-size: .85em; margin-top: -.2em; }
.vx-meter { height: .7em; background: #E1E6F0; border-radius: 1em; overflow: hidden; }
.vx-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 50%, #FF2E88)); border-radius: 1em; }
.vx-input { display: flex; align-items: center; justify-content: space-between; border: .12em solid #E4E8F1; border-radius: 99em; padding: .6em .6em .6em 1.3em; color: #9AA3B8; }
.vx-input i { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; }
.vx-net { position: relative; }
.vx-net svg { width: 100%; overflow: visible; }
.vx-net-cap { position: absolute; right: 0; bottom: -1em; background: #0B1020; color: #fff; border-radius: 1.2em; padding: 1em 1.4em; box-shadow: 0 2em 3em -1.5em rgba(10, 15, 31, .5); }
.vx-net-cap b { display: block; font: 900 2.2em/1 var(--f-display); color: var(--lime); }
.vx-net-cap small { color: #AEB6CC; font-size: 1em; }

/* Cloud */
.vx-cloudw { position: relative; width: 100%; height: 100%; }
.vx-grid-bg { position: absolute; inset: -10%; background-image: radial-gradient(color-mix(in srgb, var(--a) 35%, transparent) .12em, transparent .13em); background-size: 3em 3em; opacity: .6; }
.vx-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vx-edge { fill: none; stroke: var(--a); stroke-width: .35; stroke-dasharray: 1.2 1.2; opacity: .7; animation: vxflow 3s linear infinite; }
@keyframes vxflow { to { stroke-dashoffset: -12; } }
.vx-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .7em; background: #fff; border-radius: 1.1em; padding: .9em 1.3em; box-shadow: 0 1.5em 3em -1.5em rgba(10, 15, 31, .35), 0 0 0 .1em #E7EAF2; font-weight: 700; font-size: 1.2em; white-space: nowrap; }
.vx-node .vx-ic { color: var(--a); }
.vx-node.hot { background: var(--ink); color: #fff; box-shadow: 0 0 0 .3em color-mix(in srgb, var(--a) 35%, transparent), 0 2em 3em -1.5em var(--a); }
.vx-node.hot .vx-ic { color: var(--lime); }
.vx-cloud-tag { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-radius: 99em; padding: .7em 1.4em; font-size: 1.1em; font-weight: 600; display: flex; align-items: center; gap: .6em; box-shadow: 0 1em 2em -1em rgba(10, 15, 31, .25); white-space: nowrap; }

/* Design canvas */
.vx-canvas { width: 100%; height: 100%; display: grid; grid-template-columns: 15em 1fr 15em; background: #fff; border-radius: 1.6em; overflow: hidden; box-shadow: 0 3em 6em -2.5em rgba(10, 15, 31, .45), 0 0 0 .1em rgba(10, 15, 31, .06); }
.vx-layers, .vx-props { padding: 1.5em 1.2em; display: grid; align-content: start; gap: .6em; font-size: 1.1em; }
.vx-layers { border-right: .1em solid #EDF0F6; }
.vx-props { border-left: .1em solid #EDF0F6; gap: .8em; }
.vx-layers b, .vx-props b { font-size: .95em; color: #7A8398; text-transform: uppercase; letter-spacing: .08em; margin-top: .4em; }
.vx-layers span { display: flex; gap: .6em; align-items: center; padding: .45em .6em; border-radius: .5em; }
.vx-layers span.on { background: color-mix(in srgb, var(--a) 14%, #fff); color: var(--a); font-weight: 700; }
.vx-layers .vx-ic { width: 1.3em; height: 1.3em; }
.vx-board { position: relative; background: #EEF1F7; background-image: radial-gradient(#D5DBE8 .12em, transparent .13em); background-size: 2em 2em; display: grid; place-items: center; padding: 2.4em; }
.vx-artboard { width: 100%; background: #fff; border-radius: .6em; box-shadow: 0 2em 4em -2em rgba(10, 15, 31, .3); padding: 1.4em; display: grid; gap: 1.4em; }
.vx-ab-nav { display: flex; align-items: center; gap: 1em; }
.vx-ab-nav i { width: 2em; height: 2em; border-radius: .5em; background: var(--a); }
.vx-ab-nav span { width: 3.5em; height: .6em; border-radius: 1em; background: #DDE2EC; }
.vx-ab-nav em { margin-left: auto; width: 5em; height: 2em; border-radius: .6em; background: #FF2E88; }
.vx-ab-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6em; align-items: center; }
.vx-sel { position: relative; padding: 1.2em; outline: .15em solid var(--a); display: grid; gap: .7em; }
.vx-sel > b { position: absolute; width: .9em; height: .9em; background: #fff; border: .15em solid var(--a); }
.vx-sel > b:nth-child(1) { left: -.5em; top: -.5em; } .vx-sel > b:nth-child(2) { right: -.5em; top: -.5em; } .vx-sel > b:nth-child(3) { left: -.5em; bottom: -.5em; } .vx-sel > b:nth-child(4) { right: -.5em; bottom: -.5em; }
.vx-sel-tag { position: absolute; top: -2.3em; left: -.15em; background: var(--a); color: #fff; font-size: .95em; font-weight: 700; padding: .25em .7em; border-radius: .4em .4em .4em 0; white-space: nowrap; }
.vx-ab-h1 { height: 1.8em; width: 92%; border-radius: .4em; background: var(--ink); }
.vx-ab-h1.s { width: 64%; background: var(--a); }
.vx-ab-p { height: .7em; width: 80%; border-radius: 1em; background: #DDE2EC; box-shadow: 0 1.2em 0 #DDE2EC; margin-bottom: 1.2em; }
.vx-ab-btn { width: 8em; height: 2.4em; border-radius: .6em; background: #FF2E88; }
.vx-ab-img { aspect-ratio: 1.1; border-radius: 1.2em; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--a) 70%, #fff), transparent 50%), linear-gradient(135deg, color-mix(in srgb, var(--a) 30%, #fff), #FFD1E6); }
.vx-ab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
.vx-ab-cards i { height: 4.2em; border-radius: .8em; background: #F1F4FA; box-shadow: inset 0 0 0 .1em #E4E8F1; }
.vx-cursor { position: absolute; display: flex; align-items: flex-start; gap: .2em; }
.vx-cursor svg { width: 2em; height: 2em; }
.vx-cursor span { background: var(--a); color: #fff; font-weight: 700; font-size: 1em; padding: .3em .8em; border-radius: 0 .6em .6em .6em; margin-top: 1.4em; }
.vx-sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45em; }
.vx-sw i { aspect-ratio: 1; border-radius: .5em; box-shadow: inset 0 0 0 .1em rgba(10, 15, 31, .1); }
.vx-sw i:first-child { box-shadow: 0 0 0 .18em #fff, 0 0 0 .32em var(--a); }
.vx-slider { height: .55em; border-radius: 1em; background: #E4E8F1; position: relative; }
.vx-slider i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--a); border-radius: 1em; }
.vx-slider i::after { content: ""; position: absolute; right: -.7em; top: 50%; transform: translateY(-50%); width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .15em var(--a), 0 .3em .6em rgba(10, 15, 31, .2); }
.vx-font { font: 700 1em var(--f-display); background: #F3F5FA; border-radius: .5em; padding: .5em .7em; }

/* Commerce */
.vx-shop { height: 100%; display: flex; flex-direction: column; gap: 1.6em; padding: 1.6em 2.2em; background: #FCFCFE; }
.vx-shop-nav { display: flex; align-items: center; gap: 1.6em; }
.vx-shop-nav .vx-logo { margin: 0; width: 2.4em; height: 2.4em; }
.vx-shop-nav span { width: 4em; height: .6em; border-radius: 1em; background: #DDE2EC; }
.vx-shop-nav em { margin-left: auto; position: relative; }
.vx-shop-nav em i { position: absolute; top: -.6em; right: -.8em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #FF2E88; color: #fff; font: 700 .9em/1.5em var(--f-body); text-align: center; font-style: normal; }
.vx-shop-hero { position: relative; overflow: hidden; border-radius: 1.6em; padding: 2.2em 2.6em; background: linear-gradient(120deg, var(--ink), color-mix(in srgb, var(--a) 60%, var(--ink))); color: #fff; min-height: 30%; display: flex; align-items: center; }
.vx-shop-hero small { font-size: 1.1em; color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.vx-shop-hero strong { display: block; font: 900 3.2em/.95 var(--f-display); text-transform: uppercase; margin: .3em 0 .5em; }
.vx-shop-hero .vx-pill-btn { background: #FF2E88; font-size: 1.1em; padding: .7em 1.6em; }
.vx-shop-hero .orb { position: absolute; right: -4%; top: -30%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--a) 40%, transparent 70%); opacity: .9; }
.vx-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4em; flex: 1; min-height: 0; }
.vx-prod { display: grid; grid-template-rows: 1fr auto auto auto; gap: .5em; font-size: 1.15em; }
.vx-pimg { position: relative; border-radius: 1.2em; background: #F1F4FA; display: grid; place-items: center; min-height: 0; }
.vx-pimg i { width: 45%; aspect-ratio: 1; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 45%, #0B1020)); box-shadow: 0 1.5em 2em -1em color-mix(in srgb, var(--c) 70%, transparent); }
.vx-pimg i.circle { border-radius: 50%; } .vx-pimg i.pill { border-radius: 2em; aspect-ratio: .6; width: 30%; } .vx-pimg i.box { border-radius: .8em; transform: rotate(-8deg); }
.vx-pimg em { position: absolute; top: .8em; left: .8em; font-style: normal; font-size: .85em; font-weight: 800; background: var(--lime); padding: .2em .6em; border-radius: .4em; }
.vx-prod b { height: .6em; width: 70%; background: #DDE2EC; border-radius: 1em; }
.vx-prod span { font-weight: 800; }
.vx-stars { color: var(--amber); font-size: .9em; letter-spacing: .1em; }

/* LMS */
.vx-lmsw { height: 100%; display: grid; grid-template-columns: 1.7fr 1fr; background: #F6F7FB; }
.vx-player { padding: 1.8em; display: flex; flex-direction: column; gap: 1.1em; }
.vx-video { position: relative; flex: 1; border-radius: 1.4em; overflow: hidden; background: linear-gradient(135deg, #0B1020, color-mix(in srgb, var(--a) 55%, #0B1020)); display: grid; place-items: center; }
.vx-video-code { position: absolute; left: 7%; top: 14%; width: 55%; display: grid; gap: 1em; }
.vx-video-code span { height: .9em; border-radius: 1em; background: rgba(255, 255, 255, .16); width: 80%; }
.vx-video-code span:nth-child(2) { width: 55%; margin-left: 8%; }
.vx-video-code span.a { background: var(--lime); width: 40%; margin-left: 8%; }
.vx-play { position: relative; width: 6em; height: 6em; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--a); display: grid; place-items: center; box-shadow: 0 0 0 1.2em rgba(255, 255, 255, .16); }
.vx-play .vx-ic { width: 2.4em; height: 2.4em; fill: currentColor; }
.vx-scrub { height: .6em; border-radius: 1em; background: #E1E6F0; }
.vx-scrub i { display: block; height: 100%; border-radius: 1em; background: var(--a); }
.vx-ptitle { display: flex; justify-content: space-between; align-items: center; font-size: 1.2em; }
.vx-curr { background: #fff; border-left: .1em solid #EDF0F6; padding: 1.6em 1.4em; display: grid; align-content: start; gap: .5em; }
.vx-prog { display: flex; align-items: center; gap: 1.2em; margin-bottom: 1em; }
.vx-prog .vx-ring { width: 5em; height: 5em; background: conic-gradient(var(--a) calc(var(--p) * 1%), #E4E8F1 0); }
.vx-prog b { display: block; font: 900 2em/1 var(--f-display); }
.vx-prog small { color: #7A8398; font-size: 1em; }
.vx-curr > span { display: flex; align-items: center; gap: .8em; font-size: 1.1em; padding: .55em .6em; border-radius: .7em; color: #5B6478; }
.vx-curr > span i { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: #EEF1F7; font-style: normal; font-size: .9em; font-weight: 700; flex: none; }
.vx-curr > span i .vx-ic { width: 1.2em; height: 1.2em; }
.vx-curr > span.done { color: var(--ink); }
.vx-curr > span.done i { background: var(--green); color: #fff; }
.vx-curr > span.now { background: color-mix(in srgb, var(--a) 10%, #fff); color: var(--ink); font-weight: 700; }
.vx-curr > span.now i { background: var(--a); color: #fff; }

/* Compact visuals: drop secondary chrome when very small */
@container (max-width: 420px) {
  .vx-stage { padding: 4em; }
  .vx-tree, .vx-layers, .vx-props { display: none; }
  .vx-ed-body { grid-template-columns: minmax(0, 1fr); }
  .vx-canvas { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Logo system (app/brand.php) — one identity, many lockups
   ========================================================================== */
.lg { --lg-size: 21px; display: inline-flex; align-items: center; gap: .42em; font-size: var(--lg-size); line-height: 1; color: var(--ink); vertical-align: middle; flex: none; }
.lg-mark { display: block; width: 1.62em; height: 1.62em; flex: none; }
.lg-horizontal .lg-mark, .lg-stacked .lg-mark, .lg-symbol .lg-mark { filter: drop-shadow(0 .14em .32em rgba(31, 107, 255, .3)); }
.lg-type { display: inline-flex; align-items: center; }
.lg-word { font: 900 1em/1 var(--f-display); font-stretch: 108%; letter-spacing: -.04em; white-space: nowrap; }
.lg-gigs { color: var(--blue); }
.lg-i { position: relative; display: inline-block; }
.lg-i::after { content: ""; position: absolute; left: 50%; top: .075em; width: .215em; height: .215em; border-radius: 50%; background: var(--pink); transform: translateX(-52%); }
.lg-sub { font: 700 .5em/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; margin-left: .95em; padding: .35em 0 .35em .95em; border-left: 1.5px solid rgba(10, 15, 31, .18); color: var(--violet); white-space: nowrap; }
/* tones */
.lg-t-dark { color: #fff; }
.lg-t-dark .lg-gigs { color: #5CC8FF; }
.lg-t-dark .lg-sub { color: var(--lime); border-left-color: rgba(255, 255, 255, .22); }
.lg-t-dark .lg-mark { filter: drop-shadow(0 .14em .4em rgba(0, 0, 0, .45)); }
.lg-t-mono-ink, .lg-t-mono-white { color: var(--ink); }
.lg-t-mono-white { color: #fff; }
.lg-t-mono-ink .lg-gigs, .lg-t-mono-white .lg-gigs, .lg-t-mono-ink .lg-sub, .lg-t-mono-white .lg-sub { color: inherit; }
.lg-t-mono-ink .lg-i::after, .lg-t-mono-white .lg-i::after { background: currentColor; }
.lg-t-mono-ink .lg-mark, .lg-t-mono-white .lg-mark { filter: none; }
.lg-t-mono-white .lg-sub { border-left-color: rgba(255, 255, 255, .3); }
/* stacked */
.lg-stacked { flex-direction: column; gap: .55em; text-align: center; }
.lg-stacked .lg-mark { width: 2.7em; height: 2.7em; }
.lg-stacked .lg-type { flex-direction: column; gap: .7em; }
.lg-stacked .lg-sub { margin: 0; padding: 0; border: 0; }
/* icon-only variants: size = the icon itself */
.lg-symbol, .lg-avatar, .lg-glyph { --lg-size: 40px; gap: 0; }
.lg-symbol .lg-mark, .lg-avatar .lg-mark, .lg-glyph .lg-mark { width: 1em; height: 1em; }
.lg-avatar { width: 1em; height: 1em; border-radius: 28%; overflow: hidden; }
.lg-avatar.round { border-radius: 50%; }
.lg-glyph { color: currentColor; }
/* uploaded overrides */
.lg-upload { height: 1.62em; width: auto; }
.lg-stacked .lg-upload { height: 2.7em; }
.lg-symbol .lg-upload, .lg-avatar .lg-upload { width: 1em; height: 1em; object-fit: contain; }
/* Sign-in options (academy + admin sign-in pages) */
.sso { display: grid; gap: 10px; margin-top: 18px; }
.sso-or { display: flex; align-items: center; gap: 12px; color: var(--muted, #5B6478); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: #E4E7EF; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; white-space: normal; text-align: center; background: #fff; color: #0A0F1F; box-shadow: inset 0 0 0 1.5px #D5D9E4; min-height: 46px; font-weight: 700; }
.sso-btn:hover { box-shadow: inset 0 0 0 1.5px #0A0F1F; background: #fff; color: #0A0F1F; }
.sso-btn svg, .sso-btn .ic { width: 18px; height: 18px; flex: none; }
.code-input { font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .35em; text-align: center; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.verify-box { margin-top: 18px; padding: 16px; border-radius: 14px; background: #F4F1FF; display: grid; gap: 10px; }
.verify-box h3 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 16px; }
.code-row { display: flex; gap: 8px; flex-wrap: wrap; }
.code-row .input { flex: 1 1 140px; min-width: 0; }

/* Very small phones: long button labels wrap instead of pushing the page sideways. */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }
