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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: #1e1e2e;
  color: #b4befe;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #00ffd2;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #33ffdb;
}

code {
  background: #32324d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

pre {
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #00ffd2;
  letter-spacing: -0.5px;
}
.navbar-brand:hover {
  color: #00ffd2;
}
.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.navbar-links a {
  color: #9399b2;
  font-size: 0.95rem;
  font-weight: 500;
}
.navbar-links a:hover, .navbar-links a.active {
  color: #b4befe;
}

.navbar-search {
  display: flex;
  align-items: center;
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.navbar-search:hover {
  border-color: #9399b2;
}
.navbar-search input {
  background: none;
  border: none;
  color: #b4befe;
  outline: none;
  font-size: 0.85rem;
  width: 120px;
}
.navbar-search input::placeholder {
  color: #9399b2;
}
.navbar-search kbd {
  background: #32324d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  color: #9399b2;
  font-family: inherit;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 300;
  color: #b4befe;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}
.hero h1 span {
  color: #00ffd2;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons .other-ways-hero {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.hero-buttons .other-ways-hero a {
  color: #9399b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-buttons .other-ways-hero a:hover {
  color: #b4befe;
}

/* Hero install box */
.install-box-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.install-box-hero:hover {
  border-color: #00ffd2;
  background: #2d2d4a;
}

.install-box-hero .install-command {
  background: none;
  padding: 0;
  font-size: 0.95rem;
  color: #b4befe;
}

.install-box-hero .install-copy-icon {
  display: flex;
  align-items: center;
  color: #9399b2;
  transition: color 0.3s ease;
}

.install-box-hero:hover .install-copy-icon {
  color: #00ffd2;
}

.install-box-hero .install-copy-icon .check-icon {
  display: none;
  color: #00ffd2;
}

.install-box-hero .copied-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #00ffd2;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.install-box-hero.copied {
  border-color: #00ffd2;
  background: rgba(0, 255, 210, 0.1);
}

.install-box-hero.copied .install-command {
  color: #00ffd2;
}

.install-box-hero.copied .install-copy-icon .copy-icon {
  display: none;
}

.install-box-hero.copied .install-copy-icon .check-icon {
  display: block;
}

.install-box-hero.copied .copied-text {
  opacity: 1;
  margin-top: 24px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #00ffd2;
  color: #1e1e2e;
}
.btn-primary:hover {
  background: #1affd7;
  color: #1e1e2e;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: #00ffd2;
  color: #00ffd2;
}
.btn-secondary:hover {
  background: rgba(0, 255, 210, 0.1);
  color: #00ffd2;
  transform: translateY(-1px);
}

/* ── Features ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.features-col {
  padding: 3rem;
}

.features-video {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(147, 153, 178, 0.2);
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.features-col h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.feature-group {
  margin-bottom: 2rem;
}

.feature-group h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #cba6f7;
  margin-bottom: 0.75rem;
}

.feature-group ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.feature-group ul li {
  margin-bottom: 0.5rem;
  color: #9399b2;
  line-height: 1.5;
}
.feature-group ul li a {
  color: #00ffd2;
}
.feature-group ul li code {
  color: #89dceb;
}

/* ── Sponsors ──────────────────────────────────────────────────────────── */

.sponsors-col h2 {
  color: #00ffd2;
}

.sponsor-card {
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}
.sponsor-card:hover {
  border-color: #9399b2;
}
.sponsor-card img {
  max-height: 80px;
  margin-bottom: 0.75rem;
}
.sponsor-card p {
  color: #9399b2;
  font-size: 0.9rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgba(147, 153, 178, 0.2);
  padding: 2rem;
  text-align: center;
  color: #9399b2;
  font-size: 0.85rem;
}
.footer a {
  color: #00ffd2;
}

/* ── Docs layout ───────────────────────────────────────────────────────── */

.docs-wrapper {
  display: flex;
  min-height: calc(100vh - 65px);
}

.docs-sidebar {
  width: 280px;
  min-width: 280px;
  border-right: 1px solid rgba(147, 153, 178, 0.2);
  padding: 1.5rem 0;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  background: #1e1e2e;
}
.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(147, 153, 178, 0.2);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.sidebar-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9399b2;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.sidebar-section ul {
  list-style: none;
}
.sidebar-section ul li {
  margin-bottom: 2px;
}
.sidebar-section ul a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: #9399b2;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.sidebar-section ul a:hover {
  background: #28283d;
  color: #b4befe;
}
.sidebar-section ul a.active {
  background: rgba(0, 255, 210, 0.1);
  color: #00ffd2;
}

/* Indented docs sidebar tree */

.sidebar-tree {
  padding: 0 1.5rem;
}

.sidebar-tree ul {
  list-style: none;
}

.sidebar-tree li + li {
  margin-top: 2px;
}

.sidebar-link {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: #9399b2;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.sidebar-link:hover {
  background: #28283d;
  color: #b4befe;
}

.sidebar-link-level-1 {
  padding-left: 0.75rem;
  font-weight: 600;
  color: #b4befe;
}

.sidebar-link-level-2 {
  padding-left: 1.5rem;
  font-size: 0.88rem;
}

.sidebar-link-level-3 {
  padding-left: 2.25rem;
  font-size: 0.85rem;
  color: #a6adc8;
}

/* ── Docs content ──────────────────────────────────────────────────────── */

.docs-content {
  flex: 1;
  max-width: 800px;
  padding: 2.5rem 3rem;
}

.docs-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #b4befe;
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #b4befe;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
}

.docs-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #cba6f7;
}

.docs-content p {
  margin-bottom: 1rem;
  color: #9399b2;
  line-height: 1.7;
}

.docs-content ul, .docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.docs-content ul li, .docs-content ol li {
  margin-bottom: 0.5rem;
  color: #9399b2;
}

.docs-content blockquote {
  border-left: 3px solid #cba6f7;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: #28283d;
  border-radius: 0 8px 8px 0;
}
.docs-content blockquote p {
  margin: 0;
  color: #b4befe;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.docs-content table th, .docs-content table td {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(147, 153, 178, 0.2);
  text-align: left;
  font-size: 0.9rem;
}
.docs-content table th {
  background: #28283d;
  color: #b4befe;
  font-weight: 600;
}
.docs-content table td {
  color: #9399b2;
}

.docs-meta {
  color: #9399b2;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
}

/* ── Search overlay ────────────────────────────────────────────────────── */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  justify-content: center;
  padding-top: 15vh;
}
.search-overlay.active {
  display: flex;
}

.search-modal {
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
  gap: 0.75rem;
}
.search-input-wrapper svg {
  color: #9399b2;
  flex-shrink: 0;
}
.search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  color: #b4befe;
  font-size: 1rem;
  outline: none;
}
.search-input-wrapper input::placeholder {
  color: #9399b2;
}
.search-input-wrapper kbd {
  background: #32324d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: #9399b2;
}

.search-results {
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #b4befe;
  transition: background 0.15s;
}
.search-result-item:hover, .search-result-item.selected {
  background: rgba(0, 255, 210, 0.1);
  color: #00ffd2;
}
.search-result-item .result-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.search-result-item .result-preview {
  font-size: 0.8rem;
  color: #9399b2;
  margin-top: 2px;
}

.search-empty {
  padding: 2rem;
  text-align: center;
  color: #9399b2;
  font-size: 0.9rem;
}

/* ── Install page ───────────────────────────────────────────────────────── */

.install-hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
}

.install-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b4befe;
  margin-bottom: 0.5rem;
}

.install-subtitle {
  color: #9399b2;
  font-size: 1.1rem;
}

.install-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.install-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.install-box:hover {
  border-color: #00ffd2;
  background: #2d2d4a;
}

.install-box .install-command {
  background: none;
  padding: 0;
  font-size: 1rem;
  color: #b4befe;
}

.install-copy-icon {
  display: flex;
  align-items: center;
  color: #9399b2;
  transition: color 0.3s ease;
}

.install-box:hover .install-copy-icon {
  color: #00ffd2;
}

.install-copy-icon .check-icon {
  display: none;
  color: #00ffd2;
}

.install-box .copied-text {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #00ffd2;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.install-box.copied {
  border-color: #00ffd2;
  background: rgba(0, 255, 210, 0.1);
}

.install-box.copied .install-command {
  color: #00ffd2;
}

.install-box.copied .copy-icon {
  display: none;
}

.install-box.copied .check-icon {
  display: block;
}

.install-box.copied .copied-text {
  opacity: 1;
  bottom: -32px;
}

.install-platform {
  margin-top: 2rem;
  color: #9399b2;
  font-size: 0.9rem;
}

.current-download {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #28283d;
  border: 1px solid rgba(147, 153, 178, 0.2);
  border-radius: 12px;
}

.current-download h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9399b2;
  margin-bottom: 1rem;
  font-weight: 600;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ffd2;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 255, 210, 0.1);
  border-radius: 8px;
  transition: all 0.2s;
}

.download-link:hover {
  background: rgba(0, 255, 210, 0.2);
  color: #1affd7;
}

.other-ways {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.other-ways a {
  color: #9399b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.other-ways a:hover {
  color: #b4befe;
}

/* ── About page ──────────────────────────────────────────────────────────── */

.about-hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid rgba(147, 153, 178, 0.2);
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b4befe;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.about-content p {
  color: #9399b2;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #cba6f7;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content ul li {
  color: #9399b2;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-content ul li strong {
  color: #b4befe;
}

/* ── Mobile sidebar toggle ─────────────────────────────────────────────── */

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00ffd2;
  color: #1e1e2e;
  border: none;
  cursor: pointer;
  z-index: 150;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
  .features-video {
    min-height: auto;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .navbar-links {
    display: none;
  }
  .docs-sidebar {
    position: fixed;
    left: -300px;
    top: 65px;
    z-index: 120;
    transition: left 0.3s;
  }
  .docs-sidebar.open {
    left: 0;
  }
  .sidebar-toggle {
    display: flex;
  }
  .docs-content {
    padding: 1.5rem;
  }
}
