:root {
  --bg: #fbfbf8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #111111;
  --muted: #787878;
  --line: rgba(19, 19, 19, 0.1);
  --accent: #8d61e2;
  --accent-deep: #7448cf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 97, 226, 0.1), transparent 28%),
    radial-gradient(circle at right center, rgba(0, 0, 0, 0.03), transparent 20%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.8rem 3.2rem;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(17, 17, 17, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  justify-self: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.login-button {
  justify-self: end;
  padding: 0.9rem 1.2rem;
  border-radius: 0.3rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 92px);
  padding: 4rem 10vw 8rem;
}

.hero__media,
.hero__copy,
.hero__discord,
.team-member {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 700ms ease forwards;
}

.hero__copy {
  animation-delay: 120ms;
}

.hero__discord {
  animation-delay: 240ms;
}

.team-member {
  animation-delay: 140ms;
}

.team-member:nth-child(2) {
  animation-delay: 240ms;
}

.team-member:nth-child(3) {
  animation-delay: 320ms;
}

.hero__logo-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}

.hero__logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero__text {
  margin: 1.2rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero__discord {
  justify-self: end;
  align-self: center;
  max-width: 16rem;
}

.hero__discord p {
  margin: 0 0 2rem;
  color: #9a846c;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero__discord a {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.25rem;
}

.team-section {
  padding: 3rem 10vw 8rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 4rem;
}

.section-title span {
  width: 54px;
  height: 1px;
  background: rgba(141, 97, 226, 0.45);
}

.section-title p {
  margin: 0;
  color: var(--accent);
  font-size: 1.3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 320px));
  justify-content: center;
  align-items: start;
  gap: 4.5rem 5rem;
}

.team-member {
  display: grid;
  justify-items: center;
  gap: 2rem;
}

.team-member__avatar {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background-color: #0f0f10;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.team-member__avatar--deathrow {
  background-image: url("./img/deathrow.gif");
}

.team-member__avatar--bu3lowa {
  background-image: url("./img/ahmed.png");
}

.team-member__avatar--lwa {
  background-image: url("./img/lwa.png");
}

.team-member__meta {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: 100%;
}

.team-member__index {
  min-width: 42px;
  padding-right: 1.4rem;
  border-right: 1px solid var(--line);
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  text-align: center;
}

.team-member__text h2 {
  margin: 0 0 0.7rem;
  font-size: 1.9rem;
}

.team-member__text p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer {
  position: relative;
  padding: 3rem 10vw 4rem;
}

.site-footer__line {
  height: 1px;
  background: rgba(17, 17, 17, 0.08);
}

.site-footer__logo-wrap {
  display: grid;
  place-items: center;
  margin-top: -3.2rem;
}

.site-footer__logo {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.site-footer__content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-top: -0.6rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  color: #8b7a67;
  font-size: 0.96rem;
}

.site-footer__copy {
  margin: 0;
  color: #8b7a67;
  font-size: 0.96rem;
  text-align: right;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 2rem;
    min-height: auto;
    padding: 3rem 1.4rem 4rem;
  }

  .hero__discord {
    justify-self: start;
  }

  .team-section {
    padding: 1rem 1.4rem 4rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer {
    padding: 2rem 1.4rem 3rem;
  }

  .site-footer__content {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 1rem;
  }

  .site-footer__nav,
  .site-footer__copy {
    justify-content: center;
    text-align: center;
  }

}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand,
  .login-button {
    justify-self: center;
  }

  .site-nav {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__logo-ring {
    width: 134px;
    height: 134px;
  }

  .hero__logo {
    width: 134px;
    height: 134px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .team-member {
    width: min(100%, 320px);
  }

  .team-member__meta {
    gap: 1.1rem;
  }
}
