:root {
  color-scheme: dark;
  --bg: #07040f;
  --panel: #130b25;
  --panel-2: #1e1038;
  --line: rgba(250, 215, 120, 0.2);
  --text: #fff9eb;
  --muted: #d9cce8;
  --pink: #9e4dff;
  --pink-2: #d7b45b;
  --gold: #ffd66b;
  --lilac: #b66cff;
  --violet: #6d24ff;
  --danger: #ff766d;
  --ok: #75e2bd;
  --shadow: 0 18px 55px rgba(158, 77, 255, 0.28), 0 0 34px rgba(255, 214, 107, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(109, 36, 255, 0.22), transparent 32%),
    linear-gradient(280deg, rgba(255, 214, 107, 0.16), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 214, 107, 0.035) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(182, 108, 255, 0.03) 0 1px, transparent 1px 84px),
    var(--bg);
  background-size: 180% 180%, 160% 160%, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  animation: neonBackdrop 16s ease-in-out infinite alternate;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 214, 107, 0.08) 46%, transparent 51%),
    linear-gradient(255deg, transparent 0 58%, rgba(158, 77, 255, 0.12) 63%, transparent 68%);
  mix-blend-mode: screen;
  animation: lightSweep 9s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  animation: slideDown 0.65s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 0 18px rgba(255, 214, 107, 0.32);
}

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--lilac) 50%, var(--gold));
  box-shadow: var(--shadow);
  animation: neonPulse 2.8s ease-in-out infinite;
}

.nav,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
  padding: 42px 0 64px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  animation: fadeLift 0.8s ease both;
}

.kicker {
  width: fit-content;
  color: var(--gold);
  border: 1px solid rgba(231, 201, 120, 0.35);
  background: rgba(255, 214, 107, 0.08);
  box-shadow: 0 0 24px rgba(255, 214, 107, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 740px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  text-shadow: 0 0 34px rgba(182, 108, 255, 0.32), 0 0 22px rgba(255, 214, 107, 0.14);
}

.rocket-wrap {
  position: relative;
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transform-origin: 50% 70%;
  filter: drop-shadow(0 0 18px rgba(255, 214, 107, 0.45));
  animation: rocketFloat 2.4s ease-in-out infinite;
}

.rocket-wrap::before,
.rocket-wrap::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -0.12em;
  width: 0.34em;
  height: 0.34em;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(182, 108, 255, 0.22) 54%, transparent 72%);
  opacity: 0;
  transform: translate(-50%, 0) scale(0.4);
  filter: blur(1px);
  pointer-events: none;
  animation: rocketSmoke 1.35s ease-out infinite;
}

.rocket-wrap::after {
  left: 24%;
  bottom: -0.22em;
  animation-delay: 0.42s;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 15px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.panel,
.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    linear-gradient(135deg, rgba(109, 36, 255, 0.16), rgba(255, 214, 107, 0.055));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34), 0 0 42px rgba(109, 36, 255, 0.16);
  backdrop-filter: blur(14px);
  animation: fadeLift 0.7s ease both;
}

.panel::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 214, 107, 0.12), transparent);
  transform: translateX(-120%);
  animation: panelGlint 6s ease-in-out infinite;
}

.panel {
  padding: 24px;
}

.stack {
  display: grid;
  gap: 16px;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 4, 18, 0.78);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

textarea {
  min-height: 170px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 214, 107, 0.24);
  border-color: rgba(255, 214, 107, 0.82);
  box-shadow: 0 0 24px rgba(158, 77, 255, 0.22);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--lilac) 48%, var(--gold));
  color: #fffaf0;
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(109, 36, 255, 0.36), 0 0 26px rgba(255, 214, 107, 0.24);
}

.button.secondary,
button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 0 22px rgba(109, 36, 255, 0.08);
}

.button.danger,
button.danger {
  background: rgba(255, 118, 109, 0.13);
  color: var(--danger);
  border: 1px solid rgba(255, 118, 109, 0.32);
  box-shadow: none;
}

.notice {
  min-height: 22px;
  font-size: 14px;
  font-weight: 800;
}

.notice.error {
  color: var(--danger);
}

.notice.ok {
  color: var(--ok);
}

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
}

.hype-orbit {
  min-height: 360px;
  justify-content: center;
}

.hype-orbit h2 {
  font-size: 21px;
  line-height: 1.18;
}

.orbit-ring {
  width: 180px;
  aspect-ratio: 1;
  margin: 0 auto 6px;
  border: 1px solid rgba(255, 214, 107, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(182, 108, 255, 0.32), 0 0 34px rgba(255, 214, 107, 0.22);
  background:
    conic-gradient(from 0deg, transparent, rgba(255, 214, 107, 0.75), transparent 34%, rgba(182, 108, 255, 0.8), transparent 68%),
    radial-gradient(circle, rgba(255, 214, 107, 0.18), rgba(109, 36, 255, 0.08) 52%, transparent 54%);
  animation: spin 8s linear infinite;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  height: 70px;
  margin-top: 8px;
}

.signal-bars span {
  display: block;
  min-height: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold), var(--lilac));
  box-shadow: 0 0 20px rgba(255, 214, 107, 0.24);
  animation: equalize 1.4s ease-in-out infinite;
}

.signal-bars span:nth-child(2) {
  animation-delay: 0.15s;
}

.signal-bars span:nth-child(3) {
  animation-delay: 0.3s;
}

.signal-bars span:nth-child(4) {
  animation-delay: 0.45s;
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
}

.legal-page {
  margin: 36px 0 72px;
}

.legal-page h1 {
  font-size: clamp(34px, 7vw, 58px);
}

.legal-page section {
  padding-top: 6px;
}

.app {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 16px;
}

.menu {
  display: grid;
  gap: 8px;
}

.menu a,
.menu button {
  min-height: 44px;
  justify-content: start;
  text-align: left;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--muted);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.menu a.active,
.menu a:hover,
.menu button:hover {
  color: var(--text);
  border-color: rgba(255, 214, 107, 0.38);
  background: rgba(109, 36, 255, 0.16);
  box-shadow: 0 0 24px rgba(109, 36, 255, 0.15);
  transform: translateX(2px);
}

.content {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card {
  padding: 16px;
  display: grid;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 214, 107, 0.38);
}

.metric {
  font-size: 26px;
  font-weight: 950;
}

.section {
  display: none;
}

.section.active {
  display: grid;
  gap: 16px;
  animation: fadeLift 0.35s ease both;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 24px rgba(109, 36, 255, 0.05);
}

.item-head,
.account-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 214, 107, 0.13);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

@keyframes neonBackdrop {
  from {
    background-position: 0% 50%, 100% 0%, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 100% 50%, 0% 100%, 84px 0, 0 84px, 0 0;
  }
}

@keyframes lightSweep {
  from {
    transform: translateX(-18%);
  }
  to {
    transform: translateX(18%);
  }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(109, 36, 255, 0.45), 0 0 12px rgba(255, 214, 107, 0.22);
  }
  50% {
    box-shadow: 0 0 34px rgba(182, 108, 255, 0.62), 0 0 28px rgba(255, 214, 107, 0.32);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelGlint {
  0%, 45% {
    transform: translateX(-120%);
  }
  70%, 100% {
    transform: translateX(120%);
  }
}

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

@keyframes equalize {
  0%, 100% {
    height: 24px;
  }
  50% {
    height: 68px;
  }
}

@keyframes rocketFloat {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-0.16em) rotate(2deg);
  }
}

@keyframes rocketSmoke {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.3);
  }
  18% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate(-0.85em, 0.62em) scale(1.45);
  }
}

.muted {
  color: var(--muted);
}

.browser-viewer {
  display: grid;
  gap: 8px;
  outline: none;
}

.browser-viewer[hidden] {
  display: none;
}

.browser-frame {
  width: min(390px, 100%);
  aspect-ratio: 390 / 760;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 90px;
  }

  .hero,
  .app,
  .dashboard-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 20;
    padding: 8px;
    border-radius: 18px;
  }

  .menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar .nav .button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .menu a,
  .menu button {
    min-height: 42px;
    padding: 0 8px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }

  .topbar,
  .item-head,
  .account-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}
