@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --mereze-navy: #0f1d33;
  --mereze-navy-soft: #1a2b4a;
  --mereze-blue: #2563eb;
  --mereze-green: #16a34a;
  --mereze-green-light: #dcfce7;
  --text: #172b4d;
  --muted: #5e6c84;
  --link: #0052cc;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 29, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 29, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 29, 51, 0.12);
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--link); }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--mereze-navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--mereze-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover { box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4); }

.btn-secondary {
  background: #fff;
  color: var(--mereze-navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: #cbd5e1; }

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

main.narrow { max-width: 760px; }

section.block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mereze-green);
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  color: var(--mereze-navy);
  line-height: 1.25;
}

h2.section-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }

p.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  max-width: 42rem;
}

code {
  background: #f1f5f9;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

ul, ol { padding-left: 1.25rem; }

/* Homepage hero */
.hero-home {
  margin: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-home h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-home .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-visual img { width: 100%; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--mereze-green-light);
  color: #166534;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--mereze-navy);
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* Screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.screenshot-item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mereze-navy);
  border-top: 1px solid var(--border);
}

/* Product card on home */
.product-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.product-showcase ul {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.product-showcase li { margin-bottom: 0.35rem; }

/* Docs pages */
.site-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 1.5rem;
}

.site-header img.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.site-header h1 {
  font-size: 1.65rem;
  margin: 0 0 0.25rem;
}

.vendor {
  color: var(--mereze-blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mereze-green);
}

.doc-nav a {
  text-decoration: none;
  color: var(--link);
  font-weight: 500;
  font-size: 0.92rem;
}

.doc-nav a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  background: var(--mereze-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--mereze-navy) 0%, var(--mereze-navy-soft) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary { margin: 0 0.35rem; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong {
  display: block;
  color: var(--mereze-navy);
  margin-bottom: 0.35rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.site-footer a:hover { color: var(--link); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-home,
  .product-showcase,
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero-home { margin-top: 1.25rem; }

  .site-footer { grid-template-columns: 1fr; }

  .nav-links .hide-mobile { display: none; }
}
