:root {
  --bg-start: #050505;
  --bg-end: #000000;
  --bg-highlight: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(0, 0, 0, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --accent: #ffff00;
  --accent-strong: #facc15;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  flex-flow: column;
  align-items: center;
  padding: 40px 16px;
  font-family: "Inter", "Roboto", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.4), transparent 45%), radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.48), transparent 45%), linear-gradient(135deg, var(--bg-start), var(--bg-end));
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: -1;
}

body::before {
  top: -120px;
  left: -80px;
  background: rgba(255, 255, 0, 0.6);
}

body::after {
  bottom: -120px;
  right: -100px;
  background: rgba(250, 204, 21, 0.5);
}

.container {
  width: min(100%, 820px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 46px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  animation: containerFadeIn 720ms ease forwards;
  animation-delay: 120ms;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.section {
  margin-top: 28px;
  padding: 22px 24px 26px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: sectionFadeIn 680ms ease forwards;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.page-section-1 {
  animation-delay: 180ms;
}

.page-section-2 {
  animation-delay: 260ms;
}

.page-section-3 {
  animation-delay: 340ms;
}

.page-section-4 {
  animation-delay: 420ms;
}

.page-section-5 {
  animation-delay: 500ms;
}

.section:hover {
  border-color: rgba(255, 255, 0, 0.35);
  transform: translateY(-2px);
}

.section h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

label {
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.form-control {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(200, 200, 200, 0.18);
  border-radius: 14px;
  color: #fff;
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 0, 0.65);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.1), 0 14px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: rgba(200, 200, 200, 0.55);
}

.form-control.is-invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: #000;
  box-shadow: 0 20px 35px rgba(255, 255, 0, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #000;
  box-shadow: 0 26px 45px rgba(255, 255, 0, 0.38);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(200, 200, 200, 0.35);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: rgba(200, 200, 200, 0.55);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.results-page .section {
  animation-delay: 200ms;
}

.results-page .section + .section {
  animation-delay: 280ms;
}

.results,
.recommended {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.results h3,
.recommended h3 {
  color: var(--text-secondary);
}

.results p,
.recommended p {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(200, 200, 200, 0.14);
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.results strong,
.recommended strong {
  color: var(--accent);
  font-weight: 600;
}

.static-funnel {
  width: 320px;
  max-width: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(200, 200, 200, 0.14);
  color: var(--text-primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.static-funnel .funnel-stage {
  width: 100%;
  padding: 12px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 0, 0.18), rgba(250, 204, 21, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease, background 0.3s ease;
}

.static-funnel .funnel-stage.final {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--text-primary);
  border: none;
  font-weight: 700;
}

.static-funnel .funnel-stage:hover {
  transform: translateY(-2px);
}

.static-funnel span {
  display: inline-block;
  transition: transform 0.4s ease;
}

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

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