:root {
  --paper: #080a10;
  --paper-deep: #0d1019;
  --ink: #f3f4f8;
  --muted: #8d92a3;
  --faint: #626879;
  --line: #222634;
  --line-dark: #34394a;
  --red: #bb62ff;
  --blue: #69e8ff;
  --yellow: #9a77ff;
  --x-violet: #8b6cff;
  --x-magenta: #d85cff;
  --x-cyan: #61e6ff;
  --x-green: #81f6c2;
  --utility: 74px;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Space Grotesk", Arial, sans-serif; }
body::before { opacity: .24; 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: 64px 64px; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--x-cyan); outline-offset: 2px; }
::selection { background: var(--x-violet); color: #fff; }
::-webkit-scrollbar-track { background: #090b11; }
::-webkit-scrollbar-thumb { background: #34394a; }

/* App shell */
.app-shell { display: block; height: 100dvh; }
.workspace { height: 100%; grid-template-rows: var(--utility) minmax(0, 1fr); background: transparent; }
.topbar { z-index: 100; gap: 16px; padding: 0 24px; border-color: rgba(255,255,255,.09); background: rgba(8,10,16,.88); backdrop-filter: blur(22px); }
.app-brand { min-width: 130px; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.logo-mark { width: 34px; height: 34px; border: 0; border-radius: 9px; }
.app-brand span, .xscan-brand span { display: flex; align-items: baseline; color: #fff; font-size: 19px; letter-spacing: -.05em; }
.app-brand b, .xscan-brand b { font-weight: 600; }
.app-brand i, .xscan-brand i { color: var(--x-cyan); font-size: .66em; font-style: normal; }
.workspace-menu-wrap { position: relative; }
.workspace-menu-button { min-width: 194px; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.workspace-menu-button:hover, .workspace-menu-button[aria-expanded="true"] { border-color: #4d5368; background: rgba(255,255,255,.055); }
.workspace-menu-button span { display: grid; gap: 2px; }
.workspace-menu-button small { color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.workspace-menu-button b { font-size: 11px; font-weight: 500; }
.workspace-menu-button svg { width: 14px; transition: transform .2s; }
.workspace-menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.workspace-menu { position: absolute; top: calc(100% + 10px); left: 0; width: 430px; padding: 8px; border: 1px solid #303548; border-radius: 14px; background: rgba(12,14,23,.98); box-shadow: 0 24px 70px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(20px); }
.workspace-menu[hidden] { display: none; }
.workspace-menu-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--faint); font: 500 8px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.workspace-menu-head code { color: var(--x-cyan); }
.workspace-menu .nav-item { min-height: 68px; grid-template-columns: 24px minmax(0,1fr) auto; gap: 12px; padding: 10px 12px; border: 0; border-radius: 9px; color: var(--muted); }
.workspace-menu .nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.workspace-menu .nav-item.active { background: linear-gradient(100deg, rgba(119,92,255,.2), rgba(97,230,255,.05)); color: #fff; }
.workspace-menu .nav-item.active::after { display: none; }
.workspace-menu .nav-item > span:nth-child(2) { display: grid; gap: 3px; }
.workspace-menu .nav-item b { font-size: 12px; font-weight: 500; }
.workspace-menu .nav-item small { color: var(--faint); font-size: 9px; }
.workspace-menu .nav-item i { color: #565d72; font-style: normal; }
.menu-index { color: var(--x-cyan); font: 500 8px "IBM Plex Mono", monospace; }
.nav-count { border-radius: 5px; background: var(--x-violet); color: #fff; }
.global-search { width: min(560px, 40vw); height: 44px; grid-template-columns: 17px minmax(0,1fr) auto; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.global-search::before { display: none; }
.global-search input { font-family: "Space Grotesk", sans-serif; font-size: 11px; }
kbd { border-color: #353a49; border-radius: 4px; background: #141721; color: var(--faint); }
.search-results { top: calc(100% + 9px); left: 0; border: 1px solid #303548; border-radius: 12px; background: #0d1018; box-shadow: 0 25px 70px rgba(0,0,0,.58); }
.search-result { border-color: var(--line); }
.search-result:hover { background: rgba(119,92,255,.14); }
.search-fallback { border-radius: 8px; background: var(--x-violet); }
.search-result code { color: var(--x-cyan); }
.topbar-actions { align-items: center; }
.topbar .socket-state { min-height: auto; padding: 0 9px; border: 0; }
.socket-state i, .socket-state.online i { background: #6d7180; box-shadow: 0 0 0 4px rgba(109,113,128,.1); }
.socket-state.online i { background: var(--x-green); box-shadow: 0 0 0 4px rgba(129,246,194,.09); }
.icon-button { border-color: var(--line); border-radius: 10px; }
.icon-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.account-button { width: auto; min-width: 44px; min-height: 44px; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 10px; }
.account-button:hover { background: rgba(255,255,255,.06); }
.account-avatar { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--x-cyan), var(--x-violet)); color: #090b11; font: 600 12px "Space Grotesk", sans-serif; }
.account-button strong { font-size: 10px; }
.account-button small { color: var(--faint); font-size: 8px; }
.content { padding: 48px clamp(24px,4.5vw,76px) 80px; }

/* Authenticated data surfaces */
.page-head { min-height: 190px; margin-bottom: 28px; padding: 20px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head::before { top: 0; content: "XSCAN / " attr(data-page-index); color: var(--x-cyan); }
.page-head::after { right: 0; bottom: 4px; color: var(--x-violet); font: 600 72px/.8 "Space Grotesk", sans-serif; opacity: .08; }
.page-kicker, .eyebrow { color: var(--x-cyan); }
.page-head h1 { margin-top: 30px; font: 600 clamp(52px,6vw,88px)/.88 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
.page-head p { font: 400 14px/1.5 "Space Grotesk", sans-serif; }
.button { border-color: #353a49; border-radius: 8px; background: rgba(255,255,255,.025); }
.button:hover { background: #fff; color: #080a10; }
.button.primary { border-color: var(--x-violet); background: var(--x-violet); }
.button.primary:hover { border-color: var(--x-cyan); background: var(--x-cyan); color: #080a10; }
.segmented { overflow: hidden; border-color: var(--line); border-radius: 8px; }
.segmented button { border-color: var(--line); }
.segmented button:hover { background: rgba(255,255,255,.05); }
.segmented button.active { background: var(--x-violet); }
.inline-search { border-color: #34394a; }
.inline-search:focus-within { border-color: var(--x-cyan); }
.metric-strip, .activity-summary { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.metric, .activity-summary > div { border-color: var(--line); }
.metric:nth-child(3) { background: linear-gradient(135deg, rgba(139,108,255,.15), rgba(97,230,255,.045)); }
.metric strong, .activity-summary strong { font-family: "Space Grotesk", sans-serif; }
.metric .up { color: var(--x-cyan); }
.data-panel, .activity-wire { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.data-head, .activity-wire > header { border-color: var(--line-dark); background: #10131c; color: var(--faint); }
.signal-row, .activity-day, .activity-entry { border-color: var(--line); }
.signal-row:hover, .activity-entry:hover, .tracking-card:hover, .project-follower-row:hover { background: rgba(119,92,255,.07); }
.avatar, .avatar-fallback { border-radius: 10px; background: #161a26; filter: none; }
.avatar-fallback { border-color: #353a49; font-family: "Space Grotesk", sans-serif; }
.identity-title strong, .activity-identity h2, .activity-main > p { font-family: "Space Grotesk", sans-serif; }
.verified, .handle { color: var(--x-cyan); }
.tag { border-color: #34394a; color: var(--muted); }
.growth { border-color: var(--x-cyan); color: var(--x-cyan); }
.mini-button { border-color: #353a49; border-radius: 6px; }
.mini-button:hover { background: #fff; color: #080a10; }
.mini-button.track { border-color: var(--x-violet); color: #bcaeff; }
.card-grid { gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.profile-card { border: 0; background: #0c0f17; }
.profile-card:hover { background: #121625; }
.profile-card p { font-family: "Space Grotesk", sans-serif; }
.profile-card-foot { border-color: var(--line); }
.activity-summary strong i { background: var(--x-green); }
.feed-filters { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.feed-filters button, .feed-filters button:first-child { border-color: var(--line); }
.feed-filters button:hover { background: rgba(255,255,255,.05); }
.feed-filters button.active { background: var(--x-violet); }
.activity-type { border-color: var(--x-cyan); color: var(--x-cyan); }
.activity-type.file { border-color: var(--x-magenta); color: #e68bff; }
.activity-marker i { border-color: var(--paper); background: var(--x-violet); box-shadow: 0 0 0 1px var(--x-violet); }
.activity-identity h2, .activity-main > p, .activity-metric b { font-family: "Space Grotesk", sans-serif; }
.side-panel-card { border-color: var(--line); border-top-color: var(--x-violet); border-radius: 12px; background: #0e111a; }
.side-panel-card h3 { font-family: "Space Grotesk", sans-serif; }
.side-panel-card > p { font-family: "Space Grotesk", sans-serif; }
.quick-add input { border-color: #34394a; border-radius: 7px; background: #080a10; }
.filter-chip { border-color: #34394a; border-radius: 5px; }
.filter-chip.on { border-color: var(--x-violet); background: var(--x-violet); }
.scanner-hero { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 75% 20%, rgba(132,92,255,.25), transparent 38%), #0d1018; }
.scanner-hero::before { opacity: .25; background-image: linear-gradient(rgba(97,230,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(97,230,255,.09) 1px, transparent 1px); background-size: 42px 42px; }
.lookup-folio { color: var(--x-cyan); }
.scan-box h2 { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: -.06em; }
.scan-box p { font-family: "Space Grotesk", sans-serif; }
.scan-input { border-color: #42485b; border-radius: 10px; background: #080a10; }
.scan-input svg { color: var(--x-cyan); }
.detail-card, .project-section { border-color: var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.detail-card:first-child { border-top-color: var(--x-violet); }
.detail-card h2, .project-main h1, .project-section-head h2 { font-family: "Space Grotesk", sans-serif; }
.intel-loader { overflow: hidden; border-color: var(--line); border-radius: 14px; background: #0c0f17; }
.intel-loader-body { background-color: #0c0f17; background-image: linear-gradient(rgba(97,230,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(97,230,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.signal-core { border-color: #444b63; border-radius: 50%; background: rgba(139,108,255,.08); }
.signal-core::before, .signal-core::after, .signal-core i { border-radius: 50%; }
.signal-core b, .intel-loader-copy h2 { font-family: "Space Grotesk", sans-serif; }
.intel-progress i { background: linear-gradient(90deg, var(--x-violet), var(--x-cyan)); }
.intel-steps article.active { background: var(--x-violet); }
.project-banner { border-radius: 14px 14px 0 0; background: radial-gradient(circle at 75% 25%, rgba(97,230,255,.18), transparent 30%), linear-gradient(135deg, #16102e, #09151f); }
.project-banner > img { filter: grayscale(.4) contrast(1.1); opacity: .22; }
.project-banner::after { background: linear-gradient(90deg, rgba(8,10,16,.35), rgba(8,10,16,.08)); }
.contract-badge { background: #0d1018; }
.project-profile-head { border-color: var(--line); background: #0c0f17; }
.project-tabs, .project-tabs button, .project-section-head, .project-table-controls, .project-follower-head, .project-follower-row { border-color: var(--line); }
.project-tabs button.active, .chart-range-status span { background: var(--x-violet); }
.project-follower-head { background: #11141e; }
.snapshot-note, .project-contracts code { background: #111522; }
.project-contracts code { border-left-color: var(--x-cyan); color: var(--x-cyan); }
.watch-star:hover, .watch-star.active { background: var(--x-violet); }
.modal { border-color: #34394a; border-radius: 14px; background: #0d1018; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.modal-head h2 { font-family: "Space Grotesk", sans-serif; }
.toast { border-color: #34394a; border-left-color: var(--x-cyan); background: #0d1018; }

/* Landing */
.auth-gate { background: #07090f; color: #f3f4f8; }
.auth-gate::before { opacity: .42; 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: 64px 64px; }
.xscan-landing { min-height: 100%; overflow: hidden; background: #07090f; color: #f4f5f8; font-family: "Space Grotesk", sans-serif; }
.xscan-nav { position: sticky; z-index: 20; top: 0; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(22px,5.5vw,88px); border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(7,9,15,.78); backdrop-filter: blur(22px); }
.xscan-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; }
.xscan-brand .logo-mark { width: 35px; height: 35px; }
.xscan-nav-links { display: flex; align-items: center; gap: 34px; }
.xscan-nav-links a, .xscan-nav-cta { color: #9197aa; font: 500 8px "IBM Plex Mono", monospace; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.xscan-nav-links a:hover, .xscan-nav-cta:hover { color: var(--x-cyan); }
.xscan-nav-cta { justify-self: end; padding: 12px 14px; border: 1px solid #34394a; border-radius: 7px; color: #fff; }
.xscan-nav-cta span { color: var(--x-cyan); }
.xscan-hero { position: relative; min-height: 850px; display: grid; grid-template-columns: minmax(0,1fr) minmax(470px,.84fr); gap: clamp(30px,6vw,100px); align-items: center; padding: 90px clamp(22px,7vw,112px) 100px; border-bottom: 1px solid rgba(255,255,255,.08); }
.xscan-hero::before { position: absolute; inset: 0; pointer-events: none; content: ""; background: radial-gradient(circle at 9% 45%, rgba(105,94,255,.14), transparent 25%), radial-gradient(circle at 82% 48%, rgba(97,230,255,.09), transparent 28%); }
.xscan-hero-glow { position: absolute; top: 14%; left: 37%; width: 310px; height: 310px; border-radius: 50%; background: #775cff; opacity: .08; filter: blur(100px); }
.xscan-hero-copy { position: relative; z-index: 2; }
.xscan-status { display: flex; justify-content: space-between; max-width: 600px; margin-bottom: 35px; color: var(--faint); font: 500 8px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.xscan-status span { display: flex; align-items: center; gap: 9px; color: var(--x-green); }
.xscan-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--x-green); box-shadow: 0 0 0 5px rgba(129,246,194,.08); animation: xscan-pulse 2s ease-in-out infinite; }
.xscan-hero h1 { max-width: 780px; margin: 0; font-size: clamp(82px,8.3vw,138px); font-weight: 600; line-height: .78; letter-spacing: -.085em; }
.xscan-hero h1 em, .xscan-section-head h2 em, .file-copy h2 em, .xscan-access-copy h2 em { background: linear-gradient(105deg, var(--x-cyan), #8e83ff 48%, var(--x-magenta)); background-clip: text; color: transparent; font-style: normal; font-weight: inherit; }
.xscan-hero-copy > p { max-width: 510px; margin: 35px 0 0; color: #a6aabd; font-size: 16px; line-height: 1.55; }
.xscan-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.xscan-primary, .xscan-secondary { min-height: 50px; display: inline-flex; align-items: center; gap: 30px; padding: 0 18px; border-radius: 7px; font: 600 9px "IBM Plex Mono", monospace; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.xscan-primary { background: #f3f4f8; color: #080a10; }
.xscan-primary:hover { background: var(--x-cyan); transform: translateY(-2px); }
.xscan-secondary { color: #9ba0b2; }
.xscan-secondary:hover { color: #fff; }
.xscan-primary span, .xscan-secondary span { color: var(--x-violet); font-size: 14px; }
.xscan-proof { max-width: 610px; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 72px; border-top: 1px solid rgba(255,255,255,.12); }
.xscan-proof div { padding: 17px 10px 0 0; border-right: 1px solid rgba(255,255,255,.1); }
.xscan-proof div + div { padding-left: 16px; }
.xscan-proof div:last-child { border: 0; }
.xscan-proof b, .xscan-proof span { display: block; }
.xscan-proof b { color: #dfe2eb; font: 600 8px "IBM Plex Mono", monospace; }
.xscan-proof span { margin-top: 6px; color: var(--faint); font-size: 9px; }
.xscan-atlas { position: relative; min-height: 620px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: radial-gradient(circle at 50% 49%, rgba(124,94,255,.16), transparent 17%), linear-gradient(rgba(97,230,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(97,230,255,.035) 1px, transparent 1px), rgba(13,16,25,.78); background-size: auto, 34px 34px, 34px 34px, auto; box-shadow: inset 0 1px rgba(255,255,255,.04), 0 40px 100px rgba(0,0,0,.3); }
.atlas-chrome, .atlas-readout { position: absolute; z-index: 4; left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; letter-spacing: .1em; }
.atlas-chrome { top: 20px; }
.atlas-chrome code { color: var(--x-green); }
.atlas-readout { bottom: 19px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.atlas-readout span { display: flex; align-items: center; gap: 8px; }
.atlas-readout i { width: 5px; height: 5px; border-radius: 50%; background: var(--x-cyan); }
.atlas-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(139,124,255,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-a { width: 190px; height: 190px; }
.orbit-b { width: 330px; height: 330px; border-style: dashed; animation: orbit-spin 28s linear infinite; }
.orbit-c { width: 480px; height: 480px; opacity: .5; }
.atlas-node { position: absolute; z-index: 3; display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #353b50; border-radius: 8px; background: rgba(10,13,21,.94); box-shadow: 0 9px 35px rgba(0,0,0,.28); }
.atlas-node b { font: 600 9px "IBM Plex Mono", monospace; }
.atlas-node span { color: var(--faint); font: 500 6px "IBM Plex Mono", monospace; letter-spacing: .09em; }
.atlas-node > i { position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--x-cyan); box-shadow: 0 0 16px var(--x-cyan); }
.atlas-core { left: 50%; top: 50%; width: 86px; height: 86px; place-content: center; padding: 0; border-radius: 50%; border-color: #8171ff; text-align: center; transform: translate(-50%,-50%); box-shadow: 0 0 50px rgba(119,92,255,.24); }
.atlas-core b { font: 600 24px "Space Grotesk", sans-serif; }
.atlas-smart { right: 8%; top: 19%; }
.atlas-contract { right: 7%; bottom: 16%; }
.atlas-history { left: 5%; bottom: 17%; }
.atlas-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-lines path { fill: none; stroke: url(#none); stroke: rgba(116,210,255,.42); stroke-width: 1; stroke-dasharray: 4 5; }
.xscan-rail { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.09); background: #0b0d14; color: #73798b; }
.xscan-rail div { width: max-content; min-height: 46px; display: flex; align-items: center; gap: 25px; padding-right: 25px; font: 500 8px "IBM Plex Mono", monospace; letter-spacing: .08em; animation: rail-move 28s linear infinite; }
.xscan-rail b { color: var(--x-violet); }
.xscan-system { padding: 130px clamp(22px,7vw,112px); }
.xscan-section-head { display: grid; grid-template-columns: .45fr 1.25fr .65fr; gap: 40px; align-items: start; margin-bottom: 75px; }
.xscan-section-head > span, .file-copy > span, .xscan-access-copy > span { color: var(--x-cyan); font: 500 8px "IBM Plex Mono", monospace; letter-spacing: .11em; }
.xscan-section-head h2, .file-copy h2, .xscan-access-copy h2 { margin: 0; font-size: clamp(62px,6.6vw,104px); font-weight: 500; line-height: .84; letter-spacing: -.07em; }
.xscan-section-head p { max-width: 360px; margin: 7px 0 0; color: #8d92a3; font-size: 14px; line-height: 1.55; }
.xscan-feature-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, minmax(290px,auto)); gap: 12px; }
.xscan-feature-grid article { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0c0f17; }
.xscan-feature-grid article > span { color: var(--x-cyan); font: 500 7px "IBM Plex Mono", monospace; letter-spacing: .1em; }
.xscan-feature-grid h3 { max-width: 560px; margin: 25px 0 14px; font-size: clamp(32px,3.1vw,52px); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
.xscan-feature-grid p { max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.feature-primary { grid-row: 1 / 3; min-height: 650px; background: radial-gradient(circle at 50% 76%, rgba(126,90,255,.15), transparent 27%), #0c0f17 !important; }
.feature-primary > small { position: absolute; bottom: 28px; left: 30px; color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; text-transform: uppercase; }
.graph-visual { position: absolute; left: 50%; bottom: 65px; width: 400px; height: 310px; transform: translateX(-50%); }
.graph-visual::before, .graph-visual::after { position: absolute; inset: 35px 75px; border: 1px solid rgba(139,108,255,.2); border-radius: 50%; content: ""; }
.graph-visual::after { inset: 75px 115px; border-style: dashed; }
.graph-visual b, .graph-visual i { position: absolute; display: grid; place-items: center; border: 1px solid #6456bc; border-radius: 50%; background: #10131e; }
.graph-visual b { left: 50%; top: 50%; width: 76px; height: 76px; color: #fff; transform: translate(-50%,-50%); }
.graph-visual i { width: 18px; height: 18px; box-shadow: 0 0 16px rgba(97,230,255,.18); }
.graph-visual i:nth-child(1) { left: 16%; top: 29%; }.graph-visual i:nth-child(2) { right: 10%; top: 42%; }.graph-visual i:nth-child(3) { left: 27%; bottom: 8%; }.graph-visual i:nth-child(4) { right: 28%; bottom: 4%; }
.contract-terminal { display: grid; gap: 12px; margin-top: 42px; padding: 18px; border: 1px solid #293043; border-radius: 8px; background: #080a10; font-family: "IBM Plex Mono", monospace; }
.contract-terminal code { color: var(--faint); font-size: 8px; }.contract-terminal b { color: var(--x-green); font-size: 10px; }.contract-terminal small { color: #4f5669; font-size: 7px; }
.history-stack { display: grid; gap: 0; margin-top: 34px; }
.history-stack s, .history-stack b { padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 10px "IBM Plex Mono", monospace; }
.history-stack s { color: #555b6c; }.history-stack b { color: var(--x-cyan); }
.xscan-file { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(45px,8vw,130px); align-items: center; padding: 130px clamp(22px,7vw,112px); border-top: 1px solid rgba(255,255,255,.08); background: radial-gradient(circle at 81% 53%, rgba(97,230,255,.06), transparent 28%), #090b12; }
.file-copy h2 { margin-top: 52px; }
.file-copy p { max-width: 350px; margin: 28px 0 34px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.file-copy a { color: #fff; font: 600 8px "IBM Plex Mono", monospace; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }.file-copy a span { margin-left: 15px; color: var(--x-cyan); }
.file-console { overflow: hidden; border: 1px solid #303548; border-radius: 14px; background: #0c0f17; box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.file-console > header, .file-console > footer { min-height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.file-console > header { border-bottom: 1px solid var(--line); }.file-console > header b { color: #d8a7ff; }
.console-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.console-grid > div { min-height: 100px; display: grid; align-content: center; gap: 6px; padding: 18px; border-right: 1px solid var(--line); }
.console-grid > div:last-child { border: 0; }.console-grid small, .console-grid span { color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; }.console-grid b { font-size: 12px; }
.console-identity { grid-template-columns: 42px 1fr; align-items: center; }
.console-identity i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, var(--x-violet), #30205d); font-style: normal; }
.console-identity div { display: grid; gap: 6px; }
.console-events article { min-height: 97px; display: grid; grid-template-columns: 50px 10px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.console-events time, .console-events strong { color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; }.console-events strong { color: var(--x-cyan); }
.console-events > article > i { width: 7px; height: 7px; border-radius: 50%; background: var(--x-violet); box-shadow: 0 0 0 5px rgba(139,108,255,.09); }
.console-events div { display: grid; gap: 6px; }.console-events div b { font-size: 12px; }.console-events div span { color: var(--muted); font-size: 10px; }
.file-console > footer span { display: flex; align-items: center; gap: 8px; }.file-console > footer i { width: 5px; height: 5px; border-radius: 50%; background: var(--x-green); }
.xscan-access { position: relative; min-height: 720px; display: grid; grid-template-columns: 1fr minmax(390px,.6fr); gap: 10vw; align-items: center; overflow: hidden; padding: 110px clamp(22px,7vw,112px); border-top: 1px solid rgba(255,255,255,.09); background: #0a0c13; }
.access-orb { position: absolute; left: 8%; bottom: -270px; width: 650px; height: 650px; border: 1px solid rgba(139,108,255,.3); border-radius: 50%; box-shadow: inset 0 0 150px rgba(105,75,255,.12), 0 0 110px rgba(97,230,255,.06); }
.access-orb::before, .access-orb::after { position: absolute; inset: 80px; border: 1px dashed rgba(97,230,255,.18); border-radius: 50%; content: ""; }.access-orb::after { inset: 170px; }
.xscan-access-copy, .xscan-login-panel { position: relative; z-index: 2; }
.xscan-access-copy h2 { margin-top: 48px; }
.xscan-access-copy p { max-width: 430px; margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.xscan-login-panel { padding: 30px; border: 1px solid #303548; border-radius: 14px; background: rgba(13,16,25,.9); box-shadow: 0 35px 100px rgba(0,0,0,.4); }
.xscan-login-panel .access-panel-head { border-color: var(--line); }.xscan-login-panel .access-panel-head i { color: var(--x-green); }
.xscan-login-panel .privy-button { min-height: 58px; border: 0; border-radius: 8px; background: linear-gradient(100deg, #f4f5f8, #c8f8ff); color: #080a10; }
.xscan-login-panel .privy-button:hover { background: var(--x-cyan); }
.xscan-login-panel .auth-privy-entry > small, .xscan-login-panel .auth-panel-foot { color: var(--faint); }
.xscan-login-panel .auth-panel-foot { border-color: var(--line); }
#auth-status { color: #e48cff; }
.xscan-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px,5.5vw,88px); border-top: 1px solid rgba(255,255,255,.09); color: var(--faint); font: 500 7px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.xscan-footer a:last-child { color: #9ba0b2; text-decoration: none; }.xscan-footer a:last-child:hover { color: var(--x-cyan); }
.xscan-footer .xscan-brand span { font-size: 17px; text-transform: none; }.xscan-footer .logo-mark { width: 28px; height: 28px; }

@keyframes xscan-pulse { 50% { opacity: .45; transform: scale(.78); } }
@keyframes orbit-spin { to { transform: translate(-50%,-50%) rotate(1turn); } }
@keyframes rail-move { to { transform: translateX(-50%); } }

@media (max-width: 1080px) {
  .topbar .socket-state, .account-button > span:nth-child(2) { display: none; }
  .account-button { padding: 5px; }
  .xscan-hero { grid-template-columns: 1fr .8fr; gap: 30px; padding-inline: 5vw; }
  .xscan-atlas { min-height: 560px; }
  .xscan-file { gap: 50px; }
}

@media (max-width: 820px) {
  .xscan-nav { grid-template-columns: 1fr auto; }
  .xscan-nav-links { display: none; }
  .xscan-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 90px; }
  .xscan-hero h1 { font-size: clamp(78px,15vw,122px); }
  .xscan-atlas { width: min(620px,100%); min-height: 600px; margin: 40px auto 0; }
  .xscan-section-head { grid-template-columns: 1fr; gap: 24px; }
  .xscan-section-head p { max-width: 520px; }
  .xscan-feature-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-primary { grid-row: auto; min-height: 620px; }
  .xscan-file { grid-template-columns: 1fr; }
  .file-copy { max-width: 540px; }
  .xscan-access { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 760px) {
  .app-shell { height: 100dvh; }
  .topbar { padding-inline: 12px; gap: 9px; }
  .app-brand { min-width: auto; }
  .app-brand span { display: none; }
  .workspace-menu-button { min-width: 142px; gap: 10px; }
  .workspace-menu { position: fixed; top: 67px; left: 10px; right: 10px; width: auto; }
  .global-search { flex: 1; width: auto; }
  .global-search kbd { display: none; }
  .topbar-actions { margin-left: 0; }
  .topbar .account-button { display: none; }
  .content { padding: 36px 15px 50px; }
  .page-head h1 { font-size: 54px; }
}

@media (max-width: 560px) {
  .xscan-nav { min-height: 66px; padding-inline: 17px; }
  .xscan-nav-cta { padding: 10px; }
  .xscan-hero { padding: 72px 18px 80px; }
  .xscan-status code { display: none; }
  .xscan-hero h1 { font-size: clamp(65px,20vw,92px); }
  .xscan-hero-copy > p { font-size: 14px; }
  .xscan-hero-actions { align-items: flex-start; flex-direction: column; gap: 9px; }
  .xscan-proof { grid-template-columns: 1fr; margin-top: 48px; }
  .xscan-proof div, .xscan-proof div + div { min-height: 60px; padding: 14px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .xscan-atlas { min-height: 480px; border-radius: 12px; }
  .orbit-a { width: 150px; height: 150px; }.orbit-b { width: 270px; height: 270px; }.orbit-c { width: 390px; height: 390px; }
  .atlas-smart { right: 4%; top: 20%; }.atlas-contract { right: 4%; bottom: 18%; }.atlas-history { left: 4%; bottom: 18%; }
  .atlas-lines { display: none; }
  .xscan-system, .xscan-file, .xscan-access { padding: 90px 18px; }
  .xscan-section-head h2, .file-copy h2, .xscan-access-copy h2 { font-size: 64px; }
  .xscan-feature-grid article { padding: 22px; }
  .feature-primary { min-height: 560px; }
  .graph-visual { width: 330px; transform: translateX(-50%) scale(.86); }
  .file-console { overflow-x: auto; }
  .file-console > * { min-width: 560px; }
  .xscan-access { min-height: auto; }
  .xscan-login-panel { padding: 22px; }
  .xscan-footer { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .app-brand .logo-mark { width: 30px; height: 30px; }
  .workspace-menu-button { min-width: 125px; height: 40px; }
  .workspace-menu-button small { display: none; }
  .global-search { height: 40px; padding-inline: 9px; }
  .global-search input { font-size: 10px; }
  .icon-button { display: none; }
  .activity-entry { grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto auto; }
  .activity-metric { display: none; }
  .activity-action { grid-column: 2; }
  .tracker-layout { grid-template-columns: 1fr; }
}

@media (hover: none), (max-width: 820px) {
  .topbar, .xscan-nav { backdrop-filter: none; }
  .xscan-hero-glow { display: none; }
  .xscan-atlas, .file-console, .xscan-login-panel { box-shadow: none; }
  .orbit-b, .xscan-rail div { animation-duration: 42s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atlas-orbit, .xscan-rail div, .xscan-status i { animation: none; }
}
