:root {
  --void: #0b110e;
  --base: #0e1512;
  --raised: #131c17;
  --panel: #16211b;
  --edge: rgba(255, 255, 255, .07);
  --edge-strong: rgba(255, 255, 255, .12);
  --text: #edf1ec;
  --muted: #a7b8ad;
  --dim: #74857b;
  --pine: #2f5d46;
  --pine-bright: #4ea87b;
  --glass: #5cc4a2;
  --glow: rgba(92, 196, 162, .16);
  --bone: #f3f0e9;
  --ink: #21241f;
  --disp: "Fraunces", Georgia, serif;
  --sans: "Public Sans", "Avenir Next", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, .55), 0 14px 44px rgba(0, 0, 0, .42);
  --shadow-deep: 0 2px 4px rgba(0, 0, 0, .5), 0 30px 90px rgba(0, 0, 0, .55);
}

[data-theme="light"] {
  --void: #e7e3d6;
  --base: #f3f0e9;
  --raised: #faf8f3;
  --panel: #fdfcf8;
  --edge: rgba(33, 36, 31, .1);
  --edge-strong: rgba(33, 36, 31, .18);
  --text: #21241f;
  --muted: #4c5148;
  --dim: #79837a;
  --pine-bright: #2f7d58;
  --glass: #2c8f68;
  --glow: rgba(92, 196, 162, .28);
  --shadow-lift: 0 1px 2px rgba(33, 41, 36, .1), 0 14px 40px rgba(33, 41, 36, .12);
  --shadow-deep: 0 2px 4px rgba(33, 41, 36, .12), 0 30px 80px rgba(33, 41, 36, .18);
}
[data-theme="light"] body { color-scheme: light; }
[data-theme="light"] body::before { opacity: .035; }
[data-theme="light"] .why { background: var(--ink); color: var(--bone); box-shadow: none; }
[data-theme="light"] .why .sec-title, [data-theme="light"] .why p strong, [data-theme="light"] .why .sig { color: var(--bone); }
[data-theme="light"] .why p { color: #b9b8ac; }
[data-theme="light"] .why .sec-kick { color: #7de3bd; }
[data-theme="light"] .btn-ink { color: #fff; }
[data-theme="light"] .ticker { background: rgba(33, 36, 31, .05); }
[data-theme="light"] .browser { background: #10171a; }

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 520px at 78% -140px, var(--glow), transparent 68%),
    radial-gradient(900px 600px at -180px 30%, rgba(47, 93, 70, .22), transparent 65%),
    var(--base);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  inset: -80px;
  pointer-events: none;
  z-index: 0;
  background-image: url("/assets/topo.svg");
  background-size: 720px 720px;
  animation: topo-drift 90s linear infinite;
}
@keyframes topo-drift {
  from { background-position: 0 0; }
  to { background-position: 720px 400px; }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
body > * { position: relative; z-index: 2; }

a { color: var(--glass); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--void) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
  transition: box-shadow .25s ease;
}
.site-head.scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: flex-end;
  padding-top: 15px; padding-bottom: 15px;
}
.brand {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark { width: 32px; height: 28px; }
.brand-lockup { height: 36px; width: auto; display: block; }
.brand-lockup.lockup-light { display: none; }
[data-theme="light"] .brand-lockup.lockup-light { display: block; }
[data-theme="light"] .brand-lockup.lockup-dark { display: none; }

.theme-toggle {
  border: 1px solid var(--edge-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .3s;
}
.theme-toggle:hover { color: var(--glass); border-color: var(--glass); transform: rotate(18deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* parallax layers */
.plx { will-change: transform; }
.brand em { font-style: normal; color: var(--glass); }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.site-nav a.here { color: var(--text); background: rgba(255, 255, 255, .07); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s, border-color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-ink {
  background: linear-gradient(180deg, var(--pine-bright), #3c8862);
  color: #08130d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px rgba(78, 168, 123, .28);
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 4px rgba(0, 0, 0, .5), 0 16px 38px rgba(78, 168, 123, .38); }
.btn-line {
  border-color: var(--edge-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn-line:hover { border-color: var(--glass); color: var(--glass); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 40px; position: relative; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .32;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 520px; height: 420px; left: -160px; top: -60px;
  background: radial-gradient(closest-side, rgba(92, 196, 162, .55), transparent);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 620px; height: 460px; right: -180px; bottom: -120px;
  background: radial-gradient(closest-side, rgba(47, 125, 88, .6), transparent);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, 50px) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-80px, -40px) scale(.95); } }

.brand-text {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--dim);
  text-decoration: none;
}
.brand-text:hover { color: var(--text); }

.hero-crown {
  width: 440px;
  max-width: 100%;
  margin-bottom: 26px;
  filter: drop-shadow(0 8px 30px rgba(92, 196, 162, .35));
}
[data-theme="light"] .hero-crown { filter: drop-shadow(0 8px 26px rgba(47, 125, 88, .3)); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1.2deg); } }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: rgba(0, 0, 0, .22);
  overflow: hidden;
  padding: 13px 0;
  margin-top: 26px;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tick 30s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--glass);
  white-space: nowrap;
  padding-right: 56px;
}
.ticker-track span:nth-child(even) { color: var(--dim); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-crown, .ticker-track { animation: none; }
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.hero h1 .stroke {
  color: transparent;
  background: linear-gradient(92deg, var(--glass), var(--pine-bright));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .lede {
  margin-top: 24px;
  font-size: 18.5px;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.65;
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* browser-framed product shot */
.framer {
  position: relative;
}
.framer::before {
  content: "";
  position: absolute;
  inset: -12% -8% -18% -8%;
  background: radial-gradient(58% 58% at 50% 44%, var(--glow), transparent 72%);
  filter: blur(4px);
  z-index: 0;
}
.browser {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  background: #0c1113;
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: perspective(1400px) rotateX(1.6deg) rotateY(-2.4deg);
}
.hero .browser { transform: perspective(1400px) rotateX(2deg) rotateY(-3.4deg) translateY(-4px); }
.browser-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1b2622, #141d19);
  border-bottom: 1px solid var(--edge);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2c3a33; }
.browser-dots span:first-child { background: #b8574c; }
.browser-dots span:nth-child(2) { background: #c9a24b; }
.browser-dots span:nth-child(3) { background: #4ea87b; }
.browser-url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 4px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; }

/* ---------- section rhythm ---------- */
section { padding: 84px 0; }
.sec-kick {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--glass);
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.sec-lede { color: var(--muted); max-width: 58ch; margin-bottom: 44px; font-size: 17px; }

/* ---------- product cards (home shelf) ---------- */
.ledger { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.ledger-row {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: linear-gradient(160deg, var(--panel), var(--raised) 62%);
  box-shadow: var(--shadow-lift);
  padding: 26px 26px 0;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), border-color .22s, box-shadow .22s;
}
a.ledger-row:hover { transform: translateY(-5px); border-color: rgba(92, 196, 162, .45); box-shadow: var(--shadow-deep); }
.ledger-row h3 {
  font-family: var(--disp); font-weight: 600; font-size: 24px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ledger-row .what { color: var(--muted); font-size: 15.5px; max-width: 56ch; margin-top: 10px; }
.ledger-row .state {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--glass);
  border: 1px solid rgba(92, 196, 162, .4);
  background: rgba(92, 196, 162, .09);
  border-radius: 99px;
  padding: 3px 11px;
  white-space: nowrap;
}
.ledger-row .state.dim { color: var(--dim); border-color: var(--edge); background: rgba(255, 255, 255, .03); }
.ledger-thumb {
  margin-top: 22px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--edge-strong);
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -18px 50px rgba(0, 0, 0, .3);
}
.ledger-thumb img { width: 100%; display: block; }
.ledger-row.soon { padding-bottom: 26px; }
.ledger-row.soon .sketch {
  margin-top: 22px;
  height: 120px;
  border-radius: 10px;
  border: 1px dashed var(--edge-strong);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}

/* ---------- why-strip (bone inversion) ---------- */
.why {
  background: var(--bone);
  color: var(--ink);
  border-top: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.why .sec-title { color: var(--ink); }
.why .sec-kick { color: var(--pine); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.why p { color: #4c5148; max-width: 58ch; font-size: 16.5px; }
.why p strong { color: var(--ink); }
.why .sig {
  margin-top: 28px; font-family: var(--disp); font-size: 18px; color: var(--ink);
}
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- product page ---------- */
.prod-hero { padding: 84px 0 30px; }
.crumbline { font-family: var(--mono); font-size: 12.5px; margin-bottom: 28px; color: var(--dim); }
.crumbline a { color: var(--dim); text-decoration: none; }
.crumbline a:hover { color: var(--glass); }
.prod-hero h1 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.018em; line-height: 1.06;
}
.prod-hero .lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 56ch; line-height: 1.65; }
.prod-meta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.prod-meta span {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--edge-strong); border-radius: 99px; padding: 5px 13px;
  background: rgba(255, 255, 255, .03);
}
.shot-main { margin: 48px 0 12px; }
.shot-caption { font-size: 13px; color: var(--dim); font-family: var(--mono); margin-bottom: 34px; }

.feature-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.feature-flow .cell {
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--panel), var(--raised) 70%);
  box-shadow: var(--shadow-lift);
  padding: 26px;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), border-color .22s;
}
.feature-flow .cell:hover { transform: translateY(-4px); border-color: rgba(92, 196, 162, .35); }
.feature-flow .cell h3 {
  font-family: var(--disp); font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em;
}
.feature-flow .cell p { color: var(--muted); font-size: 15.5px; }
.feature-flow .cell .browser { margin-top: 20px; transform: none; }
@media (max-width: 760px) { .feature-flow { grid-template-columns: 1fr; } }

.getblock {
  margin-top: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--raised));
  border: 1px solid var(--edge-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-deep);
  padding: 40px;
}
.getblock::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(480px 200px at 88% -30%, var(--glow), transparent 70%);
  pointer-events: none;
}
.getblock h2 { font-family: var(--disp); font-size: 27px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.getblock p { color: var(--muted); max-width: 62ch; }
.getblock .cta-row { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.getblock code {
  font-family: var(--mono); font-size: 13px; color: var(--glass);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--edge); border-radius: 6px; padding: 3px 9px;
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--edge); padding: 38px 0 48px; margin-top: 40px; background: var(--void); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot p { font-size: 13.5px; color: var(--dim); }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--glass); }

/* ---------- login/share page shells (unused on static site) ---------- */

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .browser { transform: none; }
  .ledger { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { overflow-x: clip; }
  .site-head .wrap { flex-wrap: wrap; row-gap: 4px; }
  .site-nav { gap: 0; }
  .brand { font-size: 18px; }
  .hero { padding: 60px 0 30px; }
  .hero h1 { overflow-wrap: break-word; }
  .hero .lede, .sec-lede, .prod-hero .lede { max-width: none; }
  section { padding: 56px 0; }
  .getblock { padding: 26px; }
}
