/* NexDesk marketing site — light (white) by default, dark on demand, CSS-3D hero. Loaded after app.css. */
:root[data-theme="light"] body.site {
  --bg: #FFFFFF; --bg-2: #F5F8FF; --surface: #FFFFFF; --surface-2: #F3F6FE;
  --line: rgba(16, 32, 80, .09); --line-2: rgba(16, 32, 80, .16);
  --text: #0B1430; --muted: #4A5878; --faint: #8390B0;
  --shadow: 0 18px 50px -24px rgba(20, 40, 110, .35);
  --nav-bg: rgba(255, 255, 255, .78);
  --hero-a: rgba(47, 107, 255, .16); --hero-b: rgba(34, 211, 238, .16);
  --gridline: rgba(47, 107, 255, .10);
  --card-hi: rgba(255, 255, 255, .9);
}
:root[data-theme="dark"] body.site {
  --bg: #050A18; --bg-2: #08112A; --surface: #0D1733; --surface-2: #122045;
  --line: rgba(148, 178, 255, .12); --line-2: rgba(148, 178, 255, .22);
  --text: #EAF0FF; --muted: #93A3C8; --faint: #5D6B91;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --nav-bg: rgba(5, 10, 24, .72);
  --hero-a: rgba(47, 107, 255, .32); --hero-b: rgba(34, 211, 238, .2);
  --gridline: rgba(120, 160, 255, .10);
  --card-hi: rgba(20, 34, 72, .7);
}
body.site { background: var(--bg); color: var(--text); overflow-x: hidden; transition: background .3s, color .3s; }
body.site a:hover { text-decoration: none; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 2.5rem); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; padding: .6rem 1rem; background: var(--blue); color: #fff; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.site .btn { border-radius: 12px; }
.site .btn:not(.btn-primary):not(.btn-white):not(.btn-outline-white) { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.site .btn:not(.btn-primary):hover { border-color: var(--blue); }
.btn-white { background: #fff; color: #0B1430; border: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.site .pill { background: var(--surface); border-color: var(--line-2); color: var(--muted); box-shadow: 0 4px 18px -10px rgba(47, 107, 255, .5); }
.site :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nx-nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.nx-nav-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.nx-links { display: flex; align-items: center; gap: 1.6rem; margin-left: 1rem; }
.nx-links > a { color: var(--muted); font-weight: 500; font-size: .93rem; position: relative; }
.nx-links > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--grad); transition: right .25s; border-radius: 2px; }
.nx-links > a:hover { color: var(--text); }
.nx-links > a:hover::after { right: 0; }
.nx-links-cta { display: none; }
.nx-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.theme-btn, .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-btn:hover, .nav-toggle:hover { border-color: var(--blue); }
:root[data-theme="light"] .i-moon, :root[data-theme="dark"] .i-sun { display: inline-flex; }
:root[data-theme="light"] .i-sun, :root[data-theme="dark"] .i-moon { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero3d { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: -40% -20% 0; background-image: linear-gradient(var(--gridline) 1px, transparent 1px), linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(900px) rotateX(62deg) translateY(10%); transform-origin: center top;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.orb-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -8vw; top: -10vw; background: var(--hero-a); animation: drift 14s ease-in-out infinite alternate; }
.orb-b { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: -6vw; top: 8vw; background: var(--hero-b); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }
.hero3d-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -.04em; margin: 1.1rem 0 1.2rem; }
.hero3d .lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 56ch; margin-bottom: 1.8rem; }
.hero-sm .lead { margin-inline: auto; }
.hero-sm h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.035em; margin: 1rem auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .hero-cta { justify-content: center; }
.hero-trust { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .9rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .ic { color: var(--green); }

/* ---------- 3D scene ---------- */
.scene, .phone-showcase { position: relative; perspective: 1400px; height: 520px; }
.stage { --rx: 8deg; --ry: -18deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.floor { position: absolute; left: 6%; right: 2%; bottom: 40px; height: 120px; transform: rotateX(90deg) translateZ(-20px); background: radial-gradient(50% 50% at 50% 50%, rgba(47, 107, 255, .35), transparent 70%); filter: blur(8px); }
.dev { position: absolute; transform-style: preserve-3d; }
.monitor { left: 4%; top: 40px; width: 82%; aspect-ratio: 16 / 10; transform: translateZ(0); }
.monitor > .screen { position: absolute; inset: 0; border-radius: 16px; border: 10px solid #0B1124; overflow: hidden; background: #0A1430;
  box-shadow: 0 40px 80px -30px rgba(10, 30, 90, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.stand { position: absolute; left: 42%; right: 42%; top: 100%; height: 46px; background: linear-gradient(#1A2444, #0B1124); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.stand::after { content: ""; position: absolute; left: -60%; right: -60%; bottom: -6px; height: 8px; border-radius: 6px; background: #0B1124; }
.desk-wall { position: absolute; inset: 0; background: radial-gradient(80% 90% at 20% 10%, #2F6BFF 0%, transparent 55%), radial-gradient(70% 80% at 90% 90%, #22D3EE 0%, transparent 55%), linear-gradient(135deg, #0E1C46, #091230); opacity: .95; }
.win { position: absolute; border-radius: 9px; background: rgba(255, 255, 255, .95); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45); overflow: hidden; }
.win-a { left: 7%; top: 9%; width: 56%; height: 62%; }
.win-b { right: 6%; top: 22%; width: 34%; height: 44%; }
.win.sm { left: 8%; top: 12%; width: 84%; height: 50%; }
.win-bar { height: 16px; display: flex; gap: 4px; align-items: center; padding: 0 7px; background: #EEF2FB; }
.win-bar i { width: 6px; height: 6px; border-radius: 50%; background: #F2556B; } .win-bar i + i { background: #F5B83D; } .win-bar i + i + i { background: #22C55E; }
.win-body { padding: 9px; display: grid; gap: 6px; }
.win-body span { height: 6px; border-radius: 4px; background: #DCE4F5; }
.win-body span.short { width: 60%; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 4px; }
.chart b { flex: 1; border-radius: 3px 3px 0 0; background: var(--grad); animation: bars 2.6s ease-in-out infinite alternate; }
.chart b:nth-child(1) { height: 40%; } .chart b:nth-child(2) { height: 70%; animation-delay: .2s; } .chart b:nth-child(3) { height: 52%; animation-delay: .4s; }
.chart b:nth-child(4) { height: 88%; animation-delay: .6s; } .chart b:nth-child(5) { height: 62%; animation-delay: .8s; } .chart b:nth-child(6) { height: 95%; animation-delay: 1s; }
@keyframes bars { to { transform: scaleY(.7); transform-origin: bottom; } }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: rgba(8, 14, 34, .85); display: flex; gap: 6px; justify-content: center; align-items: center; }
.taskbar i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .45); } .taskbar i:first-child { background: var(--cyan); }
.cursor { position: absolute; width: 16px; height: 22px; left: 40%; top: 46%; background: #fff; clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 58% 94%, 40% 56%, 74% 56%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); animation: cursor 6s ease-in-out infinite; }
@keyframes cursor { 0%, 100% { left: 40%; top: 46%; } 30% { left: 62%; top: 30%; } 55% { left: 70%; top: 56%; } 80% { left: 30%; top: 60%; } }
.nx-pill-mini { position: absolute; right: 8px; bottom: 26px; padding: 3px 9px; border-radius: 999px; font: 700 9px var(--font); color: #fff; background: #2F6BFF; box-shadow: 0 6px 16px -6px rgba(47, 107, 255, .9); }
.phone { width: 150px; aspect-ratio: 9 / 19; right: 0; top: 150px; transform: translateZ(140px) rotateY(-6deg); border-radius: 26px; background: #0B1124; padding: 7px;
  box-shadow: 0 40px 70px -24px rgba(10, 30, 90, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.phone > .screen { position: relative; height: 100%; border-radius: 20px; overflow: hidden; }
.notch { position: absolute; z-index: 2; top: 11px; left: 50%; width: 46px; height: 12px; transform: translateX(-50%); border-radius: 10px; background: #0B1124; }
.tap { position: absolute; left: 46%; top: 36%; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; animation: tap 2.2s ease-out infinite; }
@keyframes tap { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.beam { position: absolute; right: 120px; top: 260px; width: 180px; height: 3px; transform: translateZ(70px) rotate(-12deg); background: linear-gradient(90deg, transparent, #22D3EE, #2F6BFF, transparent);
  background-size: 200% 100%; animation: beam 1.6s linear infinite; border-radius: 3px; filter: drop-shadow(0 0 6px #22D3EE); }
@keyframes beam { to { background-position: -200% 0; } }
.chip { position: absolute; transform-style: preserve-3d; }
.chip-in { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .55rem .85rem; border-radius: 12px; font-size: .8rem; font-weight: 600; color: var(--text);
  background: var(--card-hi); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.chip-in .ic { color: var(--blue); }
.chip-a { left: -2%; top: 10px; transform: translateZ(110px); } .chip-b { right: 4%; top: 0; transform: translateZ(80px); } .chip-b .chip-in { animation-delay: -2s; }
.chip-c { left: 0; bottom: 70px; transform: translateZ(160px); } .chip-c .chip-in { animation-delay: -4s; }
.chip-d { left: 36%; bottom: 26px; transform: translateZ(60px); } .chip-d .chip-in { animation-delay: -1s; font-size: .76rem; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: -1rem; position: relative; }
.stats > div { background: var(--surface); padding: 1.4rem 1rem; text-align: center; }
.stats b { display: block; font: 700 clamp(1.5rem, 3vw, 2.1rem) var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .88rem; }

/* ---------- Sections ---------- */
.sec { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.sec-alt { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; margin: .7rem 0 .9rem; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }
.kicker { display: inline-block; font: 700 .72rem var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); padding: .35rem .8rem; border-radius: 999px; background: rgba(47, 107, 255, .1); }
:root[data-theme="dark"] .kicker { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.kicker.light { color: #fff; background: rgba(255, 255, 255, .15); }

/* Feature cards with 3D tilt */
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.f-card { --tx: 0deg; --ty: 0deg; position: relative; padding: 1.7rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .25s ease, border-color .25s, box-shadow .25s; transform-style: preserve-3d; }
.f-card:hover { border-color: rgba(47, 107, 255, .45); box-shadow: 0 28px 60px -28px rgba(47, 107, 255, .55); }
.f-card h3 { font-size: 1.15rem; margin: 1.1rem 0 .5rem; transform: translateZ(30px); }
.f-card p { color: var(--muted); margin: 0; transform: translateZ(18px); }
.f-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--grad); box-shadow: 0 14px 28px -12px rgba(47, 107, 255, .8); transform: translateZ(44px); }

/* Steps */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.steps3 li { position: relative; padding: 1.8rem 1.6rem 1.6rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps3 .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 700 1.2rem var(--display); color: var(--blue); background: rgba(47, 107, 255, .1); border: 1px solid rgba(47, 107, 255, .25); margin-bottom: 1rem; }
.steps3 h3 { font-size: 1.12rem; }
.steps3 p { color: var(--muted); margin: 0; }

/* Split / phone */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; margin: .8rem 0 1rem; }
.split-copy > p { color: var(--muted); font-size: 1.06rem; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; }
.ticks .ic { flex: none; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.phone-showcase .stage { --rx: 6deg; --ry: 18deg; }
.phone.big { width: 230px; left: 50%; top: 10px; right: auto; margin-left: -115px; transform: translateZ(40px); }
.phone.big .win-a { left: 6%; top: 10%; width: 88%; height: 46%; }
.kbd { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: rgba(230, 236, 250, .96); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px; }
.kbd i { border-radius: 5px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.chip-e { left: 4%; top: 120px; transform: translateZ(120px); } .chip-f { right: 10%; top: 300px; transform: translateZ(150px); } .chip-f .chip-in { animation-delay: -3s; }

/* Security (always dark panel for contrast) */
.sec-dark { background: radial-gradient(60% 80% at 15% 0%, rgba(47, 107, 255, .35), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(34, 211, 238, .22), transparent 60%), #060C1F; color: #EAF0FF; }
.sec-dark .sec-head p { color: #A9B6D8; }
.sec-dark .kicker { color: var(--cyan); background: rgba(34, 211, 238, .12); }
.s-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.s-card { padding: 1.6rem; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 178, 255, .16); backdrop-filter: blur(6px); transition: transform .25s, border-color .25s; }
.s-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .5); }
.s-card .ic { color: var(--cyan); }
.s-card h3 { margin: 1rem 0 .5rem; font-size: 1.08rem; color: #fff; }
.s-card p { margin: 0; color: #A9B6D8; font-size: .94rem; }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s; }
.faq details[open] { border-color: rgba(47, 107, 255, .4); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font: 600 1.02rem var(--font); }
.faq summary .ic { flex: none; color: var(--muted); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--blue); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* CTA */
.cta3d { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #1D4FE0 0%, #2F6BFF 45%, #18B9DB 100%); box-shadow: 0 40px 80px -40px rgba(47, 107, 255, .8); }
.cta3d h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.03em; margin: 1rem auto .8rem; max-width: 22ch; color: #fff; }
.cta3d p { color: rgba(255, 255, 255, .85); font-size: 1.06rem; margin-bottom: 1.8rem; }
.cta3d .hero-cta { justify-content: center; }
.cta3d-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .25), transparent 30%); animation: spin 10s linear infinite; }
.cta3d > *:not(.cta3d-glow) { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Download notes */
.dl-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.dl-notes > div { display: flex; gap: .8rem; padding: 1.2rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.dl-notes .ic { flex: none; color: var(--blue); margin-top: 2px; }
.dl-notes p { margin: 0; color: var(--muted); font-size: .93rem; }
.dl-notes b { color: var(--text); }

/* Footer */
.nx-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3.5rem 0 1.5rem; }
.nx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.nx-footer h4 { font: 700 .78rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: .4rem 0 1rem; }
.nx-footer nav { display: grid; gap: .6rem; align-content: start; }
.nx-footer nav a { color: var(--muted); font-size: .93rem; }
.nx-footer nav a:hover { color: var(--blue); }
.nx-footer-brand p { margin-top: .8rem; max-width: 34ch; }
.nx-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }

/* Auth pages in light theme */
:root[data-theme="light"] body.site-auth { --bg: #F5F8FF; }
body.site-auth .auth-art { color: #EAF0FF; background: #060C1F; }
body.site-auth .auth-art p { color: #A9B6D8; }
body.site-auth .auth-art .brand, body.site-auth .auth-art h2 { color: #fff; }

/* Scroll reveal (only when JS is running, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .f-grid .reveal:nth-child(3n+2), .js .steps3 .reveal:nth-child(2), .js .s-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .f-grid .reveal:nth-child(3n), .js .steps3 .reveal:nth-child(3), .js .s-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .s-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .s-grid { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nx-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem 1.25rem 1.25rem;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; }
  .nx-links.open { transform: none; visibility: visible; }
  .nx-links > a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nx-links > a::after { display: none; }
  .nx-links-cta { display: flex; gap: .6rem; margin-top: 1rem; } .nx-links-cta .btn { flex: 1; }
  .nav-toggle { display: inline-grid; }
  .hide-sm { display: none; }
  .hero3d-in { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-cta, .hero-trust { justify-content: center; }
  .hero3d .lead { margin-inline: auto; }
  .scene { height: 420px; max-width: 620px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split-copy { text-align: center; } .ticks { justify-items: center; text-align: left; }
  .steps3, .dl-notes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
  .nx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap, .wrap.narrow { width: calc(100% - 2rem); }
  .f-grid, .s-grid { grid-template-columns: 1fr; }
  .scene { height: 330px; }
  .monitor { width: 88%; left: 0; top: 30px; }
  .monitor > .screen { border-width: 6px; border-radius: 12px; }
  .phone { width: 96px; top: 110px; border-radius: 18px; padding: 5px; } .phone > .screen { border-radius: 14px; } .notch { width: 30px; height: 8px; top: 8px; }
  .beam { display: none; }
  .chip-in { font-size: .7rem; padding: .4rem .6rem; }
  .chip-a { left: 6%; } .chip-c { left: 14%; bottom: 36px; } .chip-d { display: none; } .chip-e { left: 0; } .chip-f { right: 4%; }
  .phone-showcase { height: 470px; }
  .phone.big { width: 200px; margin-left: -100px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .nx-actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .chart b, .cursor, .tap, .beam, .chip-in, .cta3d-glow { animation: none !important; }
  .stage, .f-card, .js .reveal { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
