@font-face {
  font-family: 'ArcanaDisplay';
  src: url('ArcanaDisplay.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-color: #333036;
  --text-color: #f4f1ea;
  --text-color-dark: #d8d2c5;
  --brand-red: #cd162c;
  --border-subtle: rgba(244, 241, 234, 0.25);
  --surface-tint: rgba(244, 241, 234, 0.04);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color-dark);
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, label, strong, button, .step-circle, .step-label {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  color: var(--text-color);
}

.hidden {
  display: none !important;
}

/* =========================================================
   VIEW 1: LANDING PAGE
   ========================================================= */
.landing-container {
  width: 100%;
  background-color: var(--bg-color);
  padding-bottom: 6rem;
}

.hero-frame {
  position: relative;
  margin: 2rem;
  min-height: calc(100vh - 4rem);
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
}

/* Top-Right Language Switcher */
.lang-switcher {
  position: absolute;
  top: 2rem;
  right: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 10;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  cursor: pointer;
  padding: 0.2rem;
  transition: text-shadow 0.25s ease, opacity 0.25s ease;
}

.lang-btn.active {
  font-weight: 500;
  opacity: 1;
}

.lang-btn:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(244, 241, 234, 0.75);
}

.lang-divider {
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.45;
  user-select: none;
}

.hero-content {
  width: 100%;
  max-width: 680px;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Hover Reveal Stack: Slashes <-> Full Red Logo */
.logo-reveal-box {
  position: relative;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
}

.slashes-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.55s ease;
}

.full-logo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.logo-reveal-box:hover .slashes-img,
.logo-reveal-box:active .slashes-img,
.logo-reveal-box:focus .slashes-img {
  opacity: 0;
}

.logo-reveal-box:hover .full-logo-img,
.logo-reveal-box:active .full-logo-img,
.logo-reveal-box:focus .full-logo-img {
  opacity: 1;
}

/* Centered Title & Subtitle */
.hero-text {
  margin: 2.5rem 0;
}

.landing-title {
  font-family: 'ArcanaDisplay', sans-serif;
  font-weight: normal;
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.landing-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-color-dark);
}

/* Bottom Scroll Arrow */
.scroll-down-arrow {
  display: inline-flex;
  padding: 0.5rem;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-down-arrow:hover {
  opacity: 1;
  transform: translateY(5px);
}

/* Disclaimer Section below the fold */
.disclaimer-wrapper {
  max-width: 780px;
  margin: 4.5rem auto 0 auto;
  padding: 1.5rem;
}

.disclaimer-box {
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-tint);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.disclaimer-box p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.save-notice {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.landing-action {
  display: flex;
  justify-content: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  padding: 0.95rem 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--text-color);
}

.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================================
   VIEW 2: TOP STEPPER BAR
   ========================================================= */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem 1.5rem;
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  position: relative;
}

.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: not-allowed;
}

.stepper-item.clickable {
  cursor: pointer;
}

.step-line {
  position: absolute;
  top: 19px;
  left: -50%;
  width: 100%;
  height: 1px;
  background-color: rgba(244, 241, 234, 0.3);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.stepper-item:first-child .step-line {
  display: none;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 1px solid var(--text-color-dark);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-label {
  margin-top: 0.65rem;
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-color);
  opacity: 0.65;
  padding: 0 0.25rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.stepper-item.active .step-circle {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.stepper-item.active .step-label {
  opacity: 1;
}

.stepper-item.completed .step-circle {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--text-color);
}

.stepper-item.completed .step-label {
  color: var(--brand-red);
  opacity: 1;
}

.stepper-item.completed .step-line,
.stepper-item.active .step-line {
  background-color: var(--brand-red);
}

/* =========================================================
   FORM SECTIONS & TYPOGRAPHY
   ========================================================= */
.form-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
  margin-bottom: 3rem;
}

.form-section h2 {
  font-family: 'ArcanaDisplay', sans-serif;
  font-weight: normal;
  font-size: 1.85rem;
  margin-bottom: 1.85rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.hint {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.75;
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
textarea {
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-color);
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 241, 234, 0.35);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--text-color);
  background-color: var(--surface-tint);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(94%) sepia(6%) saturate(265%) hue-rotate(348deg) brightness(101%) contrast(92%);
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.radio-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-color-dark);
  cursor: pointer;
  line-height: 1.45;
}

input[type="radio"] {
  accent-color: var(--brand-red);
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

.conditional-box {
  border-left: 2px solid var(--text-color);
  padding-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

.privacy-note {
  font-size: 0.88rem;
  color: var(--text-color-dark);
  opacity: 0.85;
  margin-top: 2rem;
}

.privacy-trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  font-size: inherit;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.privacy-trigger:hover {
  color: var(--brand-red);
}

/* =========================================================
   STEP FOOTER
   ========================================================= */
.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.25rem;
  margin-top: 1.5rem;
}

.back-link {
  background: none;
  border: none;
  color: var(--text-color);
  font-family: 'Urbanist', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: text-shadow 0.25s ease;
}

.back-link:hover {
  text-shadow: 0 0 10px rgba(244, 241, 234, 0.75);
}

.back-link:hover .back-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-link .arrow {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
}

.back-link:hover .arrow {
  transform: translateX(-4px);
}

/* =========================================================
   VIEW 3: THANK YOU SCREEN
   ========================================================= */
.thank-you-container {
  width: 100%;
  min-height: 100vh;
  background-color: var(--text-color);
  padding: 2rem;
  display: flex;
}

.thank-you-frame {
  width: 100%;
  min-height: calc(100vh - 4rem);
  background-image: url('thank-you-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
}

.thank-you-title {
  font-family: 'ArcanaDisplay', sans-serif;
  font-weight: normal;
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--bg-color);
}

.thank-you-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--bg-color);
}

/* =========================================================
   PRIVACY POLICY MODAL POPUP
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(24, 22, 26, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 82vh;
  background-color: var(--bg-color);
  border: 1px solid var(--border-subtle);
  padding: 2.75rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.modal-scroll-content {
  overflow-y: auto;
  padding-right: 0.75rem;
}

.modal-scroll-content h2 {
  font-family: 'ArcanaDisplay', sans-serif;
  font-weight: normal;
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.privacy-lang-block p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-color-dark);
  margin-bottom: 1.15rem;
}

.privacy-lang-block p:last-child {
  margin-bottom: 0;
}

.privacy-lang-block strong {
  color: var(--text-color);
  font-weight: 500;
}

.modal-scroll-content::-webkit-scrollbar {
  width: 4px;
}

.modal-scroll-content::-webkit-scrollbar-track {
  background: rgba(244, 241, 234, 0.05);
}

.modal-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(244, 241, 234, 0.3);
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .hero-frame {
    margin: 1rem;
    min-height: calc(100vh - 2rem);
  }
  .lang-switcher {
    top: 1.25rem;
    right: 1.25rem;
  }
  .landing-title {
    font-size: 2.4rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .step-line {
    top: 16px;
  }
  .step-label {
    font-size: 0.68rem;
    padding: 0 2px;
  }
  .step-footer {
    flex-direction: column-reverse;
    gap: 1.25rem;
    align-items: stretch;
    text-align: center;
  }
  .back-link {
    justify-content: center;
  }
  .thank-you-container {
    padding: 1rem;
  }
  .thank-you-frame {
    min-height: calc(100vh - 2rem);
  }
  .thank-you-title {
    font-size: 2.4rem;
  }
  .modal-overlay {
    padding: 1rem;
  }
  .modal-box {
    padding: 2.5rem 1.25rem 1.5rem 1.25rem;
    max-height: 85vh;
  }
  .modal-scroll-content h2 {
    font-size: 1.5rem;
  }
}