:root {
  --bg: #050a12;
  --panel: #081522;
  --panel-2: #0b1b2a;
  --line: rgba(157, 194, 222, .2);
  --line-strong: rgba(82, 199, 245, .48);
  --text: #f4f8fb;
  --muted: #a8b8c5;
  --dim: #708597;
  --cyan: #52c7f5;
  --green: #55d69e;
  --amber: #f0b45a;
  --header-h: 50px;
  --ticker-h: 32px;
  --transition: 400ms;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
body { color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, p, blockquote { margin-top: 0; }
.dashboard-shell { width: 100vw; height: 100vh; overflow: hidden; background: radial-gradient(circle at 18% 0, rgba(38, 104, 154, .16), transparent 32%), linear-gradient(145deg, #07111d, #040911 65%, #06101a); }
.dashboard-shell::before { content: ""; position: fixed; inset: var(--header-h) 25% var(--ticker-h) 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(112,160,198,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(112,160,198,.07) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, black, transparent 86%); }

.topbar { position: relative; z-index: 20; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 1.6vw, 32px); border-bottom: 1px solid var(--line); background: rgba(4,10,18,.96); }
.brand-lockup, .topbar-actions { display: flex; align-items: center; }
.brand-mark { font-size: clamp(18px, 1.1vw, 22px); font-weight: 800; letter-spacing: .18em; }
.brand-divider { width: 1px; height: 18px; margin: 0 14px; background: var(--line-strong); }
.brand-product { color: var(--cyan); font-size: clamp(12px, .72vw, 14px); font-weight: 800; letter-spacing: .2em; }
.brand-context { display: none; }
.topbar-actions { gap: 20px; }
.system-state { color: #c2ced8; font-size: clamp(10px, .58vw, 11px); font-weight: 800; letter-spacing: .12em; }
.status-dot, .live-badge i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(85,214,158,.65); animation: pulse 2.4s ease-in-out infinite; }
.admin-trigger { padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.025); color: #96a7b5; font-size: 10px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.admin-trigger:hover, .admin-trigger:focus-visible { color: var(--text); border-color: var(--line-strong); outline: none; }

.display-grid { position: relative; width: 100%; height: calc(100vh - var(--header-h) - var(--ticker-h)); display: grid; grid-template-columns: 75% 25%; }
.stage { position: relative; min-width: 0; overflow: clip; border-right: 1px solid var(--line); }
.slide-track, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity var(--transition) ease, transform var(--transition) ease, visibility var(--transition); pointer-events: none; }
.slide.is-active { z-index: 2; opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
.slide.is-exiting { z-index: 1; opacity: 0; visibility: visible; transform: translateX(-12px); }
.slide-inner { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: clamp(20px, 2.6vh, 30px); padding: clamp(28px, 3.4vh, 40px) clamp(34px, 2.8vw, 54px) clamp(54px, 6vh, 64px); overflow: hidden; }
.massive-heading { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.eyebrow { color: var(--dim); font-size: 13px; font-weight: 800; letter-spacing: .13em; }
h1 { margin: 13px 0 12px; font-size: clamp(56px, 4.5vw, 88px); line-height: .96; letter-spacing: -.055em; }
h1 em { color: var(--cyan); font-style: normal; font-weight: 400; }
.massive-heading p { margin: 0; color: #d2dce4; font-size: clamp(22px, 1.5vw, 30px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; }

.icon-card-grid { flex: 1 1 auto; min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 1.4vw, 28px); overflow: hidden; }
.icon-card { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(24px, 2.1vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(13,31,48,.95), rgba(6,16,27,.88)); }
.icon-card::after { content: ""; position: absolute; right: 4%; bottom: -26%; width: 220px; height: 220px; border: 1px solid rgba(82,199,245,.08); border-radius: 50%; }
.icon-card svg { width: clamp(70px, 5.8vw, 110px); height: clamp(70px, 5.8vw, 110px); margin-bottom: clamp(20px, 2.3vh, 28px); fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-card strong { position: relative; z-index: 1; display: block; color: var(--text); font-size: clamp(52px, 4vw, 82px); line-height: .98; letter-spacing: -.05em; }
.icon-card span { position: relative; z-index: 1; margin-top: 12px; color: #d1dde5; font-size: clamp(22px, 1.5vw, 30px); font-weight: 600; letter-spacing: .02em; }
.accent-card { border-color: var(--line-strong); background: linear-gradient(135deg, rgba(15,55,80,.9), rgba(7,19,32,.92)); }
.accent-card svg { color: var(--green); stroke: var(--green); }
.accent-card span { color: var(--green); }
.minimal-footer { flex: 0 0 auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 20px; font-weight: 800; letter-spacing: .12em; }

.three-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
.three-cards .icon-card strong { font-size: clamp(42px, 3.25vw, 68px); }
.noncoder-hero { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: clamp(80px, 11vh, 118px); border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(100deg, rgba(17,65,93,.46), rgba(7,19,31,.9)); color: #dbe6ed; font-size: clamp(28px, 2vw, 40px); font-weight: 500; letter-spacing: .04em; }
.noncoder-hero strong { margin-left: 14px; color: var(--cyan); font-weight: 800; }
.esg-hero { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2vw, 38px); min-height: clamp(125px, 17vh, 180px); border: 1px solid rgba(85,214,158,.48); border-radius: 22px; background: linear-gradient(100deg, rgba(14,54,47,.4), rgba(7,20,29,.92)); overflow: hidden; }
.esg-hero span { color: #c2d2cc; font-size: clamp(26px, 1.8vw, 36px); font-weight: 500; }
.esg-hero strong { color: var(--green); font-size: clamp(74px, 6vw, 118px); line-height: .8; letter-spacing: -.07em; }
.esg-hero b { color: #d5e2dd; font-size: clamp(25px, 1.7vw, 34px); line-height: 1.05; letter-spacing: .04em; }

.terminal-panel { position: relative; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #060c14, #050a11); }
.terminal-header { min-height: clamp(62px, 7vh, 76px); display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(18px, 1.35vw, 26px); border-bottom: 1px solid var(--line); }
.terminal-header > div { display: flex; flex-direction: column; gap: 5px; }
.terminal-header span { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.terminal-header strong { font-size: clamp(16px, 1vw, 19px); letter-spacing: .04em; }
.terminal-header .live-badge { display: flex; align-items: center; padding: 7px 8px; border: 1px solid rgba(85,214,158,.28); color: var(--green); font-size: 10px; }
.terminal-health { display: grid; grid-template-columns: repeat(3, 1fr); padding: 13px clamp(18px, 1.35vw, 26px); border-bottom: 1px solid var(--line); }
.terminal-health span { display: flex; flex-direction: column; gap: 4px; color: #607487; font: 700 10px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; }
.terminal-health b { color: var(--green); }
.terminal-context { display: flex; justify-content: space-between; padding: 13px clamp(18px, 1.35vw, 26px); border-bottom: 1px solid var(--line); background: rgba(44,116,168,.055); }
.terminal-context span { color: #a5b6c4; font: 700 11px/1 monospace; letter-spacing: .09em; }
.terminal-context small { color: #617487; font: 700 10px/1 monospace; }
.terminal-output { flex: 1; min-height: 0; overflow: hidden; padding: 16px clamp(18px, 1.35vw, 26px) 12px; font: clamp(10px, .67vw, 13px)/1.48 "SFMono-Regular", Consolas, monospace; color: #91a4b5; scroll-behavior: smooth; }
.terminal-line { min-height: 1.48em; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-line.command { margin-top: .65em; color: #dce8ef; }
.terminal-line.section { margin-top: .55em; color: var(--cyan); font-weight: 700; }
.terminal-line.success { color: var(--green); }
.terminal-line.warning { color: var(--amber); }
.terminal-line.complete { margin-top: .35em; color: #e9f1f6; font-weight: 800; }
.terminal-line.separator { margin: .8em 0 .4em; color: #3c5367; }
.terminal-command { height: 47px; display: flex; align-items: center; padding: 0 clamp(18px, 1.35vw, 26px); border-top: 1px solid var(--line); color: #b7c5d0; font: clamp(10px, .66vw, 13px)/1 monospace; }
.terminal-cursor { width: 7px; height: 1.1em; margin-left: 7px; background: var(--cyan); animation: blink 1s steps(1) infinite; }

.stage-footer { position: absolute; z-index: 6; left: clamp(34px, 2.8vw, 54px); right: clamp(34px, 2.8vw, 54px); bottom: 15px; display: flex; align-items: center; justify-content: space-between; color: #73879a; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.slide-dots { display: flex; gap: 8px; }
.slide-dots button { width: 22px; height: 3px; padding: 0; border: 0; background: #33495c; cursor: pointer; }
.slide-dots button.is-active { width: 40px; background: var(--cyan); }

.status-ticker { position: relative; z-index: 20; height: var(--ticker-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; border-top: 1px solid var(--line); background: #050a11; overflow: hidden; }
.ticker-brand { height: 100%; display: flex; align-items: center; padding: 0 clamp(18px, 1.6vw, 32px); border-right: 1px solid var(--line); color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.ticker-window { min-width: 0; padding-left: 20px; overflow: hidden; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; color: #7890a2; font-size: 10px; font-weight: 800; letter-spacing: .1em; animation: ticker 42s linear infinite; }
.ticker-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); opacity: .75; }
.status-ticker time { height: 100%; display: flex; align-items: center; padding: 0 clamp(18px, 1.6vw, 32px); border-left: 1px solid var(--line); color: #8a9cad; font: 10px monospace; }

.admin-panel { position: fixed; z-index: 50; top: calc(var(--header-h) + 10px); right: 14px; width: min(330px, calc(100vw - 28px)); padding: 18px; border: 1px solid rgba(101,161,206,.35); border-radius: 4px; background: rgba(7,15,25,.98); box-shadow: 0 20px 60px rgba(0,0,0,.58); }
.admin-panel[hidden] { display: none; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.admin-heading > div { display: flex; flex-direction: column; gap: 4px; }
.admin-heading span { color: #687e91; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.admin-heading strong { font-size: 14px; letter-spacing: .09em; }
.admin-heading button { width: 26px; height: 26px; border: 1px solid var(--line); background: transparent; color: #8b9dad; cursor: pointer; }
.admin-panel > label, .custom-duration label { display: block; margin-bottom: 9px; color: #9badbc; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.duration-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.duration-options button, .admin-actions button, .custom-duration button { padding: 9px 6px; border: 1px solid var(--line); border-radius: 2px; background: #0b1724; color: #9babb9; font-size: 9px; font-weight: 700; letter-spacing: .05em; cursor: pointer; }
.duration-options button.is-active { color: var(--cyan); border-color: rgba(82,199,245,.55); background: rgba(82,199,245,.08); }
.custom-duration { display: grid; grid-template-columns: 60px 1fr 62px; gap: 6px; align-items: center; margin-top: 10px; }
.custom-duration label { margin: 0; }
.custom-duration input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: #060d16; color: var(--text); font-size: 10px; }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-actions button:hover, .duration-options button:hover, .custom-duration button:hover { color: var(--text); border-color: var(--line-strong); }
.admin-meta { display: flex; justify-content: space-between; margin-top: 14px; color: #607488; font-size: 8px; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes blink { 0%,48% { opacity: 1; } 49%,100% { opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-height: 820px) {
  .slide-inner { gap: 12px; padding: 17px 30px 39px; }
  h1 { margin: 7px 0 7px; font-size: clamp(44px, 3.8vw, 60px); }
  .massive-heading p { font-size: clamp(20px, 1.35vw, 25px); }
  .eyebrow { font-size: 12px; }
  .icon-card { padding: 18px 20px; border-radius: 16px; }
  .icon-card svg { width: clamp(56px, 5vw, 78px); height: clamp(56px, 5vw, 78px); margin-bottom: 12px; }
  .icon-card strong { font-size: clamp(38px, 3.2vw, 58px); }
  .icon-card span { margin-top: 8px; font-size: clamp(20px, 1.3vw, 24px); }
  .minimal-footer { padding-top: 10px; font-size: 18px; }
  .noncoder-hero { min-height: 66px; font-size: 27px; }
  .esg-hero { min-height: 93px; }
  .esg-hero strong { font-size: 68px; }
  .esg-hero span, .esg-hero b { font-size: 22px; }
  .stage-footer { bottom: 11px; }
}

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