:root {
  color-scheme: dark;
  --bg: #06111e;
  --ink: #f6fbff;
  --muted: #9fb4c6;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(9, 20, 35, .58);
  --glass-strong: rgba(13, 28, 48, .76);
  --cyan: #67e8f9;
  --pink: #f0abfc;
  --green: #86efac;
  --warn: #fde68a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(103, 232, 249, .26), transparent 30rem),
    radial-gradient(circle at 78% 8%, rgba(240, 171, 252, .22), transparent 28rem),
    radial-gradient(circle at 70% 86%, rgba(134, 239, 172, .15), transparent 28rem),
    linear-gradient(145deg, #06111e 0%, #081826 44%, #050913 100%);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 48% 42%, transparent, rgba(103, 232, 249, .18), transparent, rgba(240, 171, 252, .15), transparent),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, .04), transparent);
  filter: blur(34px);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-3deg); opacity: .78; }
  to { transform: translate3d(2%, 2%, 0) rotate(4deg); opacity: 1; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(5, 13, 24, .64);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 34px rgba(103, 232, 249, .34);
}

.nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

.nav button, .ghost, .secondary {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.nav button.active, .ghost:hover, .secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
}

.primary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 232, 249, .95), rgba(240, 171, 252, .92));
  color: #07111f;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(103, 232, 249, .16);
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  padding: 48px 0;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.signal-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 32px 90px rgba(0,0,0,.32);
  backdrop-filter: blur(28px);
  overflow: hidden;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 24%, rgba(103,232,249,.32), transparent 34%),
    radial-gradient(circle at 75% 68%, rgba(240,171,252,.26), transparent 30%);
}

.orbit {
  position: absolute;
  inset: 76px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  animation: spin 18s linear infinite;
}

.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 34px var(--cyan);
}

.orbit::before { left: 10%; top: 8%; }
.orbit::after { right: 12%; bottom: 4%; background: var(--pink); box-shadow: 0 0 34px var(--pink); }
@keyframes spin { to { transform: rotate(360deg); } }

.metric-line {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.metric-line span { color: var(--muted); }
.metric-line strong { font-size: 26px; }

.pulse-grid {
  position: absolute;
  inset: 80px 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  opacity: .7;
}
.pulse-grid i {
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  animation: breathe 2.7s ease-in-out infinite;
}
.pulse-grid i:nth-child(2n) { animation-delay: .5s; }
.pulse-grid i:nth-child(3n) { animation-delay: .9s; }
@keyframes breathe { 50% { background: rgba(103,232,249,.16); transform: scale(.96); } }

.view { display: none; padding: 28px 0 0; }
.view.active { display: block; animation: rise .42s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
h2 { font-size: 28px; margin-bottom: 6px; }
h3 { margin-bottom: 16px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.kpis div, .glass {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(26px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.kpis div { padding: 20px; }
.kpis span { display: block; color: var(--muted); font-size: 13px; }
.kpis strong { display: block; margin-top: 8px; font-size: 34px; }

.workspace { display: grid; gap: 14px; }
.workspace.two { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.glass { padding: 20px; min-width: 0; }

.form { display: grid; gap: 12px; align-content: start; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255,255,255,.08);
  color: var(--ink);
  outline: none;
}
textarea { min-height: 94px; padding-top: 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(103,232,249,.72); box-shadow: 0 0 0 3px rgba(103,232,249,.12); }

.platform-list {
  display: grid;
  gap: 10px;
}
.platform {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.platform:last-child { border-bottom: 0; }
.platform span { color: var(--muted); font-size: 13px; }
.badge {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(134,239,172,.14);
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}
td:first-child, th:first-child { color: var(--ink); }

.timeline { display: grid; gap: 10px; }
.event {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}
.event strong { display: block; margin-bottom: 4px; }
.event span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: var(--glass-strong);
  backdrop-filter: blur(26px);
}
dialog::backdrop { background: rgba(0, 0, 0, .48); backdrop-filter: blur(8px); }
.login-card { display: grid; gap: 14px; padding: 24px; }
menu { display: flex; justify-content: flex-end; gap: 10px; padding: 0; margin: 4px 0 0; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 18, 32, .9);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; overflow-x: auto; justify-content: start; border-radius: 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .signal-panel { min-height: 300px; }
  .kpis, .workspace.two { grid-template-columns: 1fr; }
  h1 { font-size: 42px; }
}
