:root {
  --bg: #0a0a0b;
  --bg-elevated: #141416;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --border: #27272a;
  --radius: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 11, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
}

.nav-dropdown:hover .dropdown {
  display: block;
}

.nav-dropdown .dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-dropdown .dropdown li a:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-ghost {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-primary {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.hero {
  position: relative;
  padding: 6rem 2rem 6rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.5rem;
}

.hero-cta {
  margin: 0 0 2.5rem;
}

.hero-demo {
  position: relative;
  margin: 0 auto;
  max-width: 560px;
}

.demo-window {
  position: relative;
  z-index: 2;
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1f1f23;
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}

.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #eab308; }
.demo-dot:nth-child(3) { background: #22c55e; }

.demo-filename {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-content {
  padding: 1rem 1.25rem;
}

.demo-code {
  margin: 0;
  font-family: "SF Mono", Monaco, "Consolas", monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}

.demo-code .code-keyword { color: #c084fc; }
.demo-code .code-string { color: #86efac; }
.demo-code .code-fn { color: #67e8f9; }
.demo-code .code-attr { color: #fcd34d; }
.demo-code .code-tag { color: #f472b6; }

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 240px;
  height: 240px;
  background: var(--accent);
  top: 10%;
  left: -15%;
}

.hero-orb-2 {
  width: 160px;
  height: 160px;
  background: #6366f1;
  top: 50%;
  right: -10%;
}

.hero-orb-3 {
  width: 120px;
  height: 120px;
  background: #ec4899;
  bottom: 5%;
  left: 15%;
}

.section-pro-banner {
  padding: 2rem;
}

.pro-banner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  text-align: center;
}

.pro-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.2);
  border-radius: 6px;
}

.pro-banner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.pro-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 3rem;
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.code-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.code-preview:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.1);
}

.code-preview pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
}

.code-preview code {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.integrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.integration {
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.integration:hover {
  transform: scale(1.02);
  background: rgba(139, 92, 246, 0.08);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.testimonial:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.25);
}

.testimonial p {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
}

.testimonial cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.changelog-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.changelog-list li:last-child {
  border-bottom: none;
}

.cta {
  text-align: center;
  padding: 5rem 2rem;
}

.cta .btn-primary {
  margin-top: 1rem;
}

.footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .section, .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
