@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600&display=swap");

:root {
  --bg-top: #1c0930;
  --bg-bottom: #070313;
  --accent: #c38bff;
  --accent-strong: #ffb347;
  --text: #f6f3ff;
  --muted: #d2c8f0;
  --surface: rgba(27, 17, 48, 0.8);
  --surface-dark: rgba(13, 8, 27, 0.8);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(5, 0, 20, 0.6);
  --radius-lg: 28px;
  --radius-sm: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Outfit", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.starfield {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 50% 80%, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.4;
  animation: drift 20s linear infinite;
  z-index: 0;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-40px, -60px, 0);
  }
}

.layout-shell {
  position: relative;
  z-index: 1;
  padding: 32px clamp(16px, 6vw, 72px) 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  gap: 6px;
}

.lang-pill {
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.6;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.lang-pill.active {
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.lang-pill:hover {
  opacity: 0.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.pill-button {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-button.discord {
  background: linear-gradient(120deg, #7f5dff, #c38bff);
  color: #0b041b;
  box-shadow: 0 12px 30px rgba(146, 104, 255, 0.35);
}

.pill-button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.pill-button:hover {
  transform: translateY(-2px) scale(1.01);
}

main {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 84px);
}

.section {
  padding: clamp(32px, 6vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero.minimal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(32px, 7vw, 96px) clamp(24px, 8vw, 120px);
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 5rem);
  margin: 0 0 8px;
}

.subhead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.link-ghost {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.link-ghost:hover {
  color: var(--text);
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04);
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.metrics {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
}

.metrics-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: space-between;
}

.metric {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  flex: 1;
  position: relative;
}

.metric strong {
  display: block;
  font-size: 2rem;
}

.metric:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.8rem;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card,
.community-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  margin: 0;
}

.service-card p {
  color: var(--muted);
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.community-panel {
  background: linear-gradient(135deg, rgba(146, 104, 255, 0.2), rgba(8, 244, 255, 0.08));
}

.community-panel strong {
  font-size: 1.5rem;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.panel-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-card h3 {
  margin-top: 0;
}

.site-footer {
  margin-top: 64px;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.footer-grid > div {
  text-align: center;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-mark img {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
  margin-top: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
  }

  .pill-button {
    width: 100%;
    justify-content: center;
  }

  .hero.minimal {
    padding: 32px 0;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .pill-button,
  .hero-actions .link-ghost {
    width: 100%;
    text-align: center;
  }

  .metrics-grid {
    flex-wrap: wrap;
  }

  .metric {
    flex: 1 1 160px;
  }

  .metric::after {
    display: none;
  }
}
