/* AgentDeck — landing page */

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { background: var(--bg-sunk); color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -120px; top: -160px; pointer-events: none;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-grid > *, .safety-grid > * { min-width: 0; }
.hero h1 {
  margin: 18px 0 18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.lead { margin: 0; max-width: 34em; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

/* Hero mock (animated by site.js; the markup is the finished state) */
.mock {
  position: relative;
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.mock-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); font-weight: 500; }
.mock-chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 292px; }
.m-user { align-self: flex-end; max-width: 80%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.m-agent { max-width: 92%; color: var(--text); line-height: 1.5; }
.m-agent code { padding: 1px 5px; border-radius: 4px; background: var(--bg-sunk); }
.m-tool {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  color: var(--text-2); font-size: 12.5px;
}
.m-tool b { font-weight: 600; color: var(--text); }
.m-tool code { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-res { margin-left: auto; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.m-res.ok, .m-res .add { color: var(--ok); }
.m-res.bad, .m-res .del { color: var(--bad); }
.mock-term {
  min-height: 112px; padding: 12px 16px;
  background: var(--term-bg); color: var(--term-text);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
  overflow: hidden;
}
.mock-term > div { white-space: pre; }
.mock-term .p { color: #8f83ff; }
.mock-term .t-bad { color: #f47171; }
.mock-term .t-ok { color: #34d399; }
.mock-term .t-dim { color: var(--term-muted); }
.mock-foot { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.meter { flex: 1; height: 5px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 8.6%; border-radius: inherit; background: var(--accent); transition: width .6s ease; }
#mock-ctx { font-family: var(--font-mono); color: var(--text-2); }

.mstep { transition: opacity .35s ease, transform .35s ease; }
.mock.is-playing .mstep.pending { opacity: 0; transform: translateY(6px); }
.mock.is-playing .mock-term .mstep.pending { display: none; }

/* Stack strip */
.stack-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.stack-inner { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.stack-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--bg); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section h2 {
  margin: 0 0 40px; max-width: 22em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.025em;
  text-wrap: balance;
}
.section-lead { margin: -24px 0 28px; color: var(--text-2); font-size: 17px; max-width: 32em; }
.section h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.section p { color: var(--text-2); }
.section p code, .section li code { padding: 1px 5px; border-radius: 4px; background: var(--bg-sunk); color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.step .icon-lg { color: var(--accent); margin-bottom: 18px; }
.step p { margin: 0; font-size: 14px; }
.step-n {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--muted);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { padding: 28px 26px; background: var(--bg-elev); }
.feature p { margin: 0; font-size: 14px; }
.f-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* Two ways to connect */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.way p { margin: 0 0 10px; font-size: 14.5px; }
.way-note { color: var(--muted) !important; font-size: 13px !important; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* Safety */
.safety-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.safety-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.safety-list li { display: flex; gap: 14px; color: var(--text-2); font-size: 15px; }
.safety-list .icon { margin-top: 3px; color: var(--accent); }
.safety-list b { color: var(--text); font-weight: 600; }

.approval-demo {
  padding: 22px; border: 1px solid var(--line-strong); border-left: 3px solid var(--warn);
  border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-md);
}
.ap-head { display: flex; align-items: center; gap: 8px; color: var(--warn); font-weight: 600; font-size: 14px; }
.ap-text { margin: 8px 0 12px; color: var(--text); }
.ap-cmd { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: var(--term-bg); color: var(--term-text); font-size: 12.5px; line-height: 1.6; overflow-x: auto; }
.ap-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 0 0 18px; }
.ap-meta dt { font-size: 12px; color: var(--muted); }
.ap-meta dd { margin: 0; font-size: 14px; font-weight: 500; }
.ap-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ap-actions .btn { cursor: default; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 18px; padding-right: 32px; }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--accent-line);
}
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; font-size: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand { font-size: 15px; }
.footer-inner .brand-mark { width: 22px; height: 22px; }
.footer-note { margin: 0; color: var(--muted); font-size: 13px; flex: 1; min-width: 240px; }
.footer-links { display: flex; gap: 18px; font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 620px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 44px 0 48px; }
  .lead { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .ap-meta { grid-template-columns: repeat(2, auto); }
  .mock-chat { min-height: 0; }
}
@media (max-width: 420px) {
  .cta-row .btn { width: 100%; }
  .m-tool code { max-width: 38vw; }
}
