:root {
  --accent: #0177fd;
  --accent-soft: #0177fd14;
  --dark: #1a1a1a;
  --void: #0b0b0b;
  --white: #fff;
  --light: #f9f8f6;
  --light2: #f1efea;
  --muted: #8a8880;
  --muted-dark: #ffffff99;
  --border: #1a1a1a17;
  --border-dark: #ffffff1a;
  --card-dark: #ffffff0a;
  --red: #e5484d;
  --green: #2fb36a;
  --amber: #f0a500;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.muted-d { color: #ffffff59; }
.small { font-size: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn span { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 10px 30px -10px #0177fdaa; }
.btn-accent:hover { box-shadow: 0 16px 40px -12px #0177fdcc; }
.btn-line { border: 1.5px solid var(--border); background: #ffffffaa; backdrop-filter: blur(6px); }
.btn-line:hover { border-color: var(--dark); }
.btn-line-d { border: 1.5px solid var(--border-dark); color: var(--white); }
.btn-line-d:hover { border-color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: #ffffffd9; backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding: .75rem var(--pad); }
.tk-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.33em;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 28px;          /* change this one number to resize the whole logo */
  letter-spacing: -0.04em;
  color: #0B1220;           /* navy; use #FFFFFF on dark backgrounds */
  text-decoration: none;
}
.tk-logo svg {
  width: 1.45em;
  height: 1.45em;
  fill: currentColor;       /* the mark follows the text color */
}
.nav-links { display: flex; gap: 2rem; font-size: .9rem; font-weight: 500; }
.nav-links a { color: #1a1a1abf; transition: color .2s; }
.nav-links a:hover { color: var(--dark); }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--dark); transition: transform .25s; }
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { top: 21px; }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem;
  padding: 7rem var(--pad) 4rem;
  max-width: 1400px; margin: 0 auto;
}
.hero-grid {
  position: absolute; inset: -60px 0 0 40%;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 75%);
  animation: gridDrift 6s linear infinite;
}
.hero-glow {
  position: absolute; width: 900px; height: 700px; right: -200px; top: -100px;
  background: radial-gradient(closest-side, #0177fd33, #0177fd0a 60%, transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 #0177fd88; animation: pulse 2s infinite; }
.hero-title {
  font-size: clamp(3.4rem, 8.4vw, 8.5rem);
  font-weight: 900; line-height: .9; letter-spacing: -.045em;
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #1a1a1aa6; max-width: 34rem; margin: 1.75rem 0 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-visual { position: relative; z-index: 3; justify-self: center; width: 100%; max-width: 540px; }
.term {
  background: var(--void); color: #e8e8e8; border-radius: 1.25rem;
  box-shadow: 0 40px 80px -30px #0b0b0b66, 0 0 0 1px #ffffff12 inset;
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: .85rem 1rem; border-bottom: 1px solid var(--border-dark); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff26; }
.term-bar span { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: #ffffff66; }
.term-body { list-style: none; padding: 1.1rem 1.1rem 1.3rem; min-height: 300px; font-family: var(--mono); font-size: .78rem; line-height: 1.55; }
.term-body li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .35rem 0; animation: fadeUp .45s ease both; }
.term-body .who { color: var(--accent); }
.term-body .what { color: #ffffffd0; word-break: break-word; }
.term-body .what b { color: #fff; font-weight: 500; }
.term-body .hi { color: var(--red); }
.term-body .ok { color: var(--green); }
.term-body .dim { color: #ffffff66; }

.pr-card {
  position: absolute; left: -2.5rem; bottom: -4rem; width: min(330px, 80%);
  background: var(--white); border-radius: 1rem; padding: 1rem 1.1rem;
  box-shadow: 0 30px 60px -20px #1a1a1a40, 0 0 0 1px var(--border);
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.pr-card.show { opacity: 1; transform: none; }
.pr-head { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.pr-head svg { width: 16px; height: 16px; color: var(--green); }
.pr-head em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .2rem .55rem; border-radius: 999px; }
.pr-card p { font-size: .85rem; font-weight: 600; margin: .5rem 0 .65rem; }
.pr-card code { font-size: .78rem; background: var(--light2); padding: .05rem .3rem; border-radius: 4px; }
.pr-meta { display: flex; gap: .9rem; font-size: .72rem; color: var(--muted); }
.pr-meta .ok { color: var(--green); font-weight: 600; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--border); padding: 1.6rem 0; background: var(--white); overflow: hidden; }
.ticker-label { text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.ticker-track { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-row { display: flex; width: max-content; gap: 3.5rem; animation: ticker 32s linear infinite; }
.ticker-row span { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #1a1a1a59; white-space: nowrap; }
.ticker-row span::before { content: "◆"; font-size: .6rem; color: var(--accent); margin-right: 1.1rem; vertical-align: middle; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; overflow: hidden; }
.section.light { background: linear-gradient(160deg, #fff 0%, var(--light) 65%, var(--light2) 100%); }
.section.dark { background: var(--void); color: var(--white); }
.h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); font-weight: 900; line-height: .98; letter-spacing: -.035em; }
.lead { font-size: 1.1rem; color: #1a1a1a99; max-width: 30rem; }
.lead-d { color: var(--muted-dark); }
.split-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.center-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 60px 1.1fr 60px 1fr; align-items: stretch; }
.compare-col { display: flex; flex-direction: column; }
.tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.accent-tag { color: var(--accent); }
.compare-card {
  flex: 1; background: var(--white); border-radius: 1.25rem; padding: 1.5rem;
  box-shadow: 0 0 0 1px var(--border), 0 20px 40px -30px #1a1a1a40;
  display: flex; flex-direction: column; gap: .85rem;
}
.compare-card.dark { background: var(--void); color: var(--white); box-shadow: 0 30px 60px -25px #0177fd80; }
.compare-text { font-size: 1.05rem; line-height: 1.45; }
.compare-type { font-size: .85rem; line-height: 1.6; color: #ffffffd9; min-height: 7.5em; white-space: pre-wrap; }
.hi { color: var(--red); }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; margin-left: 2px; animation: caretBlink 1s steps(1) infinite; }
.compare-arrow { display: grid; place-items: center; }
.compare-arrow span { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1s linear infinite; position: relative; }
.compare-arrow span::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--accent); }
.diff { font-family: var(--mono); font-size: .8rem; line-height: 1.7; white-space: pre; overflow-x: auto; }
.diff .del { color: var(--red); background: #e5484d12; display: block; padding: 0 .4rem; border-radius: 4px; }
.diff .add { color: var(--green); background: #2fb36a14; display: block; padding: 0 .4rem; border-radius: 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step {
  position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: 1.5rem;
  background: var(--light); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, background .3s;
}
.step:hover { transform: translateY(-6px); background: var(--white); box-shadow: 0 30px 60px -30px #1a1a1a40; }
.step-num { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-bottom: 3.5rem; }
.step h3 { font-size: 2.25rem; font-weight: 900; letter-spacing: -.035em; margin-bottom: .75rem; }
.step p { color: #1a1a1a99; font-size: .98rem; margin-bottom: 1.5rem; }
.step-chip { display: inline-block; font-size: .72rem; padding: .4rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--border); }
.step-chip.ok { color: var(--green); border-color: #2fb36a40; background: #2fb36a0d; }

/* Mission */
.mission { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--accent); color: var(--white); position: relative; overflow: hidden; }
.mission::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff14 1px, transparent 1px), linear-gradient(90deg, #ffffff14 1px, transparent 1px); background-size: 60px 60px; animation: gridDrift 6s linear infinite; }
.mission .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mission-title { font-size: clamp(2.2rem, 5.2vw, 4.5rem); font-weight: 900; letter-spacing: -.035em; line-height: .98; max-width: 15ch; }
.mission .accent { color: #ffffffa6; }
.mission .btn-dark { background: var(--white); color: var(--dark); }

/* Pipeline */
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(80% 60% at 50% 70%, #000, transparent); -webkit-mask-image: radial-gradient(80% 60% at 50% 70%, #000, transparent); animation: gridDrift 6s linear infinite; }
.pipe { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: .75rem; position: relative; }
.pipe::before {
  content: ""; position: absolute; left: 2%; right: 2%; top: 1.6rem; height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff26 8%, #ffffff26 92%, transparent);
}
.pipe::after {
  content: ""; position: absolute; top: calc(1.6rem - 4px); left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 20px 4px #0177fdaa;
  animation: travel 5s cubic-bezier(.6,0,.4,1) infinite;
}
.pipe-node {
  position: relative; padding: 3.25rem 1rem 1.25rem; border-radius: 1rem;
  background: var(--card-dark); border: 1px solid var(--border-dark);
  transition: border-color .3s, background .3s;
}
.pipe-node::before { content: ""; position: absolute; top: calc(1.6rem - 6px); left: 1rem; width: 14px; height: 14px; border-radius: 50%; background: var(--void); border: 2px solid #ffffff40; }
.pipe-node:hover { border-color: #0177fd80; background: #0177fd0f; }
.pipe-node.final { background: #0177fd1f; border-color: #0177fd66; }
.pipe-node.final::before { border-color: var(--accent); background: var(--accent); }
.agent { display: block; font-size: .66rem; color: var(--accent); margin-bottom: .35rem; }
.pipe-node b { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; }
.pipe-node p { font-size: .8rem; color: var(--muted-dark); line-height: 1.45; }
.forks { display: flex; flex-direction: column; gap: .35rem; margin-top: .3rem; }
.fork { font-family: var(--mono); font-size: .66rem; padding: .25rem .5rem; border-radius: 6px; }
.fork.hi { background: #e5484d1f; color: #ff8a8d; }
.fork.lo { background: #2fb36a1f; color: #6fdc9e; }

/* Different */
.diff-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.diff-sticky { position: sticky; top: 7rem; }
.diff-sticky .lead { margin: 1.5rem 0 2rem; }
.diff-list { list-style: none; }
.diff-list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1rem; padding: 2rem 0; border-top: 1px solid var(--border); }
.diff-list li:last-child { border-bottom: 1px solid var(--border); }
.diff-list .n { font-family: var(--mono); font-size: .85rem; color: var(--accent); padding-top: .35rem; }
.diff-list h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .5rem; }
.diff-list p { color: #1a1a1a99; }
.diff-list .snip, .diff-list .pills, .diff-list .checks { grid-column: 2; margin-top: 1.1rem; }
.snip { background: var(--void); color: #e8e8e8; border-radius: 1rem; padding: 1.1rem 1.25rem; font-size: .78rem; line-height: 1.65; overflow-x: auto; }
.snip .k { color: #7fb8ff; }
.snip .s { color: #6fdc9e; }
.pills { display: flex; gap: .5rem; }
.pill { font-family: var(--mono); font-size: .75rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid; }
.pill.hi { color: var(--red); border-color: #e5484d55; background: #e5484d0d; }
.pill.lo { color: var(--green); border-color: #2fb36a55; background: #2fb36a0d; }
.pill.un { color: #b07a00; border-color: #f0a50066; background: #f0a5000f; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; }
.checks span { color: var(--green); background: var(--white); border: 1px solid #2fb36a40; padding: .35rem .7rem; border-radius: 8px; }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--void); color: var(--white); padding: clamp(6rem, 12vw, 10rem) 0; text-align: center; }
.cta-faults { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; opacity: .7; }
.cta-faults path { stroke: var(--accent); stroke-dasharray: 8 10; animation: faultDash 3s linear infinite; }
.cta-faults path:nth-child(2) { stroke: #0177fd80; animation-duration: 4s; }
.cta-faults path:nth-child(3) { stroke: #0177fd40; animation-duration: 5s; }
.cta-title { font-size: clamp(3rem, 9vw, 8rem); font-weight: 900; letter-spacing: -.045em; line-height: .9; }
.cta-sub { color: var(--muted-dark); font-size: 1.1rem; margin: 1.5rem auto 2.25rem; max-width: 32rem; }
.cta .hero-actions { justify-content: center; }

/* Footer */
.footer { background: var(--void); color: var(--muted-dark); border-top: 1px solid var(--border-dark); padding: 4rem 0 2rem; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid a { display: block; padding: .25rem 0; transition: color .2s; }
.foot-grid a:hover { color: var(--white); }
.tk-logo-d { color: #FFFFFF; display: inline-flex !important; }
.foot-tag { margin-top: .75rem; }
.foot-h { color: var(--white); font-weight: 600; margin-bottom: .5rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-dark); font-size: .8rem; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: .5rem; animation: pulseG 2s infinite; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes gridDrift { to { background-position: 0 60px; } }
@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes dash { to { background-position: 24px 0; } }
@keyframes faultDash { to { stroke-dashoffset: -36; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #0177fd88; } 70% { box-shadow: 0 0 0 10px #0177fd00; } 100% { box-shadow: 0 0 0 0 #0177fd00; } }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 #2fb36a88; } 70% { box-shadow: 0 0 0 8px #2fb36a00; } 100% { box-shadow: 0 0 0 0 #2fb36a00; } }
@keyframes travel { 0% { left: 2%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 97%; opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pipe { grid-template-columns: repeat(4, 1fr); }
  .pipe::before, .pipe::after { display: none; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open { background: var(--white); box-shadow: 0 1px 0 var(--border); flex-wrap: wrap; }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; width: 100%; gap: 1rem; padding-top: 1.25rem; }
  .nav.open .nav-cta { align-items: flex-start; padding-bottom: .5rem; }
  .hero { grid-template-columns: 1fr; padding-top: 7.5rem; padding-bottom: 6rem; gap: 3.5rem; }
  .hero-grid { inset: 30% 0 0 0; }
  .pr-card { left: auto; right: -.5rem; }
  .split-head, .diff-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .diff-sticky { position: static; }
  .compare { grid-template-columns: 1fr; gap: 0; }
  .compare-arrow { height: 48px; }
  .compare-arrow span { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); }
  .compare-arrow span::after { right: -4px; top: auto; bottom: -6px; border-left-color: transparent; border-top-color: var(--accent); }
  .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe-node.final { grid-column: span 2; }
  .term-body { font-size: .7rem; min-height: 280px; }
  .term-body li { grid-template-columns: 1fr; gap: 0; }
  .pr-card { position: relative; left: 0; right: 0; bottom: 0; width: 100%; margin-top: -1rem; }
  .ticker-row span { font-size: 1.1rem; }
}

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