  :root {
    --bg: #0c0906;
    --panel: #171008;
    --panel-2: #1d1409;
    --border: #2c2015;
    --text: #f3ece3;
    --muted: #9c8a76;
    --cf-orange: #f38020;
    --cf-orange-dim: rgba(243,128,32,0.14);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, Roboto, sans-serif;
    overflow-x: hidden;
  }
  /* A single soft glow behind the hero, not a texture -- fades out before
     the fold rather than tiling across the whole page. */
  .glow-bg {
    position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 500px;
    background: radial-gradient(closest-side, rgba(243,128,32,0.16), transparent);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
  }
  .wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 24px 32px 64px; }
  section, header { position: relative; z-index: 1; }

  header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    padding: 10px 20px;
    margin-bottom: 64px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(23,16,8,0.6);
    backdrop-filter: blur(6px);
    font-size: 13px;
  }
  .mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
  .mark a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
  .mark-icon {
    width: 22px; height: 22px; border-radius: 6px; display: block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06) inset;
  }
  .nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
  .nav-link { color: var(--muted); text-decoration: none; font-size: 13px; }
  .nav-link:hover { color: var(--text); }
  .nav-cta {
    display: inline-flex; align-items: center;
    background: var(--cf-orange); color: #17100a;
    border-radius: 999px; padding: 6px 16px;
    font-size: 13px; font-weight: 600; text-decoration: none;
  }
  .nav-cta:hover { filter: brightness(1.08); }
  .star-badge {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 6px 5px 10px; font-size: 12px; color: var(--muted); text-decoration: none;
  }
  .star-badge:hover { color: var(--text); border-color: #3a2c1c; }
  .star-badge svg { width: 13px; height: 13px; fill: currentColor; }
  .star-badge .count { background: var(--panel-2); border-radius: 999px; padding: 2px 8px; color: var(--text); font-weight: 600; }
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 7px; color: var(--muted);
  }
  .icon-btn:hover { color: var(--text); background: var(--panel); }

  /* ----------------------------------------------------- motion / reveal
     Progressive enhancement: content is fully visible with no JS/CSS
     animation support. `.js-anim` is only added once script has run and
     confirmed the visitor hasn't asked for reduced motion, so the hidden
     starting state only ever applies when it can also be animated in. */
  .js-anim .reveal-up {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
  }
  .js-anim .reveal-up.in { opacity: 1; transform: translateY(0); }
  .reveal-up.d1 { transition-delay: 0s; }
  .reveal-up.d2 { transition-delay: .08s; }
  .reveal-up.d3 { transition-delay: .16s; }
  .reveal-up.d4 { transition-delay: .24s; }
  .reveal-up.d5 { transition-delay: .32s; }
  .reveal-up.d6 { transition-delay: .4s; }

  .hover-lift {
    transition: transform .35s cubic-bezier(0.16,1,0.3,1), border-color .35s ease, box-shadow .35s ease;
  }
  .hover-lift:hover {
    transform: translateY(-4px);
    border-color: #3a2c1c;
    box-shadow: 0 18px 40px -24px rgba(243,128,32,0.35);
  }

  @media (prefers-reduced-motion: reduce) {
    .js-anim .reveal-up { opacity: 1; transform: none; transition: none; }
    .hover-lift, .hover-lift:hover { transition: none; transform: none; }
  }

  /* --------------------------------------------------------------- hero */
  .hero { padding-bottom: 8px; }
  .hero-inner {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw;
    align-items: center;
  }
  .hero-copy { max-width: 46ch; }
  .hero-bg {
    position: absolute; left: -32px; right: -32px; top: -40px; height: 620px;
    z-index: -1; pointer-events: none;
    mask-image: radial-gradient(ellipse 60% 65% at 32% 42%, black, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 60% 65% at 32% 42%, black, transparent 72%);
  }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(243,128,32,0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(243,128,32,0.09) 1px, transparent 1px);
    background-size: 44px 44px;
  }
  .hero-beam {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(243,128,32,0.14) 49%, transparent 64%);
    background-size: 220% 220%;
    mix-blend-mode: screen;
    animation: beam-sweep 10s ease-in-out infinite;
  }
  @keyframes beam-sweep {
    0%, 100% { background-position: 10% 30%; }
    50% { background-position: 90% 70%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-beam { animation: none; background-position: 50% 50%; }
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 14px; margin: 0 0 26px;
    background: var(--panel);
  }
  .eyebrow .dot-cf { width: 6px; height: 6px; border-radius: 50%; background: var(--cf-orange); display: inline-block; }
  h1 { margin: 0 0 22px; }
  .h1-main {
    display: block;
    font-size: clamp(40px, 5.8vw, 72px);
    line-height: 1.0; letter-spacing: -0.03em;
    font-weight: 800; color: var(--text);
  }
  .h1-sub {
    display: block; margin-top: 12px;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.3; letter-spacing: -0.01em;
    font-weight: 500; color: var(--muted);
  }
  .sub {
    color: var(--muted); font-size: 15px; line-height: 1.7;
    margin: 0 0 32px; max-width: 42ch;
  }
  .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 0; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    border: 1px solid transparent;
  }
  .btn-primary { background: var(--cf-orange); color: #17100a; }
  .btn-primary:hover { filter: brightness(1.08); }
  .btn-secondary { background: var(--panel); border-color: var(--border); color: var(--text); }
  .btn-secondary:hover { background: var(--panel-2); border-color: #3a2c1c; }
  .cta-hint { color: var(--muted); font-size: 12.5px; margin-top: 16px; }

  /* Hero visual: the product screenshot as the hero's centerpiece, tilted
     in permanent 3D rest with mouse-driven delta tilt layered on top. */
  .hero-visual { position: relative; }
  .hero-visual-glow {
    position: absolute; inset: -22% -16%; z-index: -1;
    background: radial-gradient(closest-side, rgba(243,128,32,0.32), transparent 70%);
    filter: blur(36px);
  }
  .tilt-card { perspective: 1400px; }
  .tilt-card .msg-frame {
    transform:
      rotateY(calc(-9deg + var(--rx, 0deg)))
      rotateX(calc(5deg + var(--ry, 0deg)))
      scale(var(--s, 1));
    transition: transform .5s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
  }
  .tilt-card:hover .msg-frame { transition: transform .08s linear; }
  .tilt-glare {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 55%);
    transition: opacity .3s ease;
  }
  .tilt-card:hover .tilt-glare { opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .tilt-card .msg-frame { transform: none !important; transition: none; }
  }
  .msg-frame {
    position: relative;
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    background: var(--panel); text-align: left;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.65);
  }
  .msg-frame-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2);
  }
  .msg-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
  .msg-frame img { display: block; width: 100%; height: auto; }
  .msg-frame .skeleton {
    aspect-ratio: 853 / 496; width: 100%;
    background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
  }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy { max-width: none; }
    .sub { max-width: 60ch; }
  }

  /* ------------------------------------------------------------- facts */
  .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 56px 0; }
  .fact-card {
    border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; background: var(--panel);
  }
  .fact-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
  .fact-v { font-size: 14px; }
  .fact-v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
  .fact-card-link {
    display: block; text-decoration: none; color: inherit;
  }
  .fact-card-link .fact-v { display: inline-flex; align-items: center; gap: 7px; color: var(--cf-orange); font-weight: 600; }
  .fact-card-link:hover { border-color: #3a2c1c; }
  .live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
    animation: live-pulse 2s ease-out infinite;
  }
  @keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
    70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
  }

  h2 {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); font-weight: 600; margin: 0 0 24px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .section-lead { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: -14px 0 28px; font-family: inherit; text-transform: none; }

  /* --------------------------------------------------------------- flow */
  .flow { margin-bottom: 64px; }
  .flow-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .flow-step {
    border: 1px solid var(--border); border-radius: 12px; padding: 26px;
    background: var(--panel);
  }
  .flow-step-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .flow-step-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--cf-orange-dim); color: var(--cf-orange);
    border: 1px solid var(--border);
  }
  .flow-step-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .flow-step-icon-emoji { font-size: 18px; line-height: 1; }
  .flow-step-n {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px; color: var(--muted); letter-spacing: 0.05em;
  }
  .flow-step h3 { margin: 0 0 8px; font-size: 17px; }
  .flow-step p { margin: 0; font-size: 13.5px; color: var(--muted); }

  /* ---------------------------------------------------------- platforms */
  .platforms { margin-bottom: 56px; }
  .platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .platform-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; background: var(--panel); }
  .platform-card h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
  .platform-card h3 svg { width: 16px; height: 16px; fill: var(--cf-orange); }
  .platform-card p { margin: 0; font-size: 13px; color: var(--muted); }
  .platform-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

  /* -------------------------------------------------------------- stack */
  .stack { margin-bottom: 56px; }
  .stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .stack-grid .stack-card:first-child { grid-column: span 2; }
  .stack-card {
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--panel);
  }
  .stack-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--cf-orange-dim); color: var(--cf-orange);
  }
  .stack-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .stack-card .k { display: block; font-weight: 600; font-size: 13.5px; }
  .stack-card .v { font-size: 13px; color: var(--muted); }

  /* ----------------------------------------------------------------faq */
  .faq { margin-bottom: 40px; }
  .faq-list { border-top: 1px solid var(--border); }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-q {
    all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 0; font-size: 14.5px; font-weight: 500; color: var(--text);
  }
  .faq-q:hover { color: var(--cf-orange); }
  .faq-q[aria-expanded="true"] { color: var(--cf-orange); }
  .faq-q:focus-visible { outline: 2px solid var(--cf-orange); outline-offset: 4px; border-radius: 4px; }
  .faq-icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
  .faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; top: 50%; left: 50%; background: var(--muted);
    transition: transform .3s cubic-bezier(0.16,1,0.3,1), background .3s ease;
  }
  .faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
  .faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
  .faq-q[aria-expanded="true"] .faq-icon::before { background: var(--cf-orange); }
  .faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
  .faq-a {
    display: grid; grid-template-rows: 1fr;
    transition: grid-template-rows .35s cubic-bezier(0.16,1,0.3,1);
  }
  .faq-a.collapsed { grid-template-rows: 0fr; }
  .faq-a-inner { overflow: hidden; }
  .faq-a p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; max-width: 68ch; }
  .faq-a code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
  }
  @media (prefers-reduced-motion: reduce) {
    .faq-a, .faq-icon::before, .faq-icon::after { transition: none; }
  }

  footer { font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }
  footer p { opacity: 0.7; margin: 0; }
  .socials { display: flex; gap: 18px; margin-bottom: 14px; }
  .socials a { color: var(--muted); text-decoration: none; font-size: 12px; }
  .socials a:hover { color: var(--text); }

  .sticky-cta { display: none; }

  @media (max-width: 760px) {
    body { padding-bottom: 68px; }
    .sticky-cta {
      display: flex; gap: 10px;
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
      background: var(--panel); border-top: 1px solid var(--border);
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }
    .sticky-cta .btn { flex: 1; justify-content: center; padding: 11px 10px; }
    .facts { grid-template-columns: 1fr; }
    .platform-cards { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr; }
    .stack-grid .stack-card:first-child { grid-column: span 1; }
  }
  @media (max-width: 480px) {
    .flow-track { grid-template-columns: 1fr; }
    header { border-radius: 20px; }
  }

/* ------------------------------------------------------------------ docs */

.docs-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; text-align: left; }
.docs { padding-bottom: 120px; }
.docs-nav { position: sticky; top: 24px; display: grid; gap: 4px; }
.docs-nav a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  padding: 6px 0; border-left: 2px solid transparent; padding-left: 12px;
}
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--text); border-left-color: var(--cf-orange); }

.docs h2 {
  font-size: 20px; text-transform: none; letter-spacing: -0.01em; color: var(--text);
  font-family: inherit; font-weight: 600; margin: 40px 0 12px;
}
.docs h2:first-child { margin-top: 0; }
.docs h3 { font-size: 15px; margin: 24px 0 8px; }
.docs p { color: var(--muted); font-size: 14px; margin: 0 0 12px; max-width: 68ch; }
.docs ul, .docs ol { color: var(--muted); font-size: 14px; margin: 0 0 12px; padding-left: 20px; max-width: 68ch; }
.docs li { margin-bottom: 4px; }
.docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}
.docs pre {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin: 0 0 16px;
}
.docs pre code {
  background: none; border: none; padding: 0; font-size: 12.5px; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.docs pre.diagram code { white-space: pre; overflow-wrap: normal; }

.docs-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; }
.docs-table th, .docs-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.docs-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }

.docs-note {
  border: 1px solid var(--border); border-left: 2px solid var(--cf-orange);
  background: var(--panel); border-radius: 6px; padding: 12px 16px; margin: 0 0 16px;
  font-size: 13px; color: var(--muted); max-width: 68ch;
}

@media (max-width: 760px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .docs-nav a { padding-left: 0; border-left: none; }
}
