:root {
  --bg: #08060d;
  --surface: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .10);
  --text: #f8f5ff;
  --muted: #9a91a8;
  --purple: #9b45f4;
  --purple-bright: #b760ff;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
}

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

.background,
.grid,
.noise,
.orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background { z-index: -3; overflow: hidden; }

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 67% 48%, rgba(126, 39, 200, .18), transparent 31%),
    radial-gradient(circle at 18% 12%, rgba(117, 50, 190, .08), transparent 27%),
    linear-gradient(135deg, #07050b 0%, #0b0711 58%, #09060d 100%);
}

.grid {
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 50%, black, transparent 72%);
}

.noise {
  z-index: 3;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(30px);
}

.orb-one {
  inset: -260px auto auto -180px;
  background: rgba(108, 40, 180, .12);
}

.orb-two {
  inset: auto -260px -300px auto;
  background: rgba(170, 69, 255, .10);
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(156, 68, 244, .10), transparent 68%);
  transform: translate(-50%, -50%);
}

.site-header,
.site-footer {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 20px/1 Space Grotesk, sans-serif;
  letter-spacing: -.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #b2a9bf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 0 5px rgba(183, 96, 255, .08), 0 0 16px rgba(183, 96, 255, .8);
}

.hero {
  width: min(1320px, calc(100% - 64px));
  min-height: calc(100svh - 176px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(44px, 7vw, 120px);
  padding: 54px 0 84px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: enter-left .9s cubic-bezier(.2,.8,.2,1) both;
}

.kicker {
  margin: 0 0 24px;
  color: #bdaacf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 700 clamp(54px, 7vw, 104px)/.94 Space Grotesk, sans-serif;
  letter-spacing: -.075em;
}

h1 span {
  background: linear-gradient(90deg, #f4effb 0%, #bd88f4 46%, #8f35e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  max-width: 585px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
}

.brand-visual {
  position: relative;
  min-height: min(650px, 68svh);
  display: grid;
  place-items: center;
  animation: enter-right 1.05s .08s cubic-bezier(.2,.8,.2,1) both;
}

.visual-glow {
  position: absolute;
  width: min(590px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164,69,246,.26), rgba(103,34,170,.08) 45%, transparent 72%);
  filter: blur(12px);
}

.ring {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(196, 152, 236, .12);
  border-radius: 50%;
}

.ring-one {
  width: min(550px, 84%);
  animation: breathe 6s ease-in-out infinite;
}

.ring-two {
  width: min(690px, 104%);
  border-style: dashed;
  opacity: .6;
  animation: rotate 42s linear infinite;
}

.logo-shell {
  position: relative;
  width: min(540px, 82%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.015)),
    rgba(13,8,20,.55);
  box-shadow:
    0 45px 100px rgba(0,0,0,.44),
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 80px rgba(121,34,196,.08);
  backdrop-filter: blur(18px);
  transform: rotate(-2deg);
}

.logo-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 25px;
}

.logo-shell img {
  position: relative;
  z-index: 2;
  width: 91%;
  filter: drop-shadow(0 28px 35px rgba(0,0,0,.34));
  animation: float 5.5s ease-in-out infinite;
}

.corner-label {
  position: absolute;
  z-index: 4;
  color: rgba(255,255,255,.22);
  font: 700 10px/1 Space Grotesk, sans-serif;
  letter-spacing: .34em;
  writing-mode: vertical-rl;
}

.top-label { right: 2%; top: 14%; }
.bottom-label { left: 2%; bottom: 14%; transform: rotate(180deg); }

.site-footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #5f5867;
  font-size: 10px;
  letter-spacing: .04em;
}

@keyframes enter-left {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes enter-right {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(.6deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.035); opacity: 1; }
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 75px;
    text-align: center;
  }

  .hero-copy { order: 2; }
  .brand-visual { order: 1; min-height: 520px; }
  .intro { margin-inline: auto; }
  .corner-label { display: none; }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .hero { width: min(100% - 30px, 1320px); }

  .site-header { min-height: 78px; }
  .brand { font-size: 18px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .status { padding: 8px 10px; font-size: 9px; letter-spacing: .09em; }

  .hero {
    gap: 20px;
    padding: 30px 0 66px;
  }

  .brand-visual { min-height: 390px; }
  .logo-shell { width: min(360px, 88vw); border-radius: 25px; }
  .logo-shell::before { inset: 12px; border-radius: 19px; }
  .ring-one { width: min(390px, 94vw); }
  .ring-two { width: min(470px, 112vw); }

  h1 { font-size: clamp(45px, 14vw, 68px); }
  .kicker { margin-bottom: 18px; }
  .intro { margin-top: 22px; font-size: 15px; }

  .site-footer {
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 32px;
}

.discord-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border: 1px solid rgba(190, 137, 255, .28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(154, 69, 244, .18), rgba(104, 41, 171, .10));
  box-shadow: 0 16px 38px rgba(76, 24, 130, .18), inset 0 1px 0 rgba(255,255,255,.06);
  color: #f4edff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.discord-button:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 137, 255, .55);
  background: linear-gradient(135deg, rgba(165, 79, 255, .25), rgba(104, 41, 171, .15));
  box-shadow: 0 20px 48px rgba(76, 24, 130, .26), inset 0 1px 0 rgba(255,255,255,.08);
}

.discord-button:focus-visible {
  outline: 3px solid rgba(183, 96, 255, .28);
  outline-offset: 4px;
}

.discord-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.button-arrow {
  color: #bba6cf;
  font-size: 15px;
}

@media (max-width: 980px) {
  .hero-actions { justify-content: center; }
}
