:root {
  --bg: #090d18;
  --bg-2: #0e1428;
  --panel: rgba(13, 19, 37, 0.78);
  --border: rgba(147, 172, 255, 0.24);
  --text: #ecf2ff;
  --muted: #9da9cf;
  --accent: #6a86ff;
  --accent-2: #3be1c3;
  --amber: #f9b851;
  --green: #31cc89;
  --red: #ff6d7b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% -10%, rgba(84, 103, 255, 0.33), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(59, 225, 195, 0.2), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}
.aur-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(154, 179, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 179, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}
code { background: rgba(106, 134, 255, 0.13); padding: 2px 6px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
h1 { font-family: 'DM Serif Display', serif; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; margin-bottom: 12px; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: #cfd9ff; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
h3 { margin-top: 6px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; margin: 0; }

.landing-wrap, .dashboard-shell { max-width: 1240px; margin: 0 auto; padding: 24px 20px 56px; position: relative; z-index: 2; }
.glass {
  background: rgba(13, 19, 37, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.glow-card {
  box-shadow: inset 0 0 0 1px rgba(149, 176, 255, 0.06), 0 0 0 1px rgba(149, 176, 255, 0.08), 0 25px 50px rgba(0,0,0,0.28);
}
.top-nav, .dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  padding: 12px 14px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent), #7a46ff);
  font-family: 'DM Mono', monospace;
  font-weight: 600;
}
.eyebrow { color: var(--accent-2); letter-spacing: 0.08em; text-transform: uppercase; font-family: 'DM Mono', monospace; font-size: 12px; }
.subtext { color: var(--muted); font-size: 17px; max-width: 680px; line-height: 1.55; margin-top: 0; }
.hero { padding: 44px 0 20px; }
.hero-grid { display: grid; gap: 20px; grid-template-columns: 1.55fr 1fr; align-items: stretch; }
.hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}
.metric-tile {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;
  background: rgba(17, 26, 50, 0.7);
}
.metric-label { color: var(--muted); font-family: 'DM Mono', monospace; display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.hero-visual {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(circle at 35% 20%, rgba(108, 96, 255, 0.35), rgba(12,18,35,0.82));
}
.hero-visual p { color: var(--muted); }
.orbs { min-height: 80px; position: relative; }
.orb { position: absolute; width: 26px; height: 26px; border-radius: 999px; filter: blur(0.2px); animation: drift 4.8s ease-in-out infinite; }
.orb-c { background: #8bb7ff; left: 4%; top: 38%; box-shadow: 0 0 20px #8bb7ff; }
.orb-r { background: #3be1c3; left: 38%; top: 5%; box-shadow: 0 0 20px #3be1c3; animation-delay: .5s; }
.orb-s { background: #f9b851; right: 15%; bottom: 8%; box-shadow: 0 0 20px #f9b851; animation-delay: .8s; }
.sparkline {
  height: 54px;
  border-radius: 10px;
  margin-top: 12px;
  border: 1px solid rgba(149, 176, 255, 0.2);
  background: linear-gradient(90deg, rgba(106,134,255,0.15), rgba(59,225,195,0.08), rgba(249,184,81,0.12));
  position: relative;
  overflow: hidden;
}
.sparkline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.25), transparent 60%);
  transform: translateX(-100%);
  animation: scan 2.8s linear infinite;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.panel h2 { font-size: 17px; margin-bottom: 8px; }
.panel p { color: var(--muted); margin: 0; line-height: 1.55; }

.console-hero {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(13, 19, 37, 0.75);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.status-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill { border-radius: 999px; padding: 7px 10px; font-family: 'DM Mono', monospace; font-size: 11px; background: rgba(106,134,255,0.18); border: 1px solid rgba(149, 176, 255, 0.24); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 0.88fr;
  gap: 14px;
  margin-top: 14px;
}
.panel h2 { margin: 0 0 10px; }
textarea {
  width: 100%;
  min-height: 230px;
  border-radius: 12px;
  border: 1px solid rgba(149, 176, 255, 0.25);
  padding: 12px;
  font: inherit;
  resize: vertical;
  color: var(--text);
  background: rgba(5, 10, 22, 0.75);
}
textarea:focus { outline: none; border-color: #9cb2ff; box-shadow: 0 0 0 3px rgba(106, 134, 255, 0.2); }
.primary-btn, .ghost-btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.primary-btn { background: linear-gradient(135deg, var(--accent), #7f5bff); color: white; border-color: transparent; }
.ghost-btn { background: rgba(22, 33, 60, 0.65); }
.text-link { color: var(--muted); text-decoration: none; }
.threat-preview {
  margin-top: 10px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid rgba(149, 176, 255, 0.24);
  background: rgba(12, 18, 33, 0.7);
  color: var(--muted);
  padding: 10px;
}
.precalc-card {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(149, 176, 255, 0.24);
  background: rgba(8, 14, 28, 0.8);
  padding: 10px;
}
.precalc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.precalc-summary { margin: 8px 0 10px; color: #c2cff5; font-size: 13px; line-height: 1.45; }
.precalc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.precalc-grid div {
  border: 1px solid rgba(149,176,255,0.18);
  background: rgba(15, 24, 45, 0.8);
  border-radius: 9px;
  padding: 8px;
}
.precalc-grid span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.precalc-grid strong { display: block; margin-top: 4px; font-family: 'DM Mono', monospace; }
.mini-bars { display: grid; gap: 5px; }
.mini-bars label { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; font-family: 'DM Mono', monospace; }
.risk-badge { border-radius: 999px; padding: 4px 8px; font-size: 10px; }
.risk-low { color: var(--green); background: rgba(49, 204, 137, 0.16); }
.risk-med { color: var(--amber); background: rgba(249, 184, 81, 0.2); }
.risk-high { color: var(--red); background: rgba(255, 109, 123, 0.2); }

.trust-strip {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}
.trust-list {
  margin: 0;
  padding-left: 18px;
  color: #c7d3fb;
  display: grid;
  gap: 10px;
  align-content: center;
}
.sales-cta {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(17, 27, 53, 0.9), rgba(8, 14, 28, 0.95));
  padding: 18px;
}
.sales-cta p { color: var(--muted); max-width: 820px; }
.output-panels { display: grid; gap: 10px; }
.stage-card header {
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stage-dot { width: 8px; height: 8px; border-radius: 50%; }
.stage-dot.raw { background: #7f93d2; }
.stage-dot.governed { background: var(--amber); }
.stage-dot.final { background: var(--green); }
.output-box {
  min-height: 74px;
  border: 1px solid rgba(149, 176, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  background: rgba(5, 10, 22, 0.65);
}
.share-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.share-card {
  margin-top: 12px;
  background: rgba(16, 25, 48, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}
.developer-trace {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(149, 176, 255, 0.4);
  background: rgba(4, 8, 18, 0.7);
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
}
.metric-panel p { display: flex; justify-content: space-between; margin: 10px 0; color: var(--muted); gap: 8px; }
.metric-panel strong { color: var(--text); }
.badge { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-family: 'DM Mono', monospace; }
.badge.pass { color: var(--green); background: rgba(49, 204, 137, 0.15); }
.badge.intervened { color: var(--amber); background: rgba(249, 184, 81, 0.18); }
.metric-bars { margin-top: 8px; display: grid; gap: 6px; }
.metric-bars label { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.metric-track { height: 7px; border-radius: 999px; background: rgba(149,176,255,0.14); overflow: hidden; }
.metric-fill { height: 100%; width: 0%; transition: width 0.6s ease; }
.metric-fill.c { background: #79a8ff; }
.metric-fill.r { background: #3be1c3; }
.metric-fill.s { background: #f9b851; }
#simplexCanvas {
  width: 100%;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(149,176,255,0.2);
  background: rgba(5, 10, 22, 0.68);
}
.hidden { display: none; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes scan {
  to { transform: translateX(110%); }
}

@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .console-hero { flex-direction: column; }
  .hero-metrics { grid-template-columns: 1fr; }
  .precalc-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
}
