/* Center the content of the final step in the reserve panel */
.reserve-panel-center {
  text-align: center;
}
/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: #ede9de;
  color: #171412;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.36;
}

body::before {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -70px;
  background: radial-gradient(circle at 30% 30%, #efe7d6, #d8cebb 58%, transparent 72%);
  animation: floatBlobA 8s ease-in-out infinite;
}

body::after {
  width: 230px;
  height: 230px;
  left: -80px;
  bottom: 70px;
  background: radial-gradient(circle at 50% 50%, #e4dbc9, #cfc3ae 60%, transparent 74%);
  animation: floatBlobB 10s ease-in-out infinite;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #ede9de;
  height: 64px;
  position: relative;
  z-index: 10;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #171412;
}

.brand-icon {
  flex-shrink: 0;
}

.header-cta {
  background: #151515;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 17px;
  transition: opacity 0.15s, transform 0.22s ease;
}

.header-cta:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: #ede9de url('images/background.svg') center center / cover no-repeat;
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 80px 0;
  width: 100%;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d6d0c5;
  border-radius: 12px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  color: #5c5852;
  line-height: 1;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

h1 {
  margin: 28px auto 0;
  max-width: 700px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #171412;
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #5a5550;
}

.hero-form-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 780px;
}

.hero-form input {
  flex: 1;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #c8c2b8;
  border-radius: 10px;
  background: #f5f2eb;
  padding: 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: #171412;
  outline: none;
  transition: border-color 0.15s;
}

.hero-form input:focus {
  border-color: #171412;
}

.hero-form input::placeholder {
  color: #a09890;
}

.hero-form button {
  flex-shrink: 0;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: #151515;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.24s ease, box-shadow 0.24s ease;
}

.hero-form button:hover {
  opacity: 0.82;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 21, 21, 0.22);
}

.hero-form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(21, 21, 21, 0.18);
}

.hero-form input.is-invalid,
.reserve-step-form input.is-invalid {
  border-color: #b94a3e;
  box-shadow: 0 0 0 4px rgba(185, 74, 62, 0.15);
}

.hero-form input.is-invalid:focus,
.reserve-step-form input.is-invalid:focus {
  border-color: #a53c31;
  box-shadow: 0 0 0 4px rgba(165, 60, 49, 0.18);
}

.field-error {
  flex-basis: 100%;
  margin: -4px 2px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #b94a3e;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-form .field-error,
.reserve-step-form .field-error,
.reserve-panel p.field-error {
  color: #b94a3e;
}

.field-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: #ede9de;
  padding: 80px 0 130px;
}

.features-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #171412;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #18191b;
  border-radius: 13px;
  padding: 22px 22px 26px;
  color: #f0ede8;
  min-height: 210px;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(10, 11, 14, 0.28);
}

.card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: #ababab;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0a0b0e;
  color: #f5f5f5;
  padding: 52px 0 56px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-logo {
  display: block;
}

.footer-copy {
  font-size: 13px;
  font-weight: 400;
  color: #a0a0a0;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-socials a {
  color: #b8b8b8;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s, transform 0.2s ease;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.88;
  transition: opacity 0.15s ease;
}

.footer-socials a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.footer-socials a:hover .footer-social-icon {
  opacity: 1;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 400;
  color: #e8e8e8;
  transition: color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #fff;
  opacity: 0.92;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero .badge,
.hero h1,
.hero .hero-sub,
.hero .hero-form-wrap {
  animation: heroFadeUp 0.8s cubic-bezier(0.17, 0.77, 0.19, 1) both;
}

.hero .badge {
  animation-delay: 0.08s;
}

.hero h1 {
  animation-delay: 0.18s;
}

.hero .hero-sub {
  animation-delay: 0.3s;
}

.hero .hero-form-wrap {
  animation-delay: 0.42s;
}

.page-shell {
  position: relative;
  z-index: 1;
  transform-origin: center top;
  transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.54s ease, filter 0.54s ease;
}

.chaos-item {
  will-change: transform, opacity, filter;
}

body.is-chaos-transition {
  overflow: hidden;
}

body.is-chaos-transition .page-shell {
  pointer-events: none;
}

body.is-chaos-transition .chaos-item {
  animation: chaosCollapseLeft 1.35s cubic-bezier(0.12, 0.84, 0.22, 1) both;
  animation-delay: var(--chaos-delay, 0ms);
}

.reserve-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

.reserve-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(237, 233, 222, 0.78), rgba(227, 219, 202, 0.86));
  backdrop-filter: blur(7px);
}

.reserve-panel-container {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  place-items: center;
}

.reserve-panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  background: #f7f3ea;
  border: 1px solid #d7cebe;
  box-shadow: 0 28px 70px rgba(23, 20, 18, 0.18);
  padding: 32px;
  transform: translateX(40vw) translateY(8px) scale(0.9);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease, filter 0.85s ease;
}

body.is-reserve-active .reserve-panel.is-active {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

body.is-reserve-active .reserve-panel.is-exiting {
  transform: translateX(-40vw) translateY(-8px) scale(0.9);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}

.reserve-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7f776d;
  margin-bottom: 10px;
}

.reserve-panel h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.reserve-panel p {
  margin-top: 12px;
  color: #696158;
}

.reserve-step-form {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reserve-step-form input {
  flex: 1;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #cfc4b1;
  border-radius: 11px;
  background: #fff;
  padding: 0 16px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reserve-step-form input:focus {
  border-color: #171412;
  box-shadow: 0 0 0 4px rgba(23, 20, 18, 0.08);
}

.reserve-step-form button {
  height: 56px;
  min-height: 56px;
  margin: 0;
  border: none;
  border-radius: 11px;
  padding: 0 24px;
  background: #161616;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.reserve-step-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

body.is-reserve-active {
  overflow: hidden;
}

body.is-reserve-active .page-shell {
  transform: translateY(-18px) scale(0.96);
  opacity: 0;
  filter: blur(9px);
  pointer-events: none;
}

body.is-reserve-active .reserve-stage {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes chaosCollapseLeft {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  35% {
    opacity: 1;
    transform: translate3d(var(--to-center-x, 0px), var(--to-center-y, 0px), 0) scale(0.72) rotate(var(--spin, 0deg));
  }
  100% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(calc(var(--to-center-x, 0px) - 46vw), calc(var(--to-center-y, 0px) + var(--drop, 0px)), 0) scale(0.24) rotate(calc(var(--spin, 0deg) * 1.5));
  }
}

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

@keyframes floatBlobA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-14px, 12px, 0);
  }
}

@keyframes floatBlobB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -10px, 0);
  }
}

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .page-shell,
  .reserve-stage,
  .reserve-panel {
    transition: none;
  }

  .chaos-item {
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 36px;
    max-width: 100%;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .hero-form input,
  .hero-form button {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    gap: 18px;
  }

  .reserve-panel {
    padding: 24px;
  }

  .reserve-panel h2 {
    font-size: 28px;
  }

  .reserve-step-form {
    flex-direction: column;
    align-items: stretch;
  }

  .reserve-step-form input,
  .reserve-step-form button {
    width: 100%;
  }
}
