/* ============================================================
   TOKENS — the page wears the editor's own colour scheme.
   Each hue keeps the meaning it has inside the code.
   ============================================================ */
:root{
  color-scheme: dark;

  --ground:    #07090D;
  --ground-2:  #0A0E14;
  --panel:     #0E141C;
  --panel-2:   #131B25;
  --panel-3:   #182231;

  --line:      rgba(138,154,172,.15);
  --line-2:    rgba(138,154,172,.28);

  --ink:       #E9EEF5;
  --ink-2:     #AEBBC9;
  --ink-3:     #7C8B9D;
  --ink-4:     #5A6878;

  --mint:      #6AE3B1;   /* vim mode block  → primary accent  */
  --ember:     #FF6541;   /* keyword         → one hot moment  */
  --cyan:      #66D9EF;   /* operator        → links           */
  --violet:    #CA94FF;   /* number          → metrics         */
  --sand:      #E6DB74;   /* string          */
  --leaf:      #72C05D;   /* function        */

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --gut: 232px;      /* the section gutter, echoing line numbers */
  --pad: 40px;
  --rule: 1px solid var(--line);
}

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

body{
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-variation-settings: 'wdth' 100;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection{ background: rgba(106,227,177,.26); color: #fff; }

a{ color: inherit; text-decoration: none; }

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

/* ============================================================
   TYPE SCALE
   ============================================================ */
.display{
  font-family: var(--display);
  font-variation-settings: 'wdth' 116;
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: .96;
  text-wrap: balance;
  margin: 0;
}
h1.display{ font-size: clamp(2.6rem, 6.2vw, 4.55rem); }
h2.display{ font-size: clamp(2rem, 3.9vw, 3rem); }
h3.display{ font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-variation-settings:'wdth' 106; font-weight: 700; letter-spacing: -.018em; line-height: 1.2; }

.lede{
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

.label{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0;
}

p{ margin: 0; }

/* Syntax tokens — shared by the live editor and every static snippet */
.token.keyword,   .tk-kw   { color: var(--ember); }
.token.operator,  .tk-op   { color: var(--cyan); }
.token.function,  .tk-fn   { color: var(--leaf); }
.token.string,    .tk-str  { color: var(--sand); }
.token.number,    .tk-num  { color: var(--violet); }
.token.comment,   .tk-cm   { color: var(--ink-4); font-style: italic; }
.token.attr,      .tk-attr { color: var(--mint); }
.token.punctuation{ color: #B9C6D4; }
.tk-dim  { color: var(--ink-4); }
.tk-time { color: #6B7684; }
.tk-ok   { color: var(--mint); }
.tk-warn { color: var(--sand); }

/* ============================================================
   SHELL / GRID
   ============================================================ */
.wrap{ width: min(1280px, 100% - 44px); margin-inline: auto; }

.band{ border-top: var(--rule); }

.section{
  display: grid;
  grid-template-columns: var(--gut) minmax(0, 1fr);
  gap: 0 56px;
  padding: 108px 0 112px;
}
.section > .gutter{
  position: sticky;
  top: 104px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gutter .tilde{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-4);
  line-height: 1.5;
  opacity: .5;
  user-select: none;
}
.gutter .g-title{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mint);
}
.gutter .g-note{
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-4);
  max-width: 24ch;
}

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7,9,13,.76);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: var(--rule);
}
.header-in{
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .caret{
  display: inline-block;
  width: 8px;
  height: 17px;
  background: var(--mint);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink{ 0%,50%{opacity:1} 50.01%,100%{opacity:.15} }

.nav{
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.nav a{
  color: var(--ink-3);
  transition: color .16s ease;
  position: relative;
  padding: 4px 0;
}
.nav a:hover{ color: var(--ink); }
.nav a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: var(--mint);
  transition: right .22s cubic-bezier(.4,0,.2,1);
}
.nav a:hover::after{ right:0; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover{ border-color: var(--ink-3); background: rgba(255,255,255,.035); }
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--mint);
  border-color: var(--mint);
  color: #04150E;
  font-weight: 700;
}
.btn-primary:hover{ background: #7DEBBE; border-color: #7DEBBE; color: #04150E; }
.btn-sm{ height: 34px; padding: 0 13px; font-size: 11.5px; }
.header .btn{ height: 34px; padding: 0 14px; font-size: 12px; }
.btn .arrow{ transition: transform .2s cubic-bezier(.4,0,.2,1); }
.btn:hover .arrow{ transform: translateX(3px); }
.btn .whatsapp-icon{ width: 15px; height: 15px; flex: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  padding: 74px 0 96px;
  overflow: hidden;
}
/* character-cell grid, faded out at the edges */
.hero::before{
  content:"";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 150%;
  background-image:
    repeating-linear-gradient(to right, rgba(138,154,172,.055) 0 1px, transparent 1px 8.4px),
    repeating-linear-gradient(to bottom, rgba(138,154,172,.055) 0 1px, transparent 1px 21px);
  -webkit-mask-image: radial-gradient(115% 78% at 62% 34%, #000 0%, transparent 72%);
          mask-image: radial-gradient(115% 78% at 62% 34%, #000 0%, transparent 72%);
  pointer-events: none;
}
/* screen bleed behind the editor */
.hero::after{
  content:"";
  position: absolute;
  right: -6%;
  top: 16%;
  width: 720px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(106,227,177,.15), rgba(102,217,239,.07) 55%, transparent 78%);
  filter: blur(28px);
  pointer-events: none;
  animation: breathe 13s ease-in-out infinite;
}
@keyframes breathe{ 0%,100%{ opacity:.72; transform: scale(1) } 50%{ opacity:1; transform: scale(1.06) } }

.hero-in{
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 0 64px;
  align-items: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px 6px 11px;
  background: rgba(255,255,255,.02);
}
.eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(106,227,177,.16);
}

h1.display .quiet{
  display: block;
  color: var(--ink-3);
  font-variation-settings: 'wdth' 100;
  font-weight: 500;
  font-size: .58em;
  letter-spacing: -.018em;
  margin-top: .28em;
}
h1.display .kw{ color: var(--ember); }
h1.display .fn{ color: var(--mint); }

.hero-copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 11px; }

.hero-facts{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: var(--rule);
  padding-top: 18px;
  width: 100%;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.hero-facts span{ padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line); }
.hero-facts span:last-child{ border-right: 0; }
.hero-facts b{ color: var(--ink); font-weight: 500; }

/* ============================================================
   THE EDITOR
   ============================================================ */
.editor-shell{ position: relative; }

.code-editor{
  --ed-fs: 13px;
  --ed-lh: 21px;
  position: relative;
  border: 1px solid rgba(138,154,172,.2);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.045) inset,
    0 30px 60px -22px rgba(0,0,0,.85),
    0 0 0 1px rgba(0,0,0,.4);
  font-family: var(--mono);
}

/* title bar + tabs */
.ed-bar{
  display: flex;
  align-items: stretch;
  background: var(--ground-2);
  border-bottom: 1px solid rgba(138,154,172,.14);
  min-height: 40px;
}
.ed-lights{ display: flex; align-items: center; gap: 7px; padding: 0 15px; }
.ed-lights i{ width: 10px; height: 10px; border-radius: 50%; display: block; }
.ed-lights i:nth-child(1){ background: rgba(255,101,65,.55); }
.ed-lights i:nth-child(2){ background: rgba(230,219,116,.45); }
.ed-lights i:nth-child(3){ background: rgba(106,227,177,.45); }

.ed-tabs{ display: flex; align-items: stretch; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.ed-tabs::-webkit-scrollbar{ display: none; }
.ed-tab{
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(138,154,172,.12);
  border-top: 2px solid transparent;
  background: transparent;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 12px;
  padding: 0 17px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .16s ease, background .16s ease;
}
.ed-tab:hover{ color: var(--ink-2); background: rgba(255,255,255,.025); }
.ed-tab[aria-selected="true"]{
  color: var(--ink);
  background: var(--panel);
  border-top-color: var(--mint);
}
.ed-tab .ext{ font-size: 10px; opacity: .55; }

.ed-tools{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 12px;
}
.speed{
  display: flex;
  border: 1px solid rgba(138,154,172,.2);
  border-radius: 3px;
  overflow: hidden;
}
.speed button{
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 5px 8px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.speed button + button{ border-left: 1px solid rgba(138,154,172,.16); }
.speed button:hover{ color: var(--ink-2); }
.speed button[aria-pressed="true"]{ background: rgba(106,227,177,.14); color: var(--mint); }

.icon-btn{
  appearance: none;
  border: 1px solid rgba(138,154,172,.2);
  background: transparent;
  color: var(--ink-3);
  border-radius: 3px;
  width: 27px; height: 25px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover{ color: var(--mint); border-color: rgba(106,227,177,.45); }
.icon-btn svg{ width: 13px; height: 13px; }

/* code surface */
.code-editor .codes-container{
  display: flex;
  padding: 14px 0 14px 0;
  height: calc(var(--ed-lh) * 12 + 28px);
  line-height: var(--ed-lh);
  font-size: var(--ed-fs);
  overflow: hidden;
  background: var(--panel);
  color: #E4EAF1;
}
.code-editor .line-numbers-container{
  color: rgba(138,154,172,.42);
  user-select: none;
}
.code-editor .single-line-number{
  padding-left: 14px;
  padding-right: 12px;
  text-align: right;
  min-width: 46px;
  font-variant-numeric: tabular-nums;
}
.code-editor .single-line-number.on{ color: var(--ink-2); }
.code-editor .text-codes{
  flex-grow: 1;
  min-width: 0;          /* without this the <pre> forces the page wider */
  padding-left: 6px;
  padding-right: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.code-editor .text-codes::-webkit-scrollbar{ display: none; }
.code-editor pre.actual-code{
  margin: 0;
  font: inherit;
  white-space: pre;
}
.code-editor pre.actual-code::after{
  content: "";
  display: inline-block;
  width: 7.6px;
  height: 14px;
  vertical-align: -2px;
  background: var(--mint);
  animation: blink 1.05s steps(1) infinite;
}
.code-editor.done pre.actual-code::after{ opacity: .35; }
.code-editor .typing-area{ position: relative; display: block; }

/* autocomplete popover */
.auto-complete-dialog{
  display: none;
  position: absolute;
  z-index: 5;
  min-width: 190px;
  background: var(--panel-3);
  border: 1px solid rgba(138,154,172,.26);
  border-radius: 4px;
  box-shadow: 0 16px 34px -12px rgba(0,0,0,.85);
  overflow: hidden;
}
.auto-complete-dialog ul{
  list-style: none;
  padding: 0;
  margin: 0;
  height: 104px;
  overflow: hidden;
  font-size: 12.5px;
}
.auto-complete-dialog li{
  padding: 4px 12px 4px 26px;
  color: var(--ink-3);
  position: relative;
  white-space: nowrap;
}
.auto-complete-dialog li::before{
  content: "ƒ";
  position: absolute;
  left: 10px;
  color: var(--leaf);
  opacity: .7;
}
.auto-complete-dialog li.active{
  background: rgba(106,227,177,.15);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--mint);
}

/* status bar */
.code-editor .status-bar{
  display: flex;
  align-items: stretch;
  background: #0A1B2B;
  color: #8A9AAC;
  font-size: 11.5px;
  border-top: 1px solid rgba(138,154,172,.12);
}
.code-editor .status-bar > div{ display: flex; align-items: center; }
.code-editor .status-bar .right{ flex-grow: 1; justify-content: flex-end; padding: 4px 12px; gap: 12px; }
.code-editor .status-bar .editingMode{
  background: var(--mint);
  color: #04150E;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 11px;
}
.code-editor .status-bar .prompt{ padding: 0 12px; color: var(--mint); gap: 7px; }
.code-editor .status-bar .lang{ color: var(--ink-4); }
.code-editor .status-bar .lineProgress,
.code-editor .status-bar .colPos{ font-variant-numeric: tabular-nums; }

/* terminal */
.code-editor .term-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: #0B1016;
  border-top: 1px solid rgba(138,154,172,.12);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.code-editor .term-head .pip{
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(114,192,93,.14);
}
.code-editor .console{
  padding: 11px 14px 14px;
  font-size: 12.4px;
  line-height: 21px;
  background: #090C11;
  height: calc(21px * 6 + 25px);
  overflow: hidden;
  color: #C4CEDA;
}
.code-editor .console .single-line{ white-space: pre; }
.code-editor .console .single-line.pending{ visibility: hidden; }
.code-editor .console .dollar-sign{ color: var(--cyan); margin-right: 8px; }
.code-editor .console .single-line.typing .command::after{
  content: "";
  display: inline-block;
  width: 7.2px; height: 13px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1.05s steps(1) infinite;
}

/* the caption under the editor */
.ed-caption{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  flex-wrap: wrap;
}
.ed-caption .k{
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--ink-3);
}

/* ============================================================
   SPEC BAND
   ============================================================ */
.specs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.spec{
  padding: 30px 28px 32px;
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec:last-child{ border-right: 0; }
.spec .n{
  font-family: var(--display);
  font-variation-settings: 'wdth' 110;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.spec .d{ font-size: 13.5px; color: var(--ink-3); line-height: 1.5; max-width: 26ch; }

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.card{
  position: relative;
  background: var(--ground);
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .25s ease;
  isolation: isolate;
}
.card::before{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,0%), rgba(106,227,177,.09), transparent 68%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.card:hover::before{ opacity: 1; }
.card .c-tag{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.card p{ color: var(--ink-3); font-size: 14.5px; line-height: 1.65; }
.card code{
  font-family: var(--mono);
  font-size: .88em;
  color: var(--sand);
  background: rgba(230,219,116,.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.card .c-demo{
  margin-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}

/* ============================================================
   PIPELINE
   ============================================================ */
.steps{ display: flex; flex-direction: column; gap: 1px; background: var(--line); border-top: var(--rule); border-bottom: var(--rule); }
.step{
  background: var(--ground);
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 26px;
  padding: 30px 0 32px;
  align-items: start;
}
.step .idx{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  padding-top: 4px;
  letter-spacing: .1em;
}
.step .s-body{ display: flex; flex-direction: column; gap: 10px; }
.step p{ color: var(--ink-3); font-size: 14.8px; line-height: 1.68; max-width: 68ch; }

.split{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  margin-top: 34px;
}
.pane{
  border: var(--rule);
  border-radius: 5px;
  background: var(--ground-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pane-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: rgba(255,255,255,.015);
}
.pane-head .who{ color: var(--mint); }
.pane-head .who.alt{ color: var(--violet); }
.pane pre{
  margin: 0;
  padding: 16px 16px 18px;
  font-family: var(--mono);
  font-size: 12.2px;
  line-height: 1.75;
  overflow-x: auto;
  color: #D6DEE8;
  flex: 1;
}
.pane pre::-webkit-scrollbar{ height: 8px; }
.pane pre::-webkit-scrollbar-thumb{ background: rgba(138,154,172,.2); border-radius: 8px; }
.pane .mark{ background: rgba(255,101,65,.13); border-radius: 2px; padding: 1px 0; box-shadow: 0 0 0 1px rgba(255,101,65,.2); }

.beats{ list-style: none; margin: 0; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.beats li{
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.6px;
  color: var(--ink-2);
  line-height: 1.5;
}
.beats li:last-child{ border-bottom: 0; }
.beats .t{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); padding-top: 2px; font-variant-numeric: tabular-nums; }
.beats b{ color: var(--ink); font-weight: 600; }

/* ============================================================
   API
   ============================================================ */
.api-grid{ display: flex; flex-direction: column; gap: 34px; }

.tbl{ width: 100%; border-collapse: collapse; font-size: 13.8px; }
.tbl-wrap{ overflow-x: auto; border: var(--rule); border-radius: 5px; }
.tbl th{
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: var(--rule);
  background: rgba(255,255,255,.015);
  white-space: nowrap;
}
.tbl td{
  padding: 13px 18px;
  border-bottom: 1px solid rgba(138,154,172,.09);
  color: var(--ink-3);
  vertical-align: top;
  line-height: 1.55;
}
.tbl tr:last-child td{ border-bottom: 0; }
.tbl td:first-child{ white-space: nowrap; }
.tbl code{ font-family: var(--mono); font-size: 12.4px; color: var(--mint); }
.tbl .def{ font-family: var(--mono); font-size: 12.4px; color: var(--violet); font-variant-numeric: tabular-nums; }

/* ============================================================
   USE CASES
   ============================================================ */
.uses{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: var(--rule); border-radius: 4px; overflow: hidden; }
.use{ background: var(--ground); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 9px; }
.use .u-k{ font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.use p{ font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ============================================================
   PALETTE LEGEND
   ============================================================ */
.legend{ display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 1px; background: var(--line); border: var(--rule); border-radius: 4px; overflow: hidden; }
.sw{ background: var(--ground); padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.sw .chip{ width: 100%; height: 4px; border-radius: 2px; }
.sw .hex{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.sw .use-for{ font-size: 12px; color: var(--ink-4); line-height: 1.45; }

/* ============================================================
   CTA
   ============================================================ */
.cta{
  position: relative;
  border-top: var(--rule);
  padding: 104px 0 108px;
  overflow: hidden;
}
.cta::after{
  content:"";
  position:absolute;
  left: 50%; top: 0;
  width: 900px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,101,65,.12), transparent 76%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-in{ position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 74ch; }
.cta h2 .em{ color: var(--ember); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ border-top: var(--rule); padding: 52px 0 46px; }
.foot-grid{ display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0,1fr)); gap: 40px; }
.foot-col{ display: flex; flex-direction: column; gap: 11px; }
.foot-col .h{ font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 3px; }
.foot-col a{ color: var(--ink-3); font-size: 14px; transition: color .16s ease; width: fit-content; }
.foot-col a:hover{ color: var(--mint); }
.foot-note{ font-size: 13.5px; color: var(--ink-4); line-height: 1.6; max-width: 40ch; }
.foot-base{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Hidden only once JS has confirmed the observer is live, so the page is
   never blank if scripting or IntersectionObserver is unavailable. */
.rise{ transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
html.js-reveal .rise:not(.in){ opacity: 0; transform: translateY(10px); }
.rise.d1{ transition-delay: .06s } .rise.d2{ transition-delay: .12s } .rise.d3{ transition-delay: .18s }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px){
  .hero-in{ grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero-copy{ max-width: 640px; }
  :root{ --gut: 190px; }
}
@media (max-width: 900px){
  .nav{ display: none; }
  .section{ grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 72px 0 76px; }
  .section > .gutter{ position: static; flex-direction: row; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .gutter .tilde{ display: none; }
  .gutter .g-note{ max-width: none; font-size: 13px; }
  .specs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(2){ border-right: 0; }
  .spec:nth-child(-n+2){ border-bottom: var(--rule); }
  .cards, .split, .uses{ grid-template-columns: minmax(0, 1fr); }
  .legend{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 620px){
  .wrap{ width: min(100%, 100% - 32px); }
  .code-editor{ --ed-fs: 11.5px; --ed-lh: 19px; }
  .code-editor .console{ font-size: 11px; }
  .code-editor .single-line-number{ min-width: 36px; padding-left: 9px; padding-right: 8px; }
  .ed-tools{ display: none; }
  .step{ grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .beats li{ grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .legend{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid{ grid-template-columns: minmax(0, 1fr); }
  .hero{ padding: 44px 0 64px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js-reveal .rise:not(.in){ opacity: 1; transform: none; }
}
