:root {
  --bg: #070708;
  --bg-elevated: #111114;
  --text: #f4f4f5;
  --muted: rgba(255, 255, 255, 0.52);
  --border: rgba(255, 255, 255, 0.09);
  --accent: #e91429;
  --accent-soft: rgba(233, 20, 41, 0.14);
  --discord: #5865f2;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --nav-h: 64px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: blur(14px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav {
    padding: 0 2rem;
  }
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost,
.btn-ghost.btn-lg {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

.btn-lg {
  width: 100%;
  padding: 0.85rem 1.25rem;
}

.btn.disabled,
.btn.disabled:hover {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.lang-toggle {
  min-width: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  width: min(640px, 90vw);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.pill {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-live {
  border-color: rgba(233, 20, 41, 0.35);
  color: #ff6b7a;
  background: var(--accent-soft);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  display: block;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.hero-stats dt {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Cards & grid */
.grid.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid.features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid.features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.card h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.card-icon {
  font-size: 1.35rem;
}

/* Download */
.download-panel {
  display: grid;
  gap: 2rem;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

@media (min-width: 768px) {
  .download-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.version-line {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.release-notes {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.release-notes li {
  margin-bottom: 0.35rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fine-print {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.changelog {
  margin-top: 1.25rem;
}

.changelog h3 {
  margin: 0 0 1rem;
}

.changelog-cols {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .changelog-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.changelog-cols h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ff6b7a;
}

.changelog-cols ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Flow */
.flow {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.flow li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.flow-n {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #ff8a96;
  font-weight: 700;
  font-size: 0.85rem;
}

.flow strong {
  display: block;
  margin-bottom: 0.15rem;
}

.flow p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.arch-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

@media (min-width: 560px) {
  .arch-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Community */
.community-panel {
  text-align: center;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.channel-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roadmap-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.roadmap-card.active {
  border-color: rgba(233, 20, 41, 0.35);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}
