/* 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; }

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --clr-primary:     #00D4B4;
  --clr-accent:      #C154C1;
  --clr-bg:          #1A0A2E;
  --clr-surface:     rgba(0, 0, 0, 0.50);
  --clr-text:        #FFFFFF;
  --clr-text-muted:  rgba(255, 255, 255, 0.70);
  --clr-primary-dark: #009E87;
  --clr-accent-dark:  #9A3A9A;

  --radius-btn: 5rem;
  --radius-card: 1.25rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  --font-title: clamp(1.75rem, 4vw + 1rem, 2.75rem);
  --font-question: clamp(1rem, 2vw + 0.5rem, 1.35rem);
  --font-btn: clamp(0.85rem, 1.2vw + 0.4rem, 1rem); /* Slightly optimized size */
  --font-brand: clamp(0.8rem, 1.5vw + 0.3rem, 1rem);

  --shadow-btn: 0 4px 18px rgba(0, 212, 180, 0.35);
  --shadow-accent-btn: 0 4px 18px rgba(193, 84, 193, 0.35);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.55);

  --transition-fast: 180ms ease;
  --transition-mid:  280ms ease;
}

/* ── Base ───────────────────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body.body {
  display: flex;
  flex-direction: column;
}

/* ── Hidden utility ─────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Video background ───────────────────────────────────────── */
.video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--clr-bg);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 10, 46, 0.82) 0%,
    rgba(26, 10, 46, 0.60) 50%,
    rgba(10, 4, 20, 0.80) 100%
  );
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────────── */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(26, 10, 46, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 212, 180, 0.18);
}

.header__brand {
  font-size: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-primary);
  text-shadow: 0 0 12px rgba(0, 212, 180, 0.55);
}

/* ── Content wrapper ────────────────────────────────────────── */
.content-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--space-sm) 4rem;
}

/* ── Survey container ───────────────────────────────────────── */
.survey-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ── Step ───────────────────────────────────────────────────── */
.step {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 42rem);
  padding: var(--space-lg);
  color: var(--clr-text);
}

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

.step.current {
  display: block;
  animation: stepIn var(--transition-mid) ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.step__inner {
  background: var(--clr-surface);
  border: 1px solid rgba(0, 212, 180, 0.18);
  border-radius: var(--radius-card);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Step header ────────────────────────────────────────────── */
.step__header {
  margin-bottom: var(--space-sm);
}

.step__title {
  font-size: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-wrap: balance;
  color: var(--clr-primary);
  text-shadow: 0 0 20px rgba(0, 212, 180, 0.45);
  line-height: 1.2;
}

/* ── Step body ──────────────────────────────────────────────── */
.step__body {
  margin-bottom: var(--space-md);
}

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

/* ── Step footer / answers ──────────────────────────────────── */
.step__footer {}

.step__answers {
  display: flex !important;
  flex-direction: row-reverse !important; /* Force YES to right, NO to left everywhere */
  justify-content: center !important;
  align-items: center !important;
  gap: var(--space-md) !important;
  flex-wrap: nowrap !important; /* Prevents circles from breaking layout rows on narrow viewports */
  margin-bottom: var(--space-sm);
}

.step .step__answers.step__answers--single {
  justify-content: center !important;
  width: 100%;
  flex-direction: column !important;
}

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  
  /* ── Structural Layout Overrides ── */
  white-space: nowrap !important;        /* Completely locks text to single line */
  text-transform: uppercase !important;  /* Fits standard typography presentation specs */
  padding: 0.5rem 0.75rem !important;    /* Tight internal boundary protection padding */
  font-size: var(--font-btn) !important;
  /* ───────────────────────────────── */

  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-btn);
  aspect-ratio: 1 / 1; /* Guarantees layout maintains an absolute perfect circle shape */
  height: 110px !important; /* Fixed dimension boundaries */
  width: 110px !important;  /* Balanced alignment geometry */
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  flex: 0 0 110px !important; /* Prevents rendering layout scaling squishes */
}

.btn--primary {
  background-color: var(--clr-primary);
  color: #0A2520;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background-color: var(--clr-primary-dark);
  box-shadow: 0 6px 24px rgba(0, 212, 180, 0.55);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
}

.btn--accent {
  background-color: var(--clr-accent);
  color: #fff;
  box-shadow: var(--shadow-accent-btn);
}

.btn--accent:hover {
  background-color: var(--clr-accent-dark);
  box-shadow: 0 6px 24px rgba(193, 84, 193, 0.55);
  transform: translateY(-2px);
}

.btn--accent:active {
  transform: translateY(0);
  box-shadow: var(--shadow-accent-btn);
}

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

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

/* ── Progress bar ───────────────────────────────────────────── */
.progress {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  max-width: 22rem;
  height: 0.5rem;
  border-radius: 5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 212, 180, 0.15);
}

.progress .bar {
  width: 0;
  height: 100%;
  border-radius: 5rem;
  background-image: linear-gradient(90deg, var(--clr-primary), #7B2FBE, var(--clr-accent));
  transition: width 0.5s ease;
}

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

/* ── Responsive / Desktop ───────────────────────────────────── */
@media (min-width: 768px) {
  .content-wrapper {
    padding: 5rem var(--space-xl) 5rem;
  }

  .step__inner {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
  }

  .step__answers {
    flex-wrap: nowrap !important;
    flex-direction: row-reverse !important;
    gap: var(--space-md) !important;
  }

  .btn {
    height: 130px !important;
    width: 130px !important;
    flex: 0 0 130px !important;
  }
}

@media (min-width: 992px) {
  .step {
    width: min(100%, 56rem);
  }

  .step__answers.step__answers--single .btn {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    aspect-ratio: auto;
    height: 48px !important;
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .step.current {
    animation: none;
  }
  .btn {
    transition: none;
  }
  .progress .bar {
    transition: none;
  }
}

/* ── Decorative glow pulse on card ──────────────────────────── */
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-card), 0 0 0 0 rgba(0, 212, 180, 0.0); }
  50%       { box-shadow: var(--shadow-card), 0 0 32px 4px rgba(0, 212, 180, 0.12); }
}

.step.current .step__inner {
  animation: glowPulse 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .step.current .step__inner {
    animation: none;
  }
}

html,
body {
  scrollbar-width: none;
}

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