/* baseline reset (auto-injected) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:root {
  --color-primary: #7f00ff;
  --color-accent: #00e5ff;
  --color-bg: #05010f;
  --color-surface: rgba(20, 10, 40, 0.65);
  --color-text: #f5f5ff;
  --color-text-muted: rgba(245, 245, 255, 0.65);
  --radius-lg: 1.5rem;
  --radius-pill: 5rem;
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 4vw, 3rem);
  --font-h1: clamp(1.8rem, 5vw, 2.75rem);
  --font-body: clamp(1rem, 2vw, 1.15rem);
}

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.scene-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 20%, rgba(127, 0, 255, 0.25), transparent 60%),
              linear-gradient(180deg, rgba(5, 1, 15, 0.55) 0%, rgba(5, 1, 15, 0.85) 100%);
  pointer-events: none;
}

.brand-bar {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.brand-bar__logo {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7), 0 0 28px rgba(127, 0, 255, 0.5);
}

.controller-decor {
  position: fixed;
  top: clamp(3.5rem, 8vh, 5rem);
  right: clamp(0.75rem, 4vw, 2.5rem);
  width: clamp(64px, 14vw, 120px);
  z-index: 4;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.6)) drop-shadow(0 0 30px rgba(127, 0, 255, 0.5));
  animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.survey-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step {
  position: relative;
  width: min(100% - 2rem, 40rem);
  display: none;
  padding: var(--space-lg);
  color: var(--color-text);
}

.step.current {
  display: block;
  animation: fadeInUp 0.45s ease both;
}

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

.step__inner {
  background: var(--color-surface);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(127, 0, 255, 0.35), 0 0 80px rgba(0, 229, 255, 0.12);
}

.step__header {
  margin-bottom: var(--space-md);
}

.step__title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
  text-wrap: balance;
}

.step__body {
  margin-bottom: var(--space-lg);
}

.step__question {
  font-size: var(--font-h1);
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.step__footer {
  min-width: 0;
}

.step__answers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  margin-bottom: 0;
}

.step__answers.step__answers--single {
  justify-content: center;
  width: 100%;
}

@media (min-width: 640px) {
  .step__answers:not(.step__answers--single) {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 22rem;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  user-select: none;
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent), #0077aa);
  color: #04121a;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #37006e);
  color: var(--color-text);
  box-shadow: 0 0 20px rgba(127, 0, 255, 0.55);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.65), 0 0 40px rgba(127, 0, 255, 0.45);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.step__answers--single .btn {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: 1.1rem 2rem;
}

.progress {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 90%;
  max-width: 20rem;
  height: 0.6rem;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.progress .bar {
  width: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.8);
  transition: width 0.5s ease;
}

@keyframes heartfade {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

.heart {
  z-index: 999;
  animation: heartfade 20s linear;
  position: absolute;
  pointer-events: none;
}

.heart:before,
.heart:after {
  content: "";
  background-color: var(--color-accent);
  position: absolute;
  height: 30px;
  width: 45px;
  border-radius: 15px 0px 0px 15px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.heart:before {
  transform: rotate(45deg);
}

.heart:after {
  left: 10.5px;
  transform: rotate(135deg);
}

@media (min-width: 992px) {
  .step {
    max-width: 60rem;
  }
  .step__title {
    font-size: 1.5rem;
  }
  .step__question {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
  }
  .btn {
    max-width: 24rem;
  }
}

@media (max-height: 700px) {
  .step__inner {
    padding: var(--space-md);
  }
  .step__body {
    margin-bottom: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step.current,
  .controller-decor,
  .btn,
  .heart {
    animation: none !important;
    transition: none !important;
  }
}

html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
