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

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #111;
  --surface-3: #171717;
  --border: rgba(255, 255, 255, .08);
  --border-hover: rgba(255, 255, 255, .15);
  --text: #ededed;
  --text-secondary: #888;
  --text-tertiary: #666;
  --accent: #e07a3a;
  --green: #22c55e;
  --amber: #eab308;
  --radius: 12px;
  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  font-family: 'Inter', -apple-system, 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
}

::selection {
  background: var(--accent);
  color: #000
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border)
}

nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  color: #fff
}

.logo svg {
  width: 20px;
  height: 20px
}

.nav-center {
  display: flex;
  gap: 6px
}

.nav-center a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s
}

.nav-center a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06)
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #000;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s
}

.nav-gh:hover {
  background: #ccc
}

.nav-gh svg {
  width: 14px;
  height: 14px
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px
}

/* Wrap */
.wrap-lg {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.wrap-md {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px
}

.wrap-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  margin-top: 50px;
  overflow: hidden
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px
}

.hero-text {
  flex: 1;
  max-width: 540px
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px
}

.hero h1 em {
  font-style: normal;
  font-family: var(--mono);
  color: var(--text-secondary)
}

.hero .hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 32px
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s
}

.btn-primary:hover {
  background: #ddd
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-2)
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden
}

.hero-image img {
  max-width: 100%;
  width: 600px;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
  opacity: .9;
  border-radius: 12px
}

/* Section common */
.section {
  padding: 100px 0
}

.section-header {
  margin-bottom: 48px
}

.section-header.center {
  text-align: center
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.15
}

.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
  max-width: 500px
}

.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto
}

.divider {
  height: 1px;
  background: var(--border)
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

.feature {
  background: var(--bg);
  padding: 28px;
  transition: background .2s
}

.feature:hover {
  background: var(--surface)
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-secondary)
}

.feature h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px
}

.feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6
}

.feature a {
  color: inherit
}

.feature a:hover {
  color: var(--accent)
}

/* Deployment */
.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px
}

.deploy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s
}

.deploy-card:hover {
  border-color: var(--border-hover)
}

.deploy-card.featured {
  border-color: var(--accent);
  position: relative
}

.deploy-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #000;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase
}

.deploy-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px
}

.deploy-card .deploy-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px
}

.deploy-list {
  list-style: none;
  margin-bottom: 20px
}

.deploy-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary)
}

.deploy-list li:last-child {
  border-bottom: none
}

.deploy-list li strong {
  color: #fff;
  font-weight: 500
}

.deploy-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--mono)
}

.deploy-note code {
  color: var(--accent)
}

/* Compare */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius)
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 560px
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border)
}

.compare-table thead {
  background: var(--surface)
}

.compare-table th:first-child {
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500
}

.compare-table th:nth-child(2) {
  font-size: 14px;
  font-weight: 700;
  color: #fff
}

.compare-table th:nth-child(3) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary)
}

.compare-table tbody tr {
  transition: background .15s
}

.compare-table tbody tr:hover {
  background: var(--surface)
}

.compare-table tbody tr:last-child td {
  border-bottom: none
}

.compare-table td:first-child {
  color: var(--text-secondary);
  font-size: 13px
}

.compare-table .yes {
  color: var(--green);
  font-weight: 500;
  font-size: 13px
}

.compare-table .meh {
  color: var(--amber);
  font-size: 13px
}

/* Install */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background .15s
}

.step:last-child {
  border-bottom: none
}

.step:hover {
  background: var(--surface)
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 13px;
  flex-shrink: 0
}

.step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px
}

.step-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px
}

/* Changelog + Docs split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px
}

.split>div {
  min-width: 0
}

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

.changelog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s;
  overflow: hidden
}

.changelog-card:hover {
  border-color: var(--border-hover)
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px
}

.changelog-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--surface-3);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border)
}

.changelog-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px
}

.changelog-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary)
}

.changelog-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px
}

.changelog-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-word
}

.changelog-card ul {
  margin: 0 0 10px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  word-break: break-word
}

.changelog-card li {
  overflow-wrap: anywhere
}

.changelog-card code {
  word-break: break-all
}

.changelog-card a.more {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color .15s
}

.changelog-card a.more:hover {
  color: var(--accent)
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s, background .15s
}

.doc-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2)
}

.doc-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px
}

.doc-card p {
  font-size: 11px;
  color: var(--text-tertiary)
}

.doc-arrow {
  color: var(--text-tertiary);
  font-size: 16px;
  transition: transform .2s, color .15s
}

.doc-card:hover .doc-arrow {
  transform: translateX(2px);
  color: var(--text-secondary)
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

details {
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border)
}

details:last-child {
  border-bottom: none
}

details[open] {
  background: var(--surface)
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  transition: background .15s
}

summary:hover {
  background: var(--surface)
}

summary::-webkit-details-marker {
  display: none
}

summary h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff
}

summary .arrow {
  color: var(--text-tertiary);
  transition: transform .2s;
  font-size: 18px
}

details[open] summary .arrow {
  transform: rotate(180deg)
}

details .faq-body {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8
}

details .faq-body a {
  color: var(--accent)
}

details .faq-body a:hover {
  text-decoration: underline
}

.contrib-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px
}

.contrib-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: border-color .2s
}

.contrib-pill:hover {
  border-color: var(--border-hover)
}

.contrib-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%
}

.contrib-pill span {
  font-size: 13px;
  font-weight: 600;
  color: #fff
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0
}

footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.f-left {
  display: flex;
  align-items: center;
  gap: 8px
}

.f-left svg {
  width: 16px;
  height: 16px
}

.f-left span {
  font-size: 13px;
  font-weight: 600;
  color: #fff
}

.f-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary)
}

.f-copy a {
  color: var(--text-secondary);
  transition: color .15s
}

.f-copy a:hover {
  color: #fff
}

.f-links {
  display: flex;
  gap: 20px
}

.f-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color .15s
}

.f-links a:hover {
  color: #fff
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .95);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px
}

.mobile-nav.open {
  display: flex
}

.mobile-nav a {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border)
}

.mobile-nav a:hover {
  color: #fff
}

/* Responsive */
@media(max-width:900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr
  }

  .deploy-grid {
    grid-template-columns: 1fr
  }

  .split {
    grid-template-columns: 1fr
  }

  .docs-grid {
    grid-template-columns: 1fr
  }

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

  .hero-text {
    max-width: 100%
  }

  .hero-btns {
    justify-content: center
  }

  .hero-image {
    margin-top: 40px;
    width: 100%
  }

  .hero-image img {
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent);
    mask-image: linear-gradient(to bottom, black 80%, transparent)
  }

  .hero h1 {
    font-size: 36px
  }
}

@media(max-width:640px) {
  .features-grid {
    grid-template-columns: 1fr
  }

  .nav-center,
  .nav-right .nav-gh {
    display: none
  }

  .menu-toggle {
    display: block
  }

  .hero {
    padding: 100px 0 60px
  }

  .section {
    padding: 64px 0
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 12px
  }

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