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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}

/* Background Video */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }

  body {
    background: #111;
  }
}

/* Dark Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
  pointer-events: none;
}

/* Content */
.content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: min(100%, 52rem);
  margin-inline: auto;
  text-align: center;
  color: #ff8e7f;
}

.logo {
  display: block;
  width: min(85vw, 350px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 10vw, 7.5rem);
}

.gradient-text {
  font-size: clamp(1.35rem, 4vw + 0.65rem, 50px);
  line-height: 1.15;
  margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  background: linear-gradient(
    90deg,
    #fdbb2d 0%,
    #ff8a34 15%,
    #f15a8a 35%,
    #d100d8 55%,
    #8a2be2 75%,
    #4b3cf0 90%,
    #1e4dff 100%
  );
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.content p {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9375rem, 2vw + 0.5rem, 22px);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: clamp(0.5rem, 2vw, 15px);
  color: #b1de0e;
  max-width: 42ch;
  margin-inline: auto;
}

.content p:last-of-type {
  margin-bottom: 0;
}

.content .special-text {
  color: pink;
  font-size: clamp(1.05rem, 2.5vw + 0.5rem, 28px);
  font-weight: bold;
  font-style: italic;
  letter-spacing: 1px;
  max-width: 36ch;
  margin-inline: auto;
}

.content p.contact-email {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.875rem, 1.5vw + 0.5rem, 18px);
  font-weight: 500;
  line-height: 1.5;
  margin-top: clamp(0.75rem, 2.5vw, 1.25rem);
  margin-bottom: 0;
  color: #ff8e7f;
  max-width: none;
  margin-inline: auto;
}

.content p.contact-email a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.content p.contact-email a:focus-visible {
  outline: 2px solid #ff8e7f;
  outline-offset: 3px;
}

/* Desktop: one line per block (no wrapping) */
@media (min-width: 1024px) {
  .content {
    max-width: min(96vw, 100rem);
  }

  .gradient-text,
  .content p:not(.special-text),
  .content .special-text,
  .content p.contact-email {
    white-space: nowrap;
    max-width: none;
  }
}

/* Large desktop: avoid runaway type past original caps */
@media (min-width: 1200px) {
  .gradient-text {
    font-size: min(50px, 3.2vw);
  }

  .content p {
    font-size: min(22px, 1.35vw);
  }

  .content .special-text {
    font-size: min(28px, 1.6vw);
  }

  .content p.contact-email {
    font-size: min(18px, 1.1vw);
  }
}

/* Short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  body {
    align-items: flex-start;
    padding-block: 0.75rem;
  }

  .logo {
    width: min(160px, 35vw);
    margin-bottom: 0.75rem;
  }

  .gradient-text {
    font-size: clamp(1.1rem, 3.5vh, 1.75rem);
    margin-bottom: 0.5rem;
  }

  .content p {
    font-size: clamp(0.8125rem, 2vh, 1rem);
    line-height: 1.45;
    margin-bottom: 0.35rem;
  }

  .content .special-text {
    font-size: clamp(0.9rem, 2.5vh, 1.1rem);
  }

  .content p.contact-email {
    font-size: clamp(0.8rem, 2vh, 0.95rem);
    margin-top: 0.35rem;
  }

  .gradient-text,
  .content p:not(.special-text),
  .content .special-text,
  .content p.contact-email {
    white-space: normal;
    max-width: 42ch;
  }

  .content .special-text {
    max-width: 36ch;
  }

  .content p.contact-email {
    max-width: none;
  }
}
