:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #020306;
  color: #fff;
  --pink: #f31358;
  --blue: #5164f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #020306;
}

body {
  overflow-x: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-image: url("./assets/cockpit-background.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.04) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36) 0%, transparent 42%);
}

.content {
  align-self: center;
  width: min(49vw, 55rem);
  margin-left: clamp(2rem, 4vw, 5rem);
  transform: translateY(-1.5vh);
}

.title-lockup {
  position: relative;
  width: 100%;
  padding-left: clamp(1.2rem, 1.5vw, 1.85rem);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-style: italic;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

.title-lockup::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.1em;
  bottom: -0.05em;
  width: clamp(0.35rem, 0.55vw, 0.62rem);
  background: var(--pink);
}

.title-lockup__row {
  display: flex;
  align-items: baseline;
  width: 100%;
  white-space: nowrap;
  font-size: clamp(4rem, 6vw, 7rem);
}

.title-lockup__f1 {
  flex: 0 0 auto;
  margin-right: 0.08em;
  color: #fff;
}

.title-lockup__sim {
  flex: 1 1 auto;
  color: var(--pink);
  transform-origin: left center;
}

.title-lockup__romania {
  display: block;
  width: 100%;
  padding-left: 0.035em;
  color: #fff;
  font-size: clamp(3.85rem, 5.78vw, 6.75rem);
  letter-spacing: 0.105em;
  white-space: nowrap;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - clamp(1.2rem, 1.5vw, 1.85rem));
  margin: clamp(1.2rem, 2.1vh, 2rem) 0 0 clamp(1.2rem, 1.5vw, 1.85rem);
  font-size: clamp(0.72rem, 0.92vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.tagline i {
  color: #c3c3c3;
  font-style: normal;
}

.intro {
  max-width: 48rem;
  margin: clamp(2rem, 4.3vh, 3.8rem) 0 0;
  font-size: clamp(1rem, 1.3vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.93);
  text-wrap: pretty;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.discord-row {
  display: grid;
  grid-template-columns: auto auto 1px auto;
  align-items: center;
  justify-content: start;
  gap: clamp(1rem, 1.6vw, 1.8rem);
  margin-top: clamp(2rem, 4.6vh, 4rem);
}

.discord-mark {
  display: grid;
  width: clamp(4rem, 5.3vw, 5.8rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 22%;
  color: #fff;
  background: linear-gradient(145deg, #5e73ff, #4054ea);
  box-shadow: 0 12px 32px rgba(50, 70, 230, 0.3);
}

.discord-mark svg {
  width: 58%;
}

.discord-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.discord-copy span {
  font-size: clamp(0.66rem, 0.85vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.discord-copy strong {
  font-size: clamp(1.6rem, 2.5vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.discord-divider {
  width: 1px;
  height: 3.8rem;
  background: rgba(255, 255, 255, 0.3);
}

.discord-button {
  display: inline-grid;
  min-width: clamp(8.7rem, 12vw, 13rem);
  min-height: clamp(4.5rem, 5.3vw, 5.7rem);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  color: #fff;
  background: linear-gradient(145deg, #5b70ff, #4457ed);
  box-shadow: 0 12px 30px rgba(40, 62, 226, 0.28);
  font-size: clamp(1.15rem, 1.55vw, 1.65rem);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.discord-button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(57, 78, 245, 0.42);
}

.discord-button:active {
  transform: translateY(0);
}

.discord-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100dvh;
    background-position: 68% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.38) 20%, rgba(0, 0, 0, 0.88) 47%, rgba(0, 0, 0, 0.52) 76%, rgba(0, 0, 0, 0.13) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  }

  .content {
    align-self: start;
    width: min(88vw, 38rem);
    margin: 25svh auto 0;
    transform: none;
  }

  .title-lockup {
    padding-left: 0.85rem;
  }

  .title-lockup::before {
    width: 0.32rem;
  }

  .title-lockup__row {
    font-size: clamp(3.05rem, 15.4vw, 6rem);
  }

  .title-lockup__romania {
    font-size: clamp(2.95rem, 14.7vw, 5.75rem);
    letter-spacing: 0.092em;
  }

  .tagline {
    width: calc(100% - 0.85rem);
    margin: 1rem 0 0 0.85rem;
    font-size: clamp(0.58rem, 2.55vw, 0.88rem);
    letter-spacing: 0.13em;
  }

  .intro {
    margin-top: clamp(1.8rem, 4.2svh, 2.8rem);
    font-size: clamp(1rem, 4.25vw, 1.25rem);
    line-height: 1.48;
  }

  .discord-row {
    grid-template-columns: auto 1fr 1px minmax(7.5rem, 0.88fr);
    gap: clamp(0.6rem, 2.5vw, 1rem);
    margin-top: clamp(2rem, 4.2svh, 3rem);
  }

  .discord-mark {
    width: clamp(3.65rem, 15vw, 5rem);
  }

  .discord-copy span {
    font-size: clamp(0.52rem, 2.2vw, 0.72rem);
    letter-spacing: 0.18em;
  }

  .discord-copy strong {
    font-size: clamp(1.28rem, 6.2vw, 2rem);
  }

  .discord-divider {
    height: 3.3rem;
  }

  .discord-button {
    min-width: 0;
    min-height: clamp(3.7rem, 15vw, 5rem);
    font-size: clamp(1rem, 4.6vw, 1.4rem);
  }
}

@media (max-width: 390px), (max-height: 720px) and (max-width: 760px) {
  .content {
    margin-top: 20svh;
  }

  .title-lockup__row {
    font-size: clamp(2.8rem, 14.5vw, 4.4rem);
  }

  .title-lockup__romania {
    font-size: clamp(2.65rem, 13.8vw, 4.2rem);
  }

  .intro {
    margin-top: 1.3rem;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .discord-row {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discord-button {
    transition: none;
  }
}
