/* PaywallKit Design System - Claude UI Inspired */
:root {
  --bg: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --border: #27272a;
  --border-light: #3f3f46;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --purple: #c084fc;
  --purple-dim: #7c3aed;
  --blue: #60a5fa;
  --green: #4ade80;
  --gradient: linear-gradient(135deg, #c084fc, #60a5fa, #4ade80);
  --gradient-text: linear-gradient(135deg, #c084fc 0%, #60a5fa 50%, #4ade80 100%);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue); }

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

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,11,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text) !important; color: var(--bg) !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  padding: 14px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; color: var(--bg); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 14px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 600;
  border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--text-secondary); background: var(--bg-card); color: var(--text); }

/* Hero Section */
.hero { padding: 160px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(192,132,252,0.1) 0%, rgba(96,165,250,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(48px, 7vw, 80px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 20px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Code Preview */
.code-preview {
  max-width: 680px; margin: 64px auto 0;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: left;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-card);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #eab308; }
.code-dot:nth-child(3) { background: #22c55e; }
.code-preview pre {
  padding: 24px; font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px; line-height: 1.7; overflow-x: auto; color: var(--text-secondary);
}
.code-preview .keyword { color: #c084fc; }
.code-preview .string { color: #4ade80; }
.code-preview .func { color: #60a5fa; }
.code-preview .comment { color: var(--text-muted); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
  font-size: 48px; font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Features */
.features { padding: 100px 0; }
.section-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--purple); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
.section-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
  background: rgba(192,132,252,0.1); border: 1px solid rgba(192,132,252,0.2);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Embeds Preview */
.embeds-preview { padding: 100px 0; }
.embeds-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.embed-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.embed-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.embed-card .embed-tag {
  position: absolute; top: 16px; right: 16px;
  background: rgba(192,132,252,0.15); color: var(--purple);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.embed-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.embed-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.embed-demo {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
}

/* CTA Section */
.cta-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(192,132,252,0.03) 100%);
}
.cta-section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

/* Pricing Page */
.pricing-section { padding: 160px 0 100px; text-align: center; }
.pricing-toggle {
  display: inline-flex; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; margin-bottom: 64px;
}
.pricing-toggle button {
  padding: 10px 24px; border-radius: 999px; border: none;
  background: transparent; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.pricing-toggle button.active { background: var(--text); color: var(--bg); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px; text-align: left;
  transition: var(--transition); position: relative;
}
.pricing-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--purple); background: linear-gradient(180deg, rgba(192,132,252,0.05), var(--bg-card)); }
.pricing-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #000; padding: 4px 16px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price { font-size: 48px; font-weight: 800; margin: 16px 0; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card .desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.pricing-card ul { list-style: none; margin-bottom: 32px; }
.pricing-card ul li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 12px;
}
.pricing-card ul li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-card .btn-primary { width: 100%; justify-content: center; }
.pricing-card .btn-secondary { width: 100%; justify-content: center; }

/* Docs Page */
.docs-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
  padding: 100px 0 80px; min-height: 100vh;
}
.docs-sidebar {
  position: sticky; top: 88px; height: fit-content;
  padding-right: 24px; border-right: 1px solid var(--border);
}
.docs-sidebar h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin: 24px 0 8px;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar a {
  display: block; padding: 6px 12px; font-size: 14px;
  color: var(--text-secondary); border-radius: 6px; margin: 2px 0;
}
.docs-sidebar a:hover { background: var(--bg-card); color: var(--text); }
.docs-sidebar a.active { background: rgba(192,132,252,0.1); color: var(--purple); }
.docs-content h2 {
  font-size: 28px; font-weight: 800; margin: 48px 0 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.docs-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.docs-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.docs-content p { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.docs-content pre {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin: 16px 0 24px;
  overflow-x: auto; font-size: 13px; line-height: 1.7;
}
.docs-content code { font-family: 'SF Mono', 'Fira Code', monospace; }
.docs-content p code {
  background: var(--bg-card); padding: 2px 8px; border-radius: 4px;
  font-size: 13px; color: var(--purple);
}
.docs-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px;
}
.docs-content th, .docs-content td {
  padding: 12px 16px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.docs-content th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Embeds Page */
.embeds-section { padding: 160px 0 100px; }
.embeds-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.embed-full-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.embed-full-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.embed-full-header { padding: 24px 28px; border-bottom: 1px solid var(--border); }
.embed-full-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.embed-full-header p { font-size: 13px; color: var(--text-muted); }
.embed-full-preview {
  padding: 32px; background: var(--bg); min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.embed-full-footer {
  padding: 16px 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.embed-full-footer .tags { display: flex; gap: 8px; }
.embed-full-footer .tag {
  background: var(--bg); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; color: var(--text-muted); border: 1px solid var(--border);
}
.embed-full-footer button {
  background: var(--purple); color: #fff; border: none;
  padding: 8px 20px; border-radius: 8px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.embed-full-footer button:hover { opacity: 0.9; }

/* FAQ */
.faq { padding: 80px 0; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 24px 0;
}
.faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.faq-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .embeds-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .embeds-full-grid { grid-template-columns: 1fr; }
}
