:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(17, 17, 17, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: rgb(100, 100, 100);
  --muted-strong: rgba(255, 255, 255, 0.44);
  --shadow: rgba(255, 255, 255, 0.04);
  --gray: rgba(255, 255, 255, 0.07);
  --panel-light: rgba(255, 255, 255, 0.05);
  --danger: rgba(255, 98, 98, 0.15);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 30%),
    var(--bg);
  color: var(--text);
  letter-spacing: -0.03em;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 14px 18px 0;
}

.topbar-inner {
  width: min(1200px, 100%);
  height: 48px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  box-shadow: 0 8px 32px var(--shadow);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  transition: opacity 0.25s ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-btn,
.primary-btn,
.gray-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gray-btn,
.secondary-btn {
  padding: 0 12px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.discord-btn {
  padding: 0 10px 0 16px;
  height: 32px;
  background: #ffffff;
  color: #050505;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.18);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.discord-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.08);
  font-size: 0.8rem;
  transform: translateY(-1px);
}

.discord-btn:hover,
.discord-btn:focus-visible,
.primary-btn:hover,
.primary-btn:focus-visible,
.gray-btn:hover,
.gray-btn:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.16);
}

.hero {
  width: min(1200px, 100%);
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 42px 24px 60px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(620px, 100%);
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 700;
  max-width: 620px;
}

p {
  margin: 22px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  letter-spacing: -0.03em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.primary-btn {
  width: fit-content;
  padding: 0 18px;
  height: 44px;
  background: #ffffff;
  color: #050505;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}

.secondary-btn {
  width: fit-content;
  padding: 0 16px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px 0;
  }

  .topbar-inner {
    padding: 0 12px;
    height: 46px;
  }

  .brand {
    font-size: 0.88rem;
  }

  .discord-btn {
    padding: 0 8px 0 12px;
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 32px;
  }

  h1 {
    letter-spacing: -0.06em;
  }
}
