/* ============================================================
   Blockdown marketing site. Terminal-green on white, with
   green-glow highlights.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-2: #f2fcf5;
  --panel: #ffffff;
  --panel-2: #eafbf0;
  --border: rgba(22, 101, 52, 0.14);
  --border-2: rgba(22, 101, 52, 0.26);
  --text: #0f2417;
  --muted: #566b5d;
  --green: #16a34a;
  --green-d: #15803d;
  --green-bright: #22c55e;
  --hl: #dcfce7;
  --hl-border: #bbf7d0;
  --glow: 0 0 26px rgba(22, 163, 74, 0.30);
  --radius: 18px;
  --shadow: 0 22px 55px -26px rgba(21, 128, 61, 0.35);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em; background: var(--hl);
  padding: 0.12em 0.42em; border-radius: 6px; color: var(--green-d);
}

/* ---------- scroll reveal (gated on .js so content never hides without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2), .audience .aud:nth-child(2) { transition-delay: 0.05s; }
.cards .card:nth-child(3), .audience .aud:nth-child(3) { transition-delay: 0.10s; }
.cards .card:nth-child(4), .audience .aud:nth-child(4) { transition-delay: 0.15s; }
.cards .card:nth-child(5), .audience .aud:nth-child(5) { transition-delay: 0.20s; }
.cards .card:nth-child(6), .audience .aud:nth-child(6) { transition-delay: 0.25s; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.12; } }
.blink { display: inline-block; animation: blink 1.15s ease-in-out infinite; }

/* ---------- buttons (with green glow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--green); color: #fff; font-weight: 800; font-size: 0.95rem;
  padding: 0.7em 1.25em; border-radius: 12px; border: none;
  box-shadow: 0 10px 24px -8px rgba(22, 163, 74, 0.5), 0 0 22px rgba(22, 163, 74, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--green-d); box-shadow: 0 16px 34px -10px rgba(22, 163, 74, 0.55), 0 0 34px rgba(22, 163, 74, 0.5); }
.btn-lg { font-size: 1.05rem; padding: 0.85em 1.6em; }
.btn-sm { padding: 0.5em 0.95em; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; margin-top: auto; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border-2); box-shadow: none; }
.btn-ghost:hover { background: var(--panel-2); box-shadow: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.5rem; backdrop-filter: blur(12px);
}
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.8); border-bottom: 1px solid var(--border); }
/* Wordmark is a single solid color. */
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: var(--green); }
.brand-accent { color: var(--green); }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--green-d); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- hero (with soft green glow behind) ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 3rem; }
.hero::before {
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 780px; height: 480px; max-width: 90vw;
  background: radial-gradient(closest-side, rgba(22, 163, 74, 0.20), rgba(22, 163, 74, 0) 72%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.8rem; font-weight: 600; color: var(--green-d); background: var(--hl); border: 1px solid var(--hl-border); padding: 0.35em 0.85em; border-radius: 999px; margin-bottom: 1.2rem; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(22, 163, 74, 0.85); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 900; }
.grad { color: var(--green); }
.lede { font-size: 1.15rem; color: var(--muted); margin: 1.3rem 0 2rem; max-width: 34rem; }
.lede b { color: var(--text); font-weight: 600; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.trust { color: var(--muted); font-size: 0.9rem; margin-top: 1.6rem; }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-logo { filter: drop-shadow(0 0 30px rgba(22, 163, 74, 0.4)) drop-shadow(0 16px 26px rgba(22, 163, 74, 0.28)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.mock { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cdd9d0; }
.mock-bar i:first-child { background: #ef4444; }
.mock-bar i:nth-child(2) { background: #f59e0b; }
.mock-bar i:nth-child(3) { background: var(--green); }
.mock-body { padding: 1.1rem 1.2rem 1.4rem; font-size: 0.92rem; }
.m-h1 { font-size: 1.35rem; font-weight: 800; color: var(--green); margin-bottom: 0.7rem; }
.m-callout { background: var(--hl); border-left: 3px solid var(--green); padding: 0.55rem 0.7rem; border-radius: 6px; margin-bottom: 0.7rem; }
.m-p { color: var(--muted); margin: 0 0 0.7rem; }
.m-p b { color: var(--text); }
.m-hl { background: var(--hl); border-radius: 4px; padding: 0 0.25em; color: var(--green-d); }
.m-todo { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); margin: 0.3rem 0; }
.m-todo span { width: 16px; height: 16px; border: 2px solid var(--border-2); border-radius: 5px; flex: none; }
.m-todo.done span { background: var(--green); border-color: var(--green); }
.m-todo.done { text-decoration: line-through; opacity: 0.7; }
.m-code { background: #0f2417; border: 1px solid #1d3a28; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.7rem 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; color: #86efac; }
.m-code em { color: var(--green-bright); font-style: normal; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.08rem; margin: 0.8rem auto 2.6rem; max-width: 42rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); }
.card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 18px 40px -22px rgba(22, 163, 74, 0.5), 0 0 24px rgba(22, 163, 74, 0.18); }
.card .ic { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; background: var(--hl); border: 1px solid var(--hl-border); border-radius: 12px; margin-bottom: 1rem; box-shadow: 0 0 18px rgba(22, 163, 74, 0.18); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.tag { font-size: 0.65rem; font-weight: 700; vertical-align: middle; background: var(--green); color: #fff; padding: 0.18em 0.6em; border-radius: 999px; margin-left: 0.4em; box-shadow: 0 0 12px rgba(22, 163, 74, 0.4); }

/* comparison table */
.cmp { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); }
.cmp table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.97rem; vertical-align: top; }
.cmp thead th { font-size: 1rem; font-weight: 800; color: var(--text); }
.cmp tbody td:first-child, .cmp thead th:first-child { color: var(--muted); font-weight: 600; width: 18%; }
.cmp td { color: var(--muted); }
.cmp .hl { background: rgba(22, 163, 74, 0.08); color: var(--text); border-left: 1px solid var(--hl-border); }
.cmp thead .hl { background: var(--hl); }
.cmp tbody tr:last-child td { border-bottom: none; }

/* audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.aud { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); }
.aud:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 0 22px rgba(22, 163, 74, 0.16); }
.aud-ic { font-size: 1.6rem; line-height: 1; }
.aud h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.aud p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* shortcuts */
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sc-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); }
.sc-col h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.sc-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.sc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.sc-list li { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.kbd { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 0.45em; font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; font-weight: 700; color: var(--green-d); background: #fff; border: 1px solid var(--hl-border); border-bottom-width: 2px; border-radius: 6px; margin-right: 0.15em; box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08); }

/* components showcase */
.components { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cx { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.cx:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 0 22px rgba(22, 163, 74, 0.16); }
.cx-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.92rem; background: var(--bg-2); }
.cx-body { padding: 1rem 1.1rem; min-height: 96px; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; }
.cx-h1 { font-size: 1.25rem; font-weight: 800; color: var(--green); }
.cx-h2 { font-size: 1.02rem; font-weight: 800; color: var(--green-d); }
.cx-h3 { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.cx-text { margin: 0; color: var(--muted); font-size: 0.95rem; }
.cx-callout { background: var(--hl); border-left: 3px solid var(--green); padding: 0.5rem 0.7rem; border-radius: 6px; color: var(--text); font-size: 0.92rem; }
.cx-quote { margin: 0; padding: 0.15rem 0 0.15rem 0.8rem; border-left: 3px solid var(--green); color: var(--muted); font-style: italic; }
.cx-ul, .cx-ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.cx-ul li, .cx-ol li { margin: 0.12rem 0; }
.cx-todo { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.92rem; }
.cx-todo span { width: 15px; height: 15px; border: 2px solid var(--border-2); border-radius: 4px; flex: none; }
.cx-todo.done span { background: var(--green); border-color: var(--green); }
.cx-todo.done { text-decoration: line-through; opacity: 0.7; }
.cx-table { border-collapse: collapse; font-size: 0.86rem; }
.cx-table th, .cx-table td { border: 1px solid var(--border-2); padding: 0.28rem 0.7rem; color: var(--muted); }
.cx-table th { background: var(--hl); color: var(--green-d); }
.cx-image { display: grid; place-items: center; height: 62px; background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 8px; font-size: 1.7rem; }
.cx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.cx-cols div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; text-align: center; color: var(--muted); font-size: 0.86rem; }
.cx-code { margin: 0; background: #0f2417; color: #86efac; border-radius: 8px; padding: 0.6rem 0.8rem; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.cx-code em { color: var(--green-bright); font-style: normal; }
.cx-divider { border: none; border-top: 2px solid var(--border-2); margin: 0.4rem 0; }

/* export strip */
.export { text-align: center; }
.formats { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.fmt { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 1.3rem; background: #fff; border: 1px solid var(--border-2); color: var(--green); padding: 0.7rem 1.2rem; border-radius: 12px; transition: transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); }
.fmt:hover { transform: translateY(-3px); color: var(--green-bright); box-shadow: 0 0 22px rgba(22, 163, 74, 0.25); }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; position: relative; box-shadow: 0 1px 2px rgba(15, 36, 23, 0.04); }
.tier.featured { border-color: var(--green); background: rgba(22, 163, 74, 0.05); box-shadow: var(--shadow), 0 0 32px rgba(22, 163, 74, 0.20); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; background: var(--green); color: #fff; padding: 0.3em 0.9em; border-radius: 999px; box-shadow: 0 0 16px rgba(22, 163, 74, 0.5); }
.tier h3 { font-size: 1.3rem; font-weight: 700; }
.price { font-size: 2rem; font-weight: 900; margin: 0.3rem 0 0.1rem; color: var(--green); }
.tier-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.1rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; color: #36493d; }

/* download */
.download { text-align: center; }
.dl-card { display: flex; align-items: center; gap: 1.5rem; text-align: left; background: rgba(22, 163, 74, 0.07); border: 1px solid var(--green); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow), 0 0 34px rgba(22, 163, 74, 0.2); }
.dl-card .dl-text { flex: 1; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-card h2 { font-size: 1.6rem; font-weight: 800; }
.dl-card p { color: var(--muted); margin: 0.4rem 0 0; }
.dl-foot { color: var(--muted); font-size: 0.9rem; margin-top: 1.3rem; text-align: center; }

/* footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 4rem; text-align: center; border-top: 1px solid var(--border); }
.footer .brand { justify-content: center; margin-bottom: 0.6rem; }
.footer p { color: var(--muted); margin: 0.3rem 0; }
.footer .copy { font-size: 0.85rem; opacity: 0.8; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { order: -1; }
  .cards, .tiers, .audience, .sc-grid, .components { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .dl-card { flex-direction: column; text-align: center; }
  .dl-card .dl-text { text-align: center; }
}

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .blink { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
