:root {
  --bg-deep: #0a0c10;
  --bg-mid: #10141c;
  --text: #e8edf5;
  --text-muted: #9aa6b8;
  --accent: #3d8bfd;
  --accent-bright: #5ca0ff;
  --accent-soft: rgba(61, 139, 253, 0.16);
  --line: rgba(61, 139, 253, 0.22);
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  font-optical-sizing: auto;
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 139, 253, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(61, 139, 253, 0.05), transparent 50%),
    radial-gradient(ellipse 50% 35% at 15% 70%, rgba(30, 70, 140, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 40%, #07090d 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='62' viewBox='0 0 72 62'%3E%3Cpath fill='none' stroke='%233d8bfd' stroke-opacity='0.07' stroke-width='1' d='M36 1.5L70.5 21v20L36 60.5 1.5 41V21z'/%3E%3C/svg%3E");
  background-size: 72px 62px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  padding: 2.5rem 1.5rem 1.75rem;
}

.logo {
  width: clamp(160px, 32vw, 220px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
  filter: drop-shadow(0 0 36px rgba(61, 139, 253, 0.32));
}

.brand-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.brand-name__city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4f7fc;
  text-indent: 0.18em;
}

.brand-name__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
  color: var(--accent-bright);
  position: relative;
  padding-top: 0.55rem;
}

.brand-name__tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(12rem, 55vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 20%,
    var(--accent-bright) 50%,
    var(--accent) 80%,
    transparent
  );
}

.letter {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.5rem 0 5rem;
}

.letter h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: #f4f7fc;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.letter h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 1.35rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.letter p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.letter p:nth-of-type(1) {
  animation-delay: 0.38s;
}
.letter p:nth-of-type(2) {
  animation-delay: 0.46s;
}
.letter p:nth-of-type(3) {
  animation-delay: 0.54s;
}
.letter p:nth-of-type(4) {
  animation-delay: 0.62s;
}
.letter p:nth-of-type(5) {
  animation-delay: 0.7s;
}
.letter p:nth-of-type(6) {
  animation-delay: 0.78s;
}
.letter p:nth-of-type(7) {
  animation-delay: 0.86s;
}
.letter p:nth-of-type(8) {
  animation-delay: 1.05s;
}
.letter p:nth-of-type(9) {
  animation-delay: 1.12s;
}
.letter p:nth-of-type(10) {
  animation-delay: 1.2s;
}

.lede {
  font-size: 1.2rem;
  color: var(--text) !important;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem !important;
}

.cta {
  display: flex;
  justify-content: center;
  margin: 2.75rem 0 2.5rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.discord-btn {
  --btn-shift: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0a0c10;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, #2f6fd6 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(61, 139, 253, 0.25),
    0 12px 32px rgba(61, 139, 253, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
  overflow: hidden;
}

.discord-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.discord-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(61, 139, 253, 0.4),
    0 18px 40px rgba(61, 139, 253, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.discord-btn:hover::before {
  transform: translateX(120%);
}

.discord-btn:active {
  transform: translateY(-1px);
}

.discord-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.discord-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  flex-shrink: 0;
}

.closing {
  color: var(--text) !important;
  font-weight: 500;
}

.signature {
  margin-top: 2rem !important;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-bright) !important;
  letter-spacing: -0.02em;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .brand-name,
  .letter h1,
  .letter p,
  .cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .discord-btn,
  .discord-btn::before {
    transition: none;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .brand {
    padding-top: 2rem;
  }

  .letter {
    width: min(42rem, calc(100% - 1.75rem));
  }

  .discord-btn {
    width: 100%;
    justify-content: center;
  }
}
