*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', 'Inter', sans-serif;
  background: #090d2c;
  color: #e8e0d4;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Stars background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/bg-stars-desktop.png') center/cover repeat;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 1920px;
  margin: 0 auto;
}

/* Top section: logo + title + subtitle centered */
.top-section {
  text-align: center;
  padding: 71px 80px 0;
}

.logo {
  width: 113px;
  height: auto;
  margin-bottom: 0;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 82px;
  font-weight: 700;
  color: #f0b646;
  text-align: center;
  margin-bottom: 42px;
}

.subtitle {
  color: white;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 92px;
}

/* Bottom area: content left + hero right on desktop */
.bottom-section {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.content {
  flex: 0 0 auto;
  padding-left: 200px;
  padding-bottom: 216px;
}

.section-label {
  font-weight: 700;
  text-transform: uppercase;
  color: #e8e0d4;
  font-size: 22px;
  margin-bottom: 49px;
}

.form {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid white;
  padding-bottom: 10px;
}

.form-input-wrap {
  flex: 1;
  position: relative;
}

.form input {
  width: 100%;
  padding: 12px 0;
  border: none;
  color: white;
  background: transparent;
  font-size: 0.85rem;
  font-family: 'Helvetica', 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
}

.form input::placeholder {
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form:has(input:focus) {
  border-bottom-color: #f0b646;
}

.form button {
  width: 108px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  background-blend-mode: plus-lighter;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.01);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Helvetica', 'Inter', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}

form {
  position: relative;
}

.form button:hover {
  background: #2a2a2a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.7) inset;
  color: #fff;
}

.form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.socials-label {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e8e0d4;
  font-size: 22px;
  margin-bottom: 49px;
  margin-top: 80px;
}

.socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 300;
}

.socials a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.socials a:hover {
  color: #f0b646;
}

.socials a .arrow {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.socials a:hover .arrow {
  transform: translateX(3px);
}

/* Hero image - right side on desktop */
.hero-image {
  position: absolute;
  width: 641px;
  height: 756px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  right: -36px;
  bottom: 0px;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(100px);
}

/* Success message */
.success-message {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  color: #f0b646;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.success-message.show {
  display: block;
}

/* Error message */
.error-message {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  color: #e74c3c;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.error-message.show {
  display: block;
}

/* ====== TABLET ====== */
@media (max-width: 1024px) {
  .top-section {
    padding: 75px 40px 0;
  }

  .logo {
    width: 106px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: 42px;
    margin-bottom: 22px;
  }

  .subtitle {
    font-size: 18px;
    margin-bottom: 0;
  }

  .separator {
    min-height: 526px;
  }

  .bottom-section {
    flex-direction: column;
    align-items: center;
  }

  .content {
    max-width: 100%;
    width: 100%;
    padding: 0 80px 110px;
    z-index: 2;
  }

  .section-label {
    text-align: center;
    margin-bottom: 42px;
    font-size: 22px;
  }

  form {
    max-width: 507px;
    margin-inline: auto;
  }

  .form button {
    font-size: 14px;
  }

  .socials-label {
    text-align: center;
    margin-bottom: 41px;
    margin-top: 50px;
    font-size: 22px;
  }

  .socials {
    justify-content: center;
    gap: 16px;
  }

  .socials a {
    font-size: 16px;
  }

  .hero-image {
    transform: translateX(-50%);
    left: 50%;
    width: 726px;
    height: 856px;
    bottom: 0;
  }

  .hero-image img {
    transform: translateY(0);
  }

  .hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(
      to top,
      #090d2c 0%,
      rgba(9, 13, 44, 0.8) 30%,
      transparent 100%
    );
    pointer-events: none;
  }
}

/* ====== MOBILE ====== */
@media (max-width: 640px) {
  body::before {
    background: url('assets/bg-stars.png') center/cover repeat;
  }

  .top-section {
    padding: 32px 24px 0;
  }

  .logo {
    width: 70px;
    margin-bottom: 27px;
  }

  h1 {
    font-size: 2rem;
    max-width: 255px;
    margin-inline: auto;
    margin-bottom: 28px;
  }

  .subtitle {
    font-size: 1rem;
    max-width: 287px;
    margin-inline: auto;
  }

  .separator {
    min-height: 293px;
  }

  .content {
    padding: 0 20px 45px;
  }

  .section-label {
    font-size: 16px;
    margin-bottom: 18px;
    margin-top: 30px;
    text-align: start;
  }
  form {
    margin-inline: 0;
  }
  .form button {
    padding: 10px 18px;
    font-size: 12px;
  }

  .socials-label {
    text-align: start;
    font-size: 16px;
    margin-bottom: 33px;
  }

  .socials {
    display: grid;
    width: fit-content;
    margin-inline: auto;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .socials a {
    font-size: 12px;
  }

  .hero-image {
    bottom: 66px;
    width: 387px;
    height: 456px;
  }
}
