/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-50:  #f5f3ff;
  --purple-100: #ede9fe;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-900: #2e1065;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  --bg:    #0a0a0f;
  --bg-2:  #0f0f1a;
  --bg-3:  #13131f;
  --border: rgba(255,255,255,0.08);
  --text:   #f1f0f9;
  --muted:  #8b8aa8;

  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  height: 60px;
}
.nav-links {
  display: flex; gap: 24px; margin-left: auto;
}
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── Logo ──────────────────────────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
  flex-shrink: 0;
}
.logo-icon-sm { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.logo-text { font-weight: 700; font-size: 18px; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 10px; transition: all 0.2s; text-align: center;
  white-space: nowrap; line-height: 1.3;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-white {
  background: white; color: var(--gray-900);
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }

.btn-sm  { padding: 8px 16px; font-size: 13px; border-radius: 8px; flex-direction: row; }
.btn-lg  { padding: 16px 28px; font-size: 16px; border-radius: 12px; }
.btn-full { width: 100%; }
.btn-sub { font-size: 11px; font-weight: 400; opacity: 0.75; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  font-size: 13px; font-weight: 500; color: var(--purple-400);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 8px var(--purple-400);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900; letter-spacing: -2px; line-height: 1.05;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-400), #c084fc, var(--purple-400));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% } 100% { background-position: 200% }
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted); max-width: 640px; margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 13px; color: var(--muted); margin-bottom: 60px;
}

/* ─── App Screenshot (CSS mockup) ───────────────────────────────────────────── */
.hero-screen {
  margin: 0 auto;
  max-width: 860px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  background: #0d0d18;
  position: relative;
}
.hero-screen::before {
  content: '';
  position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(to bottom, rgba(139,92,246,0.03), transparent 30%);
  pointer-events: none;
}

.screen-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: #0a0a14;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.screen-title {
  flex: 1; text-align: center; font-size: 13px;
  font-weight: 500; color: var(--muted);
}

.screen-body { display: flex; height: 320px; }

.screen-sidebar {
  width: 160px; flex-shrink: 0;
  background: #0a0a14; border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.screen-logo-sm {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  margin: 0 4px 12px;
}
.screen-nav-item {
  padding: 6px 8px; border-radius: 6px;
  font-size: 11.5px; color: var(--muted); cursor: default;
}
.screen-nav-item.active {
  background: var(--purple-600); color: white; font-weight: 600;
}
.screen-nav-sep {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
  color: rgba(139,138,168,0.4); padding: 10px 8px 4px;
}

.screen-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.screen-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.screen-breadcrumb { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.screen-chips { display: flex; gap: 6px; }
.chip {
  padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
}
.chip-green  { background: rgba(34,197,94,0.15); color: #4ade80; }
.chip-yellow { background: rgba(234,179,8,0.15);  color: #facc15; }
.chip-red    { background: rgba(239,68,68,0.15);  color: #f87171; }

.screen-table { flex: 1; }
.screen-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 8px 16px; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.screen-row.header {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); font-weight: 600;
  background: rgba(255,255,255,0.02);
}
.screen-row:hover { background: rgba(255,255,255,0.02); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.status-running { color: #4ade80; font-weight: 600; font-size: 11px; }
.status-pending { color: #facc15; font-weight: 600; font-size: 11px; }

/* ─── Stats bar ─────────────────────────────────────────────────────────────── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat { padding: 16px 48px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
}

/* ─── Section headers ───────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25);
  font-size: 12px; font-weight: 600; color: var(--purple-400);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--muted); }

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-blue   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.icon-green  { background: rgba(34,197,94,0.15);  color: #4ade80; }
.icon-purple { background: rgba(139,92,246,0.15); color: var(--purple-400); }
.icon-orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.icon-cyan   { background: rgba(6,182,212,0.15);  color: #22d3ee; }
.icon-pink   { background: rgba(236,72,153,0.15); color: #f472b6; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── Compare ───────────────────────────────────────────────────────────────── */
.compare { padding: 100px 0; background: var(--bg-2); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--radius); overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table thead th {
  font-size: 15px; font-weight: 700; padding-bottom: 16px;
  background: var(--bg-3);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table td:first-child { color: var(--muted); }

.col-klario { color: var(--purple-400); text-align: center; }
.col-lens   { color: var(--muted); text-align: center; }
.compare-table th.col-klario { color: var(--purple-400); }
.compare-table th.col-lens   { color: var(--gray-500); }

.col-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  font-weight: 800; font-size: 14px; color: white;
  margin-right: 8px; vertical-align: middle;
}
.check { color: #4ade80; font-weight: 700; }
.cross { color: #6b7280; }

/* ─── Pricing ───────────────────────────────────────────────────────────────── */
.pricing { padding: 100px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 760px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.pricing-card-featured {
  background: linear-gradient(135deg, rgba(109,40,217,0.25), rgba(124,58,237,0.15));
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 40px rgba(139,92,246,0.15);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--purple-600); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 900; letter-spacing: -2px; }
.price-period { font-size: 14px; color: var(--muted); }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.plan-features .check { font-size: 16px; }
.plan-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }

.pricing-guarantee {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 32px; font-size: 14px; color: var(--muted);
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { padding: 100px 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::after {
  content: '+'; font-size: 20px; color: var(--muted); transition: transform 0.2s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 20px 20px; font-size: 14px; color: var(--muted); line-height: 1.7;
}
.faq-item p code {
  background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.faq-item p a { color: var(--purple-400); text-decoration: underline; }

/* ─── CTA section ───────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--purple-900), #1a0b3d, var(--bg));
  border-top: 1px solid rgba(139,92,246,0.2);
  border-bottom: 1px solid rgba(139,92,246,0.2);
  padding: 100px 24px; text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900;
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.cta-section p { font-size: 18px; color: var(--muted); margin-bottom: 36px; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-inner {
  display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 12px; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--text); }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .stat-divider { display: none; }
  .stats-grid { gap: 0; }
  .stat { padding: 16px 24px; }
  .screen-sidebar { width: 120px; }
  .screen-nav-item { font-size: 10px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
