:root {
  --bg: #060816;
  --bg-deep: #04050f;
  --panel: rgba(10, 14, 33, 0.68);
  --panel-strong: rgba(14, 20, 44, 0.86);
  --line: rgba(120, 198, 255, 0.2);
  --line-bright: rgba(117, 255, 236, 0.42);
  --text: #f4f6ff;
  --muted: #97a9d7;
  --cyan: #67f4ff;
  --mint: #6effcc;
  --pink: #ff63d8;
  --violet: #8d72ff;
  --amber: #ffd56a;
  --danger: #ff8e9a;
  --shadow: 0 25px 90px rgba(0, 0, 0, 0.45);
  --glow: 0 0 30px rgba(103, 244, 255, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(103, 244, 255, 0.18), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 99, 216, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(141, 114, 255, 0.2), transparent 28%),
    linear-gradient(160deg, #050611 0%, #091121 38%, #050713 100%);
  overflow-x: hidden;
}

.aurora,
.mesh,
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-a {
  background: radial-gradient(circle, rgba(103, 244, 255, 0.28), transparent 58%);
  transform: translate(-15%, -20%);
}

.aurora-b {
  background: radial-gradient(circle, rgba(255, 99, 216, 0.24), transparent 60%);
  transform: translate(50%, -10%);
  animation-duration: 22s;
}

.aurora-c {
  background: radial-gradient(circle, rgba(141, 114, 255, 0.2), transparent 62%);
  transform: translate(10%, 45%);
  animation-duration: 26s;
}

.mesh {
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(103, 244, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  transform: perspective(1200px) rotateX(74deg) translateY(26%);
  transform-origin: bottom center;
}

.mesh-b {
  opacity: 0.18;
  background-size: 24px 24px;
  transform: perspective(1000px) rotateX(78deg) translateY(42%);
}

.backdrop {
  background:
    linear-gradient(transparent 0%, rgba(3, 6, 16, 0.18) 55%, rgba(2, 4, 10, 0.8) 100%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding: 34px 22px 90px;
}

.hero,
.panel,
.metric-card,
.spotlight-card,
.hero-metric {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(12, 18, 39, 0.85), rgba(7, 11, 25, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero::before,
.panel::before,
.metric-card::before,
.spotlight-card::before,
.hero-metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, transparent 45%);
  transform: translateX(-100%);
  animation: sheen 10s linear infinite;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  border-radius: 34px;
  padding: 34px;
  margin-bottom: 18px;
}

.hero-copy,
.hero-visual,
.panel,
.metric-card,
.spotlight-card,
.hero-metric {
  transform-style: preserve-3d;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.77rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(103, 244, 255, 0.32);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.92;
  max-width: 10ch;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 20px rgba(103, 244, 255, 0.18),
    0 0 50px rgba(141, 114, 255, 0.16);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lede {
  color: var(--muted);
  line-height: 1.75;
  max-width: 70ch;
  font-size: 1.02rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(103, 244, 255, 0.28);
  background: rgba(103, 244, 255, 0.08);
  padding: 8px 14px;
  color: var(--text);
  box-shadow: var(--glow);
}

.hero-visual {
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero-core {
  position: relative;
  min-height: 260px;
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(103, 244, 255, 0.16), transparent 35%),
    radial-gradient(circle at center, rgba(255, 99, 216, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.core-ring {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(103, 244, 255, 0.28);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.ring-a {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  animation: spin 14s linear infinite;
}

.ring-b {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-color: rgba(255, 99, 216, 0.3);
  transform: rotateX(72deg);
  animation: spinReverse 10s linear infinite;
}

.ring-c {
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border-color: rgba(141, 114, 255, 0.42);
  transform: rotateY(70deg);
  animation: pulseSpin 8s ease-in-out infinite;
}

.core-center {
  position: absolute;
  inset: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(103, 244, 255, 0.35), rgba(141, 114, 255, 0.4)),
    rgba(8, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  box-shadow:
    0 0 40px rgba(103, 244, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metric {
  border-radius: 22px;
  padding: 18px;
}

.hero-metric span,
.metric-note,
.detail-metadata span,
label,
th,
.event-time {
  color: var(--muted);
}

.hero-metric strong,
.metric-value {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
}

.marquee-shell {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  padding: 12px 0;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.spotlight-grid,
.summary-grid,
.grid-two {
  display: grid;
  gap: 20px;
}

.spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.spotlight-card {
  border-radius: 26px;
  padding: 22px;
  min-height: 180px;
}

.spotlight-card h2 {
  margin: 10px 0 12px;
}

.spotlight-card p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}

.metric-card {
  border-radius: 24px;
  padding: 18px;
  min-height: 155px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.metric-card:hover,
.panel:hover,
.spotlight-card:hover,
.subsystem-card:hover,
.wealth-card:hover,
.event-card:hover,
.hero-metric:hover {
  border-color: var(--line-bright);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(103, 244, 255, 0.16);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 2rem;
  margin: 10px 0;
}

.grid-two {
  grid-template-columns: 1.55fr 1fr;
  margin-bottom: 24px;
}

.panel {
  border-radius: 28px;
  padding: 22px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.panel-large {
  min-height: 720px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filters,
.composer,
.register-form {
  display: grid;
  gap: 10px;
}

.filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 540px);
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 24, 0.72);
  color: var(--text);
  padding: 13px 15px;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(103, 244, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(103, 244, 255, 0.12), 0 0 24px rgba(103, 244, 255, 0.18);
}

button {
  position: relative;
  background:
    linear-gradient(135deg, rgba(110, 255, 204, 0.92), rgba(103, 244, 255, 0.92) 40%, rgba(141, 114, 255, 0.92) 100%);
  color: #09111e;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(103, 244, 255, 0.2);
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 260ms ease;
}

button:hover {
  transform: translateY(-2px) scale(1.01);
}

button:hover::after {
  transform: translateX(120%);
}

button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 24, 0.72);
  color: var(--text);
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

tbody tr {
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

tbody tr:hover,
tbody tr.active {
  background: linear-gradient(90deg, rgba(103, 244, 255, 0.08), rgba(255, 99, 216, 0.08));
}

.pill {
  min-height: 40px;
}

.detail-body,
.stack,
.event-list {
  display: grid;
  gap: 14px;
}

.feedback-bar {
  position: sticky;
  bottom: 18px;
  z-index: 10;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(103, 244, 255, 0.24);
  background: rgba(7, 12, 24, 0.92);
  box-shadow: var(--shadow);
}

.feedback-bar.hidden {
  display: none;
}

.feedback-bar.error {
  border-color: rgba(255, 142, 154, 0.42);
  color: #ffd5d5;
}

.feedback-bar.success {
  border-color: rgba(110, 255, 204, 0.42);
  color: var(--text);
}

.detail-section {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.detail-grid,
.subsystems-grid,
.wealth-grid {
  display: grid;
  gap: 14px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-metadata {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-metadata:last-child {
  border-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(103, 244, 255, 0.1);
}

.subsystem-card,
.wealth-card,
.event-card {
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(11, 16, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, border-color 220ms ease;
}

.subsystems-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wealth-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-card strong {
  display: block;
  margin-bottom: 8px;
}

.event-card p {
  color: var(--muted);
  line-height: 1.6;
}

.event-time {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-row input {
  max-width: 150px;
}

.callout {
  color: var(--amber);
}

@keyframes drift {
  from {
    transform: translate(-10%, -12%) scale(1);
  }
  to {
    transform: translate(12%, 8%) scale(1.1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotateX(72deg) rotate(360deg);
  }
  to {
    transform: rotateX(72deg) rotate(0deg);
  }
}

@keyframes pulseSpin {
  0%,
  100% {
    transform: rotateY(70deg) scale(1);
  }
  50% {
    transform: rotateY(70deg) scale(1.1);
  }
}

@keyframes sheen {
  0%,
  82% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .hero,
  .grid-two,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 18px 14px 54px;
  }

  .panel,
  .hero,
  .spotlight-card {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.7rem;
  }
}
