:root {
  --bg: #000000;
  --accent: #50207a;
  --accent-2: #d6b9fc;
  --accent-3: #838ce5;
  --muted: rgba(247, 245, 250, 0.14);
  --text: #f7f5fa;
}

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

html {
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  display: block;
  overflow-x: hidden;
  overflow-y: scroll;
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.65rem 2.8rem;
  display: flex;
  justify-content: center;
  z-index: 30;
  backdrop-filter: blur(0px);
  transform: translateY(-80%);
  opacity: 0;
  pointer-events: none;
  transition: padding 0.3s ease, backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.site-header.header--scrolled {
  padding: 1.2rem 2.8rem;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.header__inner {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header__brand {
  justify-self: start;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.header__nav {
  display: inline-flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
}

.header__link {
  position: relative;
  text-decoration: none;
  color: rgba(247, 245, 250, 0.82);
  padding: 0.25rem 0;
  transition: color 0.2s ease, transform 0.25s ease;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.header__link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__login {
  justify-self: end;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  color: rgba(214, 185, 252, 0.9);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.header__login:hover {
  color: var(--text);
  background: rgba(80, 32, 122, 0.2);
  transform: translateY(-2px);
}

.page-ready .site-header {
  animation: headerReveal 0.8s ease-out forwards;
  pointer-events: auto;
}

.header__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 185, 252, 0.3);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger:hover {
  transform: translateY(-1px);
  border-color: rgba(131, 140, 229, 0.6);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.site-header.header--menu-open .header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.page-ready .header__link:nth-child(1) {
  animation: navRise 0.5s ease-out 0.1s both;
}

.page-ready .header__link:nth-child(2) {
  animation: navRise 0.5s ease-out 0.18s both;
}

.page-ready .header__link:nth-child(3) {
  animation: navRise 0.5s ease-out 0.26s both;
}

.page-ready .header__login {
  animation: navRise 0.5s ease-out 0.34s both;
}

@keyframes navRise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.header--menu-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header.header--menu-open .header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -12px);
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 185, 252, 0.2);
    border-radius: 12px;
    display: grid;
    grid-auto-rows: auto;
    gap: 0.7rem;
    width: min(280px, 90vw);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.header--menu-open .header__nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 12px);
  }

  .header__nav .header__link {
    text-align: center;
    font-size: 1.02rem;
  }

  .header__link::after {
    display: none;
  }

  .header__login {
    display: none;
  }

  .header__burger {
    display: inline-flex;
  }
}

@keyframes headerReveal {
  0% {
    transform: translateY(-80%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.footer {
  width: 100%;
  background: #050505;
  padding: clamp(2.8rem, 6vh, 4rem) clamp(1.6rem, 4.6vw, 3.2rem);
  color: rgba(247, 245, 250, 0.8);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.2rem);
  align-items: start;
}

.footer__heading {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 185, 252, 0.9);
}

.footer__text {
  margin: 0 0 0.4rem 0;
  color: rgba(247, 245, 250, 0.82);
  line-height: 1.6;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer__logo {
  width: 32px;
  height: 32px;
  display: block;
}

.footer__text--muted {
  color: rgba(247, 245, 250, 0.65);
  font-size: 0.95rem;
}

.footer__nav {
  display: grid;
  gap: 0.35rem;
}

.footer__link {
  color: rgba(247, 245, 250, 0.82);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  margin-top: clamp(1.8rem, 3vh, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: grid;
  gap: 0.2rem;
}

.footer__bottom-text {
  margin: 0;
  color: rgba(247, 245, 250, 0.68);
  font-size: 0.95rem;
}

.footer__bottom-text--muted {
  color: rgba(247, 245, 250, 0.55);
}

.page-fade {
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.page-ready .page-fade {
  opacity: 1;
}

.contact-page__main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-top: 5rem;
}

.contact-page__card {
  width: min(900px, 100%);
  padding: clamp(2rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: clamp(1.4rem, 3vh, 1.8rem);
}

.contact-page__intro {
  display: grid;
  gap: 0.6rem;
  text-align: center;
}

.contact-page__title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  letter-spacing: -0.02em;
}

.contact-page__copy {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(247, 245, 250, 0.8);
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.8vw, 1.5rem);
}

.contact__field {
  display: grid;
  gap: 0.45rem;
}

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__field span {
  font-size: 0.95rem;
  color: rgba(247, 245, 250, 0.75);
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(214, 185, 252, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: rgba(131, 140, 229, 0.7);
  box-shadow: 0 0 0 3px rgba(131, 140, 229, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.contact__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__submit {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0.95rem 1.9rem;
  border: 2px solid var(--accent-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.contact__submit:hover {
  transform: translateY(-2px);
  border-color: var(--accent-3);
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}

.contact__submit:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
  .contact__form {
    grid-template-columns: 1fr;
  }
}