:root {
  --bg: #0c0d0f;
  --surface: #16181c;
  --surface-hover: #1f2226;
  --border: #1e2024;
  --text-primary: #f2f3f7;
  --text-secondary: #8b8ea1;
  --text-muted: #80838c;
  --accent: #4de0c4;
  --accent-hover: #63e6cd;
  --on-accent: #06231c;
  --danger: #f2777c;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Chakra Petch", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { font-family: var(--font-display); }

.accent-text { color: var(--accent); }

.section-eyebrow {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Exact same technique as the hero text above (fadeInUp, plain animation —
   not transition) — that one always looked smooth, this is just it applied
   on scroll-into-view instead of on page load. */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav a:not(.nav-cta) {
  position: relative;
  transition: color 0.2s ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:not(.nav-cta):hover { color: var(--text-primary); }
.nav a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  background: var(--accent);
  color: var(--on-accent) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(77, 224, 196, 0.25);
}

.nav-cta:active { transform: translateY(0); }

.nav-soon {
  position: relative;
  display: inline-block;
  cursor: default;
}

.nav-soon-label {
  display: inline-block;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.nav-soon-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.nav-soon:hover .nav-soon-label,
.nav-soon:focus-visible .nav-soon-label {
  filter: blur(3px);
  opacity: 0.35;
}

.nav-soon:hover .nav-soon-tag,
.nav-soon:focus-visible .nav-soon-tag {
  opacity: 1;
}

/* Projects (server select) */

.projects { padding: 80px 0; border-top: 1px solid var(--border); }

.projects-grid {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.project-card {
  position: relative;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 40px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover { transform: translateY(-4px); }

.project-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.project-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.projects-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin: 24px 0 0;
}

@media (max-width: 700px) {
  .projects-grid { flex-direction: column; }
}

/* Screenshots */

.screenshots figure { position: relative; margin: 0; }

.screenshots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.screenshots figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 780px) {
  .screenshot-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(ellipse 900px 500px at 20% 0%, rgba(77, 224, 196, 0.07), transparent 65%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
}

.hero-copy { flex: 1.1; min-width: 0; }
.hero-visual { flex: 1; min-width: 0; }

.eyebrow, .hero h1, .hero-sub, .hero-actions {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-visual {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
}

.eyebrow { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }

.eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.7);
}

.hud-frame img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; }
  .hero-visual { width: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(77, 224, 196, 0.28);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Features */

.features { padding: 88px 0; scroll-margin-top: 80px; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: feature;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px;
  counter-increment: feature;
  /* Only transform here — box-shadow is NOT compositor-only either (still
     repaints every frame), which is why the last fix still lagged. The
     glow below lives on its own pseudo-element instead, pre-rendered and
     just fading in/out via opacity — that's the only property, besides
     transform, the compositor can animate without touching the CPU. */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.feature-card::before {
  content: "0" counter(feature);
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--surface-hover);
  border-radius: 999px;
  padding: 3px 9px;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(77, 224, 196, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(77, 224, 196, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 24px 8px 0;
  font-family: var(--font);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Changelog */

.changelog {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-status {
  color: var(--text-muted);
  font-size: 14px;
}

.changelog-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.changelog-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(77, 224, 196, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.changelog-item:hover {
  transform: translateX(2px);
}

.changelog-item:hover::after {
  opacity: 1;
}

.changelog-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.changelog-item-title {
  font-weight: 600;
  font-size: 15px;
}

.changelog-item-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.changelog-item-body {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: pre-line;
}

.changelog-item-body ul {
  margin: 0;
  padding-left: 18px;
}

.changelog-item-body li { margin: 4px 0; }

/* FAQ */

.faq {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
}

.faq-item h3 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Community */

.community {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
  text-align: center;
}

.community-sub {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
}

.discord-widget {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 32px;
}

.discord-widget iframe {
  width: 100%;
  max-width: 350px;
  height: 500px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* CTA */

.cta {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta p {
  color: var(--text-secondary);
  margin: 0 0 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}


.site-header {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 16px; }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta), .nav-soon { display: none; }
  .hero { padding: 64px 0 48px; }
}
