
:root {
  --bg: #050914;
  --bg-2: #071326;
  --panel: #0B1628;
  --panel-2: #102847;
  --brand-blue: #073BFF;
  --brand-cyan: #00C4D8;
  --brand-green: #00D34F;
  --brand-gold: #D8AF45;
  --text: #F4FBFF;
  --muted: #AEBED1;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(7, 59, 255, .30), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(0, 196, 216, .20), transparent 25%),
    radial-gradient(circle at 88% 52%, rgba(0, 211, 79, .12), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #030711 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 1rem; }
strong { color: var(--text); }
img { max-width: 100%; }
.skip-link { position: absolute; top: -40px; left: 16px; background: var(--brand-cyan); color: #00131b; padding: 8px 12px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 12px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 20, .78);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand-copy { display: grid; gap: 1px; }
.brand-name { font-weight: 800; letter-spacing: .01em; font-size: .94rem; }
.brand-motto { color: var(--muted); font-size: .76rem; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 999px;
  font-size: .86rem;
  border: 1px solid transparent;
  transition: .2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  border-color: rgba(0,196,216,.30);
  background: rgba(255,255,255,.07);
}
.menu-btn { display: none; background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); padding: 9px 12px; border-radius: 12px; }
main { overflow: hidden; }
.section { max-width: var(--max); margin: 0 auto; padding: 72px 22px; }
.section.tight { padding-top: 36px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 38px; padding-top: 76px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--brand-gold); border: 1px solid rgba(216,175,69,.28); border-radius: 999px; padding: 7px 12px; background: rgba(216,175,69,.08); font-weight: 700; font-size: .84rem; margin-bottom: 18px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); max-width: 870px; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.2rem); color: #d6e4f4; max-width: 720px; margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(0,196,216,.4); }
.btn.primary { background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); color: #fff; border: 0; }
.btn.green { background: linear-gradient(135deg, rgba(0,211,79,.92), rgba(0,196,216,.88)); color: #02100a; border: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(0,196,216,.10), transparent 32%); pointer-events: none; }
.card > * { position: relative; }
.card.small { padding: 18px; border-radius: 18px; }
.card:hover { border-color: rgba(0,196,216,.34); }
.metric { display: grid; gap: 6px; }
.metric .num { font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.metric .label { color: var(--muted); font-size: .9rem; }
.badge { display: inline-flex; width: fit-content; color: var(--brand-gold); border: 1px solid rgba(216,175,69,.26); background: rgba(216,175,69,.08); border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 800; }
.kicker { color: var(--brand-cyan); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; margin-bottom: 10px; }
.page-head { padding-top: 64px; padding-bottom: 28px; }
.page-head h1 { max-width: 900px; font-size: clamp(2.1rem, 4vw, 4rem); }
.hero-visual { min-height: 440px; perspective: 900px; }
.model-cube {
  height: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: 32px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(16,40,71,.92), rgba(5,9,20,.88)); box-shadow: var(--shadow); transform: rotateX(6deg) rotateY(-8deg); transform-style: preserve-3d;
}
.orbit { position: absolute; border: 1px solid rgba(0,196,216,.24); border-radius: 50%; inset: 70px 38px; transform: rotate(-16deg); }
.orbit.two { inset: 106px 76px; border-color: rgba(0,211,79,.22); transform: rotate(22deg); }
.station { position: absolute; width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; font-weight: 900; color: white; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 16px 50px rgba(7,59,255,.35); }
.station.s1 { top: 70px; left: 60px; }
.station.s2 { top: 180px; right: 72px; background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan)); color: #00140c; }
.station.s3 { bottom: 64px; left: 135px; background: linear-gradient(135deg, var(--brand-gold), #fff0a8); color: #211500; }
.dashboard-panel { position: absolute; left: 48px; right: 48px; bottom: 42px; border-radius: 22px; padding: 18px; background: rgba(5,9,20,.76); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.sparkline { height: 76px; display: flex; align-items: end; gap: 7px; }
.sparkline span { flex: 1; border-radius: 999px 999px 4px 4px; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-blue)); min-height: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(255,255,255,.035); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
th { color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
.storyline { display: grid; gap: 18px; position: relative; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.step-num { width: 54px; height: 54px; border-radius: 18px; background: rgba(0,196,216,.13); border: 1px solid rgba(0,196,216,.28); display: grid; place-items: center; font-weight: 900; color: var(--brand-cyan); }
.callout { border-left: 3px solid var(--brand-gold); background: rgba(216,175,69,.08); padding: 18px; border-radius: 0 18px 18px 0; color: #e9d8a9; }
.controls { display: grid; gap: 14px; }
.control { display: grid; gap: 8px; }
.control label { display: flex; justify-content: space-between; gap: 12px; color: var(--text); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--brand-cyan); }
.output { display: grid; gap: 10px; text-align: center; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, rgba(7,59,255,.24), rgba(0,211,79,.13)); border: 1px solid rgba(0,196,216,.25); }
.output .value { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 950; letter-spacing: -.05em; }
.donut-layout { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 22px; }
.donut { width: 240px; height: 240px; border-radius: 50%; background: conic-gradient(var(--brand-blue) 0 42%, var(--brand-cyan) 42% 67%, var(--brand-green) 67% 86%, var(--brand-gold) 86% 100%); position: relative; margin: auto; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.35); }
.donut::after { content: "Revenue Mix"; position: absolute; inset: 58px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; text-align: center; font-weight: 900; color: var(--text); padding: 20px; }
.legend { display: grid; gap: 10px; }
.legend button { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); color: var(--muted); padding: 12px; cursor: pointer; }
.legend button.active { color: var(--text); border-color: rgba(0,196,216,.4); background: rgba(0,196,216,.1); }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 12px; }
.bar { height: 18px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; position: relative; }
.bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-green)); border-radius: inherit; }
.tooltip-source { cursor: help; }
.heatmap { display: grid; grid-template-columns: 92px repeat(4, 1fr); gap: 8px; }
.heatmap div { padding: 12px 8px; border-radius: 12px; background: rgba(255,255,255,.06); text-align: center; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); }
.heatmap .head { color: var(--text); font-weight: 900; }
.heatmap .cell { color: var(--text); font-weight: 900; }
.heatmap .low { background: rgba(7,59,255,.24); }
.heatmap .mid { background: rgba(0,196,216,.21); }
.heatmap .high { background: rgba(0,211,79,.18); }
.heatmap .gold { background: rgba(216,175,69,.18); }
.risk-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.risk-filters button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 800; }
.risk-filters button.active { color: #00131b; background: linear-gradient(135deg, var(--brand-cyan), var(--brand-green)); border: 0; }
.risk-card[data-hidden="true"] { display: none; }
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); }
.acc-button { width: 100%; background: transparent; color: var(--text); border: 0; padding: 16px; display: flex; justify-content: space-between; text-align: left; cursor: pointer; font-weight: 900; font-size: 1rem; }
.acc-panel { display: none; padding: 0 16px 16px; color: var(--muted); }
.acc-item.open .acc-panel { display: block; }
.form { display: grid; gap: 14px; }
.input, textarea, select { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; color: var(--text); padding: 12px 14px; font: inherit; }
textarea { min-height: 130px; resize: vertical; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 26px 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }
.notice { color: var(--brand-gold); }
@media (max-width: 930px) {
  .menu-btn { display: inline-flex; }
  .nav { align-items: flex-start; }
  .nav-links { display: none; width: 100%; padding-top: 12px; justify-content: flex-start; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-visual { min-height: 340px; }
  .model-cube { min-height: 340px; transform: none; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: 72px repeat(4, 1fr); font-size: .78rem; }
}
@media (max-width: 560px) {
  .section { padding: 54px 16px; }
  .nav { padding: 12px 16px; }
  .brand { min-width: 0; }
  .brand-name { font-size: .82rem; }
  .brand-motto { font-size: .69rem; }
  .bar-row { grid-template-columns: 72px 1fr 48px; }
  .dashboard-panel { left: 18px; right: 18px; }
  .station { width: 58px; height: 58px; border-radius: 18px; }
  .heatmap { overflow-x: auto; min-width: 520px; }
}
