:root {
  --bg: #0b0b0d;
  --bg-2: #121216;
  --ink: #f4f1ea;
  --mute: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.38);
  --line: rgba(244, 241, 234, 0.1);
  --cyan: #5ce1e6;
  --cyan-2: #8af0f3;
  --stage: #e3e3e3;
  --card: #16161b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  min-height: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav, main, .foot { position: relative; z-index: 1; }

.ca-ticker {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  width: 100%;
  height: 36px;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--cyan);
  color: #062022;
}
.ca-ticker-run {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 36px;
  padding-left: 18px;
  white-space: nowrap;
  font: 800 12px/36px var(--sans);
  letter-spacing: 0.22em;
  animation: ticker 18s linear infinite;
}
.ca-ticker-run i { font-style: normal; opacity: .45; }
.ca-ticker:hover .ca-ticker-run { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  position: sticky;
  top: 36px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.brand img { display: block; border-radius: 8px; object-fit: cover; background: #e3e3e3; }
.nav-links {
  display: flex;
  gap: 22px;
  color: var(--mute);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.x-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.x-only:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.x-only svg { width: 15px; height: 15px; display: block; }
.foot .x-only { width: auto; padding: 0 12px; }
.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 6px;
  border: 0;
  border-radius: 999px;
  background: #1a1a20;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  cursor: pointer;
}
.ca-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--cyan);
  color: #062022;
  border-radius: 999px;
  padding: 5px 7px;
}
.ca-chip strong { font-size: 13px; font-weight: 700; }
.ca-chip.is-copied { background: var(--cyan); color: #062022; }
.ca-chip.is-copied em { background: #062022; color: var(--cyan); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #111; }
.btn-cyan { background: var(--cyan); color: #082021; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.15fr;
  min-height: calc(100svh - 70px);
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px 56px 48px;
  max-width: 640px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.96; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--cyan-2); }
.lede {
  margin: 22px 0 0;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

.stage {
  position: relative;
  background: var(--stage);
  min-height: 560px;
}
.stage-glow {
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 40%;
  background: radial-gradient(60% 80% at 50% 0%, rgba(92, 225, 230, 0.18), transparent 70%);
  pointer-events: none;
}
.stage-frame {
  position: absolute;
  inset: 0;
}
.stage-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--stage);
}
.stage-hint {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a5a5a;
  pointer-events: none;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}
.strip p {
  margin: 0;
  white-space: nowrap;
  color: var(--faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-20%); }
}

.section { padding: 96px 48px; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--mute); line-height: 1.55; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 22px 24px;
  min-height: 196px;
}
.card .tag {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.card h3 { margin: 16px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--mute); line-height: 1.5; font-size: 14.5px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.steps li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; color: var(--mute); line-height: 1.5; }

.agent {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
}
.ticks { padding: 0; margin: 22px 0 0; list-style: none; color: var(--mute); }
.ticks li { padding: 7px 0 7px 18px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--cyan);
}

.desk {
  background: #101014;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.desk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: #3ee07a;
  box-shadow: 0 0 12px #3ee07a;
}
.desk-log {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  max-height: 340px;
}
.msg {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 14.5px;
  white-space: pre-wrap;
}
.msg.bot { background: #1b1b22; color: var(--ink); }
.msg.user { margin-left: auto; background: var(--cyan); color: #082021; }
.desk-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.desk-form input {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #1a1a21;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}
.desk-form button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--cyan);
  color: #082021;
  font-weight: 700;
  cursor: pointer;
}

.cta {
  margin: 0 48px 80px;
  padding: 72px 40px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(92,225,230,.16), transparent 60%),
    #141418;
  border: 1px solid var(--line);
}
.cta p { color: var(--mute); max-width: 46ch; margin: 16px auto 26px; }

.foot {
  display: flex;
  justify-content: space-between;
  padding: 22px 48px 32px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .ca-chip strong { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 22px 20px; }
  .stage { min-height: 58svh; }
  .section, .cta { padding-left: 22px; padding-right: 22px; }
  .cta { margin: 0 16px 48px; }
  .grid, .steps, .agent { grid-template-columns: 1fr; }
  .foot { padding: 22px; flex-direction: column; gap: 6px; }
}
