:root {
  --bg: #0b0d10;
  --surface: rgba(20, 23, 28, .82);
  --surface-2: #171a20;
  --border: rgba(255,255,255,.09);
  --text: #f5f7fa;
  --muted: #939ba8;
  --accent: #b8ff5a;
  --accent-2: #7fffd1;
  --danger: #ff7f87;
  --shadow: 0 22px 80px rgba(0,0,0,.38);
}
*{box-sizing:border-box}
html{color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh;overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:42px 42px;pointer-events:none;mask-image:linear-gradient(to bottom,black,transparent 82%)}
.bg-orb{position:fixed;border-radius:999px;filter:blur(110px);opacity:.13;pointer-events:none}
.bg-orb-1{width:420px;height:420px;background:var(--accent);top:-120px;right:-110px}.bg-orb-2{width:360px;height:360px;background:#4d72ff;bottom:-130px;left:-100px}
.shell{width:min(1280px,calc(100% - 36px));margin:0 auto;padding-bottom:56px;position:relative;z-index:1}
.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:12px;color:var(--text);font-weight:800;letter-spacing:.02em;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;overflow:hidden;background:#f5f5f3;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 8px 22px rgba(0,0,0,.28)}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.brand-name{font-size:16px;letter-spacing:.055em}
.pill{border:1px solid var(--border);background:rgba(255,255,255,.04);padding:8px 12px;border-radius:999px;color:#c8cdd5;font-size:12px;font-weight:600}
.hero{padding:92px 0 42px;max-width:900px}.eyebrow{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.16em;margin-bottom:17px}.hero h1{font-size:clamp(42px,7vw,78px);letter-spacing:-.055em;line-height:.98;margin:0;font-weight:800}.hero h1 span{color:#a9b0ba}.hero p{font-size:17px;line-height:1.65;color:var(--muted);max-width:760px;margin:26px 0 0}
.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.mode-tab{display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;gap:5px;padding:15px 17px;background:#111419;border:1px solid var(--border);border-radius:14px;color:#9ba3ae;text-align:left;cursor:pointer;font:inherit;transition:.18s ease}.mode-tab span{font-size:13px;font-weight:800;color:#d8dde4}.mode-tab small{font-size:11px;color:#747c87}.mode-tab b{display:inline-flex;margin-left:7px;padding:3px 6px;border-radius:999px;background:rgba(184,255,90,.1);border:1px solid rgba(184,255,90,.2);color:var(--accent);font-size:8px;letter-spacing:.08em;vertical-align:1px}.mode-tab:hover{background:#15191f;border-color:rgba(255,255,255,.14)}.mode-tab.active{background:linear-gradient(145deg,rgba(184,255,90,.07),#14171c);border-color:rgba(184,255,90,.32);box-shadow:0 0 0 3px rgba(184,255,90,.035)}.mode-tab.active span{color:#f1f5f8}
.mode-panel{position:relative}.analyzer{padding:18px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px;padding-bottom:15px;border-bottom:1px solid var(--border)}.panel-heading strong{display:block;font-size:14px;margin-bottom:5px}.panel-heading span:not(.scope-badge){display:block;color:var(--muted);font-size:11px;line-height:1.5}.scope-badge{flex:0 0 auto;padding:6px 8px;border:1px solid rgba(127,255,209,.18);background:rgba(127,255,209,.07);border-radius:999px;color:#adffe3;font-size:9px;font-weight:800;letter-spacing:.08em}.scope-badge.pro{border-color:rgba(184,255,90,.22);background:rgba(184,255,90,.08);color:var(--accent)}
.analyzer form{display:flex;gap:12px;align-items:end}.field{display:flex;flex-direction:column;gap:9px}.field.grow{flex:1}.limit-field{width:205px}label{font-size:11px;font-weight:700;color:#aab0b9;text-transform:uppercase;letter-spacing:.08em}.input-wrap{display:flex;align-items:center;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding-left:14px;height:50px}.prefix{color:#727a86;font-weight:700}input,select{font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:12px;outline:none;height:50px;padding:0 14px}input:focus,select:focus,.input-wrap:focus-within{border-color:rgba(184,255,90,.62);box-shadow:0 0 0 3px rgba(184,255,90,.08)}.input-wrap input{border:0!important;background:transparent;box-shadow:none!important;flex:1;padding-left:5px}.primary,.secondary{font:inherit;border:0;border-radius:12px;cursor:pointer;font-weight:800;transition:.18s ease}.primary{height:50px;padding:0 20px;background:var(--accent);color:#090b0d;display:flex;align-items:center;gap:28px}.primary:hover{transform:translateY(-1px);filter:brightness(1.04)}.primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.secondary{height:43px;padding:0 15px;background:#242830;color:#edf0f5;border:1px solid var(--border)}.secondary:hover{background:#2c313a}.secondary:disabled{opacity:.55;cursor:not-allowed}.hint{margin-top:12px;color:#757d89;font-size:12px;line-height:1.5}
.deep-panel{padding:18px}.deep-grid{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:12px}.deep-grid input,.deep-grid select{width:100%}.deep-explainer{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.deep-explainer>div{display:flex;gap:11px;align-items:flex-start;padding:13px;border-radius:13px;background:#111419;border:1px solid var(--border)}.deep-explainer>div>span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:rgba(184,255,90,.1);color:var(--accent);font-size:10px;font-weight:900;flex:0 0 auto}.deep-explainer p{margin:1px 0 0;color:#858d98;font-size:10px;line-height:1.55}.deep-explainer strong{color:#cdd3da}.deep-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:17px;padding-top:15px;border-top:1px solid var(--border)}.deep-footer p{margin:0;max-width:760px;color:#7f8792;font-size:11px;line-height:1.6}.deep-footer p strong{color:#bcc3cc}.deep-locked{white-space:nowrap}
.hidden{display:none!important}.status,.error{margin-top:18px;padding:18px 20px;display:flex;align-items:center;gap:15px}.status p,.error p{margin:4px 0 0;color:var(--muted);font-size:13px}.error{border-color:rgba(255,127,135,.25)}.error strong{color:var(--danger)}.status-logo{width:40px;height:40px;border-radius:11px;flex:0 0 auto;box-shadow:0 0 0 1px rgba(255,255,255,.08)}.status-logo-error{opacity:.72}.spinner{width:24px;height:24px;border-radius:50%;border:2px solid rgba(255,255,255,.12);border-top-color:var(--accent);animation:spin .8s linear infinite}.status .spinner{margin-left:auto}@keyframes spin{to{transform:rotate(360deg)}}
.results{margin-top:56px}.summary{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:30px}.account-summary{min-width:220px}.summary h2{font-size:31px;margin:0;letter-spacing:-.035em}.summary p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.summary-stats{display:flex;gap:12px}.summary-stats div{background:#111419;border:1px solid var(--border);border-radius:14px;padding:14px 18px;min-width:145px}.summary-stats span{display:block;color:var(--accent);font-size:22px;font-weight:800;letter-spacing:-.03em}.summary-stats small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-top:5px}.analytics-stats{display:grid;grid-template-columns:repeat(4,minmax(128px,1fr));flex:1;max-width:720px}.analytics-stats div{min-width:0}.analytics-stats .outlier-card{background:linear-gradient(145deg,rgba(184,255,90,.09),#111419)}
.demo-banner{margin:14px 0;padding:11px 14px;border-radius:12px;background:rgba(184,255,90,.09);border:1px solid rgba(184,255,90,.2);color:#cce9a9;font-size:12px}.demo-banner code{color:var(--accent)}
.insight-strip{margin-top:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:none}.insight-strip strong{display:block;font-size:12px;margin-bottom:4px}.insight-strip span{font-size:11px;color:var(--muted)}.legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.legend-item{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}.dot{width:7px;height:7px;border-radius:999px;display:inline-block}.dot-normal{background:#737b86}.dot-2x{background:var(--accent-2)}.dot-5x{background:var(--accent)}.dot-10x{background:#f0ff8a}
.toolbar{margin-top:14px;padding:14px;display:flex;gap:10px;align-items:end}.toolbar-group{display:flex;flex-direction:column;gap:7px}.toolbar-group select,.toolbar-group input{height:43px;min-width:165px}.search-group{flex:1}.search-group input{width:100%;min-width:150px}.toolbar .secondary{margin-left:auto;white-space:nowrap}.metric-note{font-size:11px;line-height:1.55;color:#777f8a;padding:13px 3px}
.table-card{overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:1240px}thead{background:#111419}th{font-size:10px;color:#7f8793;letter-spacing:.08em;text-transform:uppercase;text-align:left;padding:13px 12px;border-bottom:1px solid var(--border);white-space:nowrap}td{font-size:12px;padding:12px;border-bottom:1px solid rgba(255,255,255,.055);vertical-align:middle;color:#dfe3e9}tbody tr{transition:background .16s ease}tbody tr:hover{background:rgba(255,255,255,.024)}tbody tr:last-child td{border-bottom:0}.row-strong{background:linear-gradient(90deg,rgba(127,255,209,.035),transparent 28%)}.row-breakout{background:linear-gradient(90deg,rgba(184,255,90,.055),transparent 36%)}.row-extreme{background:linear-gradient(90deg,rgba(240,255,138,.085),transparent 42%)}
.num{text-align:right;font-variant-numeric:tabular-nums}.rank{font-weight:800;color:#737b86}.rank.top{color:var(--accent)}.content-cell{display:flex;gap:11px;align-items:center;width:290px}.thumb{width:58px;height:58px;border-radius:9px;object-fit:cover;background:#242830;flex:0 0 auto}.caption{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.subline{font-size:10px;color:#737b86;margin-top:5px}.type-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#21252c;border:1px solid var(--border);color:#abb2bc;font-size:10px}.engagement{font-weight:800}.er{color:var(--accent);font-weight:800}.open-link{display:inline-grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#22262d;border:1px solid var(--border);color:#dbe0e7;text-decoration:none;font-size:14px}.open-link:hover{border-color:#58606c}.na{color:#606873}.empty{padding:30px;text-align:center;color:var(--muted)}
.performance-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:128px}.performance-wrap small{font-size:9px;color:#686f79;white-space:nowrap}.performance-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap;border:1px solid transparent}.perf-na{color:#69717c;background:#1a1d22;border-color:rgba(255,255,255,.05)}.perf-below{color:#939ba8;background:#1b1e23;border-color:rgba(255,255,255,.06)}.perf-above{color:#cad0d8;background:#20242a;border-color:rgba(255,255,255,.08)}.perf-strong{color:#adffe3;background:rgba(127,255,209,.08);border-color:rgba(127,255,209,.18)}.perf-breakout{color:#d6ffa0;background:rgba(184,255,90,.09);border-color:rgba(184,255,90,.22)}.perf-extreme{color:#f2ff9e;background:rgba(240,255,138,.12);border-color:rgba(240,255,138,.28)}
footer{display:flex;justify-content:space-between;align-items:center;color:#555d68;font-size:11px;margin-top:28px;padding:15px 2px;border-top:1px solid var(--border)}.footer-brand{display:inline-flex;align-items:center;gap:9px;color:#727b87;text-decoration:none;font-weight:800;letter-spacing:.05em}.footer-brand img{width:28px;height:28px;border-radius:8px;display:block}.footer-brand:hover{color:#aab2bc}
@media(max-width:1050px){.summary{align-items:flex-start;flex-direction:column}.analytics-stats{width:100%;max-width:none}.toolbar{flex-wrap:wrap}.search-group{min-width:260px}.toolbar .secondary{margin-left:0}.deep-grid{grid-template-columns:1fr 1fr}.deep-grid .field:first-child{grid-column:1/-1}}
@media(max-width:760px){.shell{width:min(100% - 22px,1280px)}.topbar{height:68px}.brand-mark{width:38px;height:38px}.hero{padding:62px 0 30px}.hero p{font-size:15px}.mode-switch{grid-template-columns:1fr}.analyzer form{flex-direction:column;align-items:stretch}.limit-field{width:100%}.primary{justify-content:space-between}.panel-heading{flex-direction:column}.deep-grid{grid-template-columns:1fr}.deep-grid .field:first-child{grid-column:auto}.deep-explainer{grid-template-columns:1fr}.deep-footer{align-items:flex-start;flex-direction:column}.analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-stats div{min-width:0}.insight-strip{align-items:flex-start;flex-direction:column}.legend{justify-content:flex-start}.toolbar{align-items:stretch;flex-direction:column}.toolbar-group select,.toolbar-group input{width:100%}.toolbar .secondary{margin-left:0;width:100%}footer{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:430px){.analytics-stats{grid-template-columns:1fr}.summary-stats span{font-size:20px}}

/* Final RJNS brand lockup */
.brand{gap:0}.brand-mark{width:118px;height:38px;border-radius:0;overflow:visible;background:transparent;box-shadow:none}.brand-mark img{content:url('/assets/rjns-logo.svg');width:100%;height:100%;object-fit:contain}.brand-name{display:none}.footer-brand{gap:0}.footer-brand img{content:url('/assets/rjns-logo.svg');width:92px;height:auto;border-radius:0}.footer-brand span{display:none}.status-logo{object-fit:contain;background:#080808}@media(max-width:760px){.brand-mark{width:104px;height:34px}}
