:root {
  --bg: #fafafa;
  --bg-alt: #f1f3f5;
  --surface: #ffffff;
  --border: #e0e0e0;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-dark: #1d4ed8;
  --success: #16a34a;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, monospace;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 0.88em;
}
pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  box-shadow: 0 1px 0 var(--border);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.site-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-header nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}
.site-header nav a:hover { color: var(--text); }

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.hero .accent { color: var(--accent); }
.hero .lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.65;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-code {
  display: inline-block;
  background: #0f172a;
  color: #93c5fd;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-md);
}

/* Screenshot carousel */
.hero-visual { min-width: 0; }
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: white;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.carousel-dots {
  position: absolute;
  bottom: 54px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.dot:hover { transform: scale(1.3); }
.dot.active {
  background: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  text-align: center;
}
.section p { margin-bottom: 16px; }
.section p:last-child { margin-bottom: 0; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}
.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Install steps */
.install-steps {
  list-style: none;
  counter-reset: step;
  max-width: 800px;
  margin: 0 auto;
}
.install-steps li {
  counter-increment: step;
  padding-left: 56px;
  position: relative;
  margin-bottom: 32px;
}
.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.install-steps h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.install-steps p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

/* Usage grid */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.usage-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.usage-step pre {
  font-size: 12px;
  padding: 12px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.usage-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 12px;
}
.usage-step p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.site-footer p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-footer .small { font-size: 13px; }
.footer-logo {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-text .cta-row { justify-content: center; }
  .hero-logo { margin-left: auto; margin-right: auto; display: block; }
}
@media (max-width: 720px) {
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.btn-outline) { display: none; }
  .site-header nav a:nth-last-child(1) { display: inline-block; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-alt: #18181b;
    --surface: #111113;
    --border: #27272a;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --accent: #60a5fa;
    --accent-light: #1e3a8a;
    --accent-dark: #93c5fd;
  }
  .site-header { background: rgba(17, 17, 19, 0.9); }
  code { color: #fca5a5; }
  .hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
}
