:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1525;
  --bg-card: #131a2e;
  --bg-elevated: #1a2240;
  --border: #222b45;
  --border-strong: #2d3a5c;

  --text: #e6ecff;
  --text-dim: #8892b3;
  --text-muted: #5a6380;

  --blue: #4d7fff;
  --blue-bright: #6a9aff;
  --blue-dim: #2d4e99;
  --blue-glow: rgba(77, 127, 255, 0.15);

  --warn: #f5a623;
  --warn-bg: rgba(245, 166, 35, 0.1);
  --info: #4d7fff;
  --info-bg: rgba(77, 127, 255, 0.1);

  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--blue-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.nav-logo {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-dim) 100%);
  border-radius: 5px;
  box-shadow: 0 0 12px var(--blue-glow);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.15s;
}

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

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 160px 32px 120px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--blue-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--warn-bg);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--warn);
  letter-spacing: 0.2px;
  margin-bottom: 32px;
}

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

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

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.accent {
  background: linear-gradient(135deg, var(--blue-bright) 0%, #a4bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 16px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77, 127, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--blue-dim);
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ Status banner ============ */
.status-banner {
  background: var(--warn-bg);
  border-top: 1px solid rgba(245, 166, 35, 0.2);
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
  padding: 18px 32px;
}

.status-inner {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  line-height: 1.6;
}

.status-inner strong {
  color: var(--warn);
  font-weight: 600;
}

/* ============ Sections ============ */
.section {
  padding: 100px 32px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}

/* ============ Features ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--blue-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

.mods-head {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.chip {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
}

.progress-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
}

.progress-note strong {
  color: var(--blue-bright);
}

/* ============ Roadmap ============ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.roadmap-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.roadmap-col h3:first-child {
  margin-top: 0;
}

.roadmap-col ul {
  list-style: none;
}

.roadmap-col li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.roadmap-col li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 12px;
}

/* ============ Why Rust ============ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.split-text p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.split-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-md);
}

.tech-block {
  padding: 20px;
}

.tech-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.tech-row > span:first-child {
  color: var(--text-dim);
}

.tech-tag {
  background: var(--blue-glow);
  color: var(--blue-bright);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

/* ============ Known issues ============ */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.issue {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}

.issue-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: start;
  text-align: center;
  width: fit-content;
}

.issue-tag-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.issue-tag-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(77, 127, 255, 0.3);
}

.issue h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.issue p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ CTA ============ */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 48px;
}

.cta-single {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
}

.cta-single-icon {
  font-size: 48px;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 0 24px var(--blue-glow);
}

.cta-single h2 {
  margin-bottom: 14px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  margin-top: 10px;
}

.cta-hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ Doc pages ============ */
.doc-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.doc-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

.doc-head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.doc-back:hover {
  color: var(--blue-bright);
}

.doc-head h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.doc-head .doc-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.doc-body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-top: 56px;
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.doc-body p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.doc-body ul,
.doc-body ol {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 18px;
  padding-left: 24px;
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-body a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-decoration-color: rgba(106, 154, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.doc-body a:hover {
  text-decoration-color: var(--blue-bright);
}

.doc-body strong {
  color: var(--text);
  font-weight: 600;
}

.doc-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue-bright);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 16.5px;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.faq-item p + p {
  margin-top: 12px;
}

.faq-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-top: 48px;
  margin-bottom: 16px;
}

.faq-cat:first-of-type {
  margin-top: 8px;
}

.callout {
  background: var(--warn-bg);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.callout strong {
  color: var(--warn);
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-dim);
  transition: color 0.15s;
}

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

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 120px 20px 80px;
  }
  .section {
    padding: 70px 20px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .issue {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nav-inner {
    padding: 12px 20px;
  }
  .status-banner {
    padding: 16px 20px;
  }
  .doc-inner {
    padding: 0 20px;
  }
  .doc-page {
    padding-top: 100px;
  }
}
