/* ─── Base ──────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --bg: #09090b;
  --bg2: #111113;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #71717a;
  --pro-gold: #f59e0b;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ─── NAV ───────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.btn-nav {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-nav:hover {
  opacity: 0.85;
}

/* ─── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-content {
  flex: 1;
  max-width: 560px;
}
.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}
.btn-primary.large {
  padding: 18px 32px;
  font-size: 18px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 15px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}
.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ─── DEMO BROWSER ──────────────────────────────────────────────────────────── */
.hero-demo {
  flex: 1;
  max-width: 480px;
}
.demo-browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1a1e;
  border-bottom: 1px solid var(--glass-border);
}
.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dot.r {
  background: #ff5f57;
}
.demo-dot.y {
  background: #ffbd2e;
}
.demo-dot.g {
  background: #28c840;
}
.demo-url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.demo-body {
  display: flex;
  background: #0d1117;
  min-height: 380px;
}
.demo-github-content {
  flex: 1;
  padding: 20px;
}
.demo-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}
.demo-line.w40 {
  width: 40%;
}
.demo-line.w55 {
  width: 55%;
}
.demo-line.w60 {
  width: 60%;
}
.demo-line.w80 {
  width: 80%;
}
.demo-line.mt8 {
  margin-top: 8px;
}
.demo-sidebar {
  width: 200px;
  border-left: 1px solid var(--glass-border);
  background: rgba(20, 20, 28, 0.95);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-logo {
  font-size: 12px;
  font-weight: 700;
}
.demo-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-weight: 500;
}
.demo-sidebar-meta {
  font-size: 10px;
  color: var(--muted);
}
.demo-sidebar-text {
  font-size: 11px;
  color: #d4d4d8;
  line-height: 1.5;
  flex: 1;
  min-height: 100px;
}
.demo-stale {
  font-size: 10px;
  color: #fbbf24;
}
.demo-deep-dive-btn {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}
.demo-deep-dive-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── SECTIONS ───────────────────────────────────────────────────────────────── */
section {
  padding: 100px 0;
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
}

/* ─── FEATURES ───────────────────────────────────────────────────────────────── */
.features {
  background: var(--bg2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition:
    transform 0.2s,
    border-color 0.2s;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}
.feature-card--pro {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.04);
}
.feature-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(--muted);
  line-height: 1.6;
}
.feature-card code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}
.feature-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.feature-tag.pro {
  background: rgba(245, 158, 11, 0.12);
  color: var(--pro-gold);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ─── PRICING ────────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.plan-card {
  padding: 36px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  position: relative;
}
.plan-card--pro {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.06);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.plan-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -2px;
}
.plan-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}
.plan-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 14px;
}
.plan-features li.disabled {
  color: var(--muted);
}
.btn-plan {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.btn-plan:hover {
  background: var(--glass);
}
.btn-plan--pro {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}
.btn-plan--pro:hover {
  opacity: 0.9;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
.faq {
  background: var(--bg2);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::after {
  content: " +";
  color: var(--accent);
}
.faq-item[open] summary::after {
  content: " −";
}
.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── CTA SECTION ────────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
}
.cta-section p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  margin-top: 16px;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer span {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 24px;
  }
  .hero-demo {
    max-width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.btn-nav) {
    display: none;
  }
  .hero-stats span:nth-child(2) {
    display: none;
  }
}
