/* ───────────────────────────────────────────────────────────────
   bulletz.ai — landing page
   Committed dark, matching the app's palette. No accent colour:
   "active" and "primary" are simply brighter.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0b0b0c;
  --bg-raised: #131315;
  --bg-input:  #1a1a1d;
  --line:      #27272b;
  --line-soft: #1d1d21;
  --fg:        #ededf0;
  --fg-dim:    #9a9aa2;
  --fg-faint:  #636369;
  --fg-quiet:  #8a8a92;   /* --fg-faint is a hair under 4.5:1 on this bg; use this for prose */
  --accent:     #e8e8ec;
  --accent-ink: #0b0b0c;
  --agent:     #b78cff;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --pad: 28px;
  --maxw: 1080px;
  --maxw-wide: 1320px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--fg); text-decoration-color: var(--fg-faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg-dim); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--fg);
  background: var(--bg-input);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 0.08em 0.36em;
  white-space: nowrap;
}

strong { font-weight: 600; color: var(--fg); }
em { font-style: italic; color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide { max-width: var(--maxw-wide); }

/* ───────────────────────── buttons ───────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 550; line-height: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-raised); border-color: #3a3a40; }
.btn-lg { font-size: 15px; padding: 13px 22px; border-radius: 9px; }

/* ───────────────────────── nav ───────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 62px;
}
.brand { display: flex; align-items: center; text-decoration: none; }

/* The artwork is near-black; invert it so it reads on the dark page. */
.wordmark {
  height: 22px; width: auto;
  filter: invert(1);
  opacity: 0.95;
}
.brand:hover .wordmark { opacity: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) {
  font-size: 14px; color: var(--fg-dim); text-decoration: none;
  padding: 8px 11px; border-radius: 7px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--fg); background: var(--bg-raised); }
.nav-links .btn { margin-left: 6px; }

@media (max-width: 1000px) { .nav-links > a:not(.btn) { display: none; } }
@media (max-width: 560px) {
  .nav-src { display: none; }
  .nav-in { height: 56px; }
  .wordmark { height: 19px; }
}

/* ───────────────────────── hero ───────────────────────── */

.hero { padding: clamp(56px, 10vw, 112px) 0 0; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 40%;
  background: radial-gradient(60% 55% at 50% 22%, rgba(237,237,240,0.07), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.br-lg { display: none; }
@media (min-width: 720px) { .br-lg { display: inline; } }

.lede {
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--fg-dim);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.lede-sm { font-size: 17px; margin: 0 0 26px; max-width: 60ch; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-note {
  margin-top: 18px;
  font-size: 13px; color: var(--fg-quiet);
}
.cta-note a { color: var(--fg-dim); }

/* ───────────────────────── screenshots ───────────────────────── */

.shot { margin: 0; }
.shot-pan { border-radius: 12px; }
.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.045) inset,
    0 40px 80px -32px rgba(0,0,0,0.9),
    0 0 90px -40px rgba(237,237,240,0.22);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 13.5px; color: var(--fg-quiet);
  text-align: center;
  max-width: 640px; margin-left: auto; margin-right: auto;
  line-height: 1.5;
}
.shot figcaption code { font-size: 0.85em; color: var(--fg-dim); white-space: normal; }

.shot-hero { margin-top: clamp(44px, 7vw, 76px); }

/* A 1440px app shot shrunk to a phone is unreadable, so let it pan instead. */
@media (max-width: 760px) {
  .shot-pan {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .shot-pan img { min-width: 880px; }
  .shot { display: flex; flex-direction: column; }
  .shot figcaption { order: 2; }
  .shot::after {
    order: 1;
    content: "swipe to pan \2192";
    display: block;
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--fg-quiet);
    text-align: center;
  }
  .shot figcaption { margin-top: 12px; }
}

#look .shot + .shot { margin-top: clamp(48px, 7vw, 84px); }
#look .wrap-wide { margin-top: clamp(32px, 5vw, 52px); }

/* ───────────────────────── sections ───────────────────────── */

.section { padding: clamp(68px, 10vw, 118px) 0; }
.band { background: #090909; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band + .band { border-top: none; }
#problem { padding: clamp(68px, 10vw, 110px) 0; margin-top: clamp(68px, 10vw, 118px); }

.kicker {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: 16px;
}

.section-h {
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: -0.028em;
  max-width: 24ch;
  margin-bottom: 40px;
}
#problem .section-h { max-width: 30ch; }

.band-close {
  margin-top: 40px;
  max-width: 66ch;
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.6;
}
.band-close.small { font-size: 14.5px; color: var(--fg-quiet); }
.band-close.small code { font-size: 0.9em; }

/* ───────────────────────── problem cards ───────────────────────── */

.two { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  padding: 26px 26px 28px;
}
.stat-card .num {
  font-family: var(--mono); font-size: 12px; color: var(--fg-quiet);
  display: block; margin-bottom: 18px; letter-spacing: 0.08em;
}
.stat-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.02em; }
.stat-card p { color: var(--fg-dim); font-size: 15px; }

.two-prose > div > p { color: var(--fg-dim); font-size: 15.5px; }
.two-prose code { white-space: normal; }

/* ───────────────────────── diagram ───────────────────────── */

.diagram {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 60%),
    var(--bg-raised);
  padding: clamp(22px, 4vw, 40px);
}
@media (min-width: 820px) {
  .diagram { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: center; }
}

.dnode {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 20px 22px 22px;
  position: relative;
}
.dlabel {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-quiet);
  margin: 0 0 14px;
}
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li {
  font-family: var(--mono); font-size: 13.5px; color: var(--fg);
  padding: 3px 0;
}
.dnode-server .dlist li { color: var(--fg); }
.dmates {
  font-family: var(--mono); font-size: 12px; color: var(--fg-quiet);
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px;
}

.dlink {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 0;
  flex-direction: column;
}
.dlink-line { background: var(--line); width: 1px; height: 22px; display: block; }
.dlink-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; background: var(--bg);
  white-space: nowrap;
}
@media (min-width: 820px) {
  .dlink { flex-direction: row; padding: 0 20px; }
  .dlink-line { width: 36px; height: 1px; }
}

.callout {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--fg-dim);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 24px 26px;
  max-width: 68ch;
}
.callout p { color: var(--fg-dim); font-size: 16px; }
.callout-hard {
  color: var(--fg) !important;
  font-size: 17px !important;
  font-weight: 550;
  letter-spacing: -0.015em;
}

/* ───────────────────────── why grid ───────────────────────── */

.grid { display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden;
  grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--bg); padding: 26px 24px 28px; }
.card h3 {
  font-size: 16.5px; letter-spacing: -0.018em;
  margin-bottom: 10px; line-height: 1.3;
}
.card p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }
.card code { white-space: normal; }
.agent-handle { color: var(--agent); border-color: #2e2440; white-space: nowrap; }

/* ───────────────────────── spec list ───────────────────────── */

.spec { margin: 0; border-top: 1px solid var(--line-soft); }
.spec > div {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 720px) {
  .spec > div { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: baseline; }
}
.spec dt { font-size: 15px; font-weight: 550; letter-spacing: -0.012em; }
.spec dd { margin: 0; color: var(--fg-dim); font-size: 14.5px; }
.spec dd code { white-space: nowrap; }

/* ───────────────────────── steps / code ───────────────────────── */

.steps { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }
.step { min-width: 0; }

.step h3 {
  font-size: 18px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 11px; letter-spacing: -0.02em;
}
.step-n {
  font-family: var(--mono); font-size: 12px;
  width: 24px; height: 24px; flex: 0 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--fg-dim); background: var(--bg-raised);
}
.step > p { color: var(--fg-dim); font-size: 15px; margin-bottom: 18px; }
.step > p code { white-space: nowrap; }

.code {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #101012;
}
.code-title {
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-quiet);
  letter-spacing: 0.06em;
}
.copy {
  font-family: var(--sans); font-size: 11.5px; font-weight: 550;
  color: var(--fg-dim); background: transparent;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 9px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.copy:hover { color: var(--fg); border-color: #3a3a40; background: var(--bg-input); }

.code pre {
  margin: 0; padding: 18px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.code pre code {
  font-family: var(--mono);
  font-size: 13px; line-height: 1.65;
  background: none; border: none; padding: 0; color: var(--fg);
  white-space: pre;
  display: block;
}
.code .c { color: var(--fg-quiet); }

/* ───────────────────────── self-host lists ───────────────────────── */

.list-h { font-size: 13px; font-family: var(--mono); color: var(--fg-quiet);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative; padding: 7px 0 7px 26px;
  color: var(--fg-dim); font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft);
}
.checks li:last-child { border-bottom: none; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 11px; height: 11px;
  border: 1px solid #3c3c43; border-radius: 3px;
}
.checks code { white-space: nowrap; }

/* ───────────────────────── status ───────────────────────── */

.gaps { list-style: none; margin: 0 0 32px; padding: 0; max-width: 68ch; }
.gaps li {
  padding: 13px 0 13px 24px; position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-dim); font-size: 15.5px;
}
.gaps li::before {
  content: ""; position: absolute; left: 2px; top: 23px;
  width: 7px; height: 1px; background: var(--fg-quiet);
}

.warn {
  border: 1px solid var(--line);
  border-left: 2px solid var(--fg-dim);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 20px 24px;
  max-width: 68ch;
}
.warn p { color: var(--fg-dim); font-size: 15.5px; }

.final-cta {
  margin-top: clamp(44px, 7vw, 72px);
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ───────────────────────── footer ───────────────────────── */

.foot {
  border-top: 1px solid var(--line-soft);
  background: #090909;
  padding: 44px 0 56px;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.footmark { width: 26px; height: 26px; filter: invert(1); opacity: 0.6; flex: 0 0 26px; }
.foot-brand p { font-size: 14px; color: var(--fg-dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 14px; color: var(--fg-dim); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.foot-legal {
  width: 100%; font-size: 12.5px; color: var(--fg-quiet);
  padding-top: 22px; border-top: 1px solid var(--line-soft);
  margin: 0;
}

@media (max-width: 680px) {
  :root { --pad: 20px; }
  .foot-links { margin-left: 0; }
}
