/* =====================================================================
   SCEPTERIX — design system
   ===================================================================== */
:root {
  --navy: #0A1A33;
  --midnight: #050E1F;
  --panel: rgba(15, 37, 71, 0.7);
  --panel-solid: #0F2547;
  --cyan: #3FE0F5;
  --aqua: #7DF3FF;
  --sky: #38A8F5;
  --royal: #1E5FD9;
  --core: #EAFBFF;
  --white: #FFFFFF;
  --muted: #9FB3CC;
  --line: rgba(63, 224, 245, 0.16);
  --line-strong: rgba(63, 224, 245, 0.42);
  --live: #3FE0B0;
  --grad: linear-gradient(90deg, var(--royal), var(--cyan));
  --grad-v: linear-gradient(0deg, var(--royal), var(--cyan));
  --glow: 0 0 0 1px rgba(63, 224, 245, .35), 0 10px 40px -10px rgba(63, 224, 245, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--muted);
  font: 400 1rem/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--aqua); }
p { margin: 0 0 1em; }
strong { color: var(--white); font-weight: 600; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.12;
}
h1 { font-weight: 800; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem); }
h2 { font-weight: 800; font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.55rem); }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; }
h4 { font-weight: 700; font-size: .95rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(63, 224, 245, .35));
}
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #BFD0E3; max-width: 62ch; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--cyan); color: var(--midnight); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Feature flags (see /js/features.js): the hidden attribute must win over component display rules */
[hidden] { display: none !important; }

/* ---------- Slogan "Powered By Ideas" (flag: slogan) ---------- */
.hero-slogan {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--cyan);
}
.hero-slogan::before, .hero-slogan::after { content: ""; width: 28px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.brand-slogan { margin-right: auto; padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: .78rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
@media (max-width: 767px) { .brand-slogan { display: none; } }
.footer-slogan { margin: -4px 0 14px; font-size: .9rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); }

/* ---------- Floating WhatsApp button (flag: contactInfoV2) ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: var(--midnight);
  box-shadow: 0 0 0 1px rgba(125, 243, 255, .6), 0 0 28px rgba(63, 224, 245, .6), 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { color: var(--midnight); transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 1px var(--aqua), 0 0 40px rgba(63, 224, 245, .8); }
.wa-float svg { width: 28px; height: 28px; }
.map-link { display: inline-flex; margin-top: 12px; }

/* ---------- Hero scroll transition (flag: heroScrollTransition; classes added by hero-scroll.js) ---------- */
.hero__stage-inner { position: absolute; inset: 0; will-change: transform, opacity; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 35%, rgba(5, 14, 31, .92) 100%); }
.fx-hero .hero__copy > div > * { will-change: transform, opacity; }

/* ---------- Seamless hero load (flag: heroFadeInLoad) ----------
   hero-wait: only the background texture shows. hero-intro: one coordinated fade-in.
   Text uses filter:opacity + translate so it never fights the scroll transition (which animates opacity/transform). */
.hero-wait .hero__fallback { opacity: 0 !important; }
.hero-wait .hero__canvas { opacity: 0 !important; }
.hero-wait .hero__copy > div > * { filter: opacity(0); translate: 0 16px; }
.hero-intro .hero__canvas { transition: opacity .6s ease; }
.hero-intro .hero__fallback { transition: opacity .9s ease; }
.hero-intro .hero__copy > div > * { transition: filter .75s ease, translate .9s var(--ease); }
.hero-intro .hero__copy > div > :nth-child(1) { transition-delay: .25s; }  /* slogan */
.hero-intro .hero__copy > div > :nth-child(2) { transition-delay: .37s; }  /* headline */
.hero-intro .hero__copy > div > :nth-child(3) { transition-delay: .49s; }  /* subhead */
.hero-intro .hero__copy > div > :nth-child(4) { transition-delay: .61s; }  /* CTAs */
.hero-intro .hero__copy > div > :nth-child(5) { transition-delay: .73s; }
@media (prefers-reduced-motion: reduce) {
  .hero-wait .hero__copy > div > * { translate: none; }
  .hero-intro .hero__canvas, .hero-intro .hero__fallback, .hero-intro .hero__copy > div > * {
    transition: opacity .4s ease, filter .4s ease !important; transition-delay: 0s !important;
  }
}

/* ---------- Stone shatter → product page (flag: gemShatterTransition) ---------- */
@view-transition { navigation: auto; } /* used only for stone navigations; every other navigation skips it (site.js / header script) */
.gem-flash {
  position: fixed; z-index: 10000; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.03); opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 92%, #fff) 0%, color-mix(in srgb, var(--c) 55%, #050E1F) 30%, #050E1F 64%);
  transition: transform .38s cubic-bezier(.3, .7, .2, 1), opacity .18s ease;
}
.gem-flash.go { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.gem-flash--rm { inset: 0; border-radius: 0; transform: none; background: #050E1F; transition: opacity .3s ease; }
.gem-flash--rm.go { transform: none; }
.sx-leaving main, .sx-leaving .site-header, .sx-leaving .wa-float { opacity: 0; transition: opacity .35s ease; }
/* Arrival on the product page: starts under the same glow, then fades it away (~500ms) */
html.sx-arrive body::after {
  content: ""; position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  background: radial-gradient(circle farthest-corner at var(--ax, 50%) var(--ay, 45%), color-mix(in srgb, var(--arrive) 92%, #fff) 0%, color-mix(in srgb, var(--arrive) 55%, #050E1F) 22%, #050E1F 52%);
  transition: opacity .5s ease;
}
html.sx-arrive.sx-arrive-rm body::after { background: #050E1F; transition-duration: .3s; }
html.sx-arrive.sx-arrive-go body::after { opacity: 0; }
html.sx-arrive .product-hero__gem { opacity: 0; transform: scale(.82); }
html.sx-arrive.sx-arrive-go .product-hero__gem { opacity: 1; transform: none; transition: opacity .8s ease .12s, transform 1s var(--ease) .12s; }

/* ---------- Hero input fix (flag: heroInputFix; features-apply adds .f-off-heroInputFix when it is off) ----------
   The text block never catches pointer events itself: only its real links/buttons do, and only while visible
   (hero-scroll.js hides faded ones with visibility + inert). Decorative layers never intercept the scene. */
html:not(.f-off-heroInputFix) .hero__copy,
html:not(.f-off-heroInputFix) .hero__copy > div,
html:not(.f-off-heroInputFix) .hero__copy > div > * { pointer-events: none !important; }
html:not(.f-off-heroInputFix) .hero__copy a,
html:not(.f-off-heroInputFix) .hero__copy button { pointer-events: auto !important; }
html:not(.f-off-heroInputFix) .hero__copy [inert] a,
html:not(.f-off-heroInputFix) .hero__copy [inert] button { pointer-events: none !important; }
html:not(.f-off-heroInputFix).hero-wait .hero__copy > div > * { visibility: hidden; } /* not clickable before the fade-in */
html:not(.f-off-heroInputFix) .hero__vignette,
html:not(.f-off-heroInputFix) .hero__fallback,
html:not(.f-off-heroInputFix) .hero__stage::after,
html:not(.f-off-heroInputFix) #ambient,
html:not(.f-off-heroInputFix) .bg-layer { pointer-events: none; }
/* the info card's panel is see-through to the pointer; only its "Explore" link is clickable */
html:not(.f-off-heroInputFix) .gem-card { pointer-events: none; }
html:not(.f-off-heroInputFix) .gem-card.is-visible a { pointer-events: auto; }

/* ---------- Background texture ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-layer::before, .bg-layer::after { content: ""; position: absolute; inset: 0; }
.bg-layer::before {
  /* hex grid */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7v32.3' fill='none' stroke='%233FE0F5' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 75%);
}
.bg-layer::after {
  /* chart-line motifs + vignette */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220'%3E%3Cg fill='none' stroke='%233FE0F5' stroke-opacity='.06'%3E%3Cpolyline points='0,180 40,160 80,170 120,120 160,135 200,90 240,105 280,60 320,75 360,30 420,40'/%3E%3Cpath d='M0 210h420M20 200v-30M50 200v-50M80 200v-20M110 200v-70M140 200v-45'/%3E%3C/g%3E%3C/svg%3E") no-repeat 4% 88% / 420px auto,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220'%3E%3Cg fill='none' stroke='%233FE0F5' stroke-opacity='.05'%3E%3Cpolyline points='0,120 50,130 100,90 150,110 200,70 250,85 300,40 350,55 420,20'/%3E%3C/g%3E%3C/svg%3E") no-repeat 96% 14% / 380px auto,
    radial-gradient(ellipse at 50% 0%, rgba(30, 95, 217, .16), transparent 60%),
    radial-gradient(ellipse at 50% 120%, var(--midnight) 20%, transparent 70%);
}
#ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 5vw + 40px, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 4vw + 24px, 88px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); box-shadow: 0 0 8px var(--cyan); }
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* 5-up product grid: 2 columns on tablet (last card full width), 3 + 2 on desktop */
@media (min-width: 768px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-5 > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 768px) { .span-all { grid-column: 1 / -1; } }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .02em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: var(--midnight); box-shadow: 0 0 24px -4px rgba(63, 224, 245, .55); }
.btn-primary:hover { background: var(--aqua); color: var(--midnight); transform: translateY(-2px); box-shadow: 0 0 36px -2px rgba(63, 224, 245, .75); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: rgba(15, 37, 71, .55); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--white); box-shadow: var(--glow); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Glass card ---------- */
.card {
  position: relative;
  /* No backdrop blur on cards: blurring over the animated background costs too much on phones */
  background: linear-gradient(160deg, rgba(17, 42, 80, .78), rgba(12, 30, 58, .72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2vw + 12px, 32px);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
a.card, .card--link { color: inherit; display: block; }
a.card:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--cyan); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(30, 95, 217, .35), rgba(63, 224, 245, .12));
  border: 1px solid var(--line-strong); color: var(--cyan);
  box-shadow: inset 0 0 20px rgba(63, 224, 245, .15);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font: 600 .72rem/1 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor;
  background: rgba(5, 14, 31, .5);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge--live { color: var(--live); }
.badge--mvp { color: var(--sky); }
.badge--dev { color: var(--muted); }
.badge--soon { color: var(--aqua); }
.badge--dev::before { box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 26, 51, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 14, 31, .78); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; font: 800 1.35rem/1 var(--font-head); letter-spacing: .06em; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__t { height: 3.05em; width: auto; margin: -0.35em -0.14em 0; filter: drop-shadow(0 0 6px rgba(63, 224, 245, .5)); }
.brand__ix { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 8px rgba(63, 224, 245, .55)); }
.nav { display: none; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: #C9D7E6; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--white); background: rgba(63, 224, 245, .08); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .25s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: 340px;
  list-style: none; margin: 0; padding: 10px; border-radius: var(--radius);
  background: rgba(10, 26, 51, .94); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 30px -12px rgba(63, 224, 245, .4);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--white); font-weight: 600; font-size: .92rem; }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.dropdown a:hover { background: rgba(63, 224, 245, .08); }
.dropdown .gem-dot { flex: none; width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 10px currentColor; background: currentColor; }
.dropdown .all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; color: var(--cyan); }
.header-cta { display: none; }
.menu-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(15, 37, 71, .5);
  display: grid; place-items: center; cursor: pointer; color: var(--white);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; padding: 24px var(--gutter) 40px; overflow-y: auto;
  background: rgba(5, 14, 31, .97); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li > a { display: block; padding: 16px 0; font: 800 1.35rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--white); border-bottom: 1px solid var(--line); }
.mobile-nav .sub a { display: block; padding: 12px 0 12px 16px; color: #C9D7E6; border-bottom: 1px solid rgba(63, 224, 245, .07); }
.mobile-nav .btn { margin-top: 28px; width: 100%; }
@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); }
.hero__stage { position: relative; height: min(72vh, 580px); min-height: 440px; }
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canvas {
  opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.hero.is-3d .hero__canvas { opacity: 1; }
.hero__fallback {
  display: flex; align-items: center; justify-content: center; transition: opacity 1s ease;
}
.hero__fallback img {
  height: 92%; width: auto; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 55%, transparent 100%);
  animation: fallback-pulse 3s ease-in-out infinite;
}
@keyframes fallback-pulse { 50% { filter: brightness(1.12) drop-shadow(0 0 22px rgba(63, 224, 245, .35)); } }
.hero.is-3d .hero__fallback { opacity: 0; pointer-events: none; }
.hero__copy { position: relative; z-index: 2; padding-bottom: 72px; }
.hero__copy h1 { margin-bottom: .45em; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.15rem); }
.hero__copy h1 .brandline { display: block; font-size: .5em; letter-spacing: .32em; margin-bottom: .6em; }
.hero__copy .lead { margin-bottom: 32px; }
.hero__hint { margin-top: 28px; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__hint::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); border-radius: 2px; }
.hero__stage::after { /* fade into page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(transparent, var(--navy));
}
@media (min-width: 960px) {
  .hero { min-height: max(100vh, 720px); display: flex; align-items: center; }
  .hero__stage { position: absolute; inset: 0; height: auto; }
  .hero__stage::after { height: 180px; }
  .hero__fallback { justify-content: flex-end; padding-right: 7vw; padding-top: var(--header-h); }
  .hero__fallback img { height: 86%; }
  .hero__copy { padding-top: var(--header-h); padding-bottom: 0; pointer-events: none; }
  .hero__copy > * { max-width: 560px; pointer-events: auto; }
}
.gem-card {
  position: absolute; z-index: 5; width: min(300px, calc(100vw - 32px)); left: 0; top: 0;
  padding: 18px 20px 20px; border-radius: 14px;
  background: rgba(15, 37, 71, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--cyan); box-shadow: 0 0 30px -6px rgba(63, 224, 245, .6), 0 20px 50px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: scale(.94); transform-origin: left center;
  transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
  pointer-events: auto;
}
.gem-card.is-visible { opacity: 1; visibility: visible; transform: none; }
.gem-card.is-left { transform-origin: right center; }
.gem-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.gem-card p { font-size: .9rem; margin-bottom: 14px; color: #C9D7E6; }
.gem-card .gem-swatch { position: absolute; top: 18px; right: 18px; width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 12px currentColor; background: currentColor; }
.gem-card .gem-hint { margin: -6px 0 12px; font-size: .78rem; font-weight: 600; color: var(--aqua); opacity: 0; transition: opacity .4s ease; }
.gem-card .gem-hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  /* keep a gentle crossfade between product cards even when motion is reduced */
  .gem-card { transition: opacity .2s ease, visibility .2s !important; transform: none !important; }
}
.gem-links { position: absolute; left: var(--gutter); bottom: 12px; z-index: 6; display: flex; gap: 8px; flex-wrap: wrap; }
.gem-links a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gem-links a:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px 14px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--cyan); color: var(--white); font-size: .85rem; }

/* ---------- Pillars / products / steps ---------- */
.pillar h3 { margin-bottom: 10px; }
.pillar ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar li { font-size: .78rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: #C9D7E6; }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.product-card h3 { margin-bottom: 6px; }
.product-card .sector { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 12px; }
.product-card p { flex: 1; }
.product-card .link-arrow { margin-top: 18px; }
.gem-icon { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 0 12px var(--gem, var(--cyan))); }
.steps { counter-reset: step; display: grid; gap: 20px; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { content: ""; position: absolute; top: 38px; left: 6%; right: 6%; height: 1px; background: var(--grad); opacity: .6; box-shadow: 0 0 10px var(--cyan); }
}
.step { counter-increment: step; position: relative; }
.step__num {
  width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 20px; position: relative;
  font: 800 1.35rem/1 var(--font-head); color: var(--white);
  background: var(--navy);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.step__num::before { content: ""; position: absolute; inset: 0; background: var(--grad-v); clip-path: inherit; z-index: -1; }
.step__num::after { content: counter(step, decimal-leading-zero); position: absolute; inset: 2px; display: grid; place-items: center; background: var(--navy); clip-path: inherit; }
.step h3 { margin-bottom: 8px; }
.partner-strip .card { display: flex; flex-direction: column; }
.partner-strip .card p { flex: 1; }
.partner-strip .card .link-arrow { margin-top: 16px; }
.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 5vw, 72px) var(--gutter);
  border-radius: 24px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63, 224, 245, .22), transparent 60%),
    linear-gradient(160deg, rgba(30, 95, 217, .35), rgba(5, 14, 31, .6));
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat strong { display: block; font: 800 clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem)/1.1 var(--font-head); color: var(--white); font-variant-numeric: tabular-nums; }
.stat span { font-size: .88rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(56px, 6vw + 24px, 120px); padding-bottom: clamp(40px, 4vw, 72px); position: relative; overflow-x: clip; }
.page-hero .lead { margin-bottom: 28px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(159, 179, 204, .5); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.product-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .product-hero { grid-template-columns: 1.15fr .85fr; } }
.product-hero__gem { position: relative; display: grid; place-items: center; min-height: 280px; }
.product-hero__gem::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gem) 40%, transparent), transparent 70%); filter: blur(20px); }
.product-hero__gem svg { width: min(300px, 70vw); position: relative; animation: gem-float 6s ease-in-out infinite; filter: drop-shadow(0 0 30px var(--gem)); }
.product-hero__gem .orbit { position: absolute; width: min(420px, 92vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(63, 224, 245, .25); transform: rotateX(72deg) rotateZ(-32deg); }
@keyframes gem-float { 50% { transform: translateY(-14px) rotate(3deg); } }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.meta-row .sector { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }

/* feature list, split layouts */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--wide { grid-template-columns: .9fr 1.1fr; } }
.problem-solution .card h3 { display: flex; align-items: center; gap: 10px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.flow-steps { list-style: none; padding: 0; margin: 0; counter-reset: fs; display: grid; gap: 16px; }
.flow-steps li { counter-increment: fs; position: relative; padding: 18px 20px 18px 72px; border-radius: 14px; background: rgba(15, 37, 71, .5); border: 1px solid var(--line); }
.flow-steps li::before { content: counter(fs); position: absolute; left: 20px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font: 800 1rem/1 var(--font-head); color: var(--midnight); background: var(--cyan); box-shadow: 0 0 14px rgba(63, 224, 245, .5); }
.flow-steps strong { display: block; margin-bottom: 2px; }
.roadmap { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 22px; }
.roadmap::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--grad-v); opacity: .6; }
.roadmap li { position: relative; padding-left: 40px; }
.roadmap li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px; border: 2px solid var(--cyan); background: var(--navy); }
.roadmap li.done::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.roadmap li.now::before { background: var(--sky); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(56, 168, 245, .18); } }
.roadmap .when { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.audience .card h3 { font-size: 1rem; }

/* ---------- Demo widgets ---------- */
.demo { border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(5, 14, 31, .72); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 40px -20px rgba(63, 224, 245, .5); }
.demo__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(159, 179, 204, .25); }
.demo__bar span { margin-left: 8px; }
.demo__body { padding: clamp(16px, 2.5vw, 28px); }
.demo-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.field-row { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="range"] { width: 100%; accent-color: var(--cyan); height: 28px; }
.demo-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; color: #D5E1EE; margin-bottom: 8px; }
.demo-label output, .demo-label b { font: 700 1rem/1 var(--font-head); color: var(--white); font-variant-numeric: tabular-nums; }

/* DiscountSplit mock */
.ds-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 37, 71, .45); transition: border-color .3s, background .3s; }
.ds-row.is-best { border-color: var(--cyan); background: rgba(63, 224, 245, .08); box-shadow: 0 0 24px -10px rgba(63, 224, 245, .8); }
.ds-card-art { width: 56px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, #1E5FD9, #0F2547 60%, #3FE0F5); display: grid; place-items: end start; padding: 3px 5px; position: relative; }
.ds-card-art::before { content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 8px; border-radius: 2px; background: #C9D7E6; opacity: .8; }
.ds-card-art span { font-size: .52rem; color: #fff; font-weight: 600; }
.ds-info { min-width: 0; }
.ds-info strong { display: block; font-size: .92rem; }
.ds-info small { display: block; font-size: .76rem; color: var(--muted); }
.ds-bar { display: block; height: 4px; border-radius: 4px; background: rgba(159, 179, 204, .15); margin-top: 8px; overflow: hidden; }
.ds-bar i { display: block; height: 100%; background: var(--grad); transition: width .4s var(--ease); }
.ds-save { text-align: right; }
.ds-save b { display: block; font: 800 1rem/1.1 var(--font-head); color: var(--white); font-variant-numeric: tabular-nums; }
.ds-save small { font-size: .7rem; }
.ds-save em { display: block; font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; }
@media (max-width: 480px) { .ds-row { grid-template-columns: 1fr auto; } .ds-card-art { display: none; } }

/* FlowCity simulation */
.fc-wrap { display: grid; gap: 16px; }
@media (min-width: 1024px) { .fc-wrap { grid-template-columns: 1.5fr 1fr; } }
.fc-map { position: relative; border-radius: 14px; overflow: hidden; background: #061226; border: 1px solid var(--line); }
.fc-map svg { width: 100%; height: auto; }
.fc-road { fill: none; stroke-linecap: round; transition: stroke .8s ease; }
.fc-label { font: 600 9px var(--font-body); fill: rgba(159, 179, 204, .75); letter-spacing: .06em; text-transform: uppercase; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; padding: 10px 14px; border-top: 1px solid var(--line); }
.fc-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.fc-panel { display: grid; gap: 12px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 37, 71, .5); }
.kpi small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi b { font: 800 1.35rem/1.2 var(--font-head); color: var(--white); font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .75rem; margin-left: 6px; }
.corridors { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 37, 71, .5); display: grid; gap: 9px; }
.corridors li { display: grid; grid-template-columns: 96px 1fr 38px; gap: 10px; align-items: center; font-size: .78rem; }
.corridors .bar { height: 6px; border-radius: 3px; background: rgba(159, 179, 204, .15); overflow: hidden; }
.corridors .bar i { display: block; height: 100%; border-radius: 3px; transition: width .8s ease, background .8s ease; }
.corridors b { text-align: right; color: var(--white); font-variant-numeric: tabular-nums; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(63, 224, 245, .06); }
.switch button { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(5, 14, 31, .8); cursor: pointer; flex: none; }
.switch button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background .25s; }
.switch button[aria-checked="true"] { background: rgba(63, 224, 245, .2); border-color: var(--cyan); }
.switch button[aria-checked="true"]::after { transform: translateX(22px); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.switch span { font-size: .88rem; color: var(--white); font-weight: 500; }
.switch small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }

/* Payments escrow flow */
.escrow svg { width: 100%; height: auto; }
.escrow .node rect { fill: rgba(15, 37, 71, .85); stroke: rgba(63, 224, 245, .45); }
.escrow .node text { fill: #fff; font: 700 13px var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.escrow .node .sub { fill: var(--muted); font: 400 11px var(--font-body); letter-spacing: 0; text-transform: none; }
.escrow .path { fill: none; stroke: rgba(63, 224, 245, .35); stroke-width: 2; stroke-dasharray: 5 6; }
.split-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.split-out div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 37, 71, .5); }
.split-out small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.split-out b { font: 800 1.02rem/1.3 var(--font-head); color: var(--white); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .split-out { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-size: .88rem; font-weight: 500; color: #D5E1EE; margin-bottom: 8px; }
.field .req { color: var(--cyan); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: rgba(5, 14, 31, .6); border: 1px solid rgba(159, 179, 204, .28); color: var(--white);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233FE0F5' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.select option { background: var(--panel-solid); }
.input::placeholder, .textarea::placeholder { color: rgba(159, 179, 204, .6); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 224, 245, .2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #FF8A8A; }
.field-error { display: none; margin-top: 6px; font-size: .82rem; color: #FFB3B3; }
.field.has-error .field-error { display: block; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; font-size: .95rem; }
.form-status.is-success { display: block; background: rgba(63, 224, 176, .1); border: 1px solid var(--live); color: #D6FFF1; }
.form-status.is-error { display: block; background: rgba(255, 138, 138, .08); border: 1px solid #FF8A8A; color: #FFD6D6; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-tile { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex: none; }
.contact-list .icon-tile svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span.val { color: var(--white); font-weight: 500; word-break: break-word; }
.map-frame { margin-top: 24px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--midnight); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }

/* ---------- Legal prose ---------- */
.legal-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px 1fr; gap: 64px; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc ol { margin: 0; padding-left: 20px; font-size: .9rem; display: grid; gap: 8px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--cyan); }
.prose { max-width: 760px; color: #C4D2E1; }
.prose h2 { font-size: 1.25rem; margin: 2.2em 0 .7em; padding-top: .4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--white); font-weight: 600; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .9rem; margin-bottom: 8px; }
.review-flag {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle;
  padding: 3px 9px; border-radius: 6px; font: 600 .66rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: #FFE3A3; border: 1px dashed rgba(255, 227, 163, .6); background: rgba(255, 227, 163, .06);
}
.notice { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(15, 37, 71, .6); font-size: .92rem; margin-bottom: 1.4em; }
.ph { color: var(--aqua); font-weight: 600; } /* visible placeholder marker */

/* ---------- Founder ---------- */
.founder { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 340px 1fr; gap: 56px; } }
.founder__portrait { position: relative; aspect-ratio: 1; max-width: 340px; display: grid; place-items: center; }
.founder__portrait svg { width: 100%; height: 100%; }
.founder__portrait figcaption { position: absolute; bottom: -8px; left: 50%; translate: -50% 0; font-size: .75rem; white-space: nowrap; }
blockquote.quote { margin: 24px 0 0; padding-left: 20px; border-left: 2px solid var(--cyan); font-size: 1.1rem; color: var(--white); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 6vw, 112px); background: linear-gradient(180deg, transparent, rgba(5, 14, 31, .9) 30%); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr .9fr .9fr 1.2fr; } }
.footer-logo img { width: 220px; height: auto; margin: -24px 0 8px -12px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .2em; margin-bottom: 18px; color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--white); }
.social a:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf__scepter { width: 120px; margin: 0 auto 12px; animation: nf-float 5s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(63, 224, 245, .45)); }
@keyframes nf-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
.nf .code { font: 800 clamp(4rem, 12vw, 8rem)/1 var(--font-head); letter-spacing: .08em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
