/* Attaché landing — Zapier brand, dev-first surface */

:root {
  --bg: #f8f4f0;
  --bg-panel: #fffefb;
  --bg-elevated: #fbf7f2;
  --border: #ece4db;
  --border-strong: #e0d6ca;
  --text: #201515;
  --text-dim: #6f6862;
  --text-faint: #a89f95;
  --accent: #ff4f00;
  --accent-2: #fd7622;
  --accent-soft: rgba(255, 79, 0, 0.08);
  --ok: #0fb894;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1080px;
  --terminal-bg: #1c1210;
  --terminal-bar: #2a1d19;
  --terminal-border: #3d2c25;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 60% 40% at 78% -8%, rgba(255, 79, 0, 0.09), transparent),
    radial-gradient(ellipse 45% 32% at 8% 12%, rgba(253, 118, 34, 0.05), transparent),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-position: center, center, -1px -1px, -1px -1px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
}

/* ── Top bar (matches Mission Control) ─── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 254, 251, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fffefb;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 79, 0, 0.22);
}

.brand-mark .accent { color: #fffefb; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  color: var(--text);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-panel);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(255, 79, 0, 0.14);
}

.accent { color: var(--accent); }

/* ── Main ──────────────────────────────── */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 72px;
}

/* ── Hero: copy + install, above the fold ─ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 79, 0, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(255, 79, 0, 0.06); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.h1-accent {
  background: linear-gradient(120deg, var(--accent) 20%, var(--accent-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  color: var(--text-dim);
  font-size: 1.06rem;
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 24px;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.hero-facts li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor;
  color: var(--ok);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}

/* Install column */

.hero-install {
  min-width: 0;
}

/* Agent tabs — segmented bar */

.agent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--bg-panel);
}

.agent-tab {
  flex: 1 1 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

/* Monochrome brand marks — inherit the tab's text color */
.agent-logo {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.85;
}

.agent-tab.active .agent-logo { opacity: 1; }

.agent-tab:last-child { border-right: none; }

.agent-tab:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.agent-tab.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 600;
}

/* Terminal block */

.terminal {
  border: 1px solid var(--terminal-border);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: var(--terminal-bg);
  box-shadow:
    0 24px 48px -20px rgba(32, 21, 21, 0.35),
    0 8px 20px -10px rgba(32, 21, 21, 0.25);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--terminal-bar);
  border-bottom: 1px solid var(--terminal-border);
}

/* Minimized traffic lights — small, muted, monochrome */
.terminal-dots {
  display: inline-flex;
  gap: 5px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57453d;
}

.terminal-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: #8a7a70;
  margin-right: auto;
}

.copy-btn {
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: #f8f4f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #4a403c;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.copy-btn.copied {
  color: var(--ok);
  border-color: var(--ok);
}

.terminal-body {
  margin: 0;
  padding: 22px 20px 24px;
  overflow-x: auto;
}

.terminal-body code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #f0ebe6;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .prompt { color: var(--accent-2); user-select: none; }

/* Syntax highlighting for the install command */
.terminal-body .tok-kw { color: #fd7622; }
.terminal-body .tok-var { color: #febc2e; }
.terminal-body .tok-str { color: #4fd6a5; }
.terminal-body .tok-punct { color: #8a7a70; }
.terminal-body .tok-cmd { color: #f0ebe6; font-weight: 600; }

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent-2);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.endpoint-line {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.endpoint-line code {
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
}

/* ── Section headings ──────────────────── */

.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* ── Demo showcase ─────────────────────── */

.demo-showcase {
  padding: 56px 0 8px;
  border-top: 1px solid var(--border);
}

.demo-showcase h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.demo-lede {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40rem;
  margin-bottom: 28px;
}

/* ── Capabilities: benefit cards ───────── */

.capabilities {
  padding: 56px 0 24px;
  border-top: 1px solid var(--border);
}

.capabilities h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 32px -16px rgba(32, 21, 21, 0.22);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 79, 0, 0.18);
  color: var(--accent);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ── Teamwork: one shared layer ────────── */

.team {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 56px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.team h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.team-lede {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 34rem;
}

.team-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.team-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.team-facts li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor;
  color: var(--ok);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}

/* Diagram: personas → Attaché bus → shared traits */

.team-diagram {
  min-width: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 14px 32px -20px rgba(32, 21, 21, 0.22);
}

.team-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.persona {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 14px 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.persona .agent-logo {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  margin-bottom: 5px;
  opacity: 1;
}

.persona-role {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.persona-tool {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

/* connector line from each persona down to the bus */
.persona::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 1px;
  height: 26px;
  background: var(--border-strong);
}

.team-bus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fffefb;
  box-shadow: 0 8px 20px rgba(255, 79, 0, 0.24);
  margin-bottom: 26px;
}

.team-bus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.team-bus-mark .accent { color: #fffefb; }

.team-bus-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* connector line from the bus down to the shared traits */
.team-bus::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 1px;
  height: 26px;
  background: var(--border-strong);
}

.team-shared {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-shared span {
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 8px 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 79, 0, 0.16);
  border-radius: 8px;
}

/* ── Closing CTA ───────────────────────── */

.cta {
  margin-top: 48px;
  padding: 48px 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% -30%, rgba(255, 79, 0, 0.10), transparent),
    var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}

.cta h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta p {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  color: #fffefb;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(255, 79, 0, 0.28);
}

.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 79, 0, 0.34); }

.btn-ghost {
  color: var(--text);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { border-color: var(--accent); }

/* ── Footer ────────────────────────────── */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 36px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.footer p { margin: 0; }

.footer code {
  font-size: 0.92em;
  color: var(--text-dim);
}

/* ── Responsive ────────────────────────── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 52px;
  }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .team {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 18px; }
  .topnav { gap: 12px; }
  .topnav .nav-link:not(.nav-cta) { display: none; }
  main, .footer { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 36px; padding-bottom: 44px; }
  .agent-tab { font-size: 12px; padding: 9px 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .team-shared { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 36px 20px; }
}
