/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0e1117;
  --bg-alt:      #13181f;
  --surface:     #1a2030;
  --surface-2:   #222a3a;
  --border:      #2a3347;
  --text:        #d4dce8;
  --text-muted:  #6b7a95;
  --text-dim:    #3d4f6a;
  --accent:      #5b8dee;
  --accent-2:    #a78bfa;
  --green:       #4caf82;
  --red:         #e25555;
  --yellow:      #f5c542;
  --radius:      10px;
  --radius-lg:   16px;
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
  --nav-h:       60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.nav-links a { color: var(--text-muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-gh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text) !important;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.nav-gh:hover { background: var(--surface); border-color: var(--accent); text-decoration: none; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(91, 141, 238, 0.35);
}
.btn-primary:hover { background: #4a7de0; box-shadow: 0 4px 20px rgba(91, 141, 238, 0.45); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-muted); transform: translateY(-1px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #eef2f9;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-platforms {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ── App preview window ───────────────────────────────────────────── */
.app-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(91, 141, 238, 0.08);
  background: var(--surface);
  max-width: 900px;
  margin: 0 auto;
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.chrome-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green  { background: var(--green); }

.chrome-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.chrome-spacer { flex: 1; }

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.tb-left, .tb-right { display: flex; align-items: center; gap: 6px; }

.tb-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
  white-space: nowrap;
}

.tb-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tb-seg {
  display: flex;
  gap: 1px;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px;
}

.tb-seg-active {
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.tb-seg-inactive {
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  cursor: default;
  opacity: 0.55;
}

.tb-sz { font-size: 0.72rem; color: var(--text-muted); font-family: var(--mono); }
.tb-theme { font-family: var(--mono); }

.app-body { display: flex; height: 320px; }

.app-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.app-sidebar {
  width: 160px;
  padding: 10px 6px;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.sidebar-label {
  font-size: 0.64rem;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  padding: 4px 8px 8px;
}

.sidebar-item {
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-radius: 5px;
  cursor: default;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-active {
  background: rgba(91, 141, 238, 0.12);
  color: var(--accent);
}

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

.app-doc {
  flex: 1;
  padding: 28px 32px;
  overflow: hidden;
  font-size: 0.82rem;
}

.doc-h1 { font-size: 1.3rem; font-weight: 700; color: #eef2f9; margin-bottom: 10px; letter-spacing: -0.02em; }
.doc-h2 { font-size: 1rem; font-weight: 600; color: #c8d4e8; margin: 18px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.doc-p  { color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.doc-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface-2);
  color: #a78bfa;
  padding: 1px 5px;
  border-radius: 3px;
}
.doc-codeblock {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.cb-prompt { color: var(--green); margin-right: 8px; }

.doc-table { display: flex; flex-direction: column; gap: 4px; }
.dt-row { display: flex; align-items: center; gap: 16px; }
.dt-key {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text);
  white-space: nowrap;
}
.dt-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #eef2f9;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-sub {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Feature grid ─────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91,141,238,0.1);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #eef2f9;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Theme chips ──────────────────────────────────────────────────── */
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.theme-chip {
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: default;
  border: 1px solid transparent;
  transition: transform .15s;
}
.theme-chip:hover { transform: scale(1.04); }

.theme-dark      { background: #1e2533; color: #d4dce8; border-color: #3a4460; }
.theme-light     { background: #f0f3f8; color: #2d3748; border-color: #c8d4e8; }
.theme-dracula   { background: #282a36; color: #f8f8f2; border-color: #6272a4; }
.theme-nord      { background: #2e3440; color: #d8dee9; border-color: #4c566a; }
.theme-gruvbox   { background: #282828; color: #ebdbb2; border-color: #504945; }
.theme-solarized { background: #002b36; color: #839496; border-color: #073642; }
.theme-tokyo     { background: #1a1b26; color: #a9b1d6; border-color: #364a82; }
.theme-catppuccin{ background: #1e1e2e; color: #cdd6f4; border-color: #585b70; }
.theme-oxocarbon { background: #161616; color: #f4f4f4; border-color: #393939; }
.theme-more      { background: var(--surface); color: var(--text-muted); border-color: var(--border); }

/* ── Shortcuts ────────────────────────────────────────────────────── */
.shortcuts-grid {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--text);
}

.shortcut-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Install ──────────────────────────────────────────────────────── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #eef2f9;
}

.install-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.install-desc code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface-2);
  color: var(--accent-2);
  padding: 1px 5px;
  border-radius: 3px;
}

.install-source {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.install-source-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.8;
}

.code-line { display: flex; gap: 10px; }
.c-prompt { color: var(--green); user-select: none; }
.c-comment { color: var(--text-dim); }

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a { color: var(--text-muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .hero { padding: 70px 0 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .app-sidebar { display: none; }
  .app-divider { display: none; }
  .chrome-title { position: static; transform: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 70px 0; }
}
