:root {
  --bg: #edf4ff;
  --bg-deep: #dbe6ff;
  --surface: rgba(13, 18, 43, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.1);
  --surface-bright: rgba(255, 255, 255, 0.16);
  --text: #f8fbff;
  --muted: #c0cceb;
  --muted-dark: #7d8cb8;
  --line: rgba(164, 184, 255, 0.22);
  --blue: #5e8cff;
  --blue-strong: #2e5bff;
  --gold: #ffcc4d;
  --shadow: 0 24px 80px rgba(17, 32, 86, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Be Vietnam Pro", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 24%),
    radial-gradient(circle at 20% 20%, rgba(117, 146, 255, 0.36), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(114, 233, 255, 0.22), transparent 18%),
    linear-gradient(180deg, #111633 0%, #161d46 36%, #1d265c 60%, #eaf2ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 60% 8%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 36%, rgba(255, 255, 255, 0.7) 0 1.3px, transparent 2.2px);
  pointer-events: none;
  opacity: 0.55;
}

.aurora {
  position: fixed;
  width: 32rem;
  height: 32rem;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.aurora-left {
  top: 10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(95, 137, 255, 0.8), transparent 64%);
}

.aurora-right {
  top: 18rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(72, 222, 255, 0.72), transparent 62%);
}

.site-header,
.page-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 18px 0 0;
}

.nav-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(8, 12, 31, 0.72);
  border: 1px solid rgba(121, 146, 231, 0.15);
  box-shadow: 0 18px 48px rgba(5, 10, 28, 0.25);
  backdrop-filter: blur(18px);
  border-radius: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #28d96b, #4ab0ff 46%, #f2c14a 100%);
  box-shadow: 0 10px 30px rgba(46, 91, 255, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text small {
  color: var(--muted);
}

.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item,
.pill {
  text-decoration: none;
  transition: 180ms ease;
}

.nav-item {
  color: #edf3ff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(99, 128, 239, 0.22);
  box-shadow: inset 0 -2px 0 rgba(118, 150, 255, 0.9);
}

.pill {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.pill.large {
  min-height: 54px;
  padding: 0 22px;
}

.pill.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  box-shadow: 0 18px 32px rgba(46, 91, 255, 0.28);
}

.pill.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(158, 181, 255, 0.18);
}

.pill:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.hero {
  position: relative;
  padding: 58px 0 34px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(177, 189, 255, 0.22), transparent 15%),
    linear-gradient(180deg, rgba(17, 21, 58, 0.24), rgba(16, 19, 46, 0.48)),
    linear-gradient(135deg, rgba(65, 75, 146, 0.42), rgba(14, 17, 40, 0.88));
  border: 1px solid rgba(150, 170, 246, 0.14);
  box-shadow: var(--shadow);
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(190, 204, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 204, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.3;
}

.hero-copy,
.server-grid,
.section-head,
.news-list,
.community-layout,
.store-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 0 24px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #b9cbff;
}

h1,
h2,
h3,
p,
strong {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-text,
.section-head p,
.server-card p,
.news-body p,
.store-card p,
.post-text,
.composer-input,
.post-footer,
.news-date {
  color: var(--muted);
}

.hero-text {
  max-width: 760px;
  margin: 18px auto 0;
  line-height: 1.8;
  font-size: 1.02rem;
}

.status-pill {
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 16px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(190, 207, 255, 0.16);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #41dd7b;
  box-shadow: 0 0 0 6px rgba(65, 221, 123, 0.18);
}

.divider {
  width: 1px;
  height: 18px;
  background: rgba(190, 207, 255, 0.18);
}

.ping {
  color: #9ab4ff;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.server-card,
.news-card,
.composer,
.post-card,
.store-card {
  background: linear-gradient(180deg, rgba(11, 16, 39, 0.78), rgba(9, 13, 32, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.server-card {
  border-radius: 28px;
  padding: 34px;
  text-align: center;
}

.server-card.highlight {
  background: linear-gradient(180deg, rgba(22, 28, 64, 0.8), rgba(14, 18, 42, 0.95));
}

.badge,
.store-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.badge.blue {
  color: #8eb2ff;
  background: rgba(63, 101, 229, 0.18);
  border: 1px solid rgba(114, 145, 255, 0.32);
}

.badge.gold,
.store-tag {
  color: #ffd86d;
  background: rgba(255, 200, 74, 0.12);
  border: 1px solid rgba(255, 214, 108, 0.3);
}

.server-card h2 {
  margin-top: 22px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.server-card p {
  margin-top: 14px;
  line-height: 1.75;
}

.copy-button {
  margin-top: 22px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(115, 147, 255, 0.34);
  border-radius: 14px;
  background: rgba(88, 121, 255, 0.18);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.section {
  padding: 56px 0 0;
}

.section-head {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 26px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

.section-head p:last-child {
  margin-top: 16px;
  line-height: 1.75;
}

.news-list,
.store-grid {
  display: grid;
  gap: 22px;
}

.news-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 28px;
  overflow: hidden;
}

.news-thumb,
.gallery-item {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.news-thumb.sky {
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 213, 255, 0.75), transparent 10%),
    linear-gradient(180deg, rgba(69, 79, 162, 0.18), rgba(14, 18, 42, 0.82)),
    linear-gradient(135deg, #6177dd, #1a2156 70%);
}

.news-thumb.bloom {
  background:
    radial-gradient(circle at 40% 12%, rgba(162, 228, 255, 0.45), transparent 13%),
    linear-gradient(180deg, rgba(92, 118, 255, 0.18), rgba(17, 20, 45, 0.88)),
    linear-gradient(135deg, #4052ad, #16204f 72%);
}

.news-body {
  padding: 30px 30px 26px;
  display: grid;
  align-content: center;
}

.news-date {
  color: #7eb0ff;
  font-weight: 500;
}

.news-body h3 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.news-body p {
  margin-top: 14px;
  line-height: 1.8;
}

.community-layout {
  display: grid;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.composer,
.post-card {
  border-radius: 28px;
  padding: 20px;
}

.composer-top,
.post-head,
.post-user {
  display: flex;
  gap: 14px;
}

.composer-top {
  align-items: flex-start;
}

.avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffe8a3, transparent 20%),
    linear-gradient(135deg, #77a1ff, #3249b1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar.small {
  width: 46px;
  height: 46px;
}

.composer-input {
  flex: 1;
  min-height: 94px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(173, 190, 255, 0.14);
}

.composer-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-head {
  justify-content: space-between;
  align-items: center;
}

.post-user strong,
.store-card h3 {
  display: block;
}

.post-user span,
.report {
  color: var(--muted-dark);
}

.post-text {
  margin-top: 16px;
  line-height: 1.75;
}

.post-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  border-radius: 18px;
}

.gallery-item.sunrise {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 230, 176, 0.85), transparent 14%),
    linear-gradient(180deg, rgba(151, 188, 255, 0.24), rgba(32, 35, 70, 0.45)),
    linear-gradient(135deg, #86a8ff, #f2cc8f 54%, #4d5bb7 100%);
}

.gallery-item.horizon {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 238, 169, 0.72), transparent 12%),
    linear-gradient(180deg, rgba(180, 207, 255, 0.2), rgba(36, 39, 78, 0.4)),
    linear-gradient(135deg, #9dc0ff, #6d85df 55%, #384aa8 100%);
}

.post-footer {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(171, 188, 255, 0.12);
}

.store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-card {
  border-radius: 26px;
  padding: 28px;
}

.store-card.featured {
  background: linear-gradient(180deg, rgba(28, 39, 90, 0.88), rgba(15, 20, 46, 0.96));
  transform: translateY(-8px);
}

.store-card h3 {
  margin-top: 18px;
  font-size: 1.7rem;
}

.store-card p {
  margin-top: 12px;
  line-height: 1.75;
}

.store-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.6rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(9, 15, 35, 0.9);
  border: 1px solid rgba(155, 179, 255, 0.22);
  box-shadow: 0 18px 40px rgba(10, 14, 30, 0.24);
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-shell,
  .main-nav,
  .nav-actions,
  .post-footer {
    flex-wrap: wrap;
  }

  .server-grid,
  .store-grid,
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    justify-content: center;
  }

  .brand,
  .main-nav,
  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .page-shell {
    width: min(100% - 18px, 1120px);
  }

  .server-card,
  .news-body,
  .composer,
  .post-card,
  .store-card {
    padding: 20px;
  }

  .post-gallery {
    grid-template-columns: 1fr;
  }
}
