/* NightGuard — Compact Homepage v2. Scoped to the public page; dashboard CSS untouched. */
:root { color-scheme:dark; }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:92px; }
body.ngh-page { --ng-bg:#090c13; --ng-surface:#101624; --ng-text:#f0f3ff; --ng-muted:#9faabe; --ng-line:rgba(166,187,227,.16); --ng-accent:#94a5ff; margin:0; min-width:320px; background:var(--ng-bg); color:var(--ng-text); font:15px/1.5 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
.ngh-page a { text-decoration:none; color:inherit; }
.ngh-page button { font:inherit; }
.ngh-page button,.ngh-page a { -webkit-tap-highlight-color:transparent; }
.ngh-page :focus-visible { outline:2px solid #c4d0ff; outline-offset:4px; }
.ngh-page img { display:block; max-width:100%; }
.ngh-page [hidden] { display:none!important; }
.ngh-shell { width:min(1220px,calc(100% - 70px)); margin-inline:auto; }
.ngh-skip { position:fixed; left:18px; top:-100px; z-index:100; background:#e3e9ff; color:#070d18!important; padding:12px 16px; border-radius:8px; }
.ngh-skip:focus { top:12px; }
.ngh-scroll-sentinel { height:1px; margin-bottom:-1px; }
/* Header: no sticky blur filter or expensive paint effects */
.ngh-header { position:sticky; top:0; z-index:50; background:rgba(9,12,19,.96); border-bottom:1px solid transparent; transition:border-color .2s,background-color .2s; }
.ngh-header.is-scrolled,.ngh-header.is-open { border-color:var(--ng-line); background:#0b101a; }
.ngh-header-inner { display:flex; gap:30px; align-items:center; justify-content:space-between; min-height:74px; }
.ngh-brand { display:flex; align-items:center; gap:11px; font-size:20px; font-weight:770; letter-spacing:-.065em; white-space:nowrap; }
.ngh-brand img { width:36px; height:36px; border-radius:10px; object-fit:cover; }
.ngh-brand-mark { color:#91a6ff; }
.ngh-desktop-nav { display:flex; gap:27px; align-items:center; }
.ngh-desktop-nav a { color:#aab5c8; font-weight:600; font-size:12px; transition:color .18s; }
.ngh-desktop-nav a:hover,.ngh-dashboard-link:hover { color:#fff; }
.ngh-header-actions { display:flex; align-items:center; gap:22px; }
.ngh-dashboard-link { font-size:12px; font-weight:650; color:#c5d0e8!important; }
.ngh-button { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:25px; border-radius:9px; padding:0 19px; font-size:13px; font-weight:750; white-space:nowrap; border:1px solid transparent; transition:transform .18s ease,background-color .18s ease,border-color .18s ease; }
.ngh-button:hover { transform:translateY(-2px); }
.ngh-button:active { transform:translateY(0); }
.ngh-button-primary { color:#0b1130!important; background:#9eaeff; box-shadow:0 5px 26px rgba(117,145,255,.14); }
.ngh-button-primary:hover { background:#b5c1ff; }
.ngh-button-quiet { color:#e3eaff!important; background:#151c2c; border-color:#354157; }
.ngh-button-quiet:hover { background:#1c273d; border-color:#5d7098; }
.ngh-button-small { min-height:35px; padding:0 13px; font-size:11px; gap:14px; border-radius:6px; }
.ngh-menu-button { display:none; }
.ngh-mobile-nav { display:none; }
/* Hero */
.ngh-hero { position:relative; isolation:isolate; overflow:hidden; border-bottom:1px solid var(--ng-line); background:radial-gradient(ellipse 58% 80% at 78% 52%,#19223c 0%,#101729 40%,transparent 78%), #090c13; }
.ngh-hero-lines { position:absolute; pointer-events:none; z-index:-1; inset:0; opacity:.45; background-image:linear-gradient(90deg,transparent 0 49.95%,rgba(102,130,196,.13) 50%,transparent 50.05%),linear-gradient(rgba(136,160,224,.04) 1px,transparent 1px); background-size:210px 100%,100% 84px; mask-image:linear-gradient(90deg,transparent 5%,#000 64%,transparent 100%); }
.ngh-hero-layout { min-height:min(690px,calc(100svh - 74px)); display:grid; grid-template-columns:.91fr 1.09fr; align-items:center; gap:42px; padding-top:62px; padding-bottom:62px; }
.ngh-hero-copy { position:relative; z-index:2; animation:ngh-rise .58s both cubic-bezier(.2,.75,.3,1); }
.ngh-eyebrow { display:flex; align-items:center; gap:13px; font-size:11px; font-weight:700; letter-spacing:.095em; color:#a8bbeb; }
.ngh-eyebrow-dash { width:19px; height:2px; background:#819eff; }
.ngh-hero h1 { margin:25px 0 21px; font-weight:710; letter-spacing:-.073em; font-size:clamp(57px,5.45vw,84px); line-height:1.04; white-space:nowrap; }
.ngh-hero h1 span { color:#9cafff; }
.ngh-lede { max-width:470px; margin:0; color:#b6c0d5; line-height:1.72; font-size:16px; }
.ngh-hero-cta { display:flex; flex-wrap:wrap; gap:10px; margin-top:27px; }
.ngh-hero-proof { display:flex; gap:0; border-top:1px solid rgba(188,201,249,.14); margin-top:53px; padding-top:22px; }
.ngh-hero-proof>div { display:flex; flex-direction:column; gap:2px; padding-right:40px; }
.ngh-hero-proof>div+div { padding-left:40px; border-left:1px solid rgba(190,203,242,.18); }
.ngh-hero-proof strong { color:#f5f6ff; font-size:26px; font-weight:720; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.ngh-hero-proof span { color:#929fba; font-size:11px; }
.ngh-hero-proof abbr { text-decoration:none; cursor:help; }
.ngh-hero-art { position:relative; min-width:0; padding:20px 0 20px 18px; animation:ngh-rise .75s .09s both cubic-bezier(.2,.75,.3,1); }
.ngh-orbit { position:absolute; border:1px solid rgba(139,160,231,.11); width:580px; height:580px; border-radius:50%; right:-130px; top:50%; transform:translateY(-50%); pointer-events:none; }
.ngh-orbit:before { content:''; position:absolute; inset:52px; border:1px solid rgba(139,160,231,.09); border-radius:50%; }
.ngh-hero-logo { position:absolute; z-index:0; width:150px; height:245px; top:-38px; right:-14px; overflow:hidden; border:1px solid #35456e; transform:rotate(8deg); border-radius:14px; box-shadow:0 20px 80px rgba(2,5,13,.5); }
.ngh-hero-logo img { width:100%; height:100%; object-fit:cover; }
.ngh-screen { background:#080d18; border:1px solid #364663; border-radius:10px; overflow:hidden; box-shadow:0 22px 55px rgba(1,4,12,.52); }
.ngh-hero-screen { position:relative; z-index:1; margin:57px 0 0; transform:perspective(1300px) rotateY(-5deg); transform-origin:center; }
.ngh-screen-top { display:flex; align-items:center; gap:14px; justify-content:space-between; height:34px; padding:0 15px; color:#73829f; font-size:10px; border-bottom:1px solid #253147; background:#121b2d; white-space:nowrap; }
.ngh-window-controls { display:inline-flex; gap:4px; }
.ngh-window-controls i { display:block; width:6px; height:6px; border-radius:50%; background:#68839e; }
.ngh-window-controls i:first-child { background:#d78878; }
.ngh-window-controls i:nth-child(2) { background:#debf7d; }
.ngh-window-controls i:nth-child(3) { background:#74ac99; }
.ngh-screen img { width:100%; height:auto; }
.ngh-hero-art-caption { display:flex; align-items:center; gap:9px; margin:19px 0 0 8px; color:#8796ba; font-size:11px; }
.ngh-hero-art-dot { width:7px; height:7px; border-radius:50%; background:#91a9f6; }
/* Main product area */
.ngh-platform { background:#0c111c; padding:92px 0 72px; }
.ngh-platform-title { display:flex; justify-content:space-between; gap:48px; align-items:end; margin-bottom:35px; }
.ngh-overline { margin:0 0 15px; color:#9db1ef; font-size:11px; font-weight:720; letter-spacing:.06em; }
.ngh-platform-title h2 { margin:0; font-size:clamp(34px,3.6vw,55px); font-weight:680; letter-spacing:-.065em; line-height:1.12; }
.ngh-platform-title h2 span { color:#9cafff; }
.ngh-platform-title>p { max-width:265px; margin:0 0 4px; color:#9ba8c0; line-height:1.7; font-size:13px; }
.ngh-feature-app { border:1px solid #303c56; border-radius:15px; overflow:hidden; background:#111828; box-shadow:0 20px 65px rgba(0,0,0,.2); }
.ngh-feature-nav { display:flex; gap:0; border-bottom:1px solid #2a3650; padding:0 12px; }
.ngh-feature-nav button { display:flex; align-items:center; justify-content:center; gap:9px; min-height:64px; flex:1 1 0; background:transparent; border:0; border-bottom:2px solid transparent; padding:0 9px; cursor:pointer; color:#91a0bf; font-weight:680; font-size:13px; transition:background-color .2s,color .2s,border-color .2s; }
.ngh-feature-nav button[aria-selected="true"] { color:#eaf0ff; background:rgba(103,131,235,.09); border-bottom-color:#9aacff; }
.ngh-feature-nav button:hover { color:#fff; background:rgba(105,137,213,.08); }
.ngh-tab-symbol { font-size:20px; font-weight:450; color:#98aaf0; }
.ngh-feature-panel { display:grid; grid-template-columns:.7fr 1.3fr; gap:22px; align-items:center; min-height:410px; padding:36px 28px 36px 42px; }
.ngh-panel-copy { min-width:0; align-self:center; }
.ngh-panel-label { color:#9baef3; font-weight:760; font-size:11px; }
.ngh-panel-copy h3 { margin:13px 0 14px; font-size:clamp(28px,2.65vw,42px); font-weight:660; letter-spacing:-.058em; line-height:1.14; }
.ngh-panel-copy>p { margin:0; max-width:335px; color:#a8b4cc; font-size:13px; line-height:1.72; }
.ngh-panel-copy ul { display:grid; gap:8px; list-style:none; padding:0; margin:22px 0 25px; }
.ngh-panel-copy li { color:#d3dbef; font-size:12px; }
.ngh-panel-copy li::before { content:''; display:inline-block; width:6px; height:6px; margin-right:11px; border:1px solid #9eb4ff; border-radius:2px; vertical-align:middle; }
.ngh-panel-link { display:inline-flex; gap:12px; align-items:center; color:#b8c7ff!important; font-size:12px; font-weight:750; border-bottom:1px solid #647ab6; padding-bottom:7px; }
.ngh-panel-link:hover { color:#fff!important; }
.ngh-panel-visual { min-width:0; align-self:center; }
.ngh-panel-visual .ngh-screen { box-shadow:0 20px 47px rgba(2,3,10,.34); }
.ngh-panel-visual .ngh-screen-top { height:30px; }
.ngh-panel-visual img { max-height:335px; object-fit:contain; object-position:top; background:#060b12; }
.ngh-more-tools { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:24px 0 0; }
.ngh-more-tools>span { font-size:11px; color:#8b9dbf; font-weight:750; white-space:nowrap; }
.ngh-more-tools>div { display:flex; flex-wrap:wrap; gap:9px; }
.ngh-more-tools>div span { padding:6px 10px; border:1px solid rgba(144,167,219,.19); border-radius:5px; font-size:11px; color:#aab8d2; }
/* Finale in one concise panel — no standalone reliability redesign. */
.ngh-outro { border-top:1px solid #273653; border-bottom:1px solid #23314b; background:linear-gradient(117deg,#151d31,#0b1120 75%); }
.ngh-outro-inner { text-align:center; padding:80px 0 85px; }
.ngh-outro-wordmark { display:flex; align-items:center; gap:13px; justify-content:center; color:#b0bee0; font-size:12px; font-weight:600; }
.ngh-outro-wordmark img { width:36px; height:36px; border-radius:9px; }
.ngh-outro h2 { font-size:clamp(45px,5vw,72px); line-height:1.05; font-weight:660; letter-spacing:-.075em; margin:23px 0 16px; }
.ngh-outro h2 span { color:#9eafff; }
.ngh-outro p { font-size:15px; color:#a4b1cc; margin:0 auto; max-width:510px; line-height:1.65; }
.ngh-outro-cta { display:flex; justify-content:center; gap:11px; margin-top:24px; }
.ngh-status-link { display:inline-flex; gap:12px; color:#90a6d9!important; font-size:12px; margin-top:28px; border-bottom:1px solid #5d6f9e; padding-bottom:4px; }
.ngh-status-link:hover { color:#fff!important; }
.ngh-footer { background:#090c13; padding:32px 0; }
.ngh-footer-inner { display:flex; align-items:center; gap:30px; justify-content:space-between; }
.ngh-footer-brand { font-size:17px; font-weight:750; letter-spacing:-.055em; }
.ngh-footer-brand span { color:#94a8ff; }
.ngh-footer p { color:#8594ad; margin:4px 0 0; font-size:11px; }
.ngh-footer p a { color:#a9b9dc; }
.ngh-footer-links { display:flex; align-items:center; flex-wrap:wrap; gap:18px; }
.ngh-footer-links a { font-size:11px; color:#9cabc4; }
.ngh-footer-links a:hover { color:#fff; }
.ngh-footer small { color:#7888a4; font-size:11px; white-space:nowrap; }
.ngh-noscript { text-align:center; padding:10px; color:#b9c7ed; font-size:12px; }
/* Motion is fire-and-forget, short, and transform-only. Content never starts hidden. */
@keyframes ngh-rise { from { opacity:.12; transform:translate3d(0,16px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.ngh-reveal { transition:opacity .5s ease,transform .5s cubic-bezier(.2,.75,.3,1); }
.ngh-reveal.is-visible { animation:ngh-rise .52s both cubic-bezier(.2,.75,.3,1); }
.ngh-feature-panel.is-active { animation:ngh-rise .23s both ease-out; }
@media (max-width:1180px) {
 .ngh-shell { width:min(1160px,calc(100% - 56px)); }
 .ngh-desktop-nav { gap:17px; }
 .ngh-header-actions { gap:14px; }
 .ngh-hero h1 { font-size:clamp(53px,5.8vw,75px); }
 .ngh-hero-layout { gap:24px; }
 .ngh-panel-copy h3 { font-size:clamp(27px,2.8vw,38px); }
}
@media (max-width:980px) {
 .ngh-desktop-nav,.ngh-header-actions { display:none; }
 .ngh-header-inner { min-height:67px; }
 .ngh-menu-button { margin-left:auto; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:6px; background:#172034; border:1px solid #324362; border-radius:8px; width:43px; height:42px; cursor:pointer; }
 .ngh-menu-button span { width:19px; height:2px; background:#cfddfc; transition:transform .2s; }
 .ngh-header.is-open .ngh-menu-button span:first-child { transform:translateY(4px) rotate(45deg); }
 .ngh-header.is-open .ngh-menu-button span:last-child { transform:translateY(-4px) rotate(-45deg); }
 .ngh-mobile-nav { position:absolute; top:100%; left:0; right:0; display:flex; flex-direction:column; padding:8px 30px 22px; background:#0d1524; border-bottom:1px solid #3b4b68; visibility:hidden; opacity:0; pointer-events:none; transform:translateY(-6px); transition:opacity .2s,transform .2s,visibility .2s; }
 .ngh-header.is-open .ngh-mobile-nav { visibility:visible; opacity:1; pointer-events:auto; transform:translateY(0); }
 .ngh-mobile-nav a { padding:11px; color:#dae3fa; border-bottom:1px solid var(--ng-line); }
 .ngh-mobile-nav a:last-child { margin-top:13px; background:#99aaff; color:#0a122a; border:0; font-weight:730; border-radius:7px; text-align:center; }
 .ngh-hero-layout { grid-template-columns:1fr; min-height:auto; gap:20px; padding:78px 0 62px; }
 .ngh-hero h1 { font-size:clamp(58px,8vw,92px); }
 .ngh-hero-art { width:min(720px,100%); margin:20px auto 0; }
 .ngh-hero-screen { margin-top:32px; }
 .ngh-hero-logo { width:124px; height:210px; right:-9px; }
 .ngh-feature-panel { grid-template-columns:1fr; }
 .ngh-platform-title { align-items:start; }
 .ngh-feature-panel { padding:32px; }
 .ngh-panel-copy>p { max-width:600px; }
 .ngh-panel-visual img { max-height:430px; }
 .ngh-more-tools { align-items:start; flex-direction:column; }
 .ngh-footer-inner { align-items:flex-start; flex-wrap:wrap; }
}
@media (max-width:610px) {
 html { scroll-padding-top:72px; }
 .ngh-shell { width:calc(100% - 38px); }
 .ngh-brand { font-size:19px; }
 .ngh-hero-layout { padding:56px 0 48px; }
 .ngh-hero h1 { font-size:clamp(47px,10vw,64px); white-space:normal; margin:23px 0 16px; }
 .ngh-lede { font-size:14px; }
 .ngh-hero-cta { flex-wrap:wrap; gap:9px; }
 .ngh-button { flex:1; gap:10px; padding:0 14px; font-size:12px; }
 .ngh-hero-proof { margin-top:32px; }
 .ngh-hero-proof>div { padding-right:21px; }
 .ngh-hero-proof>div+div { padding-left:21px; }
 .ngh-hero-proof strong { font-size:22px; }
 .ngh-hero-art { padding:8px 0; }
 .ngh-hero-logo { width:83px; height:138px; top:-17px; right:0; border-radius:8px; }
 .ngh-hero-screen { transform:none; margin:24px 11px 0 0; }
 .ngh-orbit { display:none; }
 .ngh-screen-top { height:26px; padding:0 10px; font-size:8px; }
 .ngh-screen-domain { display:none; }
 .ngh-hero-art-caption { font-size:10px; }
 .ngh-platform { padding:57px 0 50px; }
 .ngh-platform-title { gap:12px; flex-direction:column; margin-bottom:24px; }
 .ngh-platform-title h2 { font-size:clamp(31px,7.7vw,46px); }
 .ngh-platform-title>p { max-width:450px; }
 .ngh-feature-app { border-radius:10px; }
 .ngh-feature-nav { flex-wrap:wrap; padding:0 5px; }
 .ngh-feature-nav button { flex:1 1 50%; min-height:53px; font-size:12px; }
 .ngh-tab-symbol { font-size:17px; }
 .ngh-feature-panel { padding:24px 19px; gap:28px; min-height:0; }
 .ngh-panel-copy h3 { font-size:32px; }
 .ngh-panel-copy ul { margin:18px 0 20px; }
 .ngh-panel-visual .ngh-screen-top { height:27px; }
 .ngh-panel-visual img { max-height:290px; }
 .ngh-more-tools { gap:13px; }
 .ngh-more-tools>div { gap:6px; }
 .ngh-more-tools>div span { font-size:10px; }
 .ngh-outro-inner { padding:61px 0 66px; }
 .ngh-outro h2 { font-size:clamp(46px,10vw,65px); }
 .ngh-outro-wordmark { font-size:11px; }
 .ngh-outro p { font-size:13px; }
 .ngh-outro-cta { flex-wrap:wrap; }
 .ngh-footer { padding:29px 0; }
 .ngh-footer-inner { gap:18px; }
 .ngh-footer-links { order:3; width:100%; gap:16px; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 .ngh-page *, .ngh-page *::before,.ngh-page *::after { animation:none!important; transition:none!important; }
}
