:root {
  --bg-top: #0c1018;
  --bg-bottom: #161b27;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f3f5f8;
  --text-secondary: #9aa3b2;
  --text-muted: #5d6573;
  --accent: #fa932f;
  --accent-soft: rgba(250, 147, 47, 0.18);
  --accent-hover: #ffa547;
  --auto: #3aa5ff;
  --auto-soft: rgba(58, 165, 255, 0.18);
  --danger: #ff5562;
  --ok: #48c774;
  --radius: 12px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Inter", "Ubuntu", "Segoe UI", "Cantarell", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

code, pre {
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
}

/* ========== Layout ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section.section-tight { padding: 56px 0; }

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; color: var(--text-secondary); }
p.lead { font-size: 19px; color: var(--text); max-width: 620px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 16, 24, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.brand img { width: 34px; height: 34px; }
.brand span small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(250, 147, 47, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-hover); color: var(--text); }
.btn svg { width: 18px; height: 18px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px;
  background:
    radial-gradient(circle at 18% 22%, rgba(250, 147, 47, 0.18), transparent 45%),
    radial-gradient(circle at 82% 30%, rgba(58, 165, 255, 0.16), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #b9c2d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art img {
  width: min(420px, 90%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== Feature grid ========== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card.alt .icon { background: var(--auto-soft); color: var(--auto); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }

/* ========== Section heading ========== */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { max-width: 640px; margin: 0 auto; font-size: 16.5px; }

/* ========== Screenshots ========== */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.shot:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.shot img {
  width: 100%;
  display: block;
}
.shot-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ========== Modes table ========== */
.modes-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  overflow-x: auto;
}
.modes {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}
.modes th, .modes td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.modes th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.modes tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-bios { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.badge-manual { background: var(--accent-soft); color: var(--accent); }
.badge-auto { background: var(--auto-soft); color: var(--auto); }

/* ========== Code blocks ========== */
.code-block {
  position: relative;
  background: #0a0e15;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 18px 0 24px;
  overflow: hidden;
}
.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #e8edf5;
}
.code-block .copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.code-block .copy:hover { background: rgba(255,255,255,0.10); color: var(--text); }
.code-block .copy.copied { background: var(--ok); color: #fff; border-color: var(--ok); }

code.inline {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

/* ========== Doc layout ========== */
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.toc h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.toc a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.doc-body h2 {
  margin-top: 50px;
  font-size: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin-top: 28px; font-size: 18px; }
.doc-body p, .doc-body li { color: var(--text-secondary); }
.doc-body strong { color: var(--text); }
.doc-body ol, .doc-body ul { padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
  color: var(--text);
}
.callout.info { border-left-color: var(--auto); background: var(--auto-soft); }

/* ========== About / placeholder ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.placeholder {
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(255,255,255,0.02);
  margin: 14px 0;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.tech-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

/* ========== Download CTA section ========== */
.download-banner {
  background: linear-gradient(135deg, rgba(250,147,47,0.10), rgba(58,165,255,0.10));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.download-banner h3 { font-size: 26px; margin-bottom: 6px; }
.download-banner p { margin: 0; font-size: 15px; }

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row a { color: var(--text-secondary); margin-left: 18px; }
.footer-row a:hover { color: var(--text); }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art img { width: 280px; }
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 40px; }
  .features { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-bottom);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px 22px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .download-banner { padding: 30px; flex-direction: column; align-items: flex-start; }
}
