@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --forum-bg: #111111;
  --forum-surface: #222222;
  --forum-text: #dddddd;
  --forum-red: #d70909;
  --forum-red-bright: #f52323;
  --forum-gold: #a87137;
  --muted: #8f8b89;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--forum-bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--forum-text);
  background:
    radial-gradient(circle at 50% 64%, rgba(151, 0, 0, 0.17), transparent 33%),
    linear-gradient(180deg, #141111 0%, #0b0a0a 58%, #080808 100%);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

#embers,
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#embers {
  z-index: 2;
  opacity: 0.78;
}

.scene {
  z-index: 0;
  overflow: hidden;
}

.scene::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black 50%, transparent);
  content: "";
  transform: perspective(500px) rotateX(62deg) scale(1.6) translateY(22%);
  transform-origin: center bottom;
}

.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.scene__glow--one {
  top: 20%;
  left: -10%;
  width: 36vw;
  height: 36vw;
  background: #600000;
  animation: drift 13s ease-in-out infinite alternate;
}

.scene__glow--two {
  right: -13%;
  bottom: 2%;
  width: 42vw;
  height: 42vw;
  background: #8a0909;
  animation: drift 16s ease-in-out -4s infinite alternate-reverse;
}

.scene__mountains {
  position: absolute;
  right: -5%;
  bottom: -18%;
  left: -5%;
  height: 54%;
  background:
    linear-gradient(145deg, transparent 31%, rgba(28, 22, 21, 0.75) 31.2%, rgba(7, 7, 7, 0.9) 61%, transparent 61.2%) 12% 100% / 48% 100% no-repeat,
    linear-gradient(215deg, transparent 29%, rgba(24, 20, 19, 0.8) 29.2%, #060606 64%, transparent 64.2%) 82% 100% / 58% 100% no-repeat;
  filter: blur(1px);
  opacity: 0.72;
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.68)),
    radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.52) 100%);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 64px));
  height: 100px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand,
.header-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 184px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(215, 9, 9, 0.28));
}

.header-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a9a5a3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-link:hover {
  color: #fff;
}

.header-link svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 160px);
  padding: 44px 24px 92px;
  text-align: center;
}

.hero__content {
  width: min(800px, 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
  color: #b9a087;
  font-family: "Cinzel", Georgia, serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--forum-red));
}

.eyebrow span:last-child {
  transform: rotate(180deg);
}

.crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin: 0 auto 20px;
}

.crest img {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(215, 9, 9, 0.45));
}

.crest__ring {
  position: absolute;
  border: 1px solid rgba(215, 9, 9, 0.25);
  border-radius: 50%;
}

.crest__ring--outer {
  inset: 0;
  border-top-color: rgba(245, 35, 35, 0.75);
  border-bottom-color: rgba(168, 113, 55, 0.48);
  animation: spin 18s linear infinite;
}

.crest__ring--inner {
  inset: 9px;
  border-right-color: rgba(245, 35, 35, 0.48);
  transform: rotate(35deg);
}

.crest__flare {
  position: absolute;
  width: 190px;
  height: 55px;
  background: radial-gradient(ellipse, rgba(215, 9, 9, 0.28), transparent 68%);
  filter: blur(8px);
}

h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9);
}

h1 span {
  display: block;
  color: #efedeb;
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

h1 strong {
  display: block;
  margin-top: 2px;
  color: var(--forum-red-bright);
  font-size: clamp(45px, 7.2vw, 86px);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.05;
  text-shadow:
    0 0 40px rgba(215, 9, 9, 0.25),
    0 5px 28px rgba(0, 0, 0, 0.95);
}

.hero__copy {
  max-width: 650px;
  margin: 25px auto 31px;
  color: #aaa6a4;
  font-size: 15px;
  line-height: 1.85;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
  justify-content: center;
  overflow: hidden;
  padding: 16px 20px;
  border: 1px solid #ec2929;
  color: #fff;
  background: linear-gradient(135deg, #ad0505, var(--forum-red), #b80606);
  box-shadow:
    0 12px 40px rgba(130, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.18);
  font-family: "Cinzel", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cta::before,
.cta::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: solid rgba(255, 255, 255, 0.72);
  content: "";
}

.cta::before {
  top: 5px;
  left: 5px;
  border-width: 1px 0 0 1px;
}

.cta::after {
  right: 5px;
  bottom: 5px;
  border-width: 0 1px 1px 0;
}

.cta:hover {
  background: linear-gradient(135deg, #c90808, #ed1515, #c90808);
  box-shadow: 0 16px 48px rgba(215, 9, 9, 0.35);
  transform: translateY(-2px);
}

.cta:focus-visible,
.header-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.cta__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.2) 45%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 600ms ease;
}

.cta:hover .cta__shine {
  transform: translateX(130%);
}

.cta svg {
  position: relative;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cta__arrow {
  margin-left: 4px;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #6f6b69;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forum-red-bright);
  box-shadow: 0 0 10px var(--forum-red-bright);
  animation: pulse 1.8s ease-in-out infinite;
}

footer {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: #4f4b4a;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__mark {
  color: #765b48;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 800ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

[data-reveal]:nth-child(2) { animation-delay: 100ms; }
[data-reveal]:nth-child(3) { animation-delay: 190ms; }
[data-reveal]:nth-child(4) { animation-delay: 280ms; }
[data-reveal]:nth-child(5) { animation-delay: 370ms; }
[data-reveal]:nth-child(6) { animation-delay: 460ms; }

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  to { transform: translate(12%, -8%) scale(1.15); }
}

@keyframes pulse {
  50% { opacity: 0.3; transform: scale(0.75); }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 36px);
    height: 76px;
  }

  .brand img {
    width: 142px;
  }

  .header-link {
    font-size: 0;
  }

  .header-link::before {
    content: "Forum";
    font-size: 10px;
  }

  .hero {
    min-height: calc(100svh - 76px);
    padding: 34px 20px 86px;
  }

  .eyebrow {
    gap: 10px;
    font-size: 8px;
    letter-spacing: 0.25em;
  }

  .eyebrow span {
    width: 22px;
  }

  .crest {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
  }

  .crest img {
    width: 76px;
    height: 76px;
  }

  h1 span {
    font-size: clamp(25px, 8vw, 36px);
  }

  h1 strong {
    margin-top: 6px;
    font-size: clamp(41px, 12.2vw, 62px);
    line-height: 0.98;
  }

  .hero__copy {
    margin-top: 23px;
    font-size: 13px;
    line-height: 1.75;
  }

  footer {
    width: calc(100% - 36px);
  }

  .footer__mark {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 681px) {
  .site-header { height: 76px; }
  .hero { min-height: calc(100svh - 110px); padding-top: 22px; }
  .crest { width: 82px; height: 82px; margin-bottom: 10px; }
  .crest img { width: 68px; height: 68px; }
  .hero__copy { margin-top: 16px; margin-bottom: 20px; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

