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

body{
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  background:radial-gradient(1200px at 20% 10%,#0b2a44,#040b14);
  color:#fff;
  overflow-x:hidden;
}

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

/* Header */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 1000;

  /* matte glass */
  background: rgba(8, 18, 32, 0.78);

  backdrop-filter: blur(32px) saturate(110%);
  -webkit-backdrop-filter: blur(32px) saturate(110%);

  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);

  /* ambient depth (NO glow) */
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.header-inner{
  padding:14px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:18px;
}

.logo img{
  width:34px;height:34px;border-radius:50%;
}

/* Navigation */
.nav-desktop{display:flex;gap:26px;align-items:center}
.nav-desktop a{opacity:.8}
.nav-desktop a:hover{opacity:1}

.menu-btn{
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:none;
  cursor:pointer;
}
/* Hamburger animation */
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) scale(0.97);
  width: calc(100% - 32px);
  max-width: 520px;

  opacity: 0;
  pointer-events: none;

  background: rgba(8, 18, 32, 0.82);

  backdrop-filter: blur(36px) saturate(115%);
  -webkit-backdrop-filter: blur(36px) saturate(115%);

  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.06);

  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  box-shadow:
    0 40px 90px rgba(0,0,0,0.65);

  transition:
    opacity .35s ease,
    transform .35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.mobile-menu .menu-item {
  padding: 14px 16px;
  border-radius: 14px;
  transition: background .25s ease;
}

.mobile-menu .menu-item:hover {
  background: rgba(255,255,255,0.06);
}

/* ===== Mobile menu backdrop (glass blur) ===== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;

  background: rgba(4, 12, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* Only active on mobile */
@media (max-width: 768px) {
  .menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===========================
   MOBILE PRIMARY CTA
=========================== */
.menu-btn-primary {
  margin-top: 18px;
  padding: 16px;
  text-align: center;
  border-radius: 18px;
  font-weight: 700;

  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #001018;

  box-shadow:
    0 12px 35px rgba(0, 198, 255, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.3);

  transition: transform .25s ease, box-shadow .25s ease;
}

.menu-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 50px rgba(0, 198, 255, 0.6),
    inset 0 0 0 1px rgba(255,255,255,0.45);
}

/* ACTIVE LINK (Desktop + Mobile) */
.nav-desktop a.active,
.mobile-menu .menu-item.active {
  color: #00c6ff;
  position: relative;
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #00c6ff;
  border-radius: 2px;
}

/* Mobile active indicator */
.mobile-menu .menu-item.active {
  background: rgba(0, 198, 255, 0.08);
  border-radius: 12px;
}

/* Buttons */
.btn{
  padding:14px 24px;
  border-radius:18px;
  font-weight:600;
  display:inline-block;
}
.btn.primary {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #001018;
  font-weight: 700;

  box-shadow:
    0 10px 30px rgba(0, 198, 255, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #c9d6e2;

  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);

  box-shadow: none;
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 38px rgba(0, 198, 255, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */
main{padding-top:200px}
.section{padding:120px 20px}
.section-title{text-align:center;font-size:34px;margin-bottom:46px}
.accent{color:#00c6ff}

/* Hero */
.hero{text-align:center}
.hero p{margin-top:18px;color:#9fb3c8}
.hero-actions{margin-top:30px;display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.hero-badges{margin-top:30px;display:flex;justify-content:center;gap:14px;opacity:.8}

/* Cards */
.features-grid{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:26px;
}
.feature-card{
  padding:28px;
  border-radius:22px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

/* Stats */
.stats-grid{display:flex;justify-content:center;gap:60px;flex-wrap:wrap}

/* FAQ */
.faq{max-width:720px;margin:auto}
.faq details{
  background:rgba(255,255,255,.04);
  border-radius:18px;
  padding:18px 22px;
  margin-bottom:16px;
}

/* ================= DOCS HERO ================= */

.docs-hero {
  padding-top: 110px;   /* close to header */
  padding-bottom: 24px;
  text-align: center;
}

.docs-subtitle {
  margin-top: 10px;
  color: #9fb3c8;
  max-width: 520px;
  margin-inline: auto;
}

/* ================= GETTING STARTED CARD ================= */

.docs-start {
  padding-top: 24px; /* remove huge gap */
}

.docs-card {
  max-width: 880px;
  margin: 0 auto;

  padding: 32px 26px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.docs-title {
  text-align: center;
  font-size: 32px;
}

.docs-desc {
  text-align: center;
  margin-top: 12px;
  color: #9fb3c8;
}

/* ================= STEPS ================= */

.docs-steps {
  margin-top: 26px;
}

.docs-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;

  padding: 16px 0;
}

.docs-step:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.step-index {
  width: 36px;
  height: 36px;

  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #001018;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
}

.docs-step h4 {
  margin-bottom: 4px;
}

/* ===== COMMANDS ===== */
/* ================= COMMAND CONTROLS ================= */

.command-controls {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.command-controls input,
.command-controls select {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.15);
  color: #eaf2ff;

  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  min-width: 160px;
}

.command-controls input::placeholder {
  color: rgba(234,242,255,0.6);
}

/* ================= COMMAND LIST ================= */

.commands-list {
  max-width: 900px;
  margin: 48px auto 0;
  display: grid;
  gap: 14px;

  /* Mobile GPU stability */
  transform: translateZ(0);
  will-change: transform;
}

/* ================= COMMAND CARD ================= */

.command-row {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 16px 18px;
  border-radius: 16px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );

  border: 1px solid rgba(255,255,255,0.12);

  transition: transform .2s ease, background .2s ease;

  /* Prevent Android scroll corruption */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.command-row:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

.command-row strong {
  font-size: 15px;
  font-weight: 600;
  color: #00c6ff;
}

.command-row span {
  font-size: 13px;
  color: #c7d6e6;
  line-height: 1.4;
}

/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {

  /* Disable hover lift on touch devices */
  .command-row:hover {
    transform: none;
  }
}

/* ================= CATEGORY DROPDOWN ================= */

.category-dropdown {
  position: relative;
  min-width: 180px;
}

.category-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;

  background: rgba(255,255,255,0.08);
  color: #eaf2ff;
  border: 1px solid rgba(255,255,255,0.15);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.category-btn .arrow {
  float: right;
  opacity: 0.7;
}

.category-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  border-radius: 14px;
  padding: 6px;
  display: none;
  z-index: 20;

  background: rgba(8, 18, 32, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.category-dropdown.open .category-menu {
  display: block;
  animation: fadeIn .2s ease;
}

.cat-option {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #cfe6ff;
}

.cat-option:hover {
  background: rgba(0,198,255,0.15);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ================= CTA ================= */

.docs-cta {
  margin-top: 28px;
  text-align: center;
}


/* ---------- FOOTER ---------- */
.footer {
  background: rgba(6, 15, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 90px 20px 50px;
}

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

/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  color: #9fb3c8;
  font-size: 14px;
  max-width: 360px;
}

/* Columns */
.footer-cols {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
}

.footer-cols h4 {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.4px;
  opacity: 0.85;
}

/* Links */
.footer-cols a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #c9d6e2;
  opacity: 0.75;

  transition: opacity .25s ease, transform .25s ease;
}

.footer-cols a:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* Bottom */
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);

  font-size: 13px;
  opacity: 0.55;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 180px;
  }

  .docs-hero {
    padding-top: 100px;
    padding-bottom: 16px;
  }

  .docs-card {
    padding: 24px 18px;
  }

  .docs-title {
    font-size: 26px;
  }
  .command-controls {
    padding: 0 16px;
  }

  .commands-list {
    padding: 0 16px;
    margin-top: 32px;
  }

  .command-row {
    padding: 14px 16px;
  }

  .command-row strong {
    font-size: 14px;
  }

  .command-row span {
    font-size: 12.5px;
  }

  /* CTA priority (mobile) */
  .hero-actions .btn.primary {
    min-width: 220px;
  }

  .hero-actions .btn.secondary {
    opacity: 0.85;
  }
}
/* ================= MOBILE COMMANDS VISIBILITY FIX ================= */

@media (max-width: 768px) {

  main {
    padding-top: 140px; /* header space */
  }

  .docs-hero {
    padding-top: 60px;
  }

  .section.docs-start {
    padding-top: 40px;
  }

  .commands-list {
    margin-top: 28px;
  }

}
