:root {
  --night: #02050d;
  --text: #f7f4ed;
  --muted: #b7bdca;
  --gold: #dfbd78;
  --gold-bright: #fff0c9;
  --blue: #7f92ff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: var(--night);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--night);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--night);
}

.world__art {
  position: absolute;
  inset: 0;
  background-image: url("/assets/noxon-royal-world-v1.webp");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
  filter: brightness(0.55) saturate(0.72) contrast(1.04);
}

.world__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 42% 62% at 50% 48%,
      rgba(1, 4, 12, 0.74) 0%,
      rgba(1, 4, 12, 0.54) 42%,
      rgba(1, 4, 12, 0.13) 78%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 3, 10, 0.46) 0%,
      rgba(1, 4, 12, 0.2) 38%,
      rgba(1, 4, 12, 0.22) 62%,
      rgba(0, 3, 10, 0.46) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 3, 10, 0.34) 0%,
      transparent 24%,
      transparent 70%,
      rgba(0, 3, 10, 0.64) 100%
    );
}

.royal-frame {
  position: fixed;
  inset: clamp(0.35rem, 0.65vw, 0.65rem);
  z-index: 4;
  border: 1px solid rgba(112, 133, 255, 0.52);
  border-radius: clamp(0.8rem, 1.55vw, 1.35rem);
  pointer-events: none;
}

.royal-frame::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  content: "";
  background: linear-gradient(
    115deg,
    rgba(255, 222, 158, 0.55),
    transparent 12%,
    transparent 84%,
    rgba(123, 142, 255, 0.62)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.royal-frame__corner {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-color: rgba(246, 208, 135, 0.8);
}

.royal-frame__corner--top-left {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: inherit 0 0;
}

.royal-frame__corner--top-right {
  top: -1px;
  right: -1px;
  border-top: 1px solid;
  border-right: 1px solid;
  border-radius: 0 inherit 0 0;
}

.royal-frame__corner--bottom-left {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid;
  border-left: 1px solid;
  border-radius: 0 0 0 inherit;
}

.royal-frame__corner--bottom-right {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 inherit;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.55rem, 3.6vh, 2.55rem) clamp(1.65rem, 4vw, 4.6rem) 0;
}

.identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.identity__crest {
  display: grid;
  width: 2.2rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold);
}

.identity__crest svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.identity__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.identity__copy b {
  color: #faf7ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1;
}

.identity__copy small {
  color: rgba(228, 202, 151, 0.74);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  line-height: 1;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(219, 225, 238, 0.4);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
}

.language-switch button {
  appearance: none;
  padding: 0;
  border: 0;
  color: rgba(219, 225, 238, 0.42);
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"],
.language-switch button:hover,
.language-switch button:focus-visible {
  color: #fff;
}

.language-switch button:focus-visible,
.partnerships-action:focus-visible {
  outline: 1px solid rgba(152, 178, 255, 0.94);
  outline-offset: 0.42rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  padding: clamp(2.2rem, 5vh, 4.2rem) clamp(1.5rem, 5vw, 5rem);
  place-items: center;
  text-align: center;
}

.hero__copy {
  display: flex;
  width: min(92vw, 72rem);
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 1.35rem;
  color: rgba(231, 199, 136, 0.8);
  font-size: clamp(0.65rem, 0.7vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.5;
}

.eyebrow i {
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 194, 121, 0.85), transparent);
}

.hero h1 {
  margin: 0;
  color: #f8f7f4;
  background: linear-gradient(
    100deg,
    #9ba4b3 0%,
    #fff 22%,
    #d4b06d 45%,
    #f8fbff 65%,
    #a2aec1 83%,
    #fff0c3 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 10vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.5rem 1.4rem rgba(0, 0, 0, 0.75));
}

.launch-title {
  margin: 1.35rem 0 2rem;
  color: var(--gold);
  background: linear-gradient(95deg, #aa7d3b, #ffe3a4 36%, #d2a75e 64%, #fff0c5);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.9vw, 4.3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.35rem 0.8rem rgba(0, 0, 0, 0.66));
}

.lead {
  max-width: 44rem;
  margin: 0;
  color: rgba(222, 227, 236, 0.84);
  font-size: clamp(0.8rem, 0.95vw, 1.02rem);
  font-weight: 400;
  letter-spacing: clamp(0.13em, 0.21vw, 0.23em);
  line-height: 1.85;
  text-transform: uppercase;
  text-shadow: 0 2px 1rem rgba(0, 0, 0, 0.9);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.55rem;
  margin-top: clamp(2.1rem, 4.4vh, 3.15rem);
}

.telegram-action {
  min-width: 13.8rem;
  min-height: 3.05rem;
  appearance: none;
  padding: 0.8rem 1.65rem;
  border: 1px solid rgba(239, 204, 137, 0.78);
  border-radius: 999px;
  opacity: 1;
  color: var(--gold-bright);
  background: rgba(5, 9, 19, 0.68);
  font: inherit;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  line-height: 1.3;
  -webkit-text-fill-color: currentColor;
  cursor: default;
}

.partnerships-action {
  position: relative;
  color: rgba(224, 229, 240, 0.7);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-decoration: none;
}

.partnerships-action::after {
  position: absolute;
  right: 0.24em;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(224, 190, 117, 0.62), transparent);
}

.partnerships-action:hover,
.partnerships-action:focus-visible {
  color: #fff;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.8rem, 4vw, 4.6rem) clamp(1.5rem, 3vh, 2.25rem);
  color: rgba(188, 196, 211, 0.55);
  font-size: clamp(0.56rem, 0.62vw, 0.66rem);
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-transform: uppercase;
}

.footer p {
  max-width: 48rem;
  margin: 0;
}

.footer__contacts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.8rem;
}

.footer__contacts a {
  text-decoration: none;
}

.footer__contacts a:hover,
.footer__contacts a:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
  .world__art {
    background-position: 70% center;
    filter: brightness(0.46) saturate(0.68) contrast(1.04);
  }

  .world__veil {
    background:
      radial-gradient(
        ellipse 72% 55% at 50% 49%,
        rgba(1, 4, 12, 0.76),
        rgba(1, 4, 12, 0.52) 55%,
        transparent 100%
      ),
      linear-gradient(180deg, rgba(0, 3, 10, 0.46), transparent 22%, transparent 72%, rgba(0, 3, 10, 0.7)),
      rgba(0, 3, 10, 0.14);
  }

  .topbar {
    padding: 1.45rem 1.5rem 0;
  }

  .identity__crest {
    width: 1.9rem;
  }

  .identity__copy b {
    font-size: 0.92rem;
  }

  .identity__copy small {
    font-size: 0.5rem;
  }

  .hero {
    padding: 2rem 1.3rem 2.4rem;
  }

  .hero__copy {
    width: 100%;
  }

  .eyebrow {
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .eyebrow i {
    width: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 21vw, 6.8rem);
  }

  .launch-title {
    margin: 1.1rem 0 1.5rem;
    font-size: clamp(1.8rem, 9vw, 3rem);
    letter-spacing: 0.07em;
  }

  .lead {
    max-width: 31rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.75;
  }

  .actions {
    flex-direction: column;
    gap: 1.3rem;
    margin-top: 2rem;
  }

  .telegram-action {
    min-width: min(16rem, 84vw);
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1.5rem 1.35rem;
    text-align: center;
  }

  .footer p {
    max-width: 32rem;
  }

  .footer__contacts {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .identity__copy small {
    display: none;
  }

  .language-switch {
    font-size: 0.67rem;
  }

  .footer__contacts {
    font-size: 0.53rem;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .topbar {
    padding-top: 1.25rem;
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.6rem;
  }

  .hero h1 {
    font-size: clamp(4.7rem, 8.5vw, 8rem);
  }

  .launch-title {
    margin: 1rem 0 1.35rem;
  }

  .actions {
    margin-top: 1.65rem;
  }

  .footer {
    padding-bottom: 1.25rem;
  }
}
