/* =========================================================
   Debtlint, landing page
   ========================================================= */
:root {
  --bg: #07070a;
  --bg-2: #0b0b10;
  --surface: #0f0f15;
  --surface-2: #14141c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #9a9aa8;
  --dim: #6b6b79;
  --red: #e5222f;
  --red-2: #ff4452;
  --red-soft: rgba(229, 34, 47, 0.14);
  --red-glow: rgba(229, 34, 47, 0.35);
  --green: #3ddc97;
  --radius: 16px;
  --radius-lg: 24px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
em { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  top: -320px; left: 50%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(229, 34, 47, 0.22), transparent 70%);
  filter: blur(30px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 7, 10, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
          backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand b { color: var(--red); font-weight: 700; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.lang button {
  border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; letter-spacing: 0.04em; transition: all 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--text); color: #000; }

.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: transparent; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 22px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.2s, border-color 0.2s;
}
.btn--primary {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 10px 30px -8px var(--red-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 16px 40px -8px var(--red-glow); }
.btn--ghost { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-2); background: rgba(255,255,255,0.08); }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 60px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--red); color: var(--text); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: pulse 2s infinite; }

.hero__title {
  margin: 26px 0 22px;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 800;
}
.grad { background: linear-gradient(95deg, #ff6a74 0%, var(--red) 55%, #9d1620 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__cta--center { justify-content: center; }
.hero__meta { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font-size: 13.5px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { color: var(--red); }

.install {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 14px 13px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 15px; transition: border-color 0.2s, transform 0.2s var(--ease);
}
.install:hover { border-color: var(--red); transform: translateY(-1px); }
.install__prompt { color: var(--red); font-family: var(--mono); }
.install code { font-size: 15px; color: var(--text); }
.install__copy { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--muted); position: relative; }
.install__copy svg { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--ease); }
.install .i-check { opacity: 0; transform: scale(0.5); color: var(--green); }
.install.is-copied .i-copy { opacity: 0; transform: scale(0.5); }
.install.is-copied .i-check { opacity: 1; transform: scale(1); }

/* hero visual */
.hero__visual { position: relative; padding: 0 0 96px; }
.window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.window--hero { box-shadow: 0 40px 100px -30px rgba(229,34,47,0.35), 0 30px 80px -30px #000; }
.window__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.window__bar--sm { padding: 9px 14px; }
.window__title { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 1; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b2b35; }
.dots i:first-child { background: #ff5f57; opacity: 0.85; }
.dots i:nth-child(2) { background: #febc2e; opacity: 0.85; }
.dots i:nth-child(3) { background: #28c840; opacity: 0.85; }
.window__badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: #ff8a92; background: var(--red-soft); border: 1px solid rgba(229,34,47,0.35);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,68,82,0.6); } 70% { box-shadow: 0 0 0 8px rgba(255,68,82,0); } 100% { box-shadow: 0 0 0 0 rgba(255,68,82,0); } }

.window--float {
  position: absolute; right: -18px; bottom: 0; width: min(380px, 86%);
  box-shadow: 0 30px 70px -20px #000, 0 0 0 1px rgba(255,255,255,0.04);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.code { margin: 0; padding: 18px 0; font-size: 13.5px; line-height: 1.75; color: #c9c9d6; overflow-x: auto; tab-size: 4; }
.code--hero { padding: 18px 0 18px; }
.l { display: block; min-height: 1.75em; white-space: pre; }
.ln { display: inline-block; width: 46px; padding-right: 16px; text-align: right; color: var(--dim); user-select: none; }
.dup { position: relative; background: linear-gradient(90deg, rgba(229,34,47,0.16), rgba(229,34,47,0.04)); box-shadow: 3px 0 0 var(--red) inset; }
.dup--2 { background: linear-gradient(90deg, rgba(255,120,60,0.14), rgba(255,120,60,0.03)); box-shadow: 3px 0 0 #ff7a3c inset; }
.k { color: #ff7a85; } .f { color: #7cc4ff; } .s { color: #9be0a9; } .n { color: #ffc578; } .v { color: #9be0a9; } .p { color: #7b7b8d; }
.hl { background: var(--red-soft); color: #ff9aa2; border-radius: 4px; padding: 0 4px; }

.scanline {
  position: absolute; left: 0; right: 0; height: 90px; top: -90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,68,82,0.12), transparent);
  animation: scan 5s linear infinite;
}
@keyframes scan { 0% { top: -90px; } 100% { top: 100%; } }

.term { margin: 0; padding: 14px 16px 16px; font-size: 12.5px; line-height: 1.8; color: #d6d6e0; white-space: pre; overflow: hidden; }
.t-dim { color: var(--dim); } .t-red { color: #ff6a74; font-weight: 600; } .t-hi { color: #ffc578; }
.term .line { opacity: 0; }
.term .line.is-in { opacity: 1; transition: opacity 0.3s; }

.strip {
  margin-top: 70px; padding: 18px 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tint { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section__head { max-width: 760px; margin: 0 0 64px; }
.section__head h2 { margin: 14px 0 18px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.section__head p { margin: 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.section__head a { color: var(--text); border-bottom: 1px solid var(--red); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* cards */
.cards { display: grid; gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(closest-side, var(--red-soft), transparent); opacity: 0; transition: opacity 0.4s; }
.card:hover { border-color: rgba(229,34,47,0.4); transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red-2); margin-bottom: 22px; border: 1px solid rgba(229,34,47,0.25); position: relative; z-index: 1; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.card p { margin: 0; color: var(--muted); font-size: 15px; position: relative; z-index: 1; }

/* trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.trio__item { padding: 36px 32px 32px; position: relative; }
.trio__item + .trio__item { border-left: 1px solid var(--line); }
.trio__n { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.22); display: block; margin-bottom: 36px; }
.trio__item h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.trio__item p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.trio__tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--dim); border: 1px solid var(--line-2); }
.trio__tag::before { content: "✕ "; color: var(--red-2); }

.answer {
  margin-top: 20px; padding: 44px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  border: 1px solid rgba(229,34,47,0.35);
  background: linear-gradient(135deg, rgba(229,34,47,0.12), rgba(229,34,47,0.02) 55%), var(--surface);
}
.answer__glow { position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(closest-side, var(--red-glow), transparent); filter: blur(20px); opacity: 0.6; }
.answer__body, .answer__list { position: relative; z-index: 1; }
.answer h3 { margin: 12px 0 14px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.15; }
.answer p { margin: 0; color: #c1c1cc; font-size: 16.5px; }
.answer p em { color: var(--text); font-style: italic; }
.answer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.answer__list li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); }
.answer__list b { font-size: 15px; }
.answer__list b::before { content: "✓"; color: var(--green); margin-right: 8px; }
.answer__list span { color: var(--muted); font-size: 14px; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: stretch; }
.how__steps { display: flex; flex-direction: column; gap: 10px; position: relative; }
.step {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 20px 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  transition: all 0.3s var(--ease); color: var(--muted);
}
.step:hover { border-color: var(--line-2); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--dim); padding-top: 3px; transition: color 0.3s; }
.step__txt { display: grid; gap: 3px; }
.step b { font-size: 17px; color: var(--text); letter-spacing: -0.01em; }
.step small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.step.is-active { background: linear-gradient(180deg, rgba(229,34,47,0.12), rgba(229,34,47,0.03)); border-color: rgba(229,34,47,0.45); transform: translateX(6px); }
.step.is-active .step__n { color: var(--red-2); }
.how__progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.how__progress i { display: block; height: 100%; width: 0; background: var(--red); }

.how__stage {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 28px; position: relative; min-height: 420px; overflow: hidden;
}
.how__stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(229,34,47,0.1), transparent 55%); pointer-events: none; }
.panel { display: none; position: relative; height: 100%; flex-direction: column; gap: 18px; justify-content: center; }
.panel.is-active { display: flex; animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel__note { margin: 0; font-size: 14px; color: var(--muted); }
.code--sm { font-size: 13px; padding: 16px 20px; }
.code--box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }

.tree { font-family: var(--mono); font-size: 13px; display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.25); }
.tree__row { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tree__row em { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.tree__row--in { padding-left: 18px; color: var(--text); }
.tree__row--in em { color: var(--green); background: rgba(61,220,151,0.1); }
.tree__row--out { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.2); opacity: 0.55; }
.tree__row--out em { text-decoration: none; display: inline-block; color: #ff8a92; background: var(--red-soft); }

/* BPE */
.bpe { display: grid; gap: 22px; }
.bpe__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.chip-label { font-size: 13px; color: var(--muted); }
.bpe__counter { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.bpe__counter b { color: var(--red-2); font-weight: 600; }
.bpe__row { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); min-height: 120px; align-content: flex-start; }
.tok {
  font-family: var(--mono); font-size: 14px; padding: 6px 9px; border-radius: 8px; line-height: 1;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: #d9d9e3;
  transition: all 0.45s var(--ease); position: relative;
}
.tok.is-merged { background: var(--red-soft); border-color: rgba(229,34,47,0.6); color: #ffb3b9; box-shadow: 0 0 22px -4px var(--red-glow); }
.tok.is-merged::after { content: attr(data-id); position: absolute; top: -9px; right: -4px; font-size: 9px; background: var(--red); color: #fff; padding: 2px 5px; border-radius: 6px; font-family: var(--mono); }
.tok.pop { animation: pop 0.6s var(--ease); }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.bpe__foot { display: grid; gap: 12px; }
.bpe__foot p { margin: 0; font-size: 14px; color: var(--muted); }
.bpe__foot b { color: var(--red-2); }
.bpe__foot i { font-style: italic; color: var(--text); }
.vocab { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.vocab__k { color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; }
.vocab__new { color: #ffb3b9; }
.vocab__exp { margin-left: auto; color: var(--dim); }

/* Winnowing */
.wino { display: grid; gap: 14px; }
.wino__lbl { font-family: var(--mono); font-size: 12.5px; color: var(--dim); display: flex; gap: 12px; align-items: baseline; }
.wino__lbl span { color: var(--text); }
.wino__lbl em { color: var(--muted); }
.wino__row { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); }
.wt { font-family: var(--mono); font-size: 13px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: #cfcfda; position: relative; transition: all 0.4s var(--ease); }
.wt.is-fp { border-color: rgba(255,200,120,0.55); color: #ffd9a3; background: rgba(255,200,120,0.08); }
.wt.is-fp::after { content: attr(data-h); position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); font-size: 10px; color: #ffc578; }
.wt.is-match { border-color: var(--red); background: var(--red-soft); color: #ffb3b9; box-shadow: 0 0 18px -3px var(--red-glow); }
.wt.is-match::after { color: #ff8a92; }
.wino__row { padding-bottom: 28px; }
.wino__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--muted); }
.wino__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg--fp { border: 1px solid rgba(255,200,120,0.7); background: rgba(255,200,120,0.15); }
.lg--match { border: 1px solid var(--red); background: var(--red-soft); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--surface);
  position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tile:hover { border-color: rgba(229,34,47,0.4); }
.tile--a { grid-column: span 3; } .tile--b { grid-column: span 3; }
.tile--c { grid-column: span 4; grid-row: span 1; } .tile--d { grid-column: span 2; }
.tile--e { grid-column: span 3; } .tile--f { grid-column: span 3; }
.tile__tag { display: inline-block; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--red-2); margin-bottom: 18px; }
.tile h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 520px; }
.tile code { color: #ffb3b9; background: var(--red-soft); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

.meter { display: flex; gap: 6px; margin-top: 30px; align-items: flex-end; height: 56px; }
.meter i { flex: 1; background: linear-gradient(180deg, var(--red-2), rgba(229,34,47,0.15)); border-radius: 4px; height: 20%; animation: meter 3.2s ease-in-out infinite; }
.meter i:nth-child(1) { animation-delay: 0s; } .meter i:nth-child(2) { animation-delay: .2s; } .meter i:nth-child(3) { animation-delay: .4s; } .meter i:nth-child(4) { animation-delay: .6s; }
.meter i:nth-child(5) { animation-delay: .8s; } .meter i:nth-child(6) { animation-delay: 1s; } .meter i:nth-child(7) { animation-delay: 1.2s; } .meter i:nth-child(8) { animation-delay: 1.4s; }
@keyframes meter { 0%, 100% { height: 15%; } 50% { height: 100%; } }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.langs span { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #d3d3de; background: rgba(255,255,255,0.03); transition: all 0.3s; }
.langs span:hover { border-color: var(--red); color: #fff; background: var(--red-soft); }
.langs span:last-child { color: var(--red-2); border-style: dashed; }

.tuner { margin-top: 26px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); max-width: 640px; }
.tuner__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tuner__top code { background: none; color: var(--muted); padding: 0; font-size: 13px; }
.tuner__top output { font-family: var(--mono); font-weight: 600; color: var(--red-2); font-size: 18px; }
.tuner__blocks { display: flex; gap: 8px; align-items: flex-end; height: 80px; margin-top: 18px; }
.tb { flex: 1; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px dashed var(--line-2); position: relative; transition: all 0.35s var(--ease); }
.tb span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-family: var(--mono); color: var(--dim); }
.tb.is-on { background: linear-gradient(180deg, var(--red-2), var(--red)); border: 1px solid var(--red-2); box-shadow: 0 0 20px -4px var(--red-glow); }
.tb.is-on span { color: #ff8a92; }
.tuner__foot { margin-top: 34px; font-size: 13px; color: var(--muted); }
.tuner__foot #tunerCount { font-family: var(--mono); font-weight: 600; color: var(--text); }
.tuner__foot em { color: var(--dim); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) var(--p, 50%), rgba(255,255,255,0.1) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 6px var(--red-soft); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 6px var(--red-soft); cursor: grab; }
input[type="range"]:focus-visible { outline: 2px solid var(--red-2); outline-offset: 8px; }

.mini-json { margin: 26px 0 0; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); font-size: 12.5px; line-height: 1.7; color: #c9c9d6; overflow-x: auto; }

/* ---------- Integrations ---------- */
.int { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.int__head h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.int__head p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.mini-copy { border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; transition: all 0.2s; }
.mini-copy:hover { color: #fff; border-color: var(--red); }
.mini-copy.is-copied { color: var(--green); border-color: var(--green); }

.pr { border: 1px solid var(--line-2); border-radius: var(--radius); background: #0d1117; overflow: hidden; box-shadow: 0 30px 80px -30px #000; }
.pr__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #21262d; background: #151b23; font-size: 13.5px; }
.pr__avatar { width: 26px; height: 26px; border-radius: 50%; background: #0d1117; display: grid; place-items: center; border: 1px solid #30363d; }
.pr__bot { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid #30363d; color: #8b949e; }
.pr__time { color: #8b949e; margin-left: auto; font-size: 12.5px; }
.pr__body { padding: 20px 22px 24px; }
.pr__body h4 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 1px solid #21262d; }
.pr__sub { margin: 14px 0 16px; font-weight: 600; font-size: 16px; }
.pr__file { font-size: 13px; color: #8b949e; margin: 16px 0 8px; font-family: var(--mono); }
.pr__file a { color: #58a6ff; background: rgba(56,139,253,0.1); padding: 1px 6px; border-radius: 6px; }
.code--pr { background: #161b22; border: 1px solid #21262d; border-radius: 8px; font-size: 12.5px; line-height: 1.65; padding: 14px 16px; }

.agent {
  margin-top: 48px; padding: 44px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.agent h3 { margin: 12px 0 14px; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.03em; line-height: 1.15; }
.agent p { margin: 0 0 20px; color: var(--muted); }
.agent__cmd { display: inline-block; padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,0.4); border: 1px solid var(--line-2); color: #ffb3b9; font-size: 13.5px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; counter-reset: l; }
.loop::before { content: ""; position: absolute; left: 26px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--red), rgba(229,34,47,0.1)); }
.loop li { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); position: relative; transition: border-color 0.3s, transform 0.3s var(--ease); }
.loop li:hover { border-color: rgba(229,34,47,0.5); transform: translateX(6px); }
.loop li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; flex: none; box-shadow: 0 0 0 5px var(--bg-2); position: relative; z-index: 1; }
.loop li b { font-weight: 600; font-size: 15.5px; }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp th, .cmp td { padding: 20px 26px; text-align: left; vertical-align: top; font-size: 15px; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 14px; color: var(--muted); font-weight: 600; padding-top: 24px; padding-bottom: 24px; }
.cmp thead th.is-us { color: var(--text); display: table-cell; }
.cmp thead th.is-us img { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.cmp tbody th { color: var(--text); font-weight: 600; width: 22%; }
.cmp td { color: var(--muted); width: 34%; }
.cmp .is-us { background: linear-gradient(180deg, rgba(229,34,47,0.1), rgba(229,34,47,0.04)); color: #e9e9ee; box-shadow: 1px 0 0 rgba(229,34,47,0.25) inset, -1px 0 0 rgba(229,34,47,0.25) inset; }
.cmp code { font-size: 13px; color: #ffb3b9; background: var(--red-soft); padding: 1px 6px; border-radius: 5px; }
.fineprint { margin: 16px 4px 0; font-size: 13px; color: var(--dim); }

/* ---------- CLI ---------- */
.cli { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.cli__steps { display: grid; gap: 22px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cs { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.cs__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(229,34,47,0.5); background: var(--red-soft); color: #ff9aa2; font-size: 13px; font-weight: 700; margin-top: 2px; }
.cs h4 { margin: 4px 0 10px; font-size: 16px; font-weight: 600; }
.cs h4 small { color: var(--dim); font-weight: 400; }
.cs h4 code { font-size: 13px; color: #ffb3b9; }
.cmd { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: rgba(0,0,0,0.4); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.cmd code { font-size: 13.5px; color: #e6e6ee; white-space: nowrap; }
.cmd code::before { content: "$ "; color: var(--red); }
.cli__ref { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow-x: auto; }
.cli__ref h4 { margin: 0 0 18px; font-size: 16px; }
.flags { width: 100%; border-collapse: collapse; min-width: 480px; }
.flags th { text-align: left; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 0 12px 12px 0; }
.flags td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); vertical-align: top; }
.flags td:first-child code { color: #ffb3b9; }
.flags td code { font-size: 12.5px; color: #d6d6e0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 32px 18px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
a.member:hover { border-color: rgba(229,34,47,0.5); transform: translateY(-5px); }
.member img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 2px solid var(--line-2); box-shadow: 0 0 0 5px rgba(255,255,255,0.03); transition: border-color 0.3s; }
a.member:hover img { border-color: var(--red); }
.member b { font-size: 16px; letter-spacing: -0.01em; }
.role { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-2); }
.role--mgr { color: var(--green); }
.member small { color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 6px; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 130px; }
.cta__box {
  position: relative; overflow: hidden; text-align: center; padding: 80px 32px;
  border-radius: 32px; border: 1px solid rgba(229,34,47,0.35);
  background: radial-gradient(ellipse 80% 120% at 50% 120%, rgba(229,34,47,0.28), transparent 60%), var(--surface);
}
.cta__glow { position: absolute; inset: -1px; background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%); pointer-events: none; }
.cta__logo { margin: 0 auto 28px; width: 190px; height: auto; position: relative; }
.cta__box h2 { position: relative; margin: 0 0 14px; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.05; }
.cta__box p { position: relative; margin: 0 auto 34px; max-width: 560px; color: var(--muted); font-size: 18px; }
.cta__box .hero__cta { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 48px; background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 360px; display: grid; gap: 14px; }
.footer__brand p { margin: 0; color: var(--muted); font-size: 14.5px; }
.footer__brand small { color: var(--dim); }
.footer__brand small a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer h5 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.footer__cols a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer__cols a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 130px; }
  .hero__lead { max-width: 640px; }
  .hero__visual { max-width: 640px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .how__steps { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .step { min-width: 270px; scroll-snap-align: start; }
  .step.is-active { transform: none; }
  .how__progress { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .cli { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; padding: 16px 24px 24px; gap: 2px;
    background: rgba(7,7,10,0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; font-size: 16px; }
  .nav__toggle { display: block; }
  .trio { grid-template-columns: 1fr; }
  .trio__item + .trio__item { border-left: 0; border-top: 1px solid var(--line); }
  .trio__n { font-size: 44px; margin-bottom: 20px; }
  .answer, .agent, .int { grid-template-columns: 1fr; gap: 32px; }
  .answer, .agent { padding: 30px; }
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: auto; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 90px 0; }
  .hero__lead { font-size: 17px; }
  .cards--4 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .window--float { position: relative; right: auto; width: 100%; margin-top: -30px; margin-left: 12px; max-width: 94%; }
  .hero__visual { padding-bottom: 0; }
  .strip { border-radius: 24px; }
  .nav__actions .btn span { display: none; }
  .vocab__exp { margin-left: 0; }
  .cta__box { padding: 56px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* grid children must be allowed to shrink (prevents horizontal overflow) */
.hero__grid > *, .how > *, .int > *, .cli > *, .answer > *, .agent > *, .bento > * { min-width: 0; }
