@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #051424;
  --surface: #122131;
  --surface-high: #1c2b3c;
  --text: #d4e4fa;
  --text-dim: #bfc7d5;
  --muted: #89919e;
  --outline: #3f4753;
  --primary: #9fcaff;
  --blue: #0099ff;
  --green: #75fd00;
  --danger: #ffb4ab;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 32px 18px;
}

.ambient {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(128px);
  mix-blend-mode: screen;
  opacity: 0.1;
  pointer-events: none;
}

.ambient-blue {
  top: 20%;
  left: 16%;
  background: var(--blue);
}

.ambient-green {
  right: 18%;
  bottom: 18%;
  background: var(--green);
}

.x-stage {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(46vw, 460px);
  min-width: 260px;
  pointer-events: none;
}

.x-mark {
  display: block;
  width: 100%;
  height: auto;
  animation: ix-x-drift 10s ease-in-out infinite, ix-x-glow 10s ease-in-out infinite;
  object-fit: contain;
  object-position: right bottom;
}

.brand-block {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
  text-align: center;
}

.logo {
  display: block;
  width: auto;
  height: 86px;
  object-fit: contain;
}

.form-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(159, 202, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 33, 49, 0.66) 0%, rgba(5, 20, 36, 0.86) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  padding: clamp(24px, 5vw, 40px);
  backdrop-filter: blur(16px);
}

.panel-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.form-header {
  margin-bottom: 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.status {
  display: none;
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

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

.status.is-info {
  border: 1px solid rgba(159, 202, 255, 0.3);
  background: rgba(159, 202, 255, 0.1);
  color: var(--primary);
}

.status.is-error {
  border: 1px solid rgba(255, 180, 171, 0.3);
  background: rgba(255, 180, 171, 0.1);
  color: var(--danger);
}

.status.is-success {
  border: 1px solid rgba(117, 253, 0, 0.28);
  background: rgba(117, 253, 0, 0.1);
  color: #caff9d;
}

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

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

.question-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 8px;
}

.choice-button {
  min-height: 44px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-high);
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.choice-button:hover {
  border-color: rgba(159, 202, 255, 0.55);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(159, 202, 255, 0.16);
}

.choice-button.is-selected {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(0, 153, 255, 0.92), rgba(117, 253, 0, 0.92));
  color: #002f54;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.22);
}

.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  color: #002f54;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 47, 84, 0.35);
  border-top-color: #002f54;
  border-radius: 50%;
  animation: ix-spin 0.7s linear infinite;
}

.submit-button.is-submitting .button-label {
  display: none;
}

.submit-button.is-submitting .spinner {
  display: inline-block;
}

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

@keyframes ix-x-drift {
  0% {
    transform: rotate(12deg) scale(1) translateY(0);
  }
  33% {
    transform: rotate(16deg) scale(1.04) translateY(-12px);
  }
  66% {
    transform: rotate(9deg) scale(0.97) translateY(8px);
  }
  100% {
    transform: rotate(12deg) scale(1) translateY(0);
  }
}

@keyframes ix-x-glow {
  0%,
  100% {
    opacity: 0.1;
    filter: blur(4px);
  }
  50% {
    opacity: 0.16;
    filter: blur(2px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    justify-content: flex-start;
    padding-top: 24px;
  }

  .logo {
    height: 70px;
  }

  .button-row {
    gap: 7px;
  }

  .choice-button {
    min-height: 42px;
    padding: 0 8px;
  }
}
