* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(87, 74, 255, 0.24), transparent 20%),
              radial-gradient(circle at bottom right, rgba(255, 96, 175, 0.16), transparent 22%),
              #050815;
  color: #e8eeff;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 10, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5d72ff, #ff6fb0);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  color: #9cb0ff;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #c7d2ff;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: #fff;
}

.hero-banner {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #9faeff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.hero-copy p {
  margin: 1.2rem 0;
  color: #c8d4ff;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  background: rgba(20, 30, 60, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 30px 90px rgba(3, 8, 22, 0.35);
}

.hero-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-head span {
  color: #9cb0ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-card-head strong {
  color: #fff;
  font-size: 1rem;
}

.hero-card dl {
  display: grid;
  gap: 1rem;
}

.hero-card dt {
  color: #92a8ff;
  font-size: 0.9rem;
}

.hero-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fbff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, #6c7bff, #ff5fae);
  color: #fff;
  box-shadow: 0 18px 40px rgba(108, 123, 255, 0.22);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d7e0ff;
  background: rgba(255, 255, 255, 0.05);
}

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

.main {
  padding: 0;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0.4rem 0 0;
}

.forum-section,
.recent-posts-section,
.community-section,
.cta-section {
  padding: 3rem 0;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.forum-card {
  background: rgba(16, 24, 54, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.7rem;
}

.forum-card h3 {
  margin: 0 0 0.75rem;
}

.forum-card p {
  margin: 0;
  color: #b9c5ff;
  line-height: 1.75;
}

.forum-card .tag {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 123, 255, 0.14);
  color: #d7e0ff;
  font-size: 0.82rem;
}

.posts-table {
  background: rgba(10, 18, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 3fr 1fr 0.9fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
}

.header-row {
  background: rgba(255, 255, 255, 0.04);
  color: #9eb2ff;
  text-transform: uppercase;
  font-size: 0.83rem;
  letter-spacing: 0.1em;
}

.table-row + .table-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-row a {
  color: #f8fbff;
  text-decoration: none;
  font-weight: 600;
}

.table-row a:hover {
  color: #a8b8ff;
}

.table-row span {
  color: #c7d4ff;
}

  .join-form {
    display: grid;
    gap: 1rem;
  }

  .join-form label {
    display: grid;
    gap: 0.55rem;
    color: #d7e0ff;
    font-size: 0.95rem;
  }

  .join-form input,
  .join-form select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    font: inherit;
  }

  .join-form button {
    width: fit-content;
  }

  .form-message {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #e8eeff;
    transition: background-color 0.2s ease;
  }

  .form-message.success {
    background: rgba(84, 255, 184, 0.16);
    color: #d4ffea;
  }

  .form-message.error {
    background: rgba(255, 91, 91, 0.16);
    color: #ffd5d5;
  }
  line-height: 1.75;
}

.community-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.community-highlights div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.25rem;
}

.community-highlights strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.community-highlights p {
  margin: 0;
  color: #b7c4ff;
}

.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(94, 118, 255, 0.12), rgba(54, 85, 255, 0.04));
  border: 1px solid rgba(108, 123, 255, 0.16);
  border-radius: 30px;
  padding: 2rem;
}

.cta-block h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #9ca9ff;
  font-size: 0.95rem;
}

@media (max-width: 1040px) {
  .hero-grid,
  .forum-grid,
  .community-card,
  .hero-card dl,
  .community-highlights {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .table-row.header-row {
    display: none;
  }

  .table-row span,
  .table-row a {
    font-size: 0.95rem;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }

  .hero-actions,
  .cta-block {
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }
}
