@font-face {
  font-family: 'Kia Signature';
  src: url('./fonts/KiaSignatureRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kia Signature';
  src: url('./fonts/KiaSignatureBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kia Signature';
  src: url('./fonts/KiaSignatureLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --kia-ink: #05141F;
  --kia-bg: #E8E9EA;
}

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

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Kia Signature', Arial, sans-serif;
  color: var(--kia-ink);
  background-color: var(--kia-bg);
  overflow: hidden;
}

#main-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url("./img/landing/background_desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#coming-soon-section {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background-image: url("./img/landing/background_desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 9999;
}

.coming-soon-text {
  font-family: 'Kia Signature', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--kia-ink);
  font-size: clamp(2.4rem, 7vw, 6rem);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 1.5rem;
}

body.coming-soon #main-section,
body.coming-soon #ending-section {
  display: none !important;
}

body.coming-soon #coming-soon-section {
  display: flex;
}

.kia-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.cta-block {
  position: absolute;
  top: 50%;
  left: 18%;
  right: 25%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  cursor: pointer;
  outline: none;
}

.cta-qr {
  width: clamp(220px, 22vw, 360px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.cta-text {
  color: var(--kia-ink);
  line-height: 1.05;
}

.cta-title-desktop {
  font-family: 'Kia Signature', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  letter-spacing: 0.5px;
  line-height: 1;
}

.cta-title-mobile {
  display: none;
}

.cta-subtitle {
  font-family: 'Kia Signature', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 3rem);
  line-height: 1.1;
  margin-top: 0.2rem;
}

.cta-tagline {
  font-family: 'Kia Signature', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.7rem);
  line-height: 1.2;
  margin-top: 0.4rem;
}

.share-buttons-section {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.share-button {
  background: transparent;
  border: 1.5px solid var(--kia-ink);
  color: var(--kia-ink);
  font-family: 'Kia Signature', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.share-button:hover {
  background-color: var(--kia-ink);
  color: #fff;
}

.share-button:hover .share-icon {
  filter: brightness(0) invert(1);
}

.share-button--wide {
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.share-button--square {
  width: 3.1rem;
  aspect-ratio: 1 / 1;
  padding: 0;
}

.share-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: block;
}

.share-button--square .share-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.kia-logo {
  position: absolute;
  display: block;
}

.kia-logo--desktop {
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  height: clamp(120px, 16vh, 200px);
  width: auto;
}

.kia-logo--mobile {
  display: none;
}

#ending-section {
  width: 100%;
  height: 100%;
  background-image: url("./img/ending_desktop.jpg");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  display: none;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  #main-section {
    background-image: url("./img/landing/background_mobile.jpg");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
  }

  #coming-soon-section {
    background-image: url("./img/landing/background_mobile.jpg");
    background-position: center top;
  }

  .coming-soon-text {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
  }

  .kia-stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 22vh 1.5rem 0 1.5rem;
    gap: 1.25rem;
  }

  .cta-block {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
  }

  .cta-qr {
    display: none;
  }

  .cta-text {
    text-align: center;
    line-height: 1;
  }

  .cta-title-desktop {
    display: none;
  }

  .cta-title-mobile {
    display: block;
    font-family: 'Kia Signature', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    line-height: 1;
    color: var(--kia-ink);
  }

  .cta-title-icon {
    height: 0.95em;
    width: auto;
    vertical-align: -0.1em;
    margin-left: 0.25em;
  }

  .cta-subtitle {
    font-size: 1.1rem;
    margin-top: 0.6rem;
  }

  .cta-tagline {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.25rem;
  }

  .share-buttons-section {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .share-button--wide {
    width: 80%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    gap: 0.6rem;
  }

  .share-button--square {
    width: 52px;
    height: 52px;
  }

  .kia-logo--desktop {
    display: none;
  }

  .kia-logo--mobile {
    display: block;
    position: static;
    width: 55%;
    max-width: 320px;
    height: auto;
    margin: auto auto 3rem auto;
  }

  #ending-section {
    width: 100%;
    height: 100vh;
    background-image: url("./img/ending_mobile.jpg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }
}
