:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
}

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

body {
  font-family: "Inter", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}

.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-dark {
  background: #0f172a;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.btn-dark:hover { background: #1e293b; transform: translateY(-1px); }

/* Hero */
.hero {
  padding: 68px 0 76px;
  background: radial-gradient(circle at 80% 10%, #eef2ff 0%, #ffffff 55%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4.3vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Mockup */
.mock-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.mock-url {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mock-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.mock-col {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.mock-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.mock-badge.green { background: #ecfdf5; color: #047857; }
.mock-badge.gold { background: #fefce8; color: #a16207; }

.mock-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.mock-price { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.mock-price small { font-size: 11px; background: #dcfce7; color: #166534; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.mock-stars { font-size: 12px; color: #d97706; margin-bottom: 10px; font-weight: 600; }

.mock-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
  color: var(--muted);
}

.mock-row strong { color: var(--text); }

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.pill-ai {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  color: #fff;
}

.pill-ai.chatgpt { background: #10a37f; }
.pill-ai.claude { background: #d97757; }
.pill-ai.share { background: #4f46e5; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); font-size: 16px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s, border-color 0.16s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.f-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.f-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-icon { font-size: 26px; margin-bottom: 10px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.feature-card code { background: var(--primary-soft); color: var(--primary); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--muted); }

.install-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border: 1px solid #c7d2fe;
}

.install-box h2 { font-size: 26px; margin-bottom: 6px; }
.install-box p { color: var(--muted); margin-bottom: 16px; }

.install-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}

.install-steps code {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13px;
}

.install-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.small-note { font-size: 12px; color: var(--muted); }

.opensource-box {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 36px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.opensource-eyebrow {
  margin-bottom: 10px;
  background: #f1f5f9;
  color: #334155;
}

.opensource-copy h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.opensource-copy p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 620px;
}

.opensource-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .hero-grid, .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .install-box, .opensource-box { flex-direction: column; align-items: flex-start; padding: 26px; }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .hero-sub { font-size: 15.5px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .mock-table { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .install-box, .opensource-box { padding: 22px 18px; }
  .install-cta, .opensource-cta { width: 100%; }
  .install-cta .btn, .opensource-cta .btn { width: 100%; }
}
