:root {
  --brand-primary: #41deff;
  --brand-primary-400: #44c1ed;
  --brand-primary-500: #1099c9;
  --brand-primary-600: #0a78a5;
  --brand-primary-900: #102e45;
  --brand-secondary: #3b2b57;
  --brand-secondary-800: #3b2b57;
  --brand-secondary-900: #291e38;
  --brand-secondary-950: #1c1426;
  --teal-mascot: #57d1e5;
  --gray-50: #f5f9fd;
  --gray-100: #e6f0fb;
  --gray-200: #d1dff3;
  --gray-300: #adbfdb;
  --gray-400: #8a9cbc;
  --gray-500: #6b7a9a;
  --gray-600: #4b5776;
  --gray-700: #29314d;
  --gray-800: #1b2037;
  --gray-900: #14162a;
  --gray-950: #0b0b1a;
  --text: #e6f0fb;
  --text-muted: #adbfdb;
  --text-emphasis: #ffffff;
  --star-idle: rgba(173, 191, 219, 0.35);
  --star-active: #41deff;
  --star-hover: #6de7ff;
  --radius: 12px;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(65, 222, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(89, 93, 162, 0.25), transparent 50%),
    linear-gradient(180deg, #030423 0%, #0b0d3a 60%, #0f1040 100%);
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  animation: rise 0.7s ease-out both;
}

.brand-mascot {
  display: block;
  height: 52px;
  width: auto;
}

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

.panel {
  width: 100%;
  max-width: 640px;
  text-align: center;
  animation: rise 0.7s ease-out 0.08s both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.question {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-emphasis);
  letter-spacing: -0.02em;
}

.rating {
  margin-bottom: 1.75rem;
}

.stars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.star {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--star-idle);
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 0;
  border-radius: 8px;
}

.star:hover,
.star:focus-visible {
  color: var(--star-hover);
  transform: translateY(-2px) scale(1.08);
  outline: none;
}

.star:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-primary);
}

.star[aria-checked="true"],
.star.is-active {
  color: var(--star-active);
}

.star svg {
  width: 2rem;
  height: 2rem;
  display: block;
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.15s ease;
}

.star.is-active svg,
.star:hover svg {
  filter: drop-shadow(0 0 8px rgba(65, 222, 255, 0.45));
}

@media (min-width: 560px) {
  .star svg {
    width: 2.35rem;
    height: 2.35rem;
  }

  .stars {
    gap: 0.45rem;
  }
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
  padding: 0 0.25rem;
}

.score-readout {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brand-primary);
}

.score-readout:empty {
  visibility: hidden;
}

.submit {
  appearance: none;
  border: none;
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  min-width: 180px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--brand-primary);
  color: var(--brand-primary-900);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 8px 28px rgba(65, 222, 255, 0.28);
}

.submit:hover:not(:disabled) {
  background: var(--brand-primary-400);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(65, 222, 255, 0.35);
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.error {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: #ff8fa0;
  min-height: 1.25rem;
}

.error:empty {
  display: none;
}

.thanks {
  display: none;
  text-align: center;
  animation: rise 0.55s ease-out both;
}

.thanks.is-visible {
  display: block;
}

.thanks h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--text-emphasis);
  letter-spacing: -0.02em;
}

.thanks p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.form.is-hidden {
  display: none;
}

.footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  animation: rise 0.7s ease-out 0.16s both;
}

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

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