@font-face {
  font-family: "NewReason";
  src:
    url("../fonts/NewReason-Light.woff2") format("woff2"),
    url("../fonts/NewReason-Light.woff") format("woff"),
    url("../fonts/NewReason-Light.ttf") format("truetype"),
    url("../fonts/NewReason-Light.eot") format("embedded-opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "NewReason";
  src:
    url("../fonts/NewReason-Regular.woff2") format("woff2"),
    url("../fonts/NewReason-Regular.woff") format("woff"),
    url("../fonts/NewReason-Regular.ttf") format("truetype"),
    url("../fonts/NewReason-Regular.eot") format("embedded-opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NewReason";
  src:
    url("../fonts/NewReason-Medium.woff2") format("woff2"),
    url("../fonts/NewReason-Medium.woff") format("woff"),
    url("../fonts/NewReason-Medium.ttf") format("truetype"),
    url("../fonts/NewReason-Medium.eot") format("embedded-opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "NewReason";
  src:
    url("../fonts/NewReason-SemiBold.woff2") format("woff2"),
    url("../fonts/NewReason-SemiBold.woff") format("woff"),
    url("../fonts/NewReason-SemiBold.ttf") format("truetype"),
    url("../fonts/NewReason-SemiBold.eot") format("embedded-opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "NewReason";
  src:
    url("../fonts/NewReason-Bold.woff2") format("woff2"),
    url("../fonts/NewReason-Bold.woff") format("woff"),
    url("../fonts/NewReason-Bold.ttf") format("truetype"),
    url("../fonts/NewReason-Bold.eot") format("embedded-opentype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-dark: #162b1b;
  --color-dark-border: #42714d;
  --color-light: #efefef;
  --color-white: #ffffff;
  --color-red: #e82e31;
  --color-red-border: #ea6d6f;
  --color-green: #25b75f;
  --color-green-border: #51c47f;
  --color-orange: #fe9926;
  --color-orange-border: #ffb056;

  --font-sans:
    "NewReason", "Plus Jakarta Sans", "Inter", "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #d9c8a4;
  color: var(--color-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* ---------------- Hero background ---------------- */
.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1123px;
  background-image: url("../assets/hero-keyhole2.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ---------------- Header ---------------- */
.header {
  position: relative;
  z-index: 2;
  padding: 90px 0 0 116px;
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header__logo--mbp {
  width: 87px;
  height: auto;
}
.header__logo--mcmv {
  width: 87px;
  height: auto;
}
.header__logo--jr {
  width: 200px;
  height: auto;
}

/* ---------------- Content layout ---------------- */
.content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  padding: 36px 116px 0 116px;
  gap: 80px;
  padding-bottom: 233px;
}

.content__left {
  max-width: 520px;
}

.headline {
  margin: 0 0 36px;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-dark);
  max-width: 386px;
}

.headline strong {
  font-weight: 600;
}

/* ---------------- Badges ---------------- */
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 450px;
}

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 71px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1.3px solid;
  color: var(--color-white);
  text-align: center;
  line-height: 1;
}

.badge__caption {
  display: block;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.badge__caption__y {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.badge__value {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  white-space: normal;
}

.badge__value--single {
  white-space: normal;
  line-height: 1.05;
  font-size: 19px;
}

.badge--red {
  background: var(--color-red);
  border-color: var(--color-red-border);
  width: 320px;
}

.badge--green {
  background: var(--color-green);
  border-color: var(--color-green-border);
  width: 320px;
  padding: 8px 12px;
}

.badge--orange {
  background: var(--color-orange);
  border-color: var(--color-orange-border);
  width: 320px;
}

/* ---------------- Right column ---------------- */
.content__right {
  max-width: 360px;
  margin-left: auto;
  margin-right: 16px;
  padding-top: 8px;
}

.prelaunch {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.prelaunch--mobile {
  display: none;
}

.prelaunch--desktop {
  display: flex;
}

.prelaunch__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 18px;
  background: var(--color-dark);
  border: 1px solid var(--color-dark-border);
  color: var(--color-light);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.form-intro {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--color-dark);
}

/* ---------------- Form ---------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 358px;
}

.form__row {
  display: flex;
  gap: 15px;
}

.form__field {
  flex: 1;
  display: flex;
  align-items: center;
}

.form__field input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-family: inherit;
  font-size: 18px;
  color: #000;
  outline: none;
  transition: background 0.2s ease;
}

.form__field input::placeholder {
  color: rgba(0, 0, 0, 0.85);
}

.form__field input:focus {
  background: rgba(255, 255, 255, 0.55);
}

.form__field--full input {
  width: 100%;
}

.form__submit {
  height: 51px;
  border: none;
  border-radius: 20px;
  background: var(--color-green);
  color: var(--color-dark);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 12px 24px 16px;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.form__submit:hover {
  background: #2cc66a;
}
.form__submit:active {
  transform: translateY(1px);
}

/* Success Message */
.form__success {
  margin-top: 16px;
  padding: 8px;
  border: 2px solid var(--color-green);
  border-radius: 12px;
  background: rgba(37, 183, 95, 0.1);
}

.form__success-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-green);
  text-align: center;
  line-height: 1.4;
}

/* ---------------- Legal text ---------------- */
.legal {
  position: relative;
  z-index: 2;
  max-width: 1118px;
  margin: 0 auto;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 300;
  text-align: center;
}

.legal--over-hero {
  color: var(--color-white);
  padding: 0 24px;
  margin-top: 80px;
}

.legal--footer {
  color: var(--color-dark);
  padding: 0 24px;
  margin-top: 24px;
}

/* ---------------- Aside logos (below form) ---------------- */
.aside-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  justify-content: flex-start;
}

.aside-logo--mbp {
  width: 110px;
  height: auto;
}

.aside-logo--mcmv {
  width: 110px;
  height: auto;
}

/* ---------------- Footer ---------------- */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 60px 0 40px;
  background: var(--color-light);
}

.footer__ornaments {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
  margin-bottom: -40px;
}

.footer__line {
  width: 100%;
  max-width: 812px;
  height: auto;
}

.footer__line--top {
  margin-bottom: -6px;
}
.footer__line--bottom {
  margin-top: -6px;
}

.footer__curves {
  width: 100%;
  max-width: 362px;
  height: auto;
  margin: 0 auto;
}

.footer__brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 0 0;
}

.footer__brand {
  height: 56px;
  width: auto;
}
.footer__brand--ts {
  height: 50px;
}

.footer__divider {
  display: inline-block;
  width: 1px;
  height: 56px;
  background: #999;
  transform: rotate(0deg);
}

/* ---------------- Gallery ---------------- */
.gallery {
  padding: 56px 116px 48px;
}

.gallery__title {
  text-align: start;
  font-size: 36px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.35;
  /* max-width: 1920px; */
  margin: 0 auto 40px;
}

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

.gallery__item {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .header {
    padding-left: 48px;
  }
  .content {
    padding-left: 48px;
    padding-right: 48px;
    gap: 40px;
  }
  .gallery {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 880px) {
  .hero-bg {
    height: 1500px;
  }

  .content {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .content__right {
    margin: 0 auto;
  }

  .prelaunch {
    justify-content: flex-start;
  }

  .headline {
    font-size: 26px;
  }

  .footer__brands {
    flex-wrap: wrap;
  }

  .gallery {
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__title {
    font-size: 24px;
  }
}

/* ============ Mobile (max-width: 700px) ============ */
@media (max-width: 700px) {
  .page {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 0;
  }

  /* --- Hero Background --- */
  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/hero-keyhole-mb.png");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
  }

  /* --- Header --- */
  .header {
    position: relative;
    z-index: 2;
    padding: 20px 24px 0;
    display: flex;
    justify-content: center;
  }

  .header__logos {
    gap: 36px;
  }

  .header__logo--mbp,
  .header__logo--mcmv {
    width: 85px;
    padding-top: 12px;
  }

  .header__logo--jr {
    width: 160px;
    padding-top: 40px;
  }

  /* --- Content Container --- */
  .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    gap: 0;
    margin-top: 560px;
  }

  .content__left,
  .content__right {
    display: contents;
  }

  /* --- Pre-launch Pill --- */
  .prelaunch--desktop {
    display: none;
  }

  .prelaunch--mobile {
    display: flex;
  }

  .prelaunch {
    justify-content: center;
    margin: 20px 0 16px;
    order: 1;
  }

  .prelaunch__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 20px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.4px;
    border-radius: 15px;
  }

  /* --- Main Headline --- */
  .headline {
    margin: 0 0 18px;
    font-size: 23px;
    line-height: 1.35;
    color: var(--color-dark);
    max-width: 290px;
    font-weight: 400;
    order: 2;
  }

  .headline strong {
    font-weight: 600;
  }

  /* --- Badges Grid --- */
  .badges {
    width: 100%;
    max-width: 370px;
    gap: 8px;
    margin: 0 auto 26px auto;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
  }

  .badge {
    min-height: 58px;
    padding: 6px 13px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .badge--red {
    width: 240px;
  }

  .badge--green {
    width: 185px;
    padding: 6px 10px;
  }

  .badge--orange {
    width: 200px;
  }

  .badge__caption {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0px;
  }

  .badge__value {
    font-size: 16px;
    font-weight: 500;
  }

  .badge__value--single {
    font-size: 16px;
    line-height: 1.1;
    white-space: normal;
  }

  /* --- Form Section --- */
  .form-intro {
    max-width: 310px;
    margin: 0 0 37px 0;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--color-dark);
    order: 4;
    margin-bottom: 12px;
    margin-top: 20px;
  }

  .form {
    max-width: 340px;
    margin: 0 0 27px 0;
    order: 5;
    gap: 6px;
  }

  .form__row {
    flex-direction: column;
  }

  .form__field input {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 16px;
  }

  .form__submit {
    height: 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 18px;
    margin-bottom: 0;
  }

  .form__success {
    margin-top: 8px;
  }

  .aside-logos {
    order: 6;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
    gap: 14px;
  }

  .aside-logo--mbp,
  .aside-logo--mcmv {
    width: 70px;
  }

  /* --- Legal Text --- */
  .legal--over-hero {
    display: none;
  }

  /* --- Footer --- */
  .footer {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 36px 0 28px;
    background: var(--color-light);
    margin-top: 80px;
  }

  .footer__ornaments {
    transform: none;
    margin: 0 0 16px 0;
  }

  .footer__line {
    display: none;
  }

  .footer__curves {
    max-width: 250px;
    margin: 0 auto;
  }

  .footer__brands {
    gap: 12px;
    padding: 0 24px;
    margin-top: 20px;
    flex-wrap: nowrap;
  }

  .footer__brand {
    height: 48px;
  }

  .footer__brand--ts {
    height: 44px;
  }

  .footer__divider {
    height: 48px;
  }

  .legal--footer {
    margin-top: 20px;
    padding: 0 24px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--color-dark);
  }

  /* --- Gallery --- */
  .gallery {
    padding: 36px 16px 28px;
  }

  .gallery__title {
    font-size: 20px;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery__item {
    border-radius: 14px;
  }
}

@media (max-width: 400px) {
  .hero-bg {
    height: 100%;
  }

  .headline {
    font-size: 22px;
  }
  .form-intro {
    font-size: 20px;
  }
  .prelaunch__pill {
    font-size: 18px;
    height: 44px;
    padding: 0 18px;
    letter-spacing: 1.2px;
  }
  .form__row {
    flex-direction: column;
  }
  .footer__brand {
    height: 44px;
  }
  .footer__brand--ts {
    height: 40px;
  }
  .footer__divider {
    height: 44px;
  }
}

.separator {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
}
