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

:root {
  --bg:      #0a0a0f;
  --bg2:     #111118;
  --bg3:     #1a1a26;
  --accent:  #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --green:   #34d399;
  --red:     #f87171;
  --yellow:  #fbbf24;
  --text:    #e2e8f0;
  --text2:   #94a3b8;
  --text3:   #64748b;
  --border:  rgba(255,255,255,0.08);
  --card:    rgba(255,255,255,0.03);
  --radius:  12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', monospace; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bg-alt    { background: var(--bg2); }

.accent       { color: var(--accent2); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(108,99,255,0.35);
}
.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 36px rgba(167,139,250,0.5);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-purple { background: rgba(108,99,255,0.15); color: var(--accent2); border: 1px solid rgba(108,99,255,0.3); }
.badge-green  { background: rgba(52,211,153,0.12);  color: var(--green);   border: 1px solid rgba(52,211,153,0.25); }
.badge-blue   { background: rgba(56,189,248,0.12);  color: var(--accent3); border: 1px solid rgba(56,189,248,0.25); }
.dot { font-size: 8px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.logo-box {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  margin: 20px 0 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 15px; color: var(--text); }
.hero-stats span   { font-size: 13px; color: var(--text3); }

/* ── Code Window ──────────────────────────────────────────────────────────── */
.code-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  gap: 8px;
}
.traffic-lights { display: flex; gap: 6px; flex-shrink: 0; }
.tl {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.tl.red    { background: #ef4444; }
.tl.yellow { background: #f59e0b; }
.tl.green  { background: #22c55e; }
.window-tabs { display: flex; gap: 4px; margin-left: 8px; }
.window-tabs .tab, .target-tab, .platform-tab {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  background: transparent;
  color: var(--text3);
  transition: all 0.15s;
}
.window-tabs .tab:hover  { color: var(--text2); background: rgba(255,255,255,0.05); }
.window-tabs .tab.active { background: var(--accent); color: #fff; }
.window-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text3);
  margin-left: 8px;
}
.code-body {
  padding: 24px;
  overflow-x: auto;
}

/* ── Code Highlighting ────────────────────────────────────────────────────── */
.code-line {
  display: flex;
  gap: 16px;
  min-height: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}
.line-num {
  color: var(--text3);
  user-select: none;
  min-width: 20px;
  text-align: right;
  font-size: 12px;
  padding-top: 2px;
  flex-shrink: 0;
}
.tok-keyword  { color: #a78bfa; }
.tok-string   { color: #34d399; }
.tok-number   { color: #fbbf24; }
.tok-comment  { color: #64748b; }
.tok-type     { color: #38bdf8; }
.tok-ident    { color: #e2e8f0; }
.tok-punct    { color: #94a3b8; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.feature-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.1);
}
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ── Targets ──────────────────────────────────────────────────────────────── */
.target-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.target-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.target-tab.active {
  background: rgba(108,99,255,0.15);
  border-color: var(--accent);
  color: var(--accent2);
}
.target-tab:hover:not(.active) { background: var(--bg2); border-color: var(--text3); color: var(--text); }
.target-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}
.target-info {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.target-info .t-icon { font-size: 48px; margin-bottom: 16px; }
.target-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.target-info p { color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
.target-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--bg3);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text3);
}
.target-cmd .cmd-prefix { color: var(--accent2); }
.target-code-window { flex: 1; }

/* ── Examples ─────────────────────────────────────────────────────────────── */
.examples-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.examples-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.example-btn {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.example-btn.active {
  background: rgba(108,99,255,0.12);
  border-color: var(--accent);
}
.example-btn .ex-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.example-btn.active .ex-title { color: var(--accent2); }
.example-btn .ex-file {
  font-size: 12px;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
}
.examples-code-window { min-height: 400px; }

/* ── Install ──────────────────────────────────────────────────────────────── */
.platform-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.platform-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.platform-tab.active {
  background: rgba(108,99,255,0.15);
  border-color: var(--accent);
  color: var(--accent2);
}
.platform-tab:hover:not(.active) { color: var(--text); border-color: var(--text3); }
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 60px;
}
.install-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  min-width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.step-body { flex: 1; }
.step-title { font-weight: 600; margin-bottom: 10px; color: var(--text); }
.step-code-wrap { position: relative; }
.step-code {
  background: var(--bg3);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e2e8f0;
  margin: 0;
  overflow-x: auto;
  line-height: 1.7;
}
.step-code .cmd-line { display: block; }
.step-code .cmd-prefix { color: var(--accent); }
.step-code .cmd-comment { color: var(--text3); }
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text2);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.copy-btn.copied { background: rgba(52,211,153,0.15); color: var(--green); border-color: rgba(52,211,153,0.3); }

.quickref {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
}
.quickref h3 { font-weight: 700; font-size: 20px; margin-bottom: 24px; }
.quickref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.qr-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg3);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.qr-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent2);
  min-width: 195px;
  flex-shrink: 0;
}
.qr-desc { font-size: 13px; color: var(--text3); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text3); font-size: 14px; line-height: 1.7; max-width: 280px; margin-bottom: 16px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text3); font-size: 14px; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: var(--text3); font-size: 13px; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid     { grid-template-columns: 1fr; }
  .hero-right    { display: none; }
  .target-content{ grid-template-columns: 1fr; }
  .examples-layout{ grid-template-columns: 1fr; }
  .examples-sidebar{ flex-direction: row; flex-wrap: wrap; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats  { flex-direction: column; gap: 16px; }
}
