:root {
  --bg: #120c08;
  --ink: #f7e8cb;
  --muted: #d1bc97;
  --gold: #e4c08d;
  --gold-deep: #9e7447;
  --line: rgba(228, 192, 141, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  background:
    radial-gradient(circle at 50% 16%, rgba(216, 169, 95, 0.2), transparent 15%),
    radial-gradient(circle at left bottom, rgba(92, 45, 18, 0.35), transparent 26%),
    linear-gradient(180deg, rgba(11, 7, 5, 0.45), rgba(11, 7, 5, 0.84)),
    url("./assets/hero-quote.png") center center / cover no-repeat,
    linear-gradient(180deg, #1b120d 0%, #110b08 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 30%, rgba(5, 3, 2, 0.32) 100%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  mix-blend-mode: screen;
  opacity: 0.42;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) clamp(16px, 4vw, 44px) calc(110px + env(safe-area-inset-bottom));
}

main {
  min-height: inherit;
}

.hero-card {
  position: relative;
  min-height: calc(100vh - 2 * clamp(22px, 4vw, 42px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(34px, 7vw, 78px) 18px;
  animation: rise-in 0.75s ease both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18% 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(228, 192, 141, 0.12), transparent 38%),
    radial-gradient(circle at center, rgba(14, 10, 8, 0.22), transparent 72%);
  filter: blur(36px);
  opacity: 0.9;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
}

.avatar-corner {
  position: relative;
  z-index: 2;
  width: clamp(118px, 15vw, 176px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(235, 205, 162, 0.98), rgba(126, 93, 58, 0.92));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 241, 214, 0.16);
}

.avatar-corner img {
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(16, 10, 7, 0.55);
}

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.92;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  margin: 20px auto 0;
  max-width: 20rem;
  font-size: clamp(1.12rem, 2.8vw, 1.52rem);
  line-height: 1.4;
  color: var(--muted);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

@media (min-width: 901px) {
  .hero-card {
    padding-top: 14vh;
    padding-bottom: 16vh;
  }

  .avatar-corner {
    transform: translateY(2.5vh);
  }

  .hero-copy {
    transform: translateY(3vh);
  }
}

.discord-float {
  position: fixed;
  left: 24px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 228px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(28, 20, 14, 0.88), rgba(13, 9, 7, 0.96)),
    linear-gradient(135deg, rgba(88, 101, 242, 0.2), transparent 58%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.discord-float:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 192, 141, 0.4);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(88, 101, 242, 0.18);
}

.discord-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #6978ff 0%, #5865f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(88, 101, 242, 0.34);
}

.discord-float__icon svg {
  width: 26px;
  height: 26px;
}

.discord-float__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-float__eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: rgba(214, 191, 152, 0.84);
}

.discord-float__copy strong {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
}

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

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

@media (max-width: 900px) {
  .hero-card {
    min-height: calc(100vh - 80px);
  }

  .hero-card::before {
    inset: 12% 6%;
    border-radius: 50%;
  }

  .hero-copy p {
    max-width: 16rem;
  }
}

@media (max-width: 640px) {
  html,
  body {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  body {
    background:
      linear-gradient(
        180deg,
        rgba(11, 7, 5, 0.96) 0%,
        rgba(11, 7, 5, 0.7) 10%,
        rgba(11, 7, 5, 0.18) 22%,
        rgba(11, 7, 5, 0.1) 42%,
        rgba(11, 7, 5, 0.58) 78%,
        rgba(11, 7, 5, 0.96) 100%
      ),
      linear-gradient(
        90deg,
        rgba(11, 7, 5, 0.82) 0%,
        rgba(11, 7, 5, 0.22) 15%,
        rgba(11, 7, 5, 0.06) 50%,
        rgba(11, 7, 5, 0.22) 85%,
        rgba(11, 7, 5, 0.82) 100%
      ),
      radial-gradient(circle at 50% 12%, rgba(216, 169, 95, 0.1), transparent 18%),
      radial-gradient(circle at center bottom, rgba(92, 45, 18, 0.14), transparent 22%),
      url("./assets/hero-quote.png") center 18% / 112% auto no-repeat,
      linear-gradient(180deg, #1b120d 0%, #110b08 100%);
  }

  body::before {
    background: radial-gradient(circle at center 36%, transparent 24%, rgba(5, 3, 2, 0.38) 100%);
    mix-blend-mode: normal;
    opacity: 0.38;
  }

  .page-shell {
    min-height: 100svh;
    height: 100svh;
    padding: 0 12px calc(80px + env(safe-area-inset-bottom));
  }

  main {
    height: 100%;
  }

  .hero-card {
    min-height: 0;
    height: 100%;
    justify-content: center;
    gap: 12px;
    padding: 28px 10px 0;
  }

  .hero-card::before {
    inset: 16% 4%;
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.48;
  }

  .avatar-corner {
    width: 94px;
    margin-bottom: 10px;
  }

  .hero-kicker {
    font-size: 0.62rem;
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 15vw, 4.2rem);
    letter-spacing: 0.03em;
  }

  .hero-copy p {
    max-width: 12rem;
    margin-top: 10px;
    font-size: 0.96rem;
  }

  .hero-copy {
    transform: translateY(0);
  }

  .discord-float {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-width: 0;
    justify-content: center;
    padding: 10px 14px 10px 10px;
  }

  .discord-float__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .discord-float__icon svg {
    width: 24px;
    height: 24px;
  }

  .discord-float__copy strong {
    font-size: 0.96rem;
  }
}
