/* 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: #7f5cff;
  --color-accent: #00e5ff;
  --color-bg: #0a0e17;
  --color-surface: #141b2d;
  --color-text: #ffffff;
  --color-text-muted: #9aa5c0;
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 1.75rem;
  --space-lg: 2.5rem;
  --space-xl: 3.5rem;
  --radius-card: 1.5rem;
  --radius-pill: 5rem;
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.45), 0 0 60px rgba(0, 229, 255, 0.15);
  --shadow-glow-violet: 0 0 25px rgba(127, 92, 255, 0.5), 0 0 60px rgba(127, 92, 255, 0.2);
  --font-h1: clamp(1.75rem, 4.5vw, 2.75rem);
  --font-question: clamp(1rem, 2.6vw, 1.3rem);
  --font-badge: clamp(0.7rem, 1.6vw, 0.85rem);
}

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

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

.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.scene__glow--violet { width: 26rem; height: 26rem; top: -8rem; left: -6rem; background: var(--color-primary); }
.scene__glow--cyan { width: 24rem; height: 24rem; bottom: -8rem; right: -6rem; background: var(--color-accent); }

.app-header {
  position: relative;
  top: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.app-header__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 27, 45, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(0, 229, 255, 0.2);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: clamp(0.65rem, 1.8vw, 0.95rem);
  text-align: center;
}

.content-wrapper { position: relative; min-height: 100vh; width: 100%; z-index: 2; }

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

.step {
  width: 100%;
  height: 100%;
  position: static;
  transform: none;
  max-width: 34rem;
  display: flex;
  padding: var(--space-lg) var(--space-md);
  color: var(--color-text);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.step.current { display: flex; align-items: center; justify-content: center; }

[dir="rtl"] .step { max-width: none; }

.step__inner {
  width: 100%;
  min-width: 0;
  background: linear-gradient(160deg, rgba(20, 27, 45, 0.92), rgba(10, 14, 23, 0.96));
  border: 1.5px solid rgba(127, 92, 255, 0.5);
  border-radius: var(--radius-card);
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 0 30px rgba(127, 92, 255, 0.4), 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(127, 92, 255, 0.1);
  animation: stepIn 0.4s ease both;
}

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

.step__title {
  font-size: var(--font-h1);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 40px rgba(127, 92, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}

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

.step__question {
  font-size: var(--font-question);
  text-align: center;
  color: var(--color-text);
  line-height: 1.5;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.step__answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.step__answers.step__answers--single {
  grid-template-columns: 1fr;
  width: 100%;
  justify-content: center;
  margin: 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  user-select: none;
  min-width: 0;
  overflow-wrap: break-word;
}

.btn--accent {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 8px rgba(0, 229, 255, 0.15);
  color: var(--color-accent);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 20px rgba(127, 92, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn--round { border-radius: var(--radius-pill); }

.btn:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.12); }
.btn:active { transform: translateY(-1px) scale(0.98); filter: brightness(0.95); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6); }

.step .step__answers.step__answers--single .btn { margin-left: 0; width: 100%; }

.progress {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 90%;
  max-width: 22rem;
  height: 0.6rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  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));
  transition: width 0.5s ease;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.7), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.body .progress .bar { background-image: linear-gradient(90deg, var(--color-accent), var(--color-primary)); }

.video-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: url(../images/space_background.webp) center/cover no-repeat fixed;
}

.video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.3), rgba(10, 14, 23, 0.5));
}

.video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition-duration: 0s;
  opacity: 0.5;
  display: none;
}

.hidden { display: none !important; }

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

@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 0 0 15px;
}
.heart::before { transform: rotate(45deg); }
.heart::after { left: 10.5px; transform: rotate(135deg); }

@media (max-width: 600px) {
  .step { padding: var(--space-md) var(--space-xs); max-width: 100%;
  position: static;
  transform: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; }
  .step__inner { padding: var(--space-md) var(--space-sm);
  box-shadow: 0 0 30px rgba(127, 92, 255, 0.4), 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(127, 92, 255, 0.1);
  border: 1.5px solid rgba(127, 92, 255, 0.5); }
  .step__answers { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .app-header { top: var(--space-xs);
  position: relative; }
}

@media (min-width: 992px) {
  .step { max-width: 44rem;
  position: static;
  transform: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; }
  [dir="rtl"] .step { max-width: none; }
  .step__answers .btn { max-width: 20rem; }
  .step__answers.step__answers--single .btn { max-width: 100%; width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.header-badge-wrapper {
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(45deg, rgba(0, 229, 255, 0.15), rgba(127, 92, 255, 0.15), rgba(0, 229, 255, 0.15));
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

html,
body {
  scrollbar-width: none;
}

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