:root {
  --site-panel: rgba(8, 16, 30, 0.58);
  --site-panel-strong: rgba(8, 16, 30, 0.74);
  --site-panel-soft: rgba(10, 20, 40, 0.46);
  --site-text: #f5f8ff;
  --site-muted: #c7d3eb;
  --site-blue: #3b84ff;
  --site-blue-soft: #77beff;
  --site-purple: #8057ff;
  --site-green: #20bf67;
  --site-shadow-md: 0 18px 38px rgba(0,0,0,0.22);
  --site-radius-xl: 22px;
  --site-radius-lg: 18px;
  --site-radius-md: 16px;
  --site-radius-sm: 14px;
  --site-max: 1320px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  color: var(--site-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 9, 19, 0.32), rgba(7, 16, 29, 0.42), rgba(9, 20, 38, 0.52)),
    url('/assets/hero-background.png') center 48% / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 84%, rgba(72, 171, 255, 0.08), transparent 16%),
    radial-gradient(circle at 92% 80%, rgba(255, 136, 61, 0.08), transparent 14%);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(calc(100% - 24px), var(--site-max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 8, 17, 0.42);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(147, 193, 255, 0.06);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.10),
    0 1px 0 rgba(255,255,255,0.02) inset;
}

.topbar-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  flex: 0 0 52px;
  filter: drop-shadow(0 4px 10px rgba(255, 90, 0, 0.18));
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  filter: drop-shadow(0 3px 8px rgba(255, 90, 0, 0.14));
}

.brand-mark {
  display: none !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.82);
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav a::after {
  display: none !important;
}

.nav a:hover,
.nav a.active,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-shadow: none;
}

.top-actions,
.page-actions,
.card-actions,
.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.top-btn,
.hero-btn,
.small-btn,
.mini-btn,
.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--site-radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 21, 40, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  white-space: nowrap;
}

.top-btn.discord,
.hero-btn.green {
  background: linear-gradient(135deg, rgba(92,104,255,0.90), rgba(126,87,255,0.90));
}

.hero-btn.blue {
  background: linear-gradient(135deg, rgba(48,120,255,0.92), rgba(79,150,255,0.92));
}

.hero-btn.purple {
  background: linear-gradient(135deg, rgba(111,62,255,0.92), rgba(139,87,255,0.92));
}

.hero-btn.green {
  background: linear-gradient(135deg, rgba(28,152,78,0.92), rgba(33,191,103,0.92));
}

.small-btn {
  min-height: 40px;
  padding: 0 14px;
}

.small-btn.primary {
  background: linear-gradient(135deg, rgba(48,120,255,0.92), rgba(79,150,255,0.92));
  border-color: transparent;
}

.small-btn.secondary {
  background: rgba(255,255,255,0.08);
}

.top-btn:hover,
.hero-btn:hover,
.small-btn:hover,
.mini-btn:hover,
.service-link:hover,
.main-card:hover,
.service-card:hover,
.future-card:hover,
.card:hover,
.link-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(174, 208, 255, 0.24);
  box-shadow: var(--site-shadow-md);
}

.footer {
  padding: 0 0 24px;
}

.footer-box {
  border-radius: var(--site-radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(8, 16, 30, 0.72), rgba(8, 16, 30, 0.82)),
    radial-gradient(circle at top right, rgba(68, 149, 255, 0.10), transparent 28%);
  box-shadow: var(--site-shadow-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.footer-brand p,
.footer-center p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.footer-center {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-nav a {
  color: #eef5ff;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .topbar-inner,
  .footer-box {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .top-actions,
  .footer-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .brand {
    font-size: 1.55rem;
  }

  .brand-logo-img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
  }

  .footer-box {
    padding: 18px;
  }
}
