/* Conduit download page — warm paper, one indigo accent, type-first, download-obsessed.
   Structure: header → centered hero → conduit beam → product window → model ticker →
   2×2 features → dark closer → slim footer. */

:root {
  --paper: #f7f7f5;
  --ink: #16161a;
  --muted: #73737b;
  --faint: #a3a3ab;
  --line: #e7e7e2;
  --card: #ffffff;
  --accent: #5b63f2;
  --accent-soft: rgba(91, 99, 242, 0.09);
  --add: #178a5f;
  --add-soft: #d9f2e5;
  --del: #dc4444;
  --del-soft: #fbe2e2;
  --dark: #131316;
  --radius: 14px;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
  overflow-x: clip; /* clip, not hidden: hidden creates a scroll container that breaks position:sticky */
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.1em 0.42em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 2px 8px rgba(91, 99, 242, 0.25); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-download {
  color: #fff !important;
  background: var(--ink);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-download:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 22, 26, 0.25); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.powered-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(22, 22, 26, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.powered-pill strong { color: var(--ink); font-weight: 600; }
.powered-pill:hover { border-color: #c9cdf7; box-shadow: 0 4px 14px rgba(91, 99, 242, 0.14); }
.pill-arrow { color: var(--accent); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(91, 99, 242, 0.45);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 99, 242, 0.4); }
  70% { box-shadow: 0 0 0 9px rgba(91, 99, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 99, 242, 0); }
}

.headline {
  margin: 34px 0 22px;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.headline-twist {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.caret {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  margin-left: 0.09em;
  vertical-align: -0.06em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.cta-stack { margin: 36px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  border-radius: 99px;
  background: linear-gradient(135deg, #5b63f2, #7a5df5);
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(91, 99, 242, 0.35),
    0 14px 38px rgba(91, 99, 242, 0.38);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
/* a slow sheen sweep so the button quietly asks to be pressed */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.cta:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(91, 99, 242, 0.4),
    0 22px 52px rgba(91, 99, 242, 0.48);
}
.cta:active { transform: translateY(0); }
.cta[data-downloading] .cta-icon svg { animation: dip 0.5s ease; }
@keyframes dip { 50% { transform: translateY(3px); } }
.cta-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.cta-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* the conduit — a beam carrying model packets down into the app */
.conduit-beam {
  position: relative;
  width: 2px;
  height: 88px;
  margin-top: 30px;
  background: linear-gradient(to bottom, transparent, #c9cdf7 30%, var(--accent));
  border-radius: 2px;
  overflow: visible;
}
.packet {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(91, 99, 242, 0.55);
  animation: flow 2.6s cubic-bezier(0.5, 0, 0.6, 1) infinite;
}
.packet.p2 { animation-delay: 1.3s; }
@keyframes flow {
  0% { top: -6px; opacity: 0; }
  18% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

/* ---------- product window ---------- */
.window-wrap { position: relative; width: min(920px, 100%); margin-top: -2px; }
.app-window {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 1px 2px rgba(22, 22, 26, 0.05),
    0 24px 60px -18px rgba(22, 22, 26, 0.22),
    0 60px 120px -30px rgba(91, 99, 242, 0.14);
}
.window-chrome {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #efefeb;
  background: #fbfbf9;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.lights { display: flex; gap: 6px; width: 130px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #e6e6e2; }
.lights i:nth-child(1) { background: #fe5f57; }
.lights i:nth-child(2) { background: #febb2e; }
.lights i:nth-child(3) { background: #28c840; }
.window-title { flex: 1; text-align: center; color: var(--muted); }
.window-tools { display: flex; justify-content: flex-end; gap: 8px; width: 130px; }
.window-tools b { font-weight: 400; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.diffchip em { color: var(--add); font-style: normal; }
.diffchip u { color: var(--del); text-decoration: none; }

.window-body { display: flex; min-height: 350px; }
.pane-sidebar {
  width: 218px;
  flex: none;
  padding: 14px 10px;
  border-right: 1px solid #efefeb;
  background: #fafaf8;
  font-size: 11.5px;
}
.side-search {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 16px;
}
.side-label {
  padding: 0 10px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.side-label:not(:first-of-type) { padding-top: 16px; }
.side-session {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.side-session.active { background: var(--accent-soft); }
.side-session.active b { color: var(--ink); }
.side-session b { display: block; font-weight: 550; font-size: 11.5px; color: #3f3f46; line-height: 1.3; }
.side-session small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.dot { flex: none; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #d9d9d4; }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px rgba(91, 99, 242, 0.18); }

.pane-chat { flex: 1; position: relative; display: flex; flex-direction: column; gap: 11px; padding: 20px 22px 74px; }
.msg-user {
  align-self: flex-end;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 99, 242, 0.16);
  color: #3b3f6e;
  font-size: 12.5px;
  line-height: 1.5;
}
.fold { display: flex; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.chev { font-size: 9px; }
.fold-rows { display: flex; flex-direction: column; gap: 7px; padding-left: 18px; }
.frow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.ficon { color: var(--faint); font-size: 11px; width: 13px; }
.plus { color: var(--add); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.minus { color: var(--del); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.ok { margin-left: 4px; font-family: var(--mono); font-size: 9px; color: var(--add); background: var(--add-soft); padding: 1px 6px; border-radius: 99px; }
.msg-agent { max-width: 88%; font-size: 12.5px; line-height: 1.65; color: #3f3f46; margin-top: 4px; }
.composer {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--faint);
  font-size: 11.5px;
  box-shadow: 0 2px 8px rgba(22, 22, 26, 0.04);
}
.composer-chips { display: flex; gap: 6px; }
.composer-chips b { font-family: var(--mono); font-weight: 400; font-size: 9.5px; color: var(--muted); padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fbfbf9; }
.composer-chips .model-chip { color: var(--accent); border-color: #d5d8fa; background: #f5f6fe; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 22, 26, 0.13);
  font-size: 11px;
  animation: hover-float 5.5s ease-in-out infinite;
}
.float-card b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.float-card small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.fc-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--add-soft); color: var(--add); font-size: 12px; }
.fc-diff { width: auto; padding: 0 8px; height: 24px; border-radius: 7px; background: #f5f6fe; font-family: var(--mono); font-size: 9.5px; }
.fc-diff em { color: var(--add); font-style: normal; }
.fc-diff u { color: var(--del); text-decoration: none; }
.float-checkpoint { top: -20px; right: -14px; }
.float-diff { bottom: 46px; left: -30px; animation-delay: 2.6s; }
@keyframes hover-float { 50% { transform: translateY(-7px); } }

/* ---------- model ticker ---------- */
.ticker-section { padding: 84px 0 20px; text-align: center; }
.ticker-caption { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.ticker-caption a { color: var(--ink); font-weight: 600; border-bottom: 1px solid #cfcfca; }
.ticker-caption a:hover { color: var(--accent); border-color: var(--accent); }
.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; gap: 12px; width: max-content; animation: scroll 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span.more { color: var(--accent); border-color: #d5d8fa; background: #f5f6fe; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features { max-width: 1120px; margin: 0 auto; padding: 96px 32px 40px; }
.features-title {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
  font-weight: 650;
  line-height: 1.1;
  margin-bottom: 44px;
}
.features-title span { color: var(--faint); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  position: relative;
  padding: 30px 30px 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -14px rgba(22, 22, 26, 0.14); }
.card h3 { font-size: 19px; font-weight: 630; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 44ch; }
.card-accent { background: linear-gradient(150deg, #fff 30%, #f2f3fe); border-color: #dcdff9; }
.card-visual { position: absolute; left: 30px; right: 30px; bottom: 26px; }

.terminal-line {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--dark);
  color: #b8b8c0;
  font-family: var(--mono);
  font-size: 11px;
}
.terminal-line > span { color: #7c83f5; margin-right: 2px; }
.tcursor { width: 6px; height: 12px; margin-left: 6px; background: #7c83f5; animation: blink 1.1s steps(1) infinite; }

.chips-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chips-row span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.chips-row .chip-more { color: var(--accent); border-color: #d5d8fa; background: #f5f6fe; }

.diff-bars { display: flex; flex-direction: column; gap: 7px; }
.diff-bars i { display: block; height: 8px; border-radius: 4px; }
.d-add { background: var(--add-soft); }
.d-del { background: var(--del-soft); }

.phone-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 22, 26, 0.07);
  font-size: 12px;
  color: var(--muted);
}
.phone-pill > b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--ink); }
.pp-soon { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--accent); background: #f5f6fe; border: 1px solid #d5d8fa; padding: 4px 10px; border-radius: 99px; }
.badge-soon {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid #d5d8fa;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- closer: open finale on the paper, echoing the hero ---------- */
.closer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1120px;
  margin: 88px auto 0;
  padding: 0 32px 104px;
}
.closer-beam {
  width: 2px;
  height: 72px;
  margin-bottom: 34px;
  background: linear-gradient(to bottom, transparent, #c9cdf7 55%, var(--accent));
  border-radius: 2px;
}
.closer-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.closer-twist { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.closer-sub { margin: 16px 0 34px; color: var(--muted); font-size: 17px; }
.closer-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
  margin-top: 38px;
  font-size: 13px;
  color: var(--muted);
}
.closer-notes span { display: inline-flex; align-items: center; gap: 7px; }
.closer-notes a { color: var(--ink); font-weight: 600; border-bottom: 1px solid #cfcfca; }
.closer-notes a:hover { color: var(--accent); border-color: var(--accent); }
.note-sep { width: 3px; height: 3px; border-radius: 50%; background: #cfcfca; }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}
.site-footer .brand { font-size: 15px; margin-right: auto; }
.site-footer .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.foot-powered:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .packet, .caret, .tcursor, .pulse-dot, .float-card, .cta::after { animation: none; }
  .ticker-track { animation-duration: 160s; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .float-checkpoint { right: 6px; top: -14px; }
  .float-diff { left: 6px; bottom: 34px; }
  .pane-sidebar { display: none; }
}
@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-download) { display: none; }
  .hero { padding: 52px 20px 0; }
  .lede { font-size: 15.5px; }
  .cta { padding: 15px 24px; font-size: 15px; }
  .features { padding: 72px 20px 24px; }
  .card { padding: 24px 22px 84px; }
  .card-visual { left: 22px; right: 22px; }
  .closer { padding: 0 20px 64px; }
  .closer { margin-top: 56px; padding-bottom: 72px; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding: 22px 20px 32px; }
  .msg-user, .msg-agent { font-size: 12px; }
  .float-card { display: none; }
}
