:root {
  --bg-dark: #0d0f14;
  --bg-card: #141720;
  --bg-card2: #1a1e2a;
  --border: #2a2f3f;
  --accent: #4f9ef8;
  --accent2: #7b5ea7;
  --accent-glow: rgba(79, 158, 248, 0.15);
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --text-dim: #5a6478;
  --red: #e55;
  --green: #4caf80;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ─── NAV ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo img {
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #3d8de8; box-shadow: 0 0 20px rgba(79,158,248,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: #4a5060; }

/* ─── HERO ────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,158,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,158,248,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,158,248,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79,158,248,0.1);
  border: 1px solid rgba(79,158,248,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.hero-actions .btn { padding: 0.75rem 1.75rem; font-size: 1rem; }

.hero-board {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,158,248,0.1);
}

.hero-board img {
  width: 100%;
  display: block;
}

.hero-board-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,15,20,0.9));
  padding: 3rem 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── SECTION SHARED ──────────────────────── */
section { padding: 6rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── STATUS BANNER ───────────────────────── */
.status-banner {
  background: rgba(229,85,85,0.08);
  border: 1px solid rgba(229,85,85,0.25);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  color: #f8a0a0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.status-banner .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }

/* ─── FEATURES ────────────────────────────── */
#features { background: var(--bg-dark); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(79,158,248,0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: rgba(79,158,248,0.1);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ABOUT ───────────────────────────────── */
#about { background: var(--bg-card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.about-image-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
}

/* ─── SPECS ───────────────────────────────── */
#specs { background: var(--bg-dark); }

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.spec-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.spec-block h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42,47,63,0.5);
  font-size: 0.875rem;
}

.spec-row:last-child { border-bottom: none; }

.spec-label { color: var(--text-muted); }
.spec-value { color: var(--text); font-weight: 500; text-align: right; }

.spec-full { grid-column: 1 / -1; }

/* ─── CHIPS TABLE ─────────────────────────── */
.chips-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.chips-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.chips-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(42,47,63,0.4);
  color: var(--text-muted);
}

.chips-table td:first-child { color: var(--text); font-weight: 500; }
.chips-table tr:last-child td { border-bottom: none; }

.chip-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(76, 175, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(76, 175, 128, 0.3);
}

/* ─── GALLERY ─────────────────────────────── */
#gallery { background: var(--bg-card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: rgba(79,158,248,0.4);
  transform: translateY(-2px);
}

.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}

.gallery-item.wide img { aspect-ratio: 21/9; }

.gallery-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── DOCS ────────────────────────────────── */
#docs { background: var(--bg-dark); }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  border-color: rgba(79,158,248,0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.doc-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.doc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.doc-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.doc-card-arrow {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* ─── BUILD ───────────────────────────────── */
#build { background: var(--bg-card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.build-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.build-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.build-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.build-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.code-block {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}

.code-block .comment { color: var(--text-dim); }
.code-block .cmd { color: var(--accent); }
.code-block .arg { color: #a8d4a8; }
.code-block .line { display: block; line-height: 1.8; }

/* ─── COMMUNITY ───────────────────────────── */
#community { background: var(--bg-dark); }

.community-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.community-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.community-inner p {
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.community-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}
.btn-discord:hover { background: #4752d5; }

.btn-github {
  background: var(--bg-card2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-github:hover { border-color: #4a5060; }

/* ─── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--bg-dark);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand img { height: 28px; margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }

  section { padding: 4rem 1.25rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-full { grid-column: 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: 1; }
  .gallery-item.wide img { aspect-ratio: 16/9; }
  .community-inner { grid-template-columns: 1fr; padding: 2rem; }
  .community-btns { flex-direction: row; }

  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── LIGHTBOX ────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--bg-card2); }
