:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: #0d1423;
  --panel-2: #101b31;
  --line: #21365d;
  --text: #eaf2ff;
  --muted: #91a2c2;
  --cyan: #65ffe6;
  --violet: #a88bff;
  --amber: #ffd166;
  --danger: #ff6b8a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% -10%, #1b2f66 0, transparent 34%), radial-gradient(circle at 10% 30%, #111d3d 0, transparent 28%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.shell { max-width: 1240px; margin: auto; padding: 24px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0 34px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 28px; height: 28px; border: 1px solid var(--cyan); border-radius: 8px; box-shadow: 0 0 20px #65ffe655; background: linear-gradient(135deg, #65ffe633, #a88bff44); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: #152340; }
.eyebrow { color: var(--cyan); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: .96; letter-spacing: -.06em; max-width: 820px; margin: 16px 0 22px; }
h2 { letter-spacing: -.03em; margin: 0 0 12px; }
h3 { margin: 8px 0; }
p { color: var(--muted); line-height: 1.65; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 28px; align-items: center; padding: 46px 0 54px; }
.hero-copy p { max-width: 650px; font-size: 17px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; padding: 11px 15px; background: #111c33; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.button.primary { color: #06121a; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 24px #65ffe633; }
.button[disabled] { cursor: not-allowed; opacity: .55; }
.graph-panel, .panel, .card { background: linear-gradient(145deg, #111c31dd, #0b1221ee); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px #00000033; }
.graph-panel { padding: 14px; min-height: 330px; position: relative; overflow: hidden; }
.graph-panel canvas { width: 100%; height: 300px; display: block; }
.graph-label { position: absolute; top: 20px; left: 22px; color: var(--muted); font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 56px; }
.metric { padding: 18px; background: #0b1220aa; border: 1px solid #1a2a4b; border-radius: 14px; }
.metric strong { display: block; color: var(--cyan); font-size: 26px; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 32px 0 18px; }
.section-head p { margin: 0; max-width: 650px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px; min-height: 210px; }
.card:hover { border-color: #3a5d94; transform: translateY(-2px); transition: transform .2s ease, border-color .2s ease; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.card p { font-size: 14px; }
.tag, .status { display: inline-flex; align-items: center; width: fit-content; border: 1px solid #2d4776; color: #b8caf1; border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.status.draft, .status.pending { color: var(--amber); border-color: #80682c; }
.status.approved, .status.active { color: var(--cyan); border-color: #287c72; }
.status.revoked, .status.rejected { color: var(--danger); border-color: #82344c; }
.detail { margin-top: 18px; padding-top: 14px; border-top: 1px solid #1a2a4b; }
.detail summary { color: var(--cyan); cursor: pointer; font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel { padding: 22px; }
.panel + .panel { margin-top: 18px; }
.list { display: grid; gap: 9px; margin-top: 14px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px; background: #0a1220; border: 1px solid #172744; border-radius: 10px; color: var(--muted); font-size: 13px; }
.list-row strong { color: var(--text); }
.notice { padding: 14px 16px; border: 1px solid #60502a; border-radius: 12px; background: #241d0d88; color: #ead59b; font-size: 13px; line-height: 1.5; }
.notice.info { border-color: #2a5470; background: #0d223388; color: #b5dcf1; }
.footer { padding: 54px 0 20px; color: #7183a3; font-size: 12px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.empty { padding: 30px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.error { max-width: 600px; margin: 80px auto; padding: 24px; }
@media (max-width: 900px) { .hero, .two-col { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shell { padding: 18px; } .nav { align-items: start; flex-direction: column; } .nav-links { justify-content: start; } .metrics, .grid { grid-template-columns: 1fr; } h1 { font-size: 54px; } }

/* Studio surface: public flexing page and the first admin viewport. */
.public-nav { padding-bottom: 28px; }
.login-link { border: 1px solid #2b4775; border-radius: 999px; padding: 9px 14px; color: var(--text); font-size: 13px; font-weight: 750; }
.login-link:hover, .login-link.ready { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px #65ffe622; }
.admin-nav { padding-bottom: 18px; }
.logout-link { color: #ff9bb0 !important; }
.flex-hero { min-height: 72vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(36px, 8vw, 130px); align-items: center; padding: clamp(52px, 10vh, 120px) 0 80px; }
.flex-hero h1 { max-width: 720px; font-size: clamp(56px, 9vw, 122px); }
.flex-hero h1 span { color: var(--cyan); text-shadow: 0 0 32px #65ffe644; }
.hero-lede { max-width: 570px; font-size: clamp(17px, 2vw, 21px) !important; }
.text-link { color: var(--cyan); font-size: 14px; font-weight: 750; padding: 12px 0; }
.presentation-stack { display: grid; gap: 12px; }
.presentation-stack article { padding: 22px 24px; border-left: 1px solid #2d5b86; background: linear-gradient(110deg, #0d192bcc, #0b122188); }
.presentation-stack article:nth-child(2) { border-left-color: var(--violet); margin-left: 28px; }
.presentation-stack article:nth-child(3) { border-left-color: var(--amber); margin-left: 56px; }
.presentation-stack article > span { color: var(--muted); font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.presentation-stack h2 { margin: 10px 0 4px; font-size: 22px; }
.presentation-stack p { margin: 0; font-size: 13px; }
.home-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.home-proof div { display: flex; align-items: baseline; gap: 12px; padding: 24px 0; background: var(--bg); }
.home-proof strong { color: var(--cyan); font-size: 32px; }
.home-proof span { color: var(--muted); font-size: 12px; }
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 120px 0 80px; }
.home-bottom h2 { font-size: clamp(28px, 4vw, 52px); }
.home-bottom p { max-width: 520px; align-self: end; }
.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: 70px 0 54px; }
.page-intro h1 { margin-bottom: 14px; }
.page-intro > div:first-child { max-width: 760px; }
.catalog-stats { display: grid; grid-template-columns: auto auto; gap: 4px 14px; min-width: 160px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #0b1220aa; }
.catalog-stats strong { color: var(--cyan); font-size: 26px; }
.catalog-stats span { color: var(--muted); font-size: 12px; align-self: center; }
.industry-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 46px 0 20px; }
.industry-strip span { color: #b9c8e6; border: 1px solid #20375e; border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.dashboard-graph { min-height: 99vh; margin-inline: calc(50% - 50vw); padding: 52px max(24px, calc((100vw - 1192px) / 2)) 34px; border-top: 1px solid #182d50; border-bottom: 1px solid #182d50; background: radial-gradient(circle at 50% 50%, #10294a66 0, transparent 45%), #060a13aa; }
.dashboard-graph-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.dashboard-graph-head h1 { margin: 12px 0 12px; font-size: clamp(36px, 5vw, 68px); }
.dashboard-graph-head p { max-width: 540px; margin: 0; font-size: 14px; }
.graph-signal { display: flex; gap: 9px; align-items: center; border: 1px solid #214769; border-radius: 999px; color: #b9c8e6; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
.signal-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.graph-stage { position: relative; min-height: calc(99vh - 250px); margin-top: 20px; border: 1px solid #192f52; border-radius: 22px; overflow: hidden; background-image: linear-gradient(#1a325022 1px, transparent 1px), linear-gradient(90deg, #1a325022 1px, transparent 1px); background-size: 48px 48px; }
.graph-stage canvas { width: 100%; height: calc(99vh - 270px); min-height: 420px; display: block; }
.graph-watermark { position: absolute; top: 20px; left: 24px; color: #6882ac; font-size: 10px; letter-spacing: .16em; line-height: 1.8; }
.graph-watermark span { color: var(--cyan); letter-spacing: .08em; }
.analytics-section { padding: 100px 0 30px; min-height: 100vh; }
.analytics-section .section-head { margin-top: 0; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.analytics-card { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; min-height: 195px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #111c31dd, #0b1221ee); }
.analytics-card:hover { border-color: var(--cyan); transform: translateY(-2px); transition: transform .2s ease, border-color .2s ease; }
.analytics-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #2c6682; border-radius: 12px; color: var(--cyan); font-size: 12px; font-weight: 850; }
.analytics-card h3 { margin: 14px 0 2px; }
.analytics-card p { margin: 0; font-size: 13px; }
.external-arrow { position: absolute; top: 20px; right: 20px; color: var(--cyan); }
.admin-lower { margin-top: 26px; }
.footer { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.6fr); gap: 50px; align-items: start; padding: 82px 0 26px; border-top: 1px solid #172948; }
.footer-brand strong { color: var(--text); font-size: 18px; letter-spacing: .03em; }
.footer-brand p { max-width: 300px; font-size: 12px; }
.footer-brand > span { color: #607293; font-size: 11px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.footer-links > div { display: grid; align-content: start; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--cyan); }
.footer-label { color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); padding: 14px 16px; border: 1px solid #2d6684; border-radius: 12px; background: #0a1627f2; color: #c8e8f3; box-shadow: 0 12px 36px #0008; font-size: 13px; line-height: 1.45; }
.toast.warning { border-color: #80682c; color: #ead59b; }
@media (max-width: 900px) { .flex-hero, .home-bottom { grid-template-columns: 1fr; } .presentation-stack { max-width: 680px; } .analytics-grid { grid-template-columns: 1fr; } .dashboard-graph-head, .page-intro { align-items: start; flex-direction: column; } .graph-signal { align-self: start; } }
@media (max-width: 620px) { .home-proof { grid-template-columns: 1fr; } .home-proof div { padding: 16px 0; } .presentation-stack article:nth-child(2), .presentation-stack article:nth-child(3) { margin-left: 0; } .footer, .footer-links { grid-template-columns: 1fr; } .dashboard-graph { padding-inline: 18px; } .graph-stage canvas { min-height: 520px; } .flex-hero h1 { font-size: 62px; } }
