/* === KROVN Snap — Dark Theme, Glassmorphism === */

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
}

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

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

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

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 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;
}
.logo { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-card); color: var(--text); }

/* === Hero === */
.hero {
  max-width: 800px; margin: 0 auto; padding: 140px 24px 80px; text-align: center;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: var(--accent-glow); color: var(--accent-hover);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* === Demo Box === */
.demo-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left; margin-bottom: 40px;
  backdrop-filter: blur(10px);
}
.demo-input-row { display: flex; gap: 12px; margin-bottom: 16px; }
.demo-input-row input {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-family: 'JetBrains Mono', monospace;
  outline: none;
}
.demo-input-row input:focus { border-color: var(--accent); }
.demo-code {
  background: rgba(0,0,0,0.4); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto;
}
.demo-code pre { margin: 0; }
.demo-code code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-muted);
  white-space: pre; line-height: 1.6;
}
.demo-code span { color: var(--accent-hover); }
.demo-result { margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; }
.demo-result img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* === Hero Stats === */
.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* === Features === */
.features { max-width: 1200px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.features h2 { font-size: 36px; font-weight: 700; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: left; transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* === Code Section === */
.code-section { max-width: 800px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.code-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 32px; }
.code-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.tab {
  padding: 8px 16px; border-radius: var(--radius-sm); background: transparent;
  border: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.tab.active, .tab:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-hover); }
.code-block {
  display: none; text-align: left; background: rgba(0,0,0,0.4);
  border-radius: var(--radius); padding: 24px; overflow-x: auto;
  border: 1px solid var(--border);
}
.code-block.active { display: block; }
.code-block code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: #c4b5fd; white-space: pre; line-height: 1.7;
}

/* === Pricing === */
.pricing { max-width: 1200px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.pricing h2 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.pricing-sub { color: var(--text-muted); margin-bottom: 32px; }

.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; }
.toggle-label { font-size: 14px; color: var(--text-muted); }
.save-badge {
  background: rgba(34, 197, 94, 0.15); color: var(--success);
  padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.toggle { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border); border-radius: 12px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: left; position: relative;
  backdrop-filter: blur(10px); transition: all 0.2s;
}
.price-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white; padding: 4px 16px;
  border-radius: 10px; font-size: 12px; font-weight: 600;
}
.price-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.price {
  font-size: 40px; font-weight: 800; margin-bottom: 24px;
  display: flex; align-items: baseline; gap: 4px;
}
.price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li {
  padding: 6px 0; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.price-card li::before { content: '\2713 '; color: var(--success); font-weight: 700; margin-right: 8px; }
.price-card .btn { width: 100%; }

/* === FAQ === */
.faq { max-width: 700px; margin: 0 auto; padding: 80px 24px; }
.faq h2 { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; transition: all 0.2s;
}
details[open] { background: var(--bg-card-hover); }
summary {
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: 0.2s; }
details[open] summary::after { content: '-'; }
details p { margin-top: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border); padding: 60px 24px 24px;
  max-width: 1200px; margin: 0 auto;
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 60px; }
.footer-links h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--text-dim); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--border); }

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding-top: 100px; }
  .hero-stats { gap: 24px; }
  .nav-links a:not(.btn) { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-links { gap: 32px; }
  .demo-input-row { flex-direction: column; }
}
