:root {
  --bg: #070b14;
  --bg-elevated: #0f1628;
  --text: #e8eef8;
  --text-muted: #8b9bb8;
  --accent: #3a7bdc;
  --accent-bright: #5b9cff;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(15, 22, 40, 0.72);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.bg-glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: rgba(58, 123, 220, 0.18);
}
.bg-glow-2 {
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: rgba(91, 156, 255, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { border-radius: 8px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: white;
  box-shadow: 0 8px 32px rgba(58, 123, 220, 0.35);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}

.eyebrow {
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #5b9cff, #a8cfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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

kbd {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.hero-visual { perspective: 1200px; }

.mock-window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0f1a;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotateY(-4deg) rotateX(2deg);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #121a2a;
  border-bottom: 1px solid var(--border);
}
.mock-titlebar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #3a4458;
}
.mock-titlebar span:nth-child(1) { background: #ff5f57; }
.mock-titlebar span:nth-child(2) { background: #febc2e; }
.mock-titlebar span:nth-child(3) { background: #28c840; }
.mock-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-body {
  position: relative;
  min-height: 280px;
  padding: 20px;
}

.mock-code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.mock-code .line { color: #c8d4ea; }
.mock-code .line.dim { color: #5a6a88; }
.mock-code .line.indent { padding-left: 20px; }
.mock-code .line.accent { color: #5bdfa0; margin-top: 8px; }

.mock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  pointer-events: none;
}

.mock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
}
.mock-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5b9cff;
  box-shadow: 0 0 8px #5b9cff;
}

.mock-hint {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: var(--text-muted);
}

section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 32px;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(91, 156, 255, 0.3);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  font-weight: 700;
  font-size: 1rem;
}

.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text-muted); }

.download-card {
  text-align: center;
  padding: 56px 40px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}
.download-card img {
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(58, 123, 220, 0.25);
}
.download-card h2 { margin-bottom: 8px; }
.download-card p { color: var(--text-muted); margin-bottom: 24px; }

.download-card pre {
  text-align: left;
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.download-card code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a8cfff;
  line-height: 1.7;
}

.mock-pill-hidden { opacity: 0.35; }
.mock-pill-hidden .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.download-card-secondary {
  margin-top: 24px;
  padding: 40px;
}
.download-card-secondary img { display: none; }

.site-footer {
  text-align: center;
  padding: 48px 32px 64px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 8px 0; }
.footer-links a { color: var(--text-muted); }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero-visual { order: -1; }
  .mock-window { transform: none; }
  .site-header nav a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
  .site-header { padding: 12px 16px; }
  section { padding: 56px 16px; }
  .hero { padding: 32px 16px 64px; }
}
