/* Postli marketing — dark developer-flavored system */

:root {
  --bg: #0a0a0a;
  --bg-1: #0e0e0e;
  --bg-2: #131313;
  --bg-3: #1a1a1a;
  --fg: #f5f5f5;
  --fg-dim: #a1a1a1;
  --fg-mute: #6b6b6b;
  --fg-faint: #3a3a3a;
  --border: #1e1e1e;
  --border-2: #272727;
  --accent: #00A676;
  --accent-2: #00c48c;
  --accent-glow: rgba(0, 166, 118, 0.22);
  --danger: #ff5a5f;
  --warn: #f5a623;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, Menlo, Monaco, "Courier New", monospace;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,166,118,0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* === Type === */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.25; }
.mono { font-family: var(--mono); font-feature-settings: "zero", "ss01"; }
.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

/* === Shell === */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #001b13;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 2px 10px var(--accent-glow);
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
  margin-left: 16px;
}
.nav-link {
  padding: 6px 10px;
  font-size: 13.5px;
  color: var(--fg-dim);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-2); }
.nav-link.active { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #001b13;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 24px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: #333; }
.btn-link {
  background: transparent; color: var(--fg-dim);
  padding: 9px 10px;
}
.btn-link:hover { color: var(--fg); }
.btn-lg { padding: 12px 18px; font-size: 14px; }

/* === Badges / pills === */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.kbd {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--fg-dim);
  background: var(--bg-2);
}

/* === Section === */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.section-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.section-label {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}

/* === Grid lines (decorative) === */
.gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
  opacity: 0.45;
}

/* === Cards === */
.card {
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s, background .2s;
}
.card:hover { border-color: var(--border-2); }

/* === Terminal-ish block === */
.code-block {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg-dim);
  overflow-x: auto;
}
.code-block .tok-k { color: #c4b5fd; }
.code-block .tok-s { color: var(--accent-2); }
.code-block .tok-n { color: #fca5a5; }
.code-block .tok-c { color: var(--fg-mute); }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  color: var(--fg-dim);
  font-size: 13.5px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}
.footer-col h5 {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a { display: block; padding: 5px 0; color: var(--fg-dim); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--fg-mute);
}

/* === BFS badge === */
.bfs-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-dim);
}
.bfs-badge .shopify-bag {
  width: 18px; height: 18px;
}

/* === Utility === */
.hidden { display: none !important; }
.hr { height: 1px; background: var(--border); width: 100%; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-8 > * + * { margin-top: 8px; }

/* === Scrollbar for demo areas === */
.thin-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.thin-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* === Reveal-on-scroll === */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
