@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;600;700;800&display=swap');

:root {
  --ink: #05070d;
  --ink-2: #080c15;
  --panel: rgba(12, 18, 31, .78);
  --panel-solid: #0b111d;
  --line: rgba(153, 183, 220, .15);
  --line-strong: rgba(153, 183, 220, .28);
  --text: #f3f7ff;
  --muted: #8f9aaf;
  --blue: #008cff;
  --cyan: #00e5ff;
  --red: #ff233d;
  --red-soft: #ff6578;
  --success: #36e6a2;
  --warning: #ffcc66;
  --display: "Orbitron", ui-sans-serif, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --shadow-blue: 0 0 40px rgba(0, 140, 255, .18);
  --shadow-red: 0 0 40px rgba(255, 35, 61, .16);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { background: rgba(0, 140, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 16px; background: var(--text); color: var(--ink); }
.skip-link:focus { top: 16px; }
.eyebrow { display: block; color: #8192ad; font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
em { color: var(--cyan); font-style: normal; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(0, 229, 255, .5); background: linear-gradient(135deg, rgba(0, 140, 255, .22), rgba(0, 229, 255, .03)); color: var(--cyan); font-family: var(--display); font-size: 11px; box-shadow: inset 0 0 18px rgba(0, 140, 255, .15), 0 0 24px rgba(0, 140, 255, .1); clip-path: polygon(14% 0, 86% 0, 100% 14%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 14%); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 20px; border: 1px solid rgba(0, 229, 255, .45); padding: 0 22px; background: linear-gradient(120deg, #006ad1, #00a8e8); color: #fff; font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 9px 34px rgba(0, 140, 255, .2), inset 0 1px rgba(255,255,255,.25); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(0, 140, 255, .3), inset 0 1px rgba(255,255,255,.25); }
.button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .4; transform: none; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 9px; }
.button-full { width: 100%; }
.button-red { border-color: rgba(255, 35, 61, .55); background: linear-gradient(120deg, #a80e26, #ff233d); box-shadow: 0 9px 34px rgba(255, 35, 61, .2); }
.button-red:hover { box-shadow: 0 14px 42px rgba(255, 35, 61, .3); }
.button-secondary, .button-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.035); box-shadow: none; }
.button-ghost { color: var(--muted); }
.ghost-link { color: #a5b0c3; font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.text-button { border: 0; padding: 0; background: none; color: #7887a0; font-size: 12px; cursor: pointer; }

/* Public presentation */
.public-shell { overflow-x: hidden; background: var(--ink); }
.public-shell::before { position: fixed; z-index: -1; inset: 0; background-image: linear-gradient(rgba(60, 112, 176, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 112, 176, .035) 1px, transparent 1px); background-size: 48px 48px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.public-nav { position: absolute; z-index: 20; top: 0; left: 0; display: flex; width: 100%; height: 88px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); padding: 0 clamp(24px, 5vw, 84px); }
.public-nav nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); }
.public-nav nav > a:not(.button) { color: #8d9bb2; font-size: 12px; }
.hero { position: relative; display: grid; min-height: 880px; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { position: absolute; z-index: 3; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.2), transparent 28%, rgba(5,7,13,.08) 50%, transparent 72%, rgba(5,7,13,.2)), linear-gradient(0deg, #05070d 0, transparent 28%, rgba(5,7,13,.15) 80%, #05070d 100%); content: ""; }
.hero-art { position: absolute; inset: 0; background-image: url('/assets/images/hero-dragons.png'); background-position: center; background-size: cover; filter: saturate(.88) contrast(1.04); animation: hero-breathe 8s ease-in-out infinite alternate; }
.hero-grid { position: absolute; z-index: 2; right: -10%; bottom: -27%; left: -10%; height: 62%; background-image: linear-gradient(rgba(0, 229, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, .13) 1px, transparent 1px); background-size: 54px 54px; transform: perspective(420px) rotateX(62deg); transform-origin: center bottom; opacity: .25; }
.hero-content { position: relative; z-index: 5; display: flex; max-width: 850px; flex-direction: column; align-items: center; padding: 120px 24px 36px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.12); padding: 8px 13px; background: rgba(4,9,17,.6); color: #a9b7cb; font-family: var(--display); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; backdrop-filter: blur(12px); }
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.hero-kicker { margin: 36px 0 12px; color: #b5c1d3; font-family: var(--display); font-size: 11px; letter-spacing: .44em; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(58px, 9.5vw, 126px); font-weight: 800; letter-spacing: -.06em; line-height: .9; text-shadow: 0 0 40px rgba(0,0,0,.8); }
.hero h1 span:first-child { color: #f6f9ff; }
.hero h1 span:last-child { background: linear-gradient(90deg, var(--blue) 0, var(--cyan) 45%, #dce8f6 50%, var(--red-soft) 55%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 650px; margin: 28px auto 0; color: #a8b3c4; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.75; text-shadow: 0 2px 18px #000; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.trust-strip { display: flex; gap: 26px; margin-top: 72px; color: #718099; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.trust-strip span { display: flex; align-items: center; gap: 8px; }
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.section { position: relative; max-width: 1440px; margin: 0 auto; padding: 140px clamp(24px, 6vw, 96px); }
.section-heading { max-width: 690px; margin: 0 auto 70px; text-align: center; }
.section-heading.left { margin-right: 0; margin-left: 0; text-align: left; }
.section-heading h2, .security-copy h2, .final-cta h2 { margin: 16px 0 20px; font-family: var(--display); font-size: clamp(34px, 4.5vw, 64px); letter-spacing: -.04em; line-height: 1.12; }
.section-heading p, .security-copy > p { color: var(--muted); font-size: 16px; }
.dragon-intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dragon-intro { position: relative; min-height: 580px; overflow: hidden; border: 1px solid var(--line); padding: 52px; background: linear-gradient(145deg, rgba(16,24,40,.8), rgba(6,9,16,.96)); }
.dragon-intro::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 32px 32px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent); }
.dragon-intro > * { position: relative; z-index: 2; }
.blue-card { box-shadow: inset 0 1px rgba(0,229,255,.18); }
.red-card { box-shadow: inset 0 1px rgba(255,35,61,.2); }
.dragon-number { position: absolute; top: 22px; right: 28px; color: rgba(255,255,255,.12); font-family: var(--display); font-size: 64px; font-weight: 700; }
.orb { width: 140px; height: 140px; margin: 4px 0 44px; border-radius: 50%; }
.blue-orb { background: radial-gradient(circle at 35% 30%, #e5ffff 0, var(--cyan) 4%, var(--blue) 22%, rgba(0,61,145,.3) 55%, transparent 72%); box-shadow: 0 0 70px rgba(0,140,255,.45); }
.red-orb { background: radial-gradient(circle at 35% 30%, #fff 0, #ff9cab 4%, var(--red) 22%, rgba(140,0,26,.3) 55%, transparent 72%); box-shadow: 0 0 70px rgba(255,35,61,.42); }
.dragon-intro h3 { margin: 12px 0 20px; font-family: var(--display); font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
.dragon-intro p { max-width: 500px; color: var(--muted); }
.dragon-intro ul { display: flex; margin: 30px 0 50px; padding: 0; gap: 8px; list-style: none; }
.dragon-intro li { border: 1px solid var(--line); padding: 7px 10px; color: #8492a8; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.dragon-intro a { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.blue-card a { color: var(--cyan); }
.red-card a { color: var(--red-soft); }
.capability-section { padding-top: 100px; }
.capability-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 80px; }
.capability-list article { display: grid; grid-template-columns: 52px 1fr; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0; }
.capability-list article:last-child { border-bottom: 1px solid var(--line); }
.capability-list article > span { color: var(--cyan); font-family: var(--display); font-size: 10px; }
.capability-list h3 { margin: 0 0 7px; font-family: var(--display); font-size: 16px; }
.capability-list p { margin: 0; color: var(--muted); }
.signal-panel { position: relative; min-height: 620px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 44%, rgba(0,140,255,.12), transparent 40%), #070b12; }
.signal-panel::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px); background-size: 30px 30px; content: ""; }
.signal-top { position: relative; z-index: 3; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 20px; color: #7d8ca4; font-family: var(--display); font-size: 9px; letter-spacing: .15em; }
.signal-node { position: absolute; z-index: 4; display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid var(--line-strong); background: rgba(7,13,22,.94); box-shadow: var(--shadow-blue); clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%); }
.signal-node span { color: var(--cyan); font-family: var(--display); font-weight: 800; }
.signal-node small { position: absolute; top: calc(100% + 10px); width: 90px; color: #6f809a; text-align: center; }
.core-node { top: 220px; left: calc(50% - 48px); width: 96px; height: 96px; }
.signal-a { top: 110px; left: 12%; }
.signal-b { top: 118px; right: 12%; box-shadow: var(--shadow-red); }
.signal-b span { color: var(--red-soft); }
.signal-c { top: 365px; left: calc(50% - 37px); }
.signal-line { position: absolute; z-index: 2; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); transform-origin: left; opacity: .5; }
.line-a { top: 200px; left: 22%; width: 31%; transform: rotate(23deg); }
.line-b { top: 221px; left: 54%; width: 27%; transform: rotate(-27deg); background: linear-gradient(90deg, transparent, var(--red), transparent); }
.line-c { top: 323px; left: 50%; width: 135px; transform: rotate(90deg); }
.terminal-mini { position: absolute; z-index: 4; right: 24px; bottom: 24px; left: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); padding: 18px 20px; background: rgba(3,7,13,.88); color: #7e8da2; font: 11px/1.8 ui-monospace, monospace; }
.terminal-ok { color: var(--success) !important; }
.security-section { display: grid; max-width: none; grid-template-columns: .8fr 1.2fr; gap: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 18% 50%, rgba(0,140,255,.1), transparent 28%); }
.security-copy { max-width: 560px; }
.security-copy .button { margin-top: 26px; }
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.security-grid article { min-height: 250px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 36px; }
.security-grid article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.security-grid article > span { color: var(--cyan); font-family: var(--display); font-size: 10px; }
.security-grid h3 { margin: 36px 0 10px; font-family: var(--display); font-size: 16px; }
.security-grid p { margin: 0; color: var(--muted); }
.final-cta { display: flex; min-height: 620px; flex-direction: column; align-items: center; justify-content: center; padding: 100px 24px; background: radial-gradient(circle at 50% 50%, rgba(0,140,255,.13), transparent 34%); text-align: center; }
.public-footer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: 28px clamp(24px, 5vw, 80px); color: #607089; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.public-footer span:nth-child(2) { text-align: center; }
.public-footer span:last-child { text-align: right; }

/* Auth and installer */
.auth-screen { display: grid; min-height: 100vh; grid-template-columns: 1.15fr .85fr; padding-top: 88px; }
.auth-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding: 10vw; background: linear-gradient(90deg, rgba(5,7,13,.92), rgba(5,7,13,.38)), url('/assets/images/hero-dragons.png') left center / cover no-repeat; }
.auth-visual::after { position: absolute; right: -140px; width: 300px; height: 300px; border: 1px solid rgba(0,229,255,.18); border-radius: 50%; box-shadow: 0 0 120px rgba(0,140,255,.22); content: ""; }
.auth-visual h1 { margin: 18px 0; font-family: var(--display); font-size: clamp(42px, 5vw, 74px); line-height: 1.05; }
.auth-visual p { max-width: 500px; color: #93a3ba; }
.auth-panel { display: flex; max-width: 540px; width: 100%; flex-direction: column; justify-content: center; margin: auto; padding: 64px; }
.panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.panel-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 28px; }
.stack-form { display: flex; flex-direction: column; gap: 20px; }
label { display: flex; flex-direction: column; gap: 8px; color: #8491a6; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
input, select { min-height: 48px; width: 100%; border: 1px solid var(--line-strong); border-radius: 0; padding: 0 14px; background: rgba(2,6,12,.72); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,140,255,.12); }
.form-note { color: #68768d; font-size: 11px; }
.alert { border: 1px solid var(--line); margin-bottom: 24px; padding: 14px 16px; background: rgba(255,255,255,.035); font-size: 12px; }
.alert.error { border-color: rgba(255,35,61,.35); color: #ff9caa; background: rgba(255,35,61,.07); }
.alert.success { border-color: rgba(54,230,162,.3); color: var(--success); background: rgba(54,230,162,.06); }
.unlock-screen, .state-page { display: flex; min-height: 100vh; max-width: 620px; flex-direction: column; align-items: center; justify-content: center; margin: auto; padding: 80px 24px; text-align: center; }
.unlock-screen h1, .state-page h1 { margin: 20px 0; font-family: var(--display); font-size: clamp(36px, 6vw, 62px); line-height: 1.04; }
.unlock-screen p, .state-page p { max-width: 540px; color: var(--muted); }
.lock-emblem { display: grid; width: 90px; height: 90px; place-items: center; border: 1px solid rgba(255,35,61,.5); margin-bottom: 28px; color: var(--red); font-family: var(--display); font-size: 28px; box-shadow: var(--shadow-red); clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%); }
.blue-lock { border-color: rgba(0,229,255,.5); color: var(--cyan); box-shadow: var(--shadow-blue); }
.unlock-form { width: 100%; margin: 28px 0; }
.installer { max-width: 1240px; min-height: 100vh; margin: 0 auto; padding: 140px 28px 80px; }
.installer-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 50px; }
.installer-head h1 { margin: 12px 0 0; font-family: var(--display); font-size: clamp(42px, 6vw, 74px); line-height: .95; }
.installer-progress { display: flex; align-items: center; }
.installer-progress span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); color: #647289; font-family: var(--display); font-size: 9px; }
.installer-progress span.active { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--shadow-blue); }
.installer-progress i { width: 28px; height: 1px; background: var(--line); }
.installer-card { border: 1px solid var(--line); background: rgba(8,13,23,.8); box-shadow: 0 26px 100px rgba(0,0,0,.38); }
.install-step { display: none; padding: clamp(28px, 5vw, 64px); }
.install-step.active { display: block; }
.install-step-copy { max-width: 680px; margin-bottom: 42px; }
.install-step-copy > span { color: var(--cyan); font-family: var(--display); font-size: 9px; letter-spacing: .17em; }
.install-step-copy h2 { margin: 10px 0; font-family: var(--display); font-size: 32px; }
.install-step-copy p { color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 14px; }
.check-row p { margin: 0; color: #a2adc0; }
.check-row strong { font-family: var(--display); font-size: 8px; letter-spacing: .1em; }
.check-row.pass > span, .check-row.pass strong { color: var(--success); }
.check-row.fail > span, .check-row.fail strong { color: var(--red-soft); }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 28px; }
.step-actions > div { display: flex; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.check-label { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.check-label input { min-height: 0; width: 18px; height: 18px; accent-color: var(--blue); }
.connection-result { min-height: 24px; margin-top: 18px; color: var(--success); font-size: 12px; }
.connection-result.error { color: var(--red-soft); }
.install-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.install-summary div { border-right: 1px solid var(--line); padding: 32px; text-align: center; }
.install-summary div:last-child { border: 0; }
.install-summary span { color: var(--cyan); font-family: var(--display); font-size: 42px; }
.install-summary p { margin: 4px 0 0; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.legal-check { margin-top: 30px; }

/* Authenticated app */
.app-shell { min-height: 100vh; background-color: var(--ink); background-image: radial-gradient(circle at 70% 8%, rgba(0,140,255,.06), transparent 28%), linear-gradient(rgba(54,92,138,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(54,92,138,.026) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
.red-shell { background-image: radial-gradient(circle at 70% 8%, rgba(255,35,61,.07), transparent 28%), linear-gradient(rgba(138,54,70,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(138,54,70,.026) 1px, transparent 1px); }
.sidebar { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; display: flex; width: 252px; flex-direction: column; border-right: 1px solid var(--line); padding: 26px 20px; background: rgba(5,8,14,.96); backdrop-filter: blur(20px); }
.sidebar .brand { padding: 0 7px 28px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); padding-top: 24px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #78869d; font-size: 12px; transition: color .2s, background .2s; }
.sidebar nav a:hover { background: rgba(0,140,255,.07); color: #dfe8f6; }
.red-shell .sidebar nav a:hover { background: rgba(255,35,61,.07); }
.sidebar nav a span { color: var(--cyan); }
.red-shell .sidebar nav a span { color: var(--red-soft); }
.sidebar-foot { display: flex; flex-direction: column; align-items: flex-start; margin-top: auto; border-top: 1px solid var(--line); padding: 22px 10px 0; }
.sidebar-foot strong { margin: 5px 0 10px; font-size: 13px; }
.danger-label { border: 1px solid rgba(255,35,61,.3); margin: 0 7px 20px; padding: 7px; color: var(--red-soft); font-family: var(--display); font-size: 8px; letter-spacing: .17em; text-align: center; text-transform: uppercase; }
.app-frame { min-height: 100vh; margin-left: 252px; }
.topbar { display: flex; height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 34px; color: #77869d; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.system-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: var(--success); box-shadow: 0 0 10px var(--success); }
.menu-button { display: none; border: 0; background: none; color: var(--text); font-size: 20px; }
.app-main { max-width: 1500px; margin: 0 auto; padding: 46px clamp(24px, 4vw, 64px) 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.page-heading h1 { margin: 10px 0 12px; font-family: var(--display); font-size: clamp(38px, 5vw, 66px); letter-spacing: -.04em; line-height: 1; }
.page-heading p { max-width: 700px; margin: 0; color: var(--muted); }
.agent-pill { display: flex; min-width: 170px; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 13px 16px; background: rgba(255,255,255,.02); }
.agent-pill > span { width: 8px; height: 8px; border-radius: 50%; background: #617087; }
.agent-pill.online > span { background: var(--success); box-shadow: 0 0 10px var(--success); }
.agent-pill div { display: flex; flex-direction: column; }
.agent-pill small { color: #66758a; font-family: var(--display); font-size: 7px; letter-spacing: .13em; }
.agent-pill strong { font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 24px; background: rgba(8,13,23,.72); }
.metric-grid article { display: flex; min-height: 126px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding: 24px; }
.metric-grid article:last-child { border: 0; }
.metric-grid span { color: #718099; font-family: var(--display); font-size: 8px; letter-spacing: .14em; }
.metric-grid strong { margin: 6px 0; font-family: var(--display); font-size: 30px; }
.metric-grid small { color: #5e6d82; font-size: 10px; }
.command-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 24px; }
.command-card { position: relative; display: grid; min-height: 410px; overflow: hidden; grid-template-columns: 150px 1fr; align-items: center; border: 1px solid var(--line); padding: 42px; background: linear-gradient(145deg, rgba(10,17,29,.92), rgba(5,8,14,.97)); transition: transform .25s, border-color .25s; }
.command-card:hover { transform: translateY(-4px); }
.blue-command:hover { border-color: rgba(0,229,255,.35); box-shadow: var(--shadow-blue); }
.red-command:hover { border-color: rgba(255,35,61,.35); box-shadow: var(--shadow-red); }
.command-card::before { position: absolute; inset: 0; background: radial-gradient(circle at 15% 50%, rgba(0,140,255,.16), transparent 28%); content: ""; }
.red-command::before { background: radial-gradient(circle at 15% 50%, rgba(255,35,61,.16), transparent 28%); }
.command-card > * { position: relative; z-index: 2; }
.command-code { position: absolute; top: 22px; left: 24px; color: #63738a; font-family: var(--display); font-size: 8px; letter-spacing: .14em; }
.command-icon { color: var(--cyan); font-size: 82px; text-shadow: 0 0 30px var(--blue); }
.red-command .command-icon { color: var(--red); text-shadow: 0 0 30px var(--red); }
.command-card h2 { margin: 12px 0; font-family: var(--display); font-size: 28px; line-height: 1.12; }
.command-card p { max-width: 390px; color: var(--muted); }
.command-action { display: block; margin-top: 28px; color: var(--cyan); font-family: var(--display); font-size: 9px; letter-spacing: .12em; }
.red-command .command-action { color: var(--red-soft); }
.command-card.restricted { filter: saturate(.5); opacity: .72; }
.panel { border: 1px solid var(--line); margin-bottom: 22px; padding: 30px; background: var(--panel); backdrop-filter: blur(12px); }
.panel.compact { padding: 24px; }
.panel p { color: var(--muted); }
.red-accent { border-color: rgba(255,35,61,.22); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.panel-title h2 { margin: 5px 0 0; font-family: var(--display); font-size: 20px; }
.panel-title a { color: var(--cyan); font-family: var(--display); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.empty-state { display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-state > span { color: #34445b; font-size: 44px; }
.empty-state h3 { margin: 8px 0 2px; font-family: var(--display); font-size: 14px; }
.empty-state p { margin: 0; }
.empty-state.small { min-height: 100px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { border-bottom: 1px solid var(--line); padding: 10px 14px; color: #67758b; font-family: var(--display); font-size: 8px; letter-spacing: .13em; text-align: left; }
td { border-bottom: 1px solid rgba(153,183,220,.08); padding: 14px; color: #9ca9bc; font-size: 12px; }
td strong { color: #dfe7f4; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 4px 7px; color: #718098; font-family: var(--display); font-size: 7px; letter-spacing: .1em; }
.status-chip.ready, .status-completed { border-color: rgba(54,230,162,.28); color: var(--success); }
.status-failed { border-color: rgba(255,35,61,.28); color: var(--red-soft); }
.status-running, .status-queued { border-color: rgba(0,229,255,.28); color: var(--cyan); }
.module-count { display: flex; align-items: center; gap: 12px; }
.module-count strong { color: var(--cyan); font-family: var(--display); font-size: 46px; }
.module-count span { color: #66758b; font-size: 9px; line-height: 1.3; text-transform: uppercase; }
.module-category { margin-bottom: 46px; }
.category-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 13px; }
.category-head h2 { margin: 0; font-family: var(--display); font-size: 16px; }
.category-head span { color: #5e6e84; font-family: var(--display); font-size: 8px; letter-spacing: .12em; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module-card { display: flex; min-height: 235px; flex-direction: column; border: 1px solid var(--line); padding: 24px; background: rgba(8,13,23,.75); transition: transform .2s, border-color .2s, background .2s; }
.module-card:hover { border-color: rgba(0,229,255,.28); background: rgba(12,21,35,.9); transform: translateY(-3px); }
.red-shell .module-card:hover { border-color: rgba(255,35,61,.3); }
.module-card > div { display: flex; justify-content: space-between; }
.module-code { color: var(--cyan); font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.red-shell .module-code { color: var(--red-soft); }
.module-card h3 { margin: 24px 0 9px; font-family: var(--display); font-size: 14px; line-height: 1.4; }
.module-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #7e8ca1; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.module-open { margin-top: auto; padding-top: 18px; color: #6b7d95; font-family: var(--display); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.arsenal-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; border: 1px solid var(--line); margin-bottom: 16px; padding: 18px; background: var(--panel); }
.arsenal-toolbar label { width: min(480px, 100%); }
.arsenal-toolbar > div { display: flex; gap: 8px; }
.arsenal-list { border: 1px solid var(--line); }
.arsenal-list article { display: grid; grid-template-columns: 90px minmax(0,1fr) 190px; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 20px 24px; background: rgba(8,13,23,.72); }
.arsenal-list article:last-child { border: 0; }
.arsenal-list article[hidden] { display: none; }
.arsenal-code { color: var(--cyan); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.red-text { color: var(--red-soft); }
.arsenal-list h2 { margin: 0 0 4px; font-family: var(--display); font-size: 13px; }
.arsenal-list p { overflow: hidden; margin: 0; color: #74839a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arsenal-access { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: #687991; font-size: 9px; text-transform: uppercase; }
.arsenal-access a { color: var(--cyan); font-family: var(--display); font-size: 8px; letter-spacing: .08em; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 30px; color: #68778d; font-size: 11px; }
.breadcrumbs a { color: var(--cyan); }
.module-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); margin-bottom: 30px; padding-bottom: 36px; }
.module-hero h1 { margin: 14px 0 12px; font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.module-hero p { max-width: 760px; margin: 0; color: var(--muted); }
.module-meta { display: flex; align-items: center; gap: 10px; }
.module-actions { display: flex; min-width: max-content; flex-direction: column; gap: 10px; }
.module-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.limit-label { color: #65768e; font-family: var(--display); font-size: 7px; letter-spacing: .12em; }
.file-drop { min-height: 120px; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); padding: 20px; text-align: center; }
.file-drop input { min-height: auto; width: auto; border: 0; background: none; }
.file-drop span { display: flex; flex-direction: column; }
.file-drop strong { color: #c6d1df; }
.file-drop small { color: #68768c; }
.tutorial-list { margin: 0; padding: 0; list-style: none; }
.tutorial-list li { display: grid; grid-template-columns: 48px 1fr; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; }
.tutorial-list li:first-child { border-top: 0; }
.tutorial-list span { color: var(--cyan); font-family: var(--display); font-size: 9px; }
.tutorial-list p { margin: 0; color: #a5b0c0; }
.terminal-box, .result-panel pre { display: flex; overflow: auto; flex-direction: column; border: 1px solid var(--line); margin-top: 22px; padding: 18px; background: #04070c; color: #8090a6; font: 11px/1.8 ui-monospace, monospace; }
.dependency { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.dependency strong { color: #c3cedd; font-size: 12px; }
.dependency p { margin: 5px 0 0; font-size: 11px; }
.agent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.health-grid div { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 12px; color: #9ba9bc; font-size: 11px; }
.health-grid span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.result-panel { border: 1px solid rgba(54,230,162,.25); margin-bottom: 22px; padding: 30px; background: rgba(54,230,162,.035); }
.result-head { display: flex; align-items: center; justify-content: space-between; }
.result-head h2 { margin: 4px 0 0; color: var(--success); font-family: var(--display); }
.report-actions { display: flex; gap: 8px; }
.result-panel pre { max-height: 360px; white-space: pre-wrap; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.admin-module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.admin-module { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: var(--panel-solid); }
.admin-module > div { display: flex; align-items: center; gap: 12px; }
.admin-module strong { font-size: 11px; }
.toggle { position: relative; width: 36px; height: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: #111722; cursor: pointer; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #58677d; transition: transform .2s, background .2s; }
.toggle.on span { background: var(--success); box-shadow: 0 0 8px var(--success); transform: translateX(16px); }
.audit-stream > div { display: grid; grid-template-columns: 16px 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 12px 0; }
.audit-stream > div:first-child { border: 0; }
.audit-stream > div > span { width: 5px; height: 5px; border-radius: 50%; margin-top: 8px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.audit-stream p { display: flex; flex-direction: column; margin: 0; color: #bcc6d4; }
.audit-stream small { color: #64738a; }

@keyframes hero-breathe { from { transform: scale(1.01); filter: saturate(.82) contrast(1.02); } to { transform: scale(1.035); filter: saturate(1) contrast(1.07); } }

@media (max-width: 1100px) {
  .capability-layout, .security-section { grid-template-columns: 1fr; }
  .signal-panel { min-height: 560px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .command-card { grid-template-columns: 100px 1fr; padding: 32px; }
  .command-icon { font-size: 58px; }
  .module-layout { grid-template-columns: 1fr; }
  .module-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .module-side .panel { margin: 0; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding-top: 130px; }
}

@media (max-width: 820px) {
  .public-nav nav > a:not(.button) { display: none; }
  .hero { min-height: 780px; }
  .hero-art { background-position: center; opacity: .72; }
  .hero-actions, .trust-strip { flex-direction: column; }
  .trust-strip { align-items: center; gap: 8px; margin-top: 44px; }
  .dragon-intro-grid, .command-grid, .admin-grid { grid-template-columns: 1fr; }
  .dragon-intro { min-height: 520px; padding: 34px; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid article { border-right: 1px solid var(--line); }
  .public-footer { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .public-footer span:nth-child(2), .public-footer span:last-child { text-align: center; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .app-frame { margin-left: 0; }
  .menu-button { display: block; }
  .topbar time { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .command-card { min-height: 360px; }
  .module-hero { align-items: stretch; flex-direction: column; }
  .module-actions { min-width: 0; }
  .module-side { grid-template-columns: 1fr; }
  .admin-module-grid { grid-template-columns: 1fr; }
  .arsenal-list article { grid-template-columns: 70px minmax(0,1fr); }
  .arsenal-access { grid-column: 2; align-items: flex-start; }
  .installer-head { align-items: flex-start; flex-direction: column; gap: 34px; }
  .installer-progress i { width: 16px; }
  .check-list, .form-grid { grid-template-columns: 1fr; }
  .install-summary { grid-template-columns: repeat(2, 1fr); }
  .install-summary div:nth-child(2) { border-right: 0; }
  .install-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .public-nav { height: 74px; padding: 0 18px; }
  .public-nav .brand > span:last-child { display: none; }
  .hero-content { padding-top: 96px; }
  .hero h1 { font-size: 54px; }
  .hero-kicker { letter-spacing: .2em; }
  .section { padding: 90px 20px; }
  .dragon-intro ul { align-items: flex-start; flex-direction: column; }
  .signal-panel { min-height: 520px; }
  .signal-a { left: 5%; }
  .signal-b { right: 5%; }
  .app-main { padding: 32px 16px 60px; }
  .topbar { padding: 0 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .command-card { display: flex; min-height: 390px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .command-icon { margin-bottom: 20px; }
  .module-grid { grid-template-columns: 1fr; }
  .arsenal-toolbar { align-items: stretch; flex-direction: column; }
  .arsenal-list article { grid-template-columns: 1fr; }
  .arsenal-access { grid-column: 1; }
  .panel { padding: 22px; }
  .auth-panel { padding: 110px 24px 40px; }
  .step-actions, .step-actions > div { align-items: stretch; flex-direction: column; }
  .step-actions .button { width: 100%; }
  .installer-progress span { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
