:root {
  --bg: #07080c;
  --ink: #f4f1ea;
  --muted: #9aa3b2;
  --line: rgba(244, 241, 234, 0.1);
  --brand: #8b5cf6;
  --accent: #2dd4bf;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(1000px 600px at 50% -10%, #171022 0%, var(--bg) 55%);
}

.stage-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(139, 92, 246, 0.14), transparent 45%),
    linear-gradient(300deg, rgba(45, 212, 191, 0.08), transparent 40%);
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.75);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.2);
}

.top .btn-login {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 0;
  font: 700 0.92rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-login,
.btn-primary {
  color: #0a0b0f;
  background: linear-gradient(135deg, #f4f1ea, #d7dde8);
}

.btn-primary {
  width: 100%;
  margin-top: 0.35rem;
}

.page {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
  display: grid;
  gap: 2.5rem;
}

.page-form-only {
  min-height: calc(100vh - 8rem);
  align-content: center;
}

.showcase {
  text-align: center;
}

.orbit {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1;
  margin: 0.5rem auto 1rem;
}

.logo-core {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  z-index: 2;
}

.logo-glass {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 35% 25%, rgba(139, 92, 246, 0.4), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(45, 212, 191, 0.22), transparent 50%),
    linear-gradient(165deg, rgba(28, 22, 48, 0.92), rgba(10, 16, 18, 0.95));
  border: 1px solid rgba(244, 241, 234, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  animation: pulse 5.5s ease-in-out infinite;
}

.logo-glass img {
  width: 62%;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(139, 92, 246, 0.4));
}

.balloon {
  position: absolute;
  z-index: 3;
  width: min(220px, 42%);
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: rgba(18, 20, 28, 0.88);
  border: 1px solid rgba(244, 241, 234, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  text-align: left;
  animation: floaty 6s ease-in-out infinite;
  transform-origin: center;
}

.balloon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(244, 241, 234, 0.14);
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  transform: rotate(45deg);
}

.balloon[data-slot="0"] {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}
.balloon[data-slot="0"]::after {
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
}

.balloon[data-slot="1"] {
  top: 18%;
  right: 0;
  animation-delay: 0.4s;
}
.balloon[data-slot="1"]::after {
  left: -5px;
  top: 42%;
  border-right: 0;
  border-left: 1px solid rgba(244, 241, 234, 0.14);
}

.balloon[data-slot="2"] {
  bottom: 16%;
  right: 2%;
  animation-delay: 0.8s;
}
.balloon[data-slot="2"]::after {
  left: -5px;
  top: 30%;
  border-right: 0;
  border-left: 1px solid rgba(244, 241, 234, 0.14);
}

.balloon[data-slot="3"] {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.1s;
}
.balloon[data-slot="3"]::after {
  left: 50%;
  top: -6px;
  margin-left: -6px;
  border-bottom: 0;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}

.balloon[data-slot="4"] {
  bottom: 18%;
  left: 0;
  animation-delay: 0.6s;
}
.balloon[data-slot="4"]::after {
  right: -5px;
  top: 36%;
}

.balloon[data-slot="5"] {
  top: 18%;
  left: 0;
  animation-delay: 1.4s;
}
.balloon[data-slot="5"]::after {
  right: -5px;
  top: 40%;
}

.balloon-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.balloon-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.55);
  background: #1a1228;
  flex-shrink: 0;
}

.balloon-name {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}

.balloon-stars {
  color: #fbbf24;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.balloon-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.showcase-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-wrap {
  width: min(520px, 100%);
  margin: 0 auto;
}

.form-card {
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 24px;
  background: rgba(16, 19, 26, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.form-lede {
  margin: 0.55rem 0 1.25rem;
  color: var(--muted);
}

label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.65);
  color: var(--ink);
  font: 500 0.95rem/1.4 var(--font-body);
  padding: 0.85rem 0.95rem;
  outline: none;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.stars {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.stars legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.star-row {
  display: flex;
  gap: 0.2rem;
}

.star {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 234, 0.22);
  font-size: 1.55rem;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star.is-on {
  color: #fbbf24;
}

.star:hover {
  transform: scale(1.08);
}

.form-status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.form-status.is-error {
  color: #fb7185;
}

.foot {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.foot strong {
  color: var(--ink);
  font-family: var(--font-display);
}

@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@media (max-width: 720px) {
  .top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand login"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top .btn-login {
    grid-area: login;
  }

  .orbit {
    width: min(100%, 420px);
  }

  .balloon {
    width: min(170px, 46%);
    padding: 0.6rem 0.7rem;
  }

  .balloon-text {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
