/* Wasabil — Mercury-inspired DARK palette (v2)
   Mercury's public site uses a dark canvas with off-white text, muted chrome,
   and very restrained green accents. We emulate:
   - Deep near-black canvas (#0a0b0d), slightly lifted panels (#111214, #17181b)
   - Warm off-white text (#f3efe7) to stay compatible with our mascot's warmth
   - Cool slate-gray borders and muted copy
   - Wasabi green accent, pushed a touch brighter to sit on dark
   - Generous use of whitespace and thin 1px borders
*/
:root {
  --bg: #121219;
  --bg-2: #181820;
  --bg-3: #1e1e27;
  --paper: #1c1c24;
  --panel: #16161d;
  --ink: #f3efe7;
  --ink-2: #e4dfd4;
  --ink-3: #c8c2b5;
  --muted: #8a8880;
  --muted-2: #6b6960;
  --rule: #26262f;
  --rule-2: #33343e;
  --accent: oklch(0.78 0.18 130);
  --accent-2: oklch(0.88 0.17 125);
  --accent-wash: oklch(0.3 0.08 135);
  --accent-cool: oklch(0.72 0.12 265);
  --danger: oklch(0.72 0.18 30);
  --serif: "Instrument Serif", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.3);
  --shadow: 0 1px 0 rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.5);
  --shadow-lg: 0 1px 0 rgba(0,0,0,0.4), 0 40px 80px -24px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-feature-settings: "ss01"; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--accent); margin-right:8px; vertical-align: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display-1 {
  font-family: var(--serif);
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display-2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
}
.italic { font-style: italic; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  max-width: 1440px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--rule-2);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--serif); font-size: 18px;
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent));
  border-radius: 4px;
}
.logo-mark span { position: relative; z-index: 1; color: var(--bg); font-weight: 600; }
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-link:hover { background: var(--bg-2); color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content:""; position:absolute; left:14px; right:14px; bottom: 2px;
  height: 1px; background: var(--ink);
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--sans);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(255,255,255,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: var(--bg-2); border-color: rgba(255,255,255,0.32); }
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 11px 0;
}
.btn-link .arrow { transition: transform 0.2s; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.pill .pill-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b140b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Sections */
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }
.section-title {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-title .label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Rules */
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Product window (macOS chrome) */
.window {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #22222b, #181820);
  border-bottom: 1px solid var(--rule);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: #33343e; }
.window-dots span:nth-child(1) { background: #e06c5e; }
.window-dots span:nth-child(2) { background: #e5b046; }
.window-dots span:nth-child(3) { background: #6bbf59; }
.window-title {
  margin: 0 auto; font-size: 12px; color: var(--muted); font-family: var(--mono);
}

/* Little mascot blob — easter egg */
.mascot {
  position: absolute;
  pointer-events: none;
  width: 48px; height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  opacity: 0.95;
}

/* Footnote / caption */
.caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-12 { gap: 48px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* Logo cloud */
.logo-cloud-strip {
  display: flex;
  gap: 36px 44px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo-cloud-strip > span { opacity: 0.7; white-space: nowrap; }
@media (max-width: 860px) {
  .logo-cloud-strip { font-size: 17px; gap: 20px 28px; }
}

/* Hamburger menu */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  border-radius: 8px;
  line-height: 0;
  transition: background 0.15s;
}
.nav-burger:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }

.nav-mobile-menu {
  position: fixed;
  top: 61px; left: 0; right: 0; bottom: 0;
  z-index: 48;
  background: var(--bg);
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 17px;
  color: var(--ink);
  transition: background 0.15s;
}
.nav-mobile-link:hover,
.nav-mobile-link.active { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.nav-mobile-divider { height: 1px; background: var(--rule); margin: 8px 0; }

/* Responsive */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-desktop-only { display: none !important; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .display-1 { font-size: clamp(42px, 9vw, 72px) !important; }
}

/* Footer */
.footer {
  background: #0d0d12;
  color: var(--ink);
  padding: 96px 0 48px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}
.footer a { color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; color: var(--muted-2); margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: var(--muted-2);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer { padding: 64px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 52px 0 36px;
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .hero-section { padding: 64px 0 48px; }
  .hero-product-shot-wrap { display: none; }
  .hero-mascot { display: none; }
}

/* ── Pricing page ─────────────────────────────────────────────────────────── */
.pricing-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-card { padding: 36px; }
.pricing-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pricing-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 860px) {
  .pricing-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card { padding: 28px; }
  .pricing-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-calc-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Home page ────────────────────────────────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--paper); }
.feature-row-text { padding: 56px 48px; }
.feature-row-demo { padding: 56px 48px; }
.mcp-demo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.home-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cta-band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.clients-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.clients-logos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.clients-logo-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-text { padding: 36px 28px; border-right: none !important; border-bottom: 1px solid var(--rule); }
  .feature-row-demo { padding: 32px 28px; }
  .mcp-demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cta-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band-grid > div:last-child { display: none; }
  .clients-grid { grid-template-columns: 1fr; gap: 40px; }
  .clients-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 16px; padding-bottom: 16px; scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > * { scroll-snap-align: start; flex-shrink: 0; width: calc(85vw - 40px); max-width: 360px; }
  .clients-logo-strip {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    background: none; border: none; border-radius: 0;
    gap: 12px; padding-bottom: 8px; scrollbar-width: none;
  }
  .clients-logo-strip::-webkit-scrollbar { display: none; }
  .clients-logo-strip > * {
    scroll-snap-align: start; flex-shrink: 0;
    width: 140px; border: 1px solid var(--rule); border-radius: 12px;
    min-height: 100px !important; padding: 24px 20px !important;
  }
}

.hero-cta-row { flex-wrap: nowrap; }
.hero-stats-row { flex-wrap: nowrap; }

@media (max-width: 640px) {
  .hero-cta-row { flex-wrap: wrap !important; }
  .hero-stats-row { flex-wrap: wrap !important; }
  .hero-demo-link { width: 100%; justify-content: center; }
}
