:root {
  --accent: #0ea5e9;
  --accent-dark: #0c4a6e;
  --accent-600: #0284c7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f7fbff;
  --bg-sky: #f0f9ff;
  --radius: 14px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.lede, .section-lede { font-size: 1.15rem; color: var(--muted); }
.section-lede { max-width: 640px; margin: 0 auto 8px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; border: 2px solid var(--accent); transition: all .15s;
}
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }
.btn-ghost { background: #fff; color: var(--accent-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-sky); border-color: #bae6fd; color: var(--accent-dark); }
/* Disabled download button (e.g. Windows "coming soon") — not clickable. */
.btn.is-disabled {
  background: var(--bg-sky); color: var(--muted); border-color: var(--line);
  cursor: not-allowed; pointer-events: none; opacity: .8;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--accent-dark); text-decoration: none; }
.nav a.btn { color: #fff; }
.nav a.btn.btn-ghost { color: var(--accent-dark); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-sky), #fff); padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.cta-note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.hero-art { }
.mockup { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(14,165,233,0.18); }
.art-note { font-size: 0.8rem; color: #94a3b8; text-align: center; margin: 10px 0 0; }

/* Strip */
.strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-label { text-align: center; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin: 0 0 14px; }
.strip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0; padding: 0; }
.strip-list li { font-weight: 600; color: var(--accent-dark); background: var(--bg-sky); border: 1px solid #e0f2fe; padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; }

/* Sections */
.section { padding: 66px 0; }
.section.alt { background: var(--bg-alt); }
.section.download { background: linear-gradient(180deg, #fff, var(--bg-sky)); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--accent-dark); }
.card p { color: var(--muted); margin: 0; }

/* Two column (security) */
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 34px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.check-list strong { color: var(--ink); }

/* Steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { text-align: center; padding: 0 10px; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.steps h3 { color: var(--accent-dark); }
.steps p { color: var(--muted); margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-sky); color: var(--accent-dark); font-size: 0.95rem; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare td.yes { color: #16a34a; font-weight: 700; }
.compare thead th:nth-child(2), .compare tbody td:nth-child(2) { background: rgba(14,165,233,0.06); }
.fineprint { font-size: 0.82rem; color: #94a3b8; margin-top: 12px; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Download */
.download .cta-row { justify-content: center; margin-top: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0 26px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent-dark); font-size: 1.15rem; }
.footer-tag { color: var(--muted); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-nav a { color: var(--muted); font-weight: 600; }
.copyright { text-align: center; color: #94a3b8; font-size: 0.85rem; margin: 22px 0 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .nav { gap: 12px; }
  .nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .section { padding: 48px 0; }
}

/* ---- CLI / “Ferry for Claude” page ---------------------------------------- */
.terminal {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 20px 22px;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
  white-space: pre;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}
.terminal .c { color: #38bdf8; } /* command */
.terminal .p { color: #64748b; } /* comment */
.terminal .o { color: #94a3b8; } /* output  */

.cmd-table { width: 100%; border-collapse: collapse; text-align: left; }
.cmd-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.cmd-table tr:first-child td { border-top: 0; }
.cmd-table td:first-child { white-space: nowrap; }
.cmd-table code {
  background: #f1f5f9;
  color: #0c4a6e;
  padding: 3px 8px;
  border-radius: 6px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.badge-safe {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}

.cta-row.center { justify-content: center; }

/* ---- Claude page: conversation mockups + skill preview -------------------- */
.chat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.10); overflow: hidden; text-align: left;
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg-sky);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.chat-dots { display: inline-flex; gap: 5px; }
.chat-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; display: block; }
.chat-dots i:first-child { background: #f87171; }
.chat-dots i:nth-child(2) { background: #fbbf24; }
.chat-dots i:nth-child(3) { background: #34d399; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.claude { align-self: flex-start; }
.chat-who { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.claude .chat-bubble { background: #f1f5f9; color: var(--ink); border-bottom-left-radius: 5px; }
.chat-bubble code { background: rgba(15, 23, 42, 0.08); padding: 1px 5px; border-radius: 5px; font-size: 0.85em; }
.chat-msg.user .chat-bubble code { background: rgba(255, 255, 255, 0.22); }
.chat-tool {
  align-self: stretch; display: flex; align-items: center; gap: 10px;
  background: #0f172a; border-radius: 10px; padding: 9px 12px; overflow-x: auto;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.chat-tool-tag {
  flex-shrink: 0; font-family: var(--font); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 5px; padding: 1px 6px;
}
.chat-tool code { white-space: pre; color: #e2e8f0; }
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; align-items: start; }
@media (max-width: 760px) { .chat-grid { grid-template-columns: 1fr; } }

.skill-view {
  text-align: left; margin: 20px auto 0; max-width: 760px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
}
.skill-view summary {
  cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--accent-dark);
  background: var(--bg-sky); list-style: none;
}
.skill-view summary::-webkit-details-marker { display: none; }
.skill-view summary::before { content: "▸ "; color: var(--muted); }
.skill-view[open] summary::before { content: "▾ "; }
.skill-view pre {
  margin: 0; padding: 16px; max-height: 420px; overflow: auto;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink); background: #fff; white-space: pre-wrap; word-break: break-word;
}

/* ---- Docs page: jump nav, connection-form mockups ------------------------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.jump a {
  font-size: 0.85rem; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--accent-dark);
}
.jump a:hover { background: var(--bg-sky); border-color: #bae6fd; text-decoration: none; }

.steps-4 { grid-template-columns: repeat(4, 1fr); }

.docs-col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.docs-where { font-size: 0.95rem; color: var(--muted); line-height: 1.55; margin-top: 14px; }

.formcard {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.10); overflow: hidden; text-align: left;
}
.formcard-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: var(--bg-sky);
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.formcard-body { padding: 4px 15px 12px; }
.ff { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.ff:last-child { border-bottom: 0; }
.ff-label { color: var(--muted); flex-shrink: 0; }
.ff-val { font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; color: var(--ink); text-align: right; word-break: break-all; }
.ff-select {
  font-family: var(--font); background: var(--bg-sky); border: 1px solid #bae6fd;
  border-radius: 6px; padding: 2px 9px; color: var(--accent-dark);
}
@media (max-width: 760px) {
  .steps-4 { grid-template-columns: 1fr; }
  .docs-col { grid-template-columns: 1fr; gap: 26px; }
}
