/* ==========================================================
   MoreConcepts Uganda Ltd  |  Floating glass design
   Palette from the brand kit, dark-mode derivation.
   ========================================================== */
/* Dark is the default theme; light overrides below. Theme is set on <html data-theme="...">. */
:root {
  color-scheme: dark;
  --bg: #011B28;
  --surface: #022A3C;
  --raised: #0A3A50;
  --overlay: #124A63;
  --line: #1E5670;
  --line-strong: #3A7C99;
  --text: #EAF6FA;
  --muted: #8DB4C6;
  --faint: #6F93A5;
  --cyan: #12C2F0;
  --aqua: #2CE5EE;
  --aqua-2: #36F0EC;
  --accent: #2CE5EE;            /* text accents: eyebrows, links */
  --accent-solid: #2CE5EE;      /* solid accent fills */
  --on-accent: #011B28;
  --grad: linear-gradient(90deg, #12C2F0, #36F0EC);
  --grad-text: linear-gradient(90deg, #12C2F0, #36F0EC);
  --btn-bg: linear-gradient(90deg, #12C2F0, #36F0EC);
  --btn-ink: #011B28;
  --glass: rgba(2, 42, 60, .6);
  --glass-strong: rgba(1, 27, 40, .78);
  --glass-solid: rgba(2, 42, 60, .96);
  --glass-border: rgba(141, 180, 198, .24);
  --glass-hl: rgba(255, 255, 255, .08);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  --hover: rgba(255, 255, 255, .07);
  --hover-weak: rgba(255, 255, 255, .04);
  --feature-bg: rgba(10, 58, 80, .7);
  --feature-border: rgba(58, 124, 153, .45);
  --icon-bg: #0A3A50;
  --icon-ink: #2CE5EE;
  --brand-bg: rgba(1, 27, 40, .85);
  --brand-glow: rgba(18, 194, 240, .35);
  --sheet-bg: rgba(1, 27, 40, .9);
  --blob-a: #0a6f94;
  --blob-b: #06526f;
  --blob-o: .55;
  --grid-line: rgba(141, 180, 198, .08);
  --marquee-bg: rgba(2, 42, 60, .5);
  --card-hover-border: rgba(44, 229, 238, .5);
  --trace: #12C2F0;
  --pulse: #36F0EC;
  --node-fill: #011B28;
  --node-stroke: #2CE5EE;
  --display: var(--mc-font-display, "Sora", system-ui, sans-serif);
  --body: var(--mc-font-body, "Inter", system-ui, sans-serif);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --page: 1200px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F8FA;
  --surface: #FFFFFF;
  --raised: #E3F0F6;
  --overlay: #D3E6EE;
  --line: #D3E3EA;
  --line-strong: #668FA5;
  --text: #022A3C;
  --muted: #4E6B7A;
  --faint: #52707F;
  --accent: #06709F;
  --accent-solid: #022A3C;
  --on-accent: #FFFFFF;
  --grad-text: linear-gradient(90deg, #0577AB, #00857F);
  --btn-bg: #022A3C;
  --btn-ink: #FFFFFF;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .92);
  --glass-solid: rgba(255, 255, 255, .98);
  --glass-border: rgba(2, 42, 60, .12);
  --glass-hl: rgba(255, 255, 255, .95);
  --glass-shadow: 0 20px 50px rgba(2, 42, 60, .14);
  --hover: rgba(2, 42, 60, .06);
  --hover-weak: rgba(2, 42, 60, .03);
  --feature-bg: rgba(18, 194, 240, .1);
  --feature-border: rgba(5, 144, 208, .28);
  --icon-bg: #E3F0F6;
  --icon-ink: #06709F;
  --brand-bg: #FFFFFF;
  --brand-glow: rgba(5, 144, 208, .28);
  --sheet-bg: rgba(243, 248, 250, .95);
  --blob-a: #8fdcf5;
  --blob-b: #b9f0ec;
  --blob-o: .6;
  --grid-line: rgba(2, 42, 60, .07);
  --marquee-bg: rgba(255, 255, 255, .6);
  --card-hover-border: rgba(6, 112, 159, .5);
  --trace: #0590D0;
  --pulse: #00AEB0;
  --node-fill: #FFFFFF;
  --node-stroke: #06709F;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed; z-index: 400; left: 16px; top: -80px;
  padding: 12px 18px; border-radius: 999px; background: var(--accent-solid); color: var(--on-accent); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-hl), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}

/* ---------- Buttons and links ---------- */
.eyebrow {
  font: 600 12px/1.4 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--display); letter-spacing: -.005em; white-space: nowrap;
  transition: box-shadow .25s var(--ease), background-color .25s, border-color .25s;
  will-change: transform;
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { box-shadow: 0 0 0 4px rgba(44, 229, 238, .18), 0 10px 30px rgba(18, 194, 240, .35); }
.btn--ghost { background: var(--hover-weak); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--hover); border-color: var(--accent); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 14px/1 var(--display); color: var(--accent);
}
.link-arrow svg { transition: transform .25s var(--ease); }
a:hover > .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================
   Floating glass pill menu
   ========================================================== */
.pill-wrap {
  position: fixed; z-index: 200; top: 16px; left: 0; right: 0;
  display: flex; justify-content: center; padding: 0 var(--gutter);
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 24px; border-radius: 999px;
  transition: padding .3s var(--ease), background-color .3s;
}
.pill-wrap.is-condensed .pill { background: var(--glass-strong); }
.pill__brand { display: flex; align-items: center; flex: none; margin-right: 14px; }
.pill__brand .logo { height: 32px; width: auto; }
.logo--light { display: none; }
:root[data-theme="light"] .logo--light { display: block; }
:root[data-theme="light"] .logo--dark { display: none; }
.pill__links { display: flex; align-items: center; gap: 2px; }
.pill__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font: 500 14px/1 var(--display); color: var(--muted); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.pill__link:hover, .pill__link[aria-expanded="true"] { color: var(--text); background: var(--hover); }
.pill__link[aria-current="page"] { color: var(--text); }
.pill__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 18px; height: 3px; margin-left: -9px;
  border-radius: 3px; background: var(--grad);
}
.chev { transition: transform .25s var(--ease); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.pill__tools { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.theme-toggle {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--hover-weak); color: var(--text);
  transition: background-color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--hover); border-color: var(--accent); }
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:hover svg { transform: rotate(25deg); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
/* Theme switch: circular reveal (View Transitions API, where supported) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
.pill__burger {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--line-strong); background: var(--hover-weak); color: var(--text);
}
.pill__burger .ico-close { display: none; }
.pill__burger[aria-expanded="true"] .ico-open { display: none; }
.pill__burger[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Mega menus ---------- */
.mega {
  pointer-events: auto;
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; margin-inline: auto;
  width: min(900px, 100% - 2 * var(--gutter));
  border-radius: 32px; padding: 14px;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px;
}
.mega[hidden] { display: none; }
.mega--wide { grid-template-columns: 1fr; width: min(820px, 100% - 2 * var(--gutter)); }
.mega__feature {
  display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
  padding: 28px; border-radius: 22px;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(18, 194, 240, .22), transparent 60%),
    var(--feature-bg);
  border: 1px solid var(--feature-border);
}
.mega__feature h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
.mega__feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.mega__list, .mega__grid { display: grid; gap: 4px; align-content: start; }
.mega__grid { grid-template-columns: 1fr 1fr; }
.mega__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 14px; border-radius: 20px; transition: background-color .2s;
}
.mega__item:hover { background: var(--hover); }
.mega__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--icon-bg); color: var(--icon-ink); transition: background-color .2s, color .2s;
}
.mega__item:hover .mega__icon { background: var(--accent-solid); color: var(--on-accent); }
.mega__item strong { display: block; font: 600 15px/1.3 var(--display); letter-spacing: -.005em; }
.mega__item small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mega__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 6px 20px 6px 24px; border-radius: 999px; background: var(--feature-bg);
  font-size: 14px; color: var(--muted);
}

/* ---------- Mobile sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 104px var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px; padding: 0; border: 0; background: transparent; text-align: left;
  font: 600 26px/1.2 var(--display); letter-spacing: -.02em; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.acc { border-bottom: 1px solid var(--line); }
.acc .sheet__link { border-bottom: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc__panel > div { overflow: hidden; display: flex; flex-direction: column; }
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.acc__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc__panel a { min-height: 48px; display: flex; align-items: center; padding-left: 6px; color: var(--muted); font-size: 17px; font-weight: 500; }
.acc__panel > div > a:last-child { margin-bottom: 10px; }
.sheet__actions { display: grid; gap: 12px; }
.sheet__actions .btn { width: 100%; }

/* ==========================================================
   Loader (three.js)
   ========================================================== */
.loader {
  --text: #EAF6FA; --muted: #8DB4C6; --accent: #2CE5EE;
  position: fixed; inset: 0; z-index: 500; color: var(--text);
  display: grid; place-items: center;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, #06384f 0%, #011B28 70%);
}
html.no-loader .loader { display: none; }
.loader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader.is-fallback .loader__canvas { display: none; }
.loader__meta { position: absolute; left: 0; right: 0; top: calc(50% + 0.31 * min(100vw, 100vh) + 8px); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 var(--gutter, 16px); }
@media (max-height: 460px) { .loader__tag { display: none; } }
.loader__count { font: 700 clamp(24px, 6vmin, 56px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.loader__count small { font-size: .4em; color: var(--accent); margin-left: 4px; }
.loader__tag { font-size: clamp(12px, 1.8vh, 14px); color: var(--muted); letter-spacing: .02em; }
@keyframes mc-pulse { 50% { opacity: .55; transform: scale(.96); } }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: 140px 0 96px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-o); }
.blob--a { width: 620px; height: 620px; right: -140px; top: -120px; background: var(--blob-a); animation: mc-drift 18s ease-in-out infinite alternate; }
.blob--b { width: 520px; height: 520px; left: -160px; bottom: -180px; background: var(--blob-b); animation: mc-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes mc-drift { to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
}
.hero__lead { max-width: 52ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__visual { position: relative; width: 100%; max-width: 520px; justify-self: end; aspect-ratio: 1; }
.circuit { width: 100%; height: 100%; overflow: visible; }
.circuit__traces { stroke: var(--trace); }
.circuit__pulses { stroke: var(--pulse); filter: drop-shadow(0 0 4px var(--pulse)); }
.circuit__nodes { fill: var(--node-fill); stroke: var(--node-stroke); }
.circuit__icons { stroke: var(--node-stroke); }
.circuit__core { fill: var(--trace); filter: drop-shadow(0 0 8px var(--trace)); }
.circuit__pulses path { stroke-dasharray: 26 520; stroke-dashoffset: 0; opacity: .95; }
.circuit__dot { fill: var(--trace); opacity: .3; }
.hub-a { stop-color: var(--node-fill); }
.hub-b { stop-color: var(--trace); stop-opacity: .22; }
.circuit__hub { fill: url(#mc-hub); stroke: var(--trace); stroke-width: 2; }
.circuit__pins { stroke: var(--trace); stroke-width: 2; opacity: .8; }
.circuit__ring { stroke: var(--node-stroke); stroke-width: 1.5; opacity: .55; }
.circuit__aux { stroke: var(--trace); opacity: .35; stroke-width: 1.5; }
.circuit__aux circle { fill: var(--node-fill); }
.circuit__rings { stroke: var(--trace); stroke-width: 1.5; opacity: .35; transform-origin: 260px 260px; animation: mc-spin 60s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.chip.chip--c { translate: -50% -50%; }
.chip {
  position: absolute; translate: -50% -165%;
  padding: 8px 14px; border-radius: 999px; font: 600 12.5px/1 var(--display); letter-spacing: .01em; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--glass-hl), var(--glass-shadow);
}
/* ---- Hero 3D: services constellation ---- */
.hero3d { display: none; position: absolute; inset: -9%; pointer-events: none; }
.hero3d__canvas { width: 100%; height: 100%; display: block; }
html.hero-3d .hero3d { display: block; }
html.hero-3d .circuit, html.hero-3d .chip { display: none; }
.svc-tag {
  position: absolute; left: 0; top: 0; opacity: 0; pointer-events: auto; cursor: pointer; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 999px;
  font: 600 12.5px/1 var(--display); letter-spacing: .01em; white-space: nowrap; will-change: transform, opacity;
  box-shadow: inset 0 1px 0 var(--glass-hl), var(--glass-shadow);
  transition: border-color .25s ease, color .25s ease;
}
.svc-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--trace); box-shadow: 0 0 10px var(--trace); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.svc-tag.is-active { border-color: var(--trace); }
.svc-tag.is-active i { transform: scale(1.5); }
.svc-tag small { display: none; padding-left: 10px; border-left: 1px solid var(--line-strong); color: var(--muted); font: 500 12px/1 var(--display); }
.svc-tag.is-active small { display: inline; }
.svc-tag:focus-visible { outline: 2px solid var(--trace); outline-offset: 3px; }
/* HUD corner ticks */
html.hero-3d .hero__visual::before, html.hero-3d .hero__visual::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--line-strong); opacity: .7; pointer-events: none;
}
html.hero-3d .hero__visual::before { left: -4%; top: -2%; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
html.hero-3d .hero__visual::after { right: -4%; bottom: -2%; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
@media (max-width: 560px) { .svc-tag { font-size: 12px; padding: 8px 12px 8px 10px; } .svc-tag small { display: none !important; } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted);
  animation: mc-bob 2.2s ease-in-out infinite;
}
@keyframes mc-bob { 50% { transform: translateY(6px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--marquee-bg); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: mc-marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center; font: 600 15px/1 var(--display); letter-spacing: .02em; color: var(--muted); white-space: nowrap;
}
.marquee li::after { content: ""; width: 6px; height: 6px; margin: 0 36px; border-radius: 50%; background: var(--cyan); }
@keyframes mc-marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.65; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 30px; border-radius: 32px;
  transition: border-color .3s;
}
.card:hover { border-color: var(--card-hover-border); }
.card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px;
  background: var(--icon-bg); color: var(--icon-ink); margin-bottom: 6px;
}
/* cursor spotlight */
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(18, 194, 240, .16), transparent 65%);
  transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); border-radius: 2px; }
.steps__fill { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--grad); transform-origin: left; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__n { font: 700 14px/1 var(--display); color: var(--accent); letter-spacing: .08em; }
.step h3 { font-size: 26px; letter-spacing: -.025em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 26ch; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; }
.bento__main { grid-column: 1 / span 7; grid-row: 1 / span 2; justify-content: flex-end; min-height: 360px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(18, 194, 240, .22), transparent 60%),
    var(--glass);
}
.bento__main h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.bento__main p { max-width: 42ch; font-size: 16px; }
.bento__a { grid-column: 8 / span 5; }
.bento__b { grid-column: 8 / span 5; }

/* ---------- CTA ---------- */
.section--cta { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: clamp(40px, 7vw, 88px) var(--gutter); border-radius: 48px;
}
.cta::before {
  content: ""; position: absolute; inset: -30% 10% auto; height: 120%; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(18, 194, 240, .35), transparent 65%);
}
.cta h2 { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -.03em; line-height: 1.08; max-width: 18ch; }
.cta p { color: var(--muted); max-width: 52ch; font-size: 17px; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ==========================================================
   Floating glass footer
   ========================================================== */
.site-footer { padding: 0 var(--gutter) 24px; }
.footer-pill { width: min(var(--page), 100%); margin-inline: auto; border-radius: 48px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) 14px; }
.footer-pill__top { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-col h2 { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer-col > a:not(.link-arrow) { min-height: 36px; display: flex; align-items: center; color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-col > a:not(.link-arrow):hover { color: var(--text); }
.footer-col p { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
.footer-col p svg { flex: none; margin-top: 3px; color: var(--accent); }
.footer-col p a:hover { color: var(--text); }
.footer-pill__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding: 10px 0 0 4px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--faint);
}
.to-top {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); color: var(--text); transition: background-color .2s, color .2s;
}
.to-top:hover { background: var(--accent-solid); color: var(--on-accent); }

/* ---------- Footer newsletter ---------- */
.footer-news {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: 32px; padding: 22px 24px; border-radius: 28px; background: var(--hover-weak); border: 1px solid var(--line);
}
.footer-news__text h2 { font-size: 18px; letter-spacing: -.01em; }
.footer-news__text p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.footer-news__field { display: flex; gap: 10px; flex: 1 1 360px; max-width: 520px; }
.footer-news input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 16px/1 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.footer-news input::placeholder { color: var(--faint); }
.footer-news input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
@media (max-width: 560px) {
  .footer-news { padding: 20px; border-radius: 24px; }
  .footer-news__field { flex-direction: column; max-width: none; flex-basis: 100%; }
  .footer-news__text p { font-size: 16px; }
}

/* ==========================================================
   Reveal states (only when GSAP is confirmed loaded)
   ========================================================== */
html.gsap-ok [data-reveal] { opacity: 0; transform: translateY(36px); }
html.gsap-ok .hero [data-hero], html.gsap-ok .hero__scroll { opacity: 0; }
html.gsap-ok .hero__title { visibility: hidden; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .wi { display: inline-block; will-change: transform; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .pill__links, .pill__cta { display: none; }
  .pill { width: min(560px, 100%); justify-content: space-between; }
  .pill__tools { margin-left: 0; }
  .pill__burger { display: inline-flex; }
  .mega { display: none !important; }
  .footer-pill__top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { padding: 120px 0 88px; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; justify-self: center; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .bento { grid-template-columns: 1fr; }
  .bento__main, .bento__a, .bento__b { grid-column: 1; grid-row: auto; min-height: 0; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  /* Standard mobile type scale: body 16, h1 34, h2 28, h3 20, buttons 16 */
  .hero__title { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; }
  .hero__lead, .section__head p:not(.eyebrow), .cta p { font-size: 16px; line-height: 1.6; }
  .section__head h2, .cta h2 { font-size: 28px; line-height: 1.18; }
  .card h3, .bento__main h3 { font-size: 20px; }
  .card p, .bento__main p, .step p, .footer-brand p { font-size: 16px; }
  .step h3 { font-size: 22px; }
  .btn, .btn--sm { font-size: 16px; }
  .sheet__link { font-size: 22px; min-height: 56px; }
  .acc__panel a { font-size: 16px; }
  .footer-col > a:not(.link-arrow), .footer-col p { font-size: 16px; }
  .footer-pill__bar { font-size: 14px; }
  .marquee li { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .footer-pill__top { grid-template-columns: 1fr; }
  .footer-pill { border-radius: 36px; }
  .cta { border-radius: 36px; }
  .card { border-radius: 28px; padding: 24px; }
  .btn { width: 100%; }
  .hero__cta, .cta__buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .footer-brand .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .marquee__track, .hero__scroll, .circuit__rings { animation: none !important; }
  .btn, .card, .link-arrow svg, .chev { transition: none; }
}

/* ---------- Inner page placeholder ---------- */
.page-stub { min-height: 70svh; padding-top: 140px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Newsletter messages and honeypot (shared by every newsletter form) ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-msg { flex-basis: 100%; min-height: 0; font-size: 15px; margin: 0; }
.news-msg:empty { display: none; }
.news-msg.is-ok { color: var(--accent); }
.news-msg.is-err { color: #e5484d; }
:root[data-theme="light"] .news-msg.is-ok { color: #067a9a; }
:root[data-theme="light"] .news-msg.is-err { color: #c42b31; }
.footer-news input[aria-invalid="true"], .newsbox input[aria-invalid="true"] { border-color: #e5484d; }

/* ---------- Homepage newsletter block ---------- */
.newsbox {
  position: relative; display: grid; grid-template-columns: auto 1fr minmax(320px, 440px); gap: 20px 36px; align-items: center;
  padding: clamp(26px, 4vw, 44px); border-radius: 32px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.newsbox__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-ink); border: 1px solid var(--line); }
.newsbox__text h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.newsbox__text p { color: var(--muted); margin-top: 10px; line-height: 1.65; max-width: 52ch; }
.newsbox__field { display: flex; gap: 10px; }
.newsbox input[type=email] {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 16px/1 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.newsbox input::placeholder { color: var(--faint); }
.newsbox input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); }
.newsbox .news-msg { margin-top: 12px; }
@media (max-width: 1000px) {
  .newsbox { grid-template-columns: auto 1fr; }
  .newsbox__form { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .newsbox { grid-template-columns: 1fr; border-radius: 26px; }
  .newsbox__field { flex-direction: column; }
  .newsbox__text p { font-size: 16px; }
}

/* Small screens: nothing may push the page wider than the screen */
.footer-news, .footer-news__field, .footer-news__field > * { min-width: 0; }
.footer-news input { width: 100%; }
@media (max-width: 400px) { .footer-news__field { flex: 1 1 100%; } .footer-news__field .btn { width: 100%; } }
body { overflow-x: clip; }
/* Touch: footer links get a 44px target on phones and tablets */
@media (pointer: coarse), (max-width: 900px) {
  .footer-col > a:not(.link-arrow) { min-height: 44px; }
  .footer-pill__bar a { display: inline-flex; align-items: center; min-height: 44px; }
  .pill__brand { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---- Sweet alerts (SweetAlert2), themed to the site ---- */
.swal2-container { z-index: 2000; }
.swal2-popup.mc-swal { background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 28px; padding: 28px 24px 24px; font-family: var(--body, inherit); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); width: min(92vw, 30rem); }
.mc-swal .swal2-title { font: 700 clamp(22px, 5vw, 26px)/1.2 var(--display); letter-spacing: -.02em; color: var(--text); padding: .4em .4em 0; }
.mc-swal .swal2-html-container { color: var(--muted); font-size: 16px; line-height: 1.6; margin: .8em 1em .4em; }
.mc-swal .swal2-confirm { min-height: 48px; padding: 0 28px; border-radius: 999px; background: linear-gradient(135deg, #12c2f0, #36f0ec); color: #022a3c; font: 700 15px/1 var(--display); box-shadow: none; }
.mc-swal .swal2-confirm:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.mc-swal .swal2-timer-progress-bar { background: var(--accent); }
.mc-swal .swal2-icon.swal2-success { border-color: #2fd08c; color: #2fd08c; }
.mc-swal .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #2fd08c; }
.mc-swal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(47, 208, 140, .3); }
.mc-swal .swal2-icon.swal2-info { border-color: var(--accent); color: var(--accent); }
.mc-fallback-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; max-width: min(92vw, 440px); }

/* Footer: contact links and social (values come from Admin > Settings) */
.footer-col--contact span a { color: inherit; text-decoration: none; }
.footer-col--contact span a:hover { color: var(--accent); }
.footer-social { flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.footer-social a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-social a:hover { color: var(--accent); }
