@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geist-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geist-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/geist-mono-500.woff2') format('woff2');
}

:root {
  --ink:        #0a0a0a;
  --text:       #1f2937;
  --muted:      #64748b;
  --line:       #e5e7eb;
  --soft:       #fafafa;
  --accent:     #4f46e5;
  --accent-2:   #4338ca;
  --accent-bg:  #eef2ff;
  --danger:     #b91c1c;
  --success:    #047857;
  --radius:     6px;
  --maxw:       1120px;
  --gap:        clamp(1rem, 2.5vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

p { margin: 0 0 1em; }
p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

code, pre {
  font-family: 'Geist Mono', ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
}
pre {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 0.85rem;
}
code { background: var(--soft); padding: 0.1em 0.35em; border-radius: 3px; }
pre code { background: none; padding: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }
section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.brand img {
  height: 96px;
  width: auto;
  display: block;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .sep { color: var(--line); font-weight: 400; }
.brand .label { color: var(--ink); font-weight: 500; }
.nav-links { display: flex; gap: 1.75rem; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.lang-switch { display: inline-flex; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; }
.lang-switch a.active { color: var(--ink); font-weight: 500; }

.demo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--accent, #4f46e5);
  border-radius: 999px;
  color: var(--accent, #4f46e5) !important;
  font-weight: 500;
  white-space: nowrap;
}
.demo-link:hover { background: var(--accent-bg, #eef2ff); text-decoration: none !important; }
.demo-link::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 0.45rem;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.6);
  animation: demo-pulse 2.4s infinite;
}
@keyframes demo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.demo-hint {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  background: var(--ink, #0f172a);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}
.demo-link:hover .demo-hint,
.demo-link:focus .demo-hint { opacity: 1; transform: translateY(0); }

/* ---------- HERO ---------- */
.hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4rem); }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 { max-width: 14em; }
.hero .lead { margin-top: 1.25rem; }
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #222; color: #fff; text-decoration: none; }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; text-decoration: none; }

/* ---------- PLUGIN GRID ---------- */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.plugin-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.plugin-card:hover {
  border-color: #c7cad1;
  text-decoration: none;
  transform: translateY(-2px);
}
.plugin-card h3 {
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.plugin-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.plugin-card .price {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.plugin-card .price small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75em;
  margin-left: 0.4rem;
}

/* ---------- BUNDLE CALLOUT ---------- */
.bundle {
  margin-top: 2rem;
  padding: 2rem 2.25rem;
  background: var(--accent-bg);
  color: var(--ink);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.bundle h3 { color: var(--ink); margin: 0 0 0.25rem; font-size: 1.35rem; }
.bundle p { color: var(--muted); margin: 0; }
.bundle .price { font-size: 1.5rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.bundle .price small { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 0.5rem; font-size: 0.75em; }
.bundle .btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.bundle .btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- FEATURE LISTS ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
}
.feature h4 {
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- PRODUCT PAGE ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .product-hero { grid-template-columns: 1fr; }
}
.product-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.product-hero .price-block {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.product-hero .price-block .price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-hero .price-block .price small { font-weight: 400; color: var(--muted); font-size: 0.7em; margin-left: 0.4rem; }
.product-hero .price-block p { margin: 0.4rem 0 1rem; color: var(--muted); font-size: 0.9rem; }
.product-hero .price-block .btn { width: 100%; justify-content: center; }

.screenshot-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: 'Geist Mono', monospace;
}
.product-screenshot {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  background: #fff;
}
.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- DOCS PROSE ---------- */
.docs-prose {
  font-size: 17px;
  line-height: 1.7;
}
.docs-prose h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}
.docs-prose h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.docs-prose h2:first-of-type { border-top: none; padding-top: 0; }
.docs-prose h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 600;
}
.docs-prose h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-weight: 600;
}
.docs-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}
.docs-prose hr + h2 { border-top: none; margin-top: 0; padding-top: 0; }
.docs-prose ul, .docs-prose ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.docs-prose li { margin-bottom: 0.35rem; }
.docs-prose pre { margin: 1.25rem 0; }
.docs-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.docs-prose th, .docs-prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.docs-prose th {
  font-weight: 600;
  color: var(--ink);
  border-bottom-width: 2px;
}
.docs-prose tr:last-child td { border-bottom: none; }
.docs-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.site-footer .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- MOBILE NAV ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .nav-links .hide-sm { display: none; }
  .bundle { flex-direction: column; align-items: flex-start; }
}
