/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "TASA Explorer", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: #000000;
  color: #ffffff;
}

.content {
  min-width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  position: relative; /* keep gradient positioned */
  margin: 32px 0px;
}

.container {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px; /* spacing between text & image */
  padding: 0 24px; /* side breathing room */
  z-index: 1;
}

.text-content {
  width: 700px;
  max-width: 90%;
}

p {
  line-height: 1.5;
  font-size: 1.2em;
}

.texts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 800px;
}

.texts h1 {
  font-size: 4.3em;
  font-weight: 700;
  margin: 0;
  padding: 0;
  text-wrap: balance;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.texts p {
  margin: 0;
  font-size: 1.125rem;
}

.crown {
  width: 250px;
  height: 250px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 80%;
  margin: auto;
  padding: 24px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  color: #e94f37;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header nav ul {
  list-style-type: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.gradient {
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    to top,
    rgba(233, 79, 55, 0) 0%,
    rgba(233, 79, 55, 0) 100%
  );
  position: absolute;
  inset: 0;
}

.highlighted-text {
  color: rgba(255, 255, 255, 1);
}

.screenshot {
  width: 700px;
  max-width: 100%; /* prevent overflow on small screens */
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Responsive: stack below 980px ---------- */
@media (max-width: 980px) {
  .container {
    flex-direction: column; /* stack text over image */
    align-items: center;
    gap: 32px;
    padding-top: 96px; /* keep content clear of fixed header */
  }

  header {
    width: 92%;
    padding: 16px 0;
    flex-direction: column;
    gap: 24px;
  }

  header nav ul {
    gap: 12px;
    flex-wrap: wrap; /* allow nav to wrap on small screens */
    justify-content: center;
  }

  .texts {
    align-items: center; /* center text when stacked */
    text-align: center;
  }

  .texts h1 {
    font-size: clamp(1.8rem, 6vw, 3rem); /* scale down heading */
  }

  .texts p {
    font-size: 1rem;
  }

  .screenshot {
    width: 100%;
    max-width: 560px; /* nicer size for phones/tablets */
  }

  .crown {
    width: 150px;
    height: 150px;
  }
}

/* ---------- Extra-small tweaks (optional) ---------- */
@media (max-width: 520px) {
  header img {
    width: 84px;
  }
  header nav ul {
    justify-content: center;
  }

  .crown {
    width: 100px;
    height: 100px;
  }
}
