:root {
  --bg: #050B12;
  --bg-2: #07111B;
  --surface: #0B141E;
  --surface-2: #0D1823;
  --surface-3: #10202E;
  --line: #1B3144;
  --line-2: #24516D;
  --text: #F1F6FB;
  --muted: #8FA4B8;
  --muted-2: #607C91;
  --blue: #0A84FF;
  --blue-2: #238FFF;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #EF4444;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell { min-height: 100vh; background:
  radial-gradient(circle at 77% 8%, rgba(10,132,255,.13), transparent 31rem),
  linear-gradient(180deg, #050B12 0%, #050B12 58%, #07111B 100%); }

.site-nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(5,11,18,.78);
  border-bottom: 1px solid rgba(27,49,68,.7);
}
.nav-inner { max-width: var(--max); margin: 0 auto; height: 72px; padding: 0 28px; display: flex; align-items: center; gap: 34px; }
.wordmark { display: inline-flex; align-items: baseline; letter-spacing: -1.2px; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 800; font-style: italic; font-size: 23px; line-height: 1; white-space: nowrap; }
.wordmark .flash { color: var(--blue); }
.wordmark small { font: 600 8px/1 Inter,sans-serif; letter-spacing: .13em; color: #54748D; font-style: normal; margin-left: 9px; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; color: #A7B9C8; font-size: 13px; }
.nav-links a:hover { color: white; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 10px; }

.btn { border: 1px solid var(--line); color: var(--text); background: var(--surface-2); border-radius: 7px; padding: 11px 17px; font-weight: 700; font-size: 12px; letter-spacing: .02em; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: #36536B; background: var(--surface-3); }
.btn.primary { background: var(--blue); border-color: var(--blue-2); box-shadow: 0 10px 26px rgba(10,132,255,.18); }
.btn.primary:hover { background: #168BFF; border-color: #44A2FF; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(239,68,68,.35); color: #F5C2C2; background: rgba(239,68,68,.07); }
.btn.wide { width: 100%; min-height: 45px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hero { max-width: var(--max); margin: 0 auto; padding: 92px 28px 68px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: #5793BB; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 31px; height: 1px; background: var(--blue); box-shadow: 0 0 13px rgba(10,132,255,.55); }
.hero h1 { margin: 22px 0 22px; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(56px, 7vw, 108px); line-height: .88; letter-spacing: -.07em; font-weight: 700; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--blue); }
.hero-copy { max-width: 620px; color: #A7B9C8; line-height: 1.75; font-size: 15px; }
.hero-actions { display: flex; gap: 11px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; color: #6F8799; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.08); }

.app-visual { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.app-visual::before { content: ""; position: absolute; inset: 0 0 0 12%; background-image: linear-gradient(rgba(27,49,68,.34) 1px,transparent 1px),linear-gradient(90deg,rgba(27,49,68,.34) 1px,transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at center,#000 20%,transparent 72%); }
.orbit { position: absolute; border: 1px solid rgba(36,81,109,.45); border-radius: 50%; width: 460px; height: 460px; }
.orbit.o2 { width: 340px; height: 340px; border-color: rgba(10,132,255,.15); }
.window { position: relative; width: min(100%, 610px); background: #07111B; border: 1px solid #24435A; box-shadow: 0 28px 90px rgba(0,0,0,.52), 0 0 55px rgba(10,132,255,.07); border-radius: 11px; overflow: hidden; transform: perspective(1300px) rotateY(-5deg) rotateX(2deg); }
.window-top { height: 36px; border-bottom: 1px solid #173047; display:flex; align-items:center; padding:0 12px; background:#07111B; }
.window-top .mini-mark { font-family:"Space Grotesk"; font-size:11px; font-weight:800; font-style:italic; }
.window-top .mini-mark b { color:var(--blue); }
.window-controls { margin-left:auto; display:flex; gap:12px; color:#60798D; font-size:11px; }
.window-body { display:grid; grid-template-columns: 122px 1fr; min-height:360px; }
.mock-side { border-right:1px solid #173047; padding:16px 10px; background:#06111B; }
.mock-nav { height:30px; border-radius:5px; margin-bottom:6px; padding:8px 9px; color:#718DA2; font-size:9px; }
.mock-nav.active { background:#10202E; color:#EAF4FB; border-left:2px solid var(--blue); }
.mock-main { padding:18px; }
.mock-bar { display:flex; gap:8px; justify-content:flex-end; margin-bottom:15px; }
.pill { font-size:8px; border:1px solid #1E3B50; background:#0C1B26; color:#9CB2C4; border-radius:99px; padding:5px 8px; }
.pill.ok::before { content:""; display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--green); margin-right:5px; }
.vehicle-card { border:1px solid #1B3144; background:#0B141E; border-radius:8px; padding:14px; display:flex; justify-content:space-between; align-items:center; }
.vehicle-card small { color:#6F8A9F; font-size:8px; letter-spacing:.1em; }
.vehicle-card strong { display:block; margin-top:5px; font-size:13px; }
.module-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:10px; }
.module-card { border:1px solid #1B3144; background:#0D1823; padding:12px; border-radius:8px; min-height:104px; position:relative; }
.module-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:7px; background:#0E2435; border:1px solid #24516D; color:#67B8FF; font-size:10px; font-weight:800; }
.module-card h4 { margin:13px 0 4px; font-size:11px; }
.module-card p { margin:0; color:#6F8799; font-size:8px; }
.module-card .ready { position:absolute; top:12px; right:11px; width:6px; height:6px; border-radius:50%; background:var(--green); }
.mock-action { margin-top:10px; display:flex; justify-content:flex-end; }
.mock-button { background:var(--blue); color:white; border-radius:5px; font-size:8px; font-weight:800; padding:8px 12px; }

.section { border-top: 1px solid rgba(27,49,68,.68); }
.section-inner { max-width: var(--max); margin:0 auto; padding:94px 28px; }
.section-head { display:grid; grid-template-columns: 180px 1fr; gap:36px; margin-bottom:54px; }
.section-number { color:#50718A; font-size:10px; letter-spacing:.15em; text-transform:uppercase; font-weight:800; }
.section-title { margin:0; font-family:"Space Grotesk",Inter,sans-serif; font-size:clamp(38px,4.4vw,68px); letter-spacing:-.055em; line-height:.98; max-width:760px; }
.section-title span { color:var(--blue); }
.section-copy { color:#8FA4B8; line-height:1.75; max-width:680px; margin:19px 0 0; }

.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.feature { min-height:260px; padding:26px; background:linear-gradient(180deg,#0B141E,#08111A); border-right:1px solid var(--line); }
.feature:last-child { border-right:0; }
.feature-index { font-size:10px; color:#4F718A; font-weight:800; letter-spacing:.1em; }
.feature h3 { margin:52px 0 12px; font-size:20px; }
.feature p { margin:0; color:#8097AA; font-size:13px; line-height:1.7; }

.module-layout { display:grid; grid-template-columns: .82fr 1.18fr; gap:28px; }
.module-panel { border:1px solid var(--line); background:#08121B; border-radius:10px; overflow:hidden; }
.module-panel-head { padding:19px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.module-panel-head span { font-size:10px; letter-spacing:.12em; color:#7891A5; font-weight:800; }
.support-tag { border:1px solid rgba(34,197,94,.3); background:rgba(34,197,94,.08); color:#6EE7A0; border-radius:99px; padding:5px 9px; font-size:9px; }
.support-list { padding:4px 20px 19px; }
.support-row { display:grid; grid-template-columns:118px 1fr; gap:16px; padding:17px 0; border-bottom:1px solid rgba(27,49,68,.68); }
.support-row:last-child { border-bottom:0; }
.support-row b { font-size:12px; }
.support-row div { color:#90A4B7; font-size:12px; line-height:1.7; }

.security-card { position:relative; min-height:100%; padding:26px; border:1px solid #23455E; background:radial-gradient(circle at 75% 0%,rgba(10,132,255,.12),transparent 45%),#08131D; border-radius:10px; overflow:hidden; }
.security-card h3 { font-family:"Space Grotesk"; font-size:34px; letter-spacing:-.045em; margin:22px 0 18px; }
.security-card p { color:#8FA4B8; line-height:1.75; max-width:530px; }
.security-points { margin-top:28px; display:grid; gap:11px; }
.security-point { display:flex; gap:10px; align-items:center; color:#BDD0DF; font-size:12px; }
.security-point .check { width:20px; height:20px; display:grid; place-items:center; background:rgba(34,197,94,.08); border:1px solid rgba(34,197,94,.28); border-radius:50%; color:#5FE094; font-size:10px; }

.price-card { max-width:860px; margin:0 auto; border:1px solid #28506A; background:linear-gradient(145deg,#0B1722,#07111A); border-radius:12px; padding:38px; display:grid; grid-template-columns:1fr auto; gap:30px; align-items:center; }
.price-label { color:#5793BB; font-size:10px; font-weight:800; letter-spacing:.15em; }
.price-card h3 { margin:11px 0 9px; font-size:30px; }
.price-card p { margin:0; color:#8299AC; line-height:1.7; }
.price { text-align:right; }
.price strong { font:700 46px/1 "Space Grotesk",Inter,sans-serif; }
.price span { color:#7E95A8; font-size:12px; display:block; margin-top:7px; }

.cta { text-align:center; padding:100px 28px 110px; }
.cta h2 { font:700 clamp(46px,6vw,84px)/.95 "Space Grotesk",Inter,sans-serif; letter-spacing:-.06em; margin:0 auto 22px; max-width:900px; }
.cta h2 span { color:var(--blue); }
.cta p { color:#8FA4B8; max-width:650px; margin:0 auto 30px; line-height:1.75; }

.footer { border-top:1px solid var(--line); }
.footer-inner { max-width:var(--max); margin:0 auto; padding:28px; display:flex; align-items:center; gap:20px; color:#60798D; font-size:11px; }
.footer-inner .wordmark { font-size:16px; }
.footer-spacer { flex:1; }
.footer-links { display:flex; gap:18px; }

/* auth */
.auth-shell { min-height:100vh; display:grid; grid-template-columns: minmax(330px, .92fr) minmax(480px, 1.08fr); background:#050B12; }
.auth-brand { position:relative; padding:48px clamp(32px,5vw,76px); border-right:1px solid var(--line); background:radial-gradient(circle at 50% 48%,rgba(10,132,255,.13),transparent 18rem),#06111B; overflow:hidden; display:flex; flex-direction:column; }
.auth-brand::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(27,49,68,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(27,49,68,.18) 1px,transparent 1px); background-size:44px 44px; mask-image:radial-gradient(circle at 50% 48%,#000,transparent 70%); }
.auth-brand > * { position:relative; z-index:1; }
.auth-brand .wordmark { font-size:34px; }
.auth-brand-center { margin:auto 0; }
.auth-brand-center .chip-visual { width:220px; height:130px; margin:0 auto 34px; border-radius:17px; border:1px solid #2A5A78; background:#0C2232; display:grid; place-items:center; box-shadow:0 25px 70px rgba(0,0,0,.35); position:relative; }
.chip-visual::before { content:"ECU"; width:142px; height:76px; border:1px solid #285C7B; background:#07131B; border-radius:8px; display:grid; place-items:center; color:#8AC6E6; font:700 23px "Space Grotesk"; }
.auth-brand-center h2 { font:700 39px/1.04 "Space Grotesk"; letter-spacing:-.045em; margin:0; max-width:420px; }
.auth-brand-center p { color:#7891A5; line-height:1.7; max-width:440px; font-size:13px; }
.auth-foot { color:#587A92; font-size:10px; letter-spacing:.07em; text-transform:uppercase; font-weight:700; }
.auth-main { display:flex; align-items:center; justify-content:center; padding:46px 28px; }
.auth-card { width:min(100%,480px); }
.auth-back { display:inline-flex; align-items:center; gap:7px; color:#68849A; font-size:11px; margin-bottom:28px; }
.auth-back:hover { color:white; }
.auth-card h1 { font:600 36px/1.05 "Space Grotesk"; letter-spacing:-.045em; margin:0; }
.auth-card .lead { margin:9px 0 28px; color:#8299AC; font-size:13px; }
.form-group { margin-bottom:17px; }
.form-label { display:block; margin:0 0 8px 1px; color:#6E899E; font-size:9.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.field { width:100%; min-height:46px; border:1px solid #20394C; background:#0A1621; color:var(--text); border-radius:7px; padding:11px 13px; outline:none; transition:.16s; }
.field:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(10,132,255,.08); }
.form-row { display:flex; justify-content:space-between; gap:16px; align-items:center; margin:4px 0 20px; }
.text-link { border:0; background:none; color:#79BAF3; padding:0; font-size:11px; }
.text-link:hover { color:white; }
.form-divider { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:center; color:#607C91; font-size:9px; letter-spacing:.08em; margin:16px 0; }
.form-divider::before,.form-divider::after { content:""; height:1px; background:#1A3143; }
.form-msg { min-height:18px; margin:12px 0; color:#9FB3C3; font-size:11px; line-height:1.5; }
.form-msg.error { color:#F7A4A4; }
.form-msg.ok { color:#7BE7A6; }

/* portal */
.portal-shell { min-height:100vh; display:grid; grid-template-columns:240px 1fr; background:#050B12; }
.portal-side { position:sticky; top:0; height:100vh; border-right:1px solid var(--line); background:#06111B; padding:25px 16px; display:flex; flex-direction:column; }
.portal-side .wordmark { padding:3px 10px 26px; font-size:23px; }
.portal-nav { display:grid; gap:6px; }
.portal-nav button { text-align:left; width:100%; border:0; background:transparent; color:#7891A5; border-radius:7px; padding:11px 12px; font-size:12px; font-weight:600; }
.portal-nav button:hover { background:#0B1722; color:white; }
.portal-nav button.active { background:#10202E; color:white; box-shadow:inset 2px 0 0 var(--blue); }
.portal-side-foot { margin-top:auto; border-top:1px solid var(--line); padding:15px 9px 0; }
.account-mini { color:#AFC0CE; font-size:11px; margin-bottom:9px; overflow:hidden; text-overflow:ellipsis; }
.portal-main { min-width:0; }
.portal-top { height:72px; border-bottom:1px solid var(--line); display:flex; align-items:center; padding:0 30px; position:sticky; top:0; z-index:15; background:rgba(5,11,18,.88); backdrop-filter:blur(14px); }
.portal-top h1 { font-size:16px; margin:0; }
.portal-top .spacer { flex:1; }
.status-chip { border:1px solid #1E3B50; background:#0C1B26; border-radius:99px; padding:6px 10px; color:#98ADBE; font-size:10px; display:flex; align-items:center; gap:7px; }
.portal-content { padding:30px; max-width:1320px; }
.portal-welcome h2 { font:600 34px/1.08 "Space Grotesk"; letter-spacing:-.04em; margin:0 0 8px; }
.portal-welcome p { margin:0; color:#7891A5; font-size:12px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:24px; }
.stat-card { border:1px solid var(--line); background:#0B141E; border-radius:9px; padding:18px; min-height:126px; }
.stat-label { color:#6F8A9F; font-size:9.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.stat-value { font:600 30px/1 "Space Grotesk"; margin-top:20px; }
.stat-sub { color:#68849A; font-size:10px; margin-top:8px; }
.panel-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:12px; margin-top:12px; }
.panel { border:1px solid var(--line); background:#0B141E; border-radius:9px; overflow:hidden; }
.panel-head { min-height:54px; display:flex; align-items:center; padding:0 17px; border-bottom:1px solid var(--line); }
.panel-head h3 { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#8BA1B3; margin:0; }
.panel-head .spacer { flex:1; }
.panel-body { padding:17px; }
.table { width:100%; border-collapse:collapse; }
.table th { text-align:left; color:#60798D; font-size:9px; letter-spacing:.07em; text-transform:uppercase; font-weight:800; padding:0 8px 11px; }
.table td { border-top:1px solid rgba(27,49,68,.68); padding:13px 8px; font-size:11px; color:#BBCBD8; }
.table tr:first-child td { border-top:0; }
.tag { display:inline-flex; align-items:center; border:1px solid #27445A; border-radius:99px; padding:4px 7px; color:#90A9BB; font-size:9px; }
.tag.green { color:#6EE7A0; border-color:rgba(34,197,94,.3); background:rgba(34,197,94,.07); }
.tag.red { color:#F9A8A8; border-color:rgba(239,68,68,.3); background:rgba(239,68,68,.07); }
.tag.amber { color:#F7C873; border-color:rgba(245,158,11,.3); background:rgba(245,158,11,.07); }
.empty { padding:28px 12px; color:#6E879A; text-align:center; font-size:11px; }
.activation { display:flex; gap:9px; }
.activation .field { min-width:0; }
.portal-page-title { margin-bottom:18px; }
.portal-page-title h2 { margin:0; font:600 28px/1.1 "Space Grotesk"; letter-spacing:-.035em; }
.portal-page-title p { color:#738CA0; margin:8px 0 0; font-size:11px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.settings-card { border:1px solid var(--line); background:#0B141E; border-radius:9px; padding:18px; }
.settings-card h3 { margin:0 0 18px; font-size:12px; }
.kv { display:grid; grid-template-columns:150px 1fr; gap:12px; padding:10px 0; border-bottom:1px solid rgba(27,49,68,.6); font-size:11px; }
.kv:last-child { border-bottom:0; }
.kv span:first-child { color:#6E879A; }
.kv span:last-child { color:#C4D2DC; }

.toast-root { position:fixed; right:18px; bottom:18px; z-index:100; display:grid; gap:9px; }
.toast { width:min(360px,calc(100vw - 36px)); padding:12px 14px; border:1px solid #2C4A61; background:#0C1823; border-radius:8px; box-shadow:0 18px 50px rgba(0,0,0,.35); color:#C8D6E0; font-size:11px; animation:toastIn .18s ease; }
.toast.error { border-color:rgba(239,68,68,.38); color:#F4B6B6; }
.toast.ok { border-color:rgba(34,197,94,.35); color:#9AE8B8; }
@keyframes toastIn { from { transform:translateY(7px); opacity:0 } }

@media (max-width: 1040px) {
  .hero { grid-template-columns:1fr; padding-top:72px; }
  .app-visual { min-height:430px; }
  .window { transform:none; }
  .feature-grid { grid-template-columns:1fr; }
  .feature { border-right:0; border-bottom:1px solid var(--line); min-height:210px; }
  .feature:last-child { border-bottom:0; }
  .feature h3 { margin-top:28px; }
  .module-layout { grid-template-columns:1fr; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .panel-grid,.settings-grid { grid-template-columns:1fr; }
}
@media (max-width: 780px) {
  .nav-links { display:none; }
  .nav-inner { padding:0 16px; }
  .wordmark small { display:none; }
  .hero { padding-left:18px; padding-right:18px; gap:30px; }
  .hero h1 { font-size:58px; }
  .app-visual { min-height:350px; }
  .window-body { grid-template-columns:88px 1fr; }
  .mock-side { padding:12px 7px; }
  .module-grid { grid-template-columns:1fr; }
  .module-card:nth-child(2),.module-card:nth-child(3) { display:none; }
  .orbit { width:330px;height:330px; }
  .orbit.o2 { width:250px;height:250px; }
  .section-inner { padding:72px 18px; }
  .section-head { grid-template-columns:1fr; gap:13px; }
  .price-card { grid-template-columns:1fr; }
  .price { text-align:left; }
  .footer-inner { flex-wrap:wrap; }
  .footer-links { width:100%; }
  .auth-shell { grid-template-columns:1fr; }
  .auth-brand { display:none; }
  .auth-main { padding:34px 20px; }
  .portal-shell { grid-template-columns:1fr; }
  .portal-side { position:fixed; z-index:50; left:0; right:0; top:auto; bottom:0; width:100%; height:66px; border-right:0; border-top:1px solid var(--line); padding:7px 9px; display:block; }
  .portal-side .wordmark,.portal-side-foot { display:none; }
  .portal-nav { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; }
  .portal-nav button { padding:8px 4px; text-align:center; font-size:9px; }
  .portal-main { padding-bottom:74px; }
  .portal-top { padding:0 17px; }
  .portal-content { padding:20px 14px; }
  .stat-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .stat-card { padding:14px; min-height:110px; }
  .stat-value { font-size:25px; }
}

/* ===== STARFLASH interactive product demo ===== */
.demo-section { background:radial-gradient(circle at 70% 15%,rgba(10,132,255,.07),transparent 28rem),#050B12; }
.demo-intro-bar { display:flex; align-items:center; gap:20px; border:1px solid var(--line); border-bottom:0; background:#08131D; border-radius:12px 12px 0 0; padding:12px 15px; color:#738CA0; font-size:10px; }
.demo-intro-bar > span:first-child { color:#B9CBD8; font-weight:700; white-space:nowrap; }
.demo-intro-bar .dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#22C55E; box-shadow:0 0 10px rgba(34,197,94,.45); margin-right:7px; }
.demo-restart { margin-left:auto; border:1px solid #28455A; background:#0B1823; color:#9EB4C5; border-radius:6px; padding:7px 10px; font-size:9px; font-weight:800; letter-spacing:.06em; }
.demo-restart:hover { color:white; border-color:#3A6582; }
.sf-demo-root { border:1px solid var(--line); border-radius:0 0 12px 12px; background:#03080E; padding:14px; box-shadow:0 35px 90px rgba(0,0,0,.28); }
.demo-app-window { min-height:620px; border:1px solid #173047; border-radius:7px; overflow:hidden; background:#050B12; box-shadow:0 20px 70px rgba(0,0,0,.32); }
.demo-titlebar { height:32px; display:flex; align-items:center; padding:0 10px; background:#07111B; border-bottom:1px solid #173047; }
.demo-titlebar .mini-mark { font-size:11px; font-weight:900; font-style:italic; }
.demo-titlebar .mini-mark b { color:var(--blue); }
.demo-window-actions { margin-left:auto; color:#66849A; letter-spacing:11px; font-size:10px; }
.demo-app-body { display:grid; grid-template-columns:178px minmax(0,1fr); min-height:588px; }
.demo-sidebar { display:flex; flex-direction:column; padding:17px 12px 12px; background:#06111B; border-right:1px solid #173047; }
.demo-brand { font:900 italic 17px/1 "Space Grotesk"; color:#fff; margin:0 4px 28px; }
.demo-brand > span,.demo-top-logo span,.demo-program-brand span { color:var(--blue); }
.demo-brand small { display:block; margin-top:7px; color:#4D7898; font:600 7px/1.3 Inter; font-style:normal; }
.demo-nav-label { color:#42617A; font-size:8px; font-weight:800; letter-spacing:.08em; margin:0 8px 8px; }
.demo-nav-item { appearance:none; border:0; text-align:left; border-radius:6px; background:transparent; color:#B4C3CE; padding:10px 12px; margin:2px 0; font-size:10px; }
.demo-nav-item.active { background:#0A84FF; color:#fff; }
.demo-side-status { margin-top:auto; border:1px solid #19354B; border-radius:7px; background:#08141E; padding:10px; color:#83A2B7; font-size:9px; }
.demo-side-status small { display:block; color:#5F89A7; margin-bottom:8px; }
.demo-side-status i { display:inline-block; width:6px;height:6px;border-radius:50%;background:#22C55E;margin-right:6px; }
.demo-side-status b { color:#D4DEE5; margin-left:9px; font-weight:600; }
.demo-workspace { min-width:0; display:flex; flex-direction:column; }
.demo-topbar { min-height:54px; display:flex; align-items:center; gap:8px; padding:0 14px; border-bottom:1px solid #173047; background:#07111B; }
.demo-top-logo { color:#fff; font:900 italic 14px/1 "Space Grotesk"; }
.demo-top-spacer { flex:1; }
.demo-pill { display:inline-flex; align-items:center; white-space:nowrap; padding:6px 8px; border:1px solid #1D394D; border-radius:6px; background:#091722; color:#607F94; font-size:8px; }
.demo-pill i { width:5px;height:5px;border-radius:50%;background:#4E6474;margin-right:5px; }
.demo-pill.on { color:#38D978; border-color:#174936; }
.demo-pill.on i { background:#22C55E; }
.demo-pill.neutral { color:#B3C3CE; }
.demo-user { border:1px solid #1D394D; border-radius:6px; padding:6px 8px; color:#B3C4D0; font-size:8px; }
.demo-content { padding:16px; flex:1; min-width:0; }
.demo-screen-head { display:flex; justify-content:space-between; align-items:flex-end; margin:3px 0 16px; }
.demo-screen-head.compact { margin-bottom:12px; }
.demo-kicker,.demo-panel-title { color:#547895; font-size:8px; font-weight:800; letter-spacing:.07em; }
.demo-screen-head h3 { margin:4px 0 4px; font-size:20px; font-weight:650; letter-spacing:-.03em; }
.demo-screen-head p { margin:0; color:#7891A5; font-size:10px; }
.demo-connect-grid,.demo-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.demo-panel { border:1px solid #1B3144; background:#0B141E; border-radius:8px; padding:14px; }
.demo-panel-title { margin-bottom:12px; }
.demo-interface-row { min-height:105px; display:flex; align-items:center; gap:14px; }
.demo-interface-icon { width:64px;height:64px;border:1px solid #24516D;background:#0E2435;border-radius:9px;display:grid;place-items:center;color:#67B8FF;font-size:10px;font-weight:800; }
.demo-interface-row strong { display:block; font-size:12px; }
.demo-interface-row span { display:block; margin-top:6px; color:#708B9F; font-size:9px; line-height:1.45; }
.demo-action { border-radius:6px; border:1px solid #244359; background:#0D1A25; color:#E8F0F5; padding:9px 12px; font-size:9px; font-weight:800; letter-spacing:.025em; }
.demo-action.primary { border-color:#238FFF; background:#0A84FF; color:#fff; }
.demo-action.secondary:hover,.demo-small-btn:hover { border-color:#376882; color:white; }
.demo-action.primary:hover { background:#1C90FF; }
.demo-action:disabled { opacity:.42; cursor:not-allowed; }
.demo-panel > .demo-action { margin-top:12px; width:100%; }
.demo-kv-row { display:grid; grid-template-columns:120px 1fr; gap:10px; align-items:center; min-height:31px; border-bottom:1px solid rgba(27,49,68,.6); font-size:9px; }
.demo-kv-row:last-of-type { border-bottom:0; }
.demo-kv-row span { color:#6F8A9F; }
.demo-kv-row b { color:#D1DCE4; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:600; overflow-wrap:anywhere; }
.demo-kv-row b.good,.good { color:#22C55E !important; }
.demo-log { margin-top:11px; border:1px solid #1B3144; background:#061019; border-radius:8px; padding:12px 14px; min-height:65px; }
.demo-log strong { display:block; color:#547895; font-size:8px; letter-spacing:.07em; margin-bottom:8px; }
.demo-log span { color:#8BA2B3; font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.demo-vehicle-banner { display:flex; align-items:center; gap:11px; border:1px solid #1B3144; background:#091722; border-radius:8px; padding:11px 12px; margin-bottom:12px; }
.demo-vehicle-badge { width:38px;height:38px;border-radius:7px;background:#0E2435;border:1px solid #24516D;display:grid;place-items:center;color:#0A84FF;font-size:17px;font-weight:800; }
.demo-vehicle-banner > div:nth-child(2) { min-width:0; }
.demo-vehicle-banner small { display:block; color:#547895; font-size:7px; font-weight:800; margin-bottom:3px; }
.demo-vehicle-banner strong { display:block; color:#EEF4F8; font-size:12px; }
.demo-vehicle-banner span { display:block; color:#5F86A2; font-size:8px; margin-top:3px; overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.demo-small-btn { margin-left:auto; border:1px solid #244359;background:#0C1A25;color:#B7C8D4;border-radius:6px;padding:8px 10px;font-size:8px;font-weight:800; }
.demo-module-select { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.demo-module-choice { position:relative; text-align:left; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; min-height:132px; border:1px solid #1B3144; background:#0B141E; border-radius:8px; color:#EEF4F8; padding:13px; }
.demo-module-choice:hover { border-color:#2A6286; transform:translateY(-1px); background:#0D1924; }
.demo-module-choice > i { position:absolute;right:10px;top:10px;width:6px;height:6px;border-radius:50%;background:#22C55E; }
.demo-module-choice > b { align-self:end;color:#6096B8;font-size:8px; }
.demo-module-choice strong { display:block;font-size:10px;line-height:1.25; }
.demo-module-choice span,.demo-module-choice em { display:block;margin-top:5px;color:#718EA2;font-size:8px;font-style:normal; }
.demo-module-choice em { color:#31C96D; }
.demo-module-letter { width:44px;height:44px;border-radius:8px;border:1px solid #24516D;background:#0E2435;display:grid;place-items:center;color:#0A84FF;font-size:18px;font-weight:800;line-height:.8; }
.demo-module-letter small { color:#B9D5EA;font-size:6px;margin:0;align-self:start; }
.demo-module-letter.large { width:50px;height:50px; }
.demo-module-header { display:flex; align-items:center; gap:11px; margin:0 0 12px; }
.demo-module-header h3 { margin:0;font-size:16px; }
.demo-module-header span { display:block;color:#7E9AAF;font-size:9px;margin-top:4px; }
.demo-ready { margin-left:auto;border:1px solid #174936;background:#091D17;color:#29CC68;border-radius:99px;padding:6px 9px;font-size:8px; }
.demo-ready i,.demo-status-row i { display:inline-block;width:6px;height:6px;border-radius:50%;background:#22C55E;margin-right:6px; }
.demo-status-row { min-height:31px; display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(27,49,68,.6);font-size:9px; }
.demo-status-row:last-child { border-bottom:0; }
.demo-status-row span { color:#C4D1DA; }
.demo-status-row b { color:#22C55E;font-weight:600; }
.demo-tune-card { margin-top:11px; border:1px solid #22445A; background:linear-gradient(110deg,#0C1924,#09141E);border-radius:8px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:14px; }
.demo-tune-card small { color:#5F87A4;font-size:7px;font-weight:800;letter-spacing:.07em; }
.demo-tune-card h4 { margin:5px 0 5px;font-size:14px; }
.demo-tune-card p { margin:0;color:#8098AA;font-size:9px; }
.demo-tune-card p span { color:#4B6F89;margin:0 4px; }
.demo-tune-card p strong { color:#DDE7ED; }
.demo-variants { display:flex;gap:6px;margin-top:11px;flex-wrap:wrap; }
.demo-variants button { border:1px solid #244359;background:#0A1621;color:#8DA5B7;border-radius:5px;padding:6px 8px;font-size:8px; }
.demo-variants button.active { color:#fff;border-color:#238FFF;background:#0A84FF; }
.demo-tune-side { display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;min-width:185px; }
.demo-tune-side > span { border:1px solid #1C4F70;color:#63B7EE;border-radius:99px;padding:4px 7px;font-size:7px;font-weight:800; }
.demo-action-row { display:grid;grid-template-columns:auto auto 1fr auto;gap:7px;margin-top:11px;padding:10px;border:1px solid #1B3144;background:#0B141E;border-radius:8px; }
.demo-program-shell { max-width:820px;margin:0 auto;padding:11px 12px; }
.demo-program-brand { color:#fff;font:900 italic 12px "Space Grotesk";margin-bottom:70px; }
.demo-program-brand b { color:#597B94;font:700 8px Inter;font-style:normal; }
.demo-program-center { display:flex;align-items:center;justify-content:center;gap:13px;margin-bottom:28px; }
.demo-flash-icon { width:45px;height:45px;border-radius:50%;display:grid;place-items:center;border:1px solid #24516D;background:#0E2435;color:#5EC0FF;font-size:19px; }
.demo-program-center h3 { margin:0;font-size:17px; }
.demo-program-center p { margin:4px 0 0;color:#6689A2;font-size:8px; }
.demo-progress-line { height:9px;border:1px solid #19364B;border-radius:99px;background:#07131D;overflow:hidden;margin-right:45px; }
.demo-progress-line span { display:block;height:100%;background:linear-gradient(90deg,#0A84FF,#3CB4FF);transition:width .18s linear; }
.demo-progress-num { float:right;transform:translateY(-17px);font-size:15px;font-weight:700; }
.demo-program-stats { clear:both;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border:1px solid #1B3144;background:#0B141E;border-radius:8px;padding:13px;margin-top:35px; }
.demo-program-stats small { display:block;color:#547895;font-size:7px;margin-bottom:6px; }
.demo-program-stats strong { font-size:10px; }
.demo-warning { margin-top:9px;text-align:center;border:1px solid #684A12;background:#2C210D;color:#E6AE3E;border-radius:6px;padding:10px;font-size:8px; }
.demo-program-log { margin-top:9px;border:1px solid #1B3144;background:#061019;border-radius:7px;min-height:92px;padding:12px;color:#7E9BAE;font:8px ui-monospace,SFMono-Regular,Consolas,monospace; }
.demo-complete { min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center; }
.demo-check { width:66px;height:66px;border:2px solid #188D49;background:#082819;color:#22C55E;border-radius:50%;display:grid;place-items:center;font-size:35px;margin-bottom:22px; }
.demo-complete h3 { margin:0;font-size:22px; }
.demo-complete p { color:#6187A2;font-size:9px; }
.demo-complete-info { width:min(620px,80%);border:1px solid #1B3144;background:#0B141E;border-radius:7px;padding:12px;margin:10px 0 16px;color:#8AA0B2;font-size:9px; }
.demo-complete-actions { display:flex;gap:8px; }

@media (max-width: 950px) {
  .demo-intro-bar > span:nth-child(2) { display:none; }
  .demo-module-select { grid-template-columns:1fr; }
  .demo-app-body { grid-template-columns:135px 1fr; }
  .demo-top-logo { display:none; }
  .demo-pill:nth-of-type(3),.demo-pill:nth-of-type(4) { display:none; }
  .demo-tune-card { grid-template-columns:1fr; }
  .demo-tune-side { min-width:0;align-items:stretch;gap:8px; }
}
@media (max-width: 680px) {
  .sf-demo-root { padding:7px; }
  .demo-app-window { min-height:650px; }
  .demo-app-body { grid-template-columns:1fr; }
  .demo-sidebar { display:none; }
  .demo-connect-grid,.demo-detail-grid { grid-template-columns:1fr; }
  .demo-topbar { padding:0 8px;gap:5px; }
  .demo-pill { font-size:7px;padding:5px 6px; }
  .demo-user { display:none; }
  .demo-content { padding:10px; }
  .demo-action-row { grid-template-columns:1fr 1fr; }
  .demo-action-row > div { display:none; }
  .demo-program-stats { grid-template-columns:1fr 1fr; }
  .demo-intro-bar { gap:8px; }
  .demo-restart { padding:6px 7px;font-size:8px; }
}

/* ===== Compatibility checker / public status / My Tunes ===== */
.public-subpage { min-height:calc(100vh - 130px); padding:110px 24px 70px; }
.subpage-hero { max-width:900px; margin:0 auto 28px; text-align:center; }
.subpage-hero h1 { margin:8px 0 12px; font:700 clamp(34px,5vw,62px)/1.02 "Space Grotesk",sans-serif; letter-spacing:-.045em; }
.subpage-hero p { max-width:760px; margin:0 auto; color:#8FA4B8; line-height:1.7; }
.lookup-card,.status-board { max-width:980px; margin:0 auto; border:1px solid #1B3144; background:#0A141E; border-radius:14px; padding:20px; box-shadow:0 28px 80px rgba(0,0,0,.24); }
.compat-form { display:grid; grid-template-columns:1fr auto; gap:10px; }
.compat-result { margin-top:18px; }
.compat-vehicle { border-bottom:1px solid #193247; padding:4px 2px 18px; }
.compat-vehicle small { color:#5F86A2; font-weight:800; letter-spacing:.08em; }
.compat-vehicle h2 { margin:7px 0 5px; font:650 26px "Space Grotesk",sans-serif; }
.compat-vehicle p,.compat-unknown p { margin:0; color:#8FA4B8; }
.compat-modules { display:grid; gap:9px; margin-top:16px; }
.compat-module { display:grid; grid-template-columns:54px 1fr auto; align-items:center; gap:12px; border:1px solid #18334A; background:#08131D; border-radius:9px; padding:12px; }
.compat-module-icon { width:46px; height:38px; border:1px solid #24516D; background:#0E2435; color:#67B8FF; display:grid; place-items:center; border-radius:7px; font-size:10px; font-weight:800; }
.compat-module strong { display:block; font-size:13px; }
.compat-module span:not(.tag) { display:block; color:#7891A5; font-size:11px; margin-top:3px; }
.compat-note { margin-top:14px; border:1px solid #284257; background:#0B1823; color:#7891A5; border-radius:8px; padding:11px 12px; font-size:11px; line-height:1.5; }
.compat-unknown { border:1px solid #263F53; background:#0B1823; border-radius:9px; padding:18px; }
.compat-unknown h3 { margin:0 0 7px; }
.simple-footer { border-top:1px solid #162C3E; padding:24px max(24px,calc((100vw - 1200px)/2)); display:flex; align-items:center; justify-content:space-between; color:#67849A; font-size:12px; }
.status-summary { display:flex; align-items:center; gap:12px; border-radius:10px; padding:15px; border:1px solid #194B35; background:#091C15; }
.status-summary.warn { border-color:#5B461B; background:#211A0B; }
.status-summary > i { width:11px; height:11px; border-radius:50%; background:#22C55E; box-shadow:0 0 14px rgba(34,197,94,.5); }
.status-summary.warn > i { background:#F59E0B; box-shadow:none; }
.status-summary strong,.status-summary span { display:block; }
.status-summary span { color:#7E9AAF; font-size:11px; margin-top:4px; }
.status-list { margin-top:12px; border:1px solid #18334A; border-radius:9px; overflow:hidden; }
.status-service { display:flex; align-items:center; justify-content:space-between; min-height:52px; padding:0 15px; border-bottom:1px solid #142B3D; }
.status-service:last-child { border-bottom:0; }
.status-service span { color:#D6E0E7; }
.status-service b { font-size:11px; }
.warn-text { color:#F59E0B; }
.my-tunes-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.my-tune-card { border:1px solid #1B3144; background:linear-gradient(145deg,#0B1721,#09121A); border-radius:11px; padding:16px; }
.my-tune-top { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.my-tune-top small { color:#6085A0; font-size:9px; font-weight:800; letter-spacing:.04em; }
.my-tune-top h3 { margin:5px 0 4px; font-size:18px; }
.my-tune-top p { margin:0; color:#7F98AA; font-size:11px; }
.tune-figures { margin-top:15px; border:1px solid #18354A; background:#08131D; border-radius:8px; padding:10px 12px; display:flex; gap:10px; align-items:center; font-size:12px; }
.tune-figures span { color:#7E97A9; }.tune-figures b { color:#527A96; }.tune-figures strong { color:#DCEAF2; }
.tune-bypass { display:inline-block; margin-top:10px; border:1px solid #225275; background:#0A2031; color:#78C4F4; border-radius:99px; padding:5px 8px; font-size:9px; font-weight:800; }
.tune-variants { margin-top:14px; }.tune-variants small { display:block; color:#5D7E95; font-size:9px; margin-bottom:8px; font-weight:800; }.tune-variants .tag { margin:0 6px 6px 0; }
.my-tune-foot { margin-top:14px; padding-top:11px; border-top:1px solid #173044; display:flex; justify-content:space-between; gap:12px; color:#6D899E; font-size:10px; }
.muted { color:#6D899E; font-size:11px; }
@media (max-width:820px){.compat-form{grid-template-columns:1fr}.my-tunes-grid{grid-template-columns:1fr}.my-tune-foot{flex-direction:column}.public-subpage{padding-top:90px}.simple-footer{gap:12px;flex-direction:column;align-items:flex-start}}
