/* ====== RESET / BASE ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: rgba(255,255,255,.92);
  background: radial-gradient(1200px 800px at 10% 10%, rgba(124,58,237,.35), transparent 60%),
  radial-gradient(1000px 700px at 90% 20%, rgba(34,211,238,.25), transparent 55%),
  radial-gradient(900px 700px at 40% 90%, rgba(16,185,129,.18), transparent 55%),
  #070812;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #070812;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --accent: #7c3aed;
  --accent2: #22d3ee;
  --good: #10b981;
  --warn: #fbbf24;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
}

/* ====== LAYOUT ====== */
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.grid { display: grid; gap: 18px; }

/* ====== BACKDROP ORBS (single truth) ====== */
.orb{
  position: fixed;
  filter: blur(40px);
  opacity: .55;
  pointer-events: none;
  transform: translateZ(0);
  z-index: -1;
  max-width: 100vw;
}
.orb.one { width: 420px; height: 420px; left: -120px; top: 120px; background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.9), transparent 60%); }
.orb.two { width: 520px; height: 520px; right: -180px; top: 40px; background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.85), transparent 60%); }
.orb.three { width: 520px; height: 520px; left: 20%; bottom: -220px; background: radial-gradient(circle at 30% 30%, rgba(16,185,129,.55), transparent 62%); }

/* ====== NAV ====== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,8,18,.75), rgba(7,8,18,.35));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: .2px;
  min-width: 0;
}
.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

/* Logo fixed for mobile */
.logoWrap{
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(124,58,237,.18);
  flex: 0 0 38px;
}
.logoImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.logoImg.small{
  width: 32px;
  height: 32px;
  border-radius: 11px;
  box-shadow: 0 12px 34px rgba(124,58,237,.22);
}

nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a.link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.82);
  transition: .2s ease;
}
.nav a.link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.95);
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(34,211,238,.22));
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.cta:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.28); }

/* Mobile nav toggle (CSS-only) */
#navToggle {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.navBtn{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
  cursor: pointer;
}
.navBtn span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.85);
  position: relative;
  border-radius: 999px;
}
.navBtn span::before,
.navBtn span::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
}
.navBtn span::before{ top:-6px; }
.navBtn span::after{ top:6px; }

.navPanel{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,8,18,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
#navToggle:checked ~ .navPanel{ display:block; }
.navPanel a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.navPanel a + a{ margin-top: 8px; }

/* ====== HERO ====== */
.hero { position: relative; padding: 56px 0 30px; }
.heroGrid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  width: fit-content;
}
.dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 20px rgba(16,185,129,.6);
}
h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.gradientText {
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(34,211,238,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}
.heroActions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  transition: .18s ease;
  font-weight: 650;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.btn.primary {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(124,58,237,.65), rgba(34,211,238,.35));
  box-shadow: 0 18px 60px rgba(124,58,237,.18);
}
.btn.primary:hover { box-shadow: 0 18px 70px rgba(34,211,238,.14); }

.statRow {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 60px rgba(0,0,0,.26);
}
.stat b { display: block; font-size: 17px; }
.stat span { display: block; margin-top: 4px; color: var(--muted2); font-size: 13px; }

/* ====== HERO CARD (RIGHT) ====== */
.panel {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.panelHeader {
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.08);
}
.panelHeader .title { font-weight: 750; letter-spacing: .2px; }
.lights { display:flex; gap:8px; align-items:center; opacity:.9; }
.light { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.25); }
.light.g { background: rgba(16,185,129,.75); }
.light.y { background: rgba(251,191,36,.75); }
.light.r { background: rgba(244,63,94,.75); }

.terminal {
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}
.line { display:flex; gap:10px; align-items:flex-start; margin: 8px 0; }
.prompt { color: rgba(34,211,238,.9); }
.cmd { color: rgba(255,255,255,.92); }
.hint { color: rgba(16,185,129,.9); }
.muted { color: rgba(255,255,255,.55); }

/* ====== SECTIONS ====== */
section { padding: 44px 0; position: relative; }
.sectionHead {
  display:flex; align-items:flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.sectionHead h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.sectionHead p { margin: 0; color: var(--muted); max-width: 70ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.icon {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.75), rgba(34,211,238,.35));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px rgba(124,58,237,.12);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 10px;
  font-size: 18px;
}
.card h3 { margin: 6px 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

/* Support card link styling */
.cardLink {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #E445FF;
  text-decoration: none;
}
.cardLink:hover { text-decoration: underline; }

/* ====== COMMANDS TABLE ====== */
.commands { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cmdCard {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  overflow: hidden;
}
.cmdCard header {
  position: static;
  background: rgba(0,0,0,.10);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: none;
}
.cmdCard .innerHead {
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
}
.cmdCard .innerHead b { letter-spacing: .2px; }
.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.80);
  white-space: nowrap;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}
th { text-align: left; color: rgba(255,255,255,.80); font-weight: 700; }
td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  padding: 3px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.90);
  white-space: nowrap;
}
td small { display:block; margin-top: 4px; color: var(--muted2); line-height: 1.45; }

/* ====== FAQ ====== */
details {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  border-radius: var(--radius);
  padding: 12px 14px;
}
details + details { margin-top: 12px; }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 6px 0;
}
summary::-webkit-details-marker { display: none; }
summary .chev {
  width: 26px; height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,.75);
  transition: transform .18s ease;
  flex: 0 0 auto;
}
details[open] summary .chev { transform: rotate(90deg); }
details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }

/* ====== FOOTER ====== */
footer {
  padding: 36px 0 46px;
  color: rgba(255,255,255,.62);
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}
.footerGrid {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap: 18px; flex-wrap: wrap;
}
.links { display:flex; gap: 10px; flex-wrap: wrap; }
.links a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.links a:hover { border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.06); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .heroGrid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .statRow { grid-template-columns: 1fr; }
  nav ul { display:none; }
  .navBtn { display:inline-flex; }

  /* Commands: table -> stacked rows */
  .cmdCard table thead { display:none; }
  .cmdCard table, .cmdCard tbody, .cmdCard tr, .cmdCard td { display:block; width:100%; }
  .cmdCard tr { border-bottom: 1px solid rgba(255,255,255,.08); padding: 10px 12px; }
  .cmdCard td { border:none; padding: 0; }
  .cmdCard td:first-child { margin-bottom: 6px; }

  td code{
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
  }
  td small code{
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  section { padding: 34px 0; }
  .hero { padding: 42px 0 20px; }
  h1 { font-size: clamp(30px, 8.5vw, 44px); }
  .lead { font-size: 15px; }
  .heroActions { gap: 10px; }
  .btn { width: 100%; }
  .cta { padding: 10px 12px; }
  .cmdCard .innerHead { padding: 10px 12px; }
  .cmdCard tr { padding: 10px 10px; }

  .orb.one{ width: 300px; height: 300px; }
  .orb.two{ width: 360px; height: 360px; }
  .orb.three{ width: 360px; height: 360px; }
}

/* ===========================
   COMMANDS TABLE STABILITY
   =========================== */

/* Desktop/tablet: stable columns, no overlap */
@media (min-width: 901px) {
  .cmdCard table { table-layout: auto; width: 100%; }
  .cmdCard th:first-child,
  .cmdCard td:first-child { width: 320px; white-space: nowrap; }
  .cmdCard td code { white-space: nowrap; display: inline-block; max-width: 100%; }
  .cmdCard td:last-child { white-space: normal; overflow-wrap: anywhere; }
}

/* Mobile: wrap hard */
@media (max-width: 900px) {
  .cmdCard { overflow: hidden; }
  .cmdCard table { width: 100%; table-layout: fixed; }
  .cmdCard td { overflow-wrap: anywhere; word-break: break-word; }
  .cmdCard td code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; display: inline-block; }
  .cmdCard td small code { white-space: normal; overflow-wrap: anywhere; }
}

/* ===========================
   MOBILE HEADER POLISH
   =========================== */
@media (max-width: 520px) {
  .nav{ padding: 10px 0; gap: 10px; }
  .brand{ gap: 10px; min-width: 0; flex: 1 1 auto; }
  .brand > div{
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pill{ font-size: 11px; padding: 5px 8px; }
  .navBtn{ width: 40px; height: 40px; border-radius: 14px; }
  .cta{ padding: 10px 12px; border-radius: 14px; }
  .cta span:nth-child(2){ display:none; }
  .cta span:nth-child(3){ display:inline; }
}