/* RESnipe landing — mission-control marketing */
:root {
  --bg: #0b0e13;
  --bg2: #0e1219;
  --panel: #11161f;
  --surface: #151b26;
  --surface2: #1a2130;
  --inset: #0d1119;
  --border: #222b3a;
  --border2: #2e3a4f;
  --text: #f2f5fa;
  --text2: #a8b3c4;
  --text3: #67748a;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-bd: rgba(59, 130, 246, 0.45);
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.13);
  --bad: #f87171;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #6ea8ff; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(11, 14, 19, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 30px; height: 64px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--text2); font-size: 13.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }

/* logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 14px rgba(59,130,246,.35)); }
.logo-word { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.logo-word b { color: var(--accent); font-weight: 700; }
.logo-word.lg { font-size: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 11px 20px; border-radius: 9px; border: 1px solid var(--border2);
  background: var(--surface); color: var(--text); white-space: nowrap;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface2); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent); border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px rgba(59,130,246,.35);
}
.btn.primary:hover { background: #2f74e8; }
.btn.lg { padding: 14px 26px; font-size: 15px; border-radius: 11px; }
.btn.sm { padding: 8px 14px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(59,130,246,.16), transparent 65%),
    radial-gradient(700px 400px at 12% 8%, rgba(59,130,246,.07), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(1000px 600px at 50% 0%, #000 30%, transparent 78%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  margin: 18px 0 0; font-size: 54px; line-height: 1.06; font-weight: 700; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-copy h1 .hl { color: var(--accent); }
.hero-sub { margin: 20px 0 0; font-size: 17.5px; color: var(--text2); max-width: 520px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; align-items: center; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--text3); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-bd);
  border-radius: 999px; padding: 5px 13px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hstat .v { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.hstat .l { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* hero mission-control card */
.hero-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden; position: relative;
}
.hc-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.hc-url {
  flex: 1; margin-left: 8px; display: flex; align-items: center; gap: 8px;
  background: var(--inset); border: 1px solid var(--border); border-radius: 7px;
  padding: 6px 11px; font-family: var(--mono); font-size: 11.5px; color: var(--text2);
}
.hc-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-bd); border-radius: 999px; padding: 3px 10px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.hc-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hc-status { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.hc-status .spin {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid var(--border2); border-top-color: var(--accent);
  animation: rot 0.9s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.hc-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-counter { background: var(--inset); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.hc-counter .v { font-family: var(--mono); font-size: 19px; font-weight: 600; }
.hc-counter .l { font-size: 10.5px; color: var(--text3); letter-spacing: .05em; margin-top: 1px; white-space: nowrap; }
.hc-term {
  background: var(--inset); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; height: 148px; overflow: hidden;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.85;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hc-term .ln { display: flex; gap: 9px; white-space: nowrap; animation: lineIn .3s ease both; }
@keyframes lineIn { from { transform: translateY(5px); opacity: 0; } to { transform: none; opacity: 1; } }
.hc-term .ts { color: var(--text3); flex: none; }
.hc-term .ag { font-weight: 600; flex: none; }
.hc-term .m { color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.hc-term .m b { color: var(--text); font-weight: 600; }
.hc-found {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--good-soft); border: 1px solid rgba(52,211,153,.3); border-radius: 10px; padding: 10px 13px;
}
.hc-found .addr { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.hc-found .sc { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--good); }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { text-align: left; margin: 0 0 44px; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
}
.sec-head h2 { margin: 14px 0 0; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.sec-head p { margin: 16px auto 0; color: var(--text2); font-size: 16.5px; max-width: 560px; text-wrap: pretty; }
.sec-head.left p { margin-left: 0; }

/* reveal on scroll — hidden state only when JS is running (html.js) */
.js .rv { opacity: 0; transform: translateY(26px); }
.rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none; }
  .hc-status .spin { animation: none; }
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  position: relative; overflow: hidden;
}
.step .num {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-bd);
  border-radius: 999px; padding: 3px 10px; display: inline-block;
}
.step h3 { margin: 16px 0 8px; font-size: 18.5px; font-weight: 650; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--text2); font-size: 14px; }

/* ---------- moments (alternating feature blocks) ---------- */
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.moment + .moment { margin-top: 110px; }
.moment.flip .m-visual { order: 2; }
.m-copy .kicker { display: inline-block; }
.m-copy h3 { margin: 14px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.m-copy p { margin: 14px 0 0; color: var(--text2); font-size: 15.5px; max-width: 460px; text-wrap: pretty; }
.m-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.m-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text2); }
.m-list li svg { flex: none; margin-top: 2px; color: var(--good); }
.m-list li b { color: var(--text); font-weight: 600; }

.m-visual { position: relative; }
.m-frame {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

/* vision moment */
.vis-photo {
  position: relative; height: 300px; border-radius: 11px; overflow: hidden;
  background: #10151d;
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(120,140,170,.07) 12px 13px);
  border: 1px solid var(--border);
}
.vis-tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px;
}
.vis-scan {
  position: absolute; left: 0; right: 0; height: 68px; top: -80px;
  background: linear-gradient(180deg, transparent, rgba(59,130,246,.18) 55%, rgba(59,130,246,.5));
  border-bottom: 2px solid var(--accent);
}
.vis-photo.playing .vis-scan { animation: scan 3.2s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes scan { 0% { top: -80px; } 55% { top: 100%; } 100% { top: 100%; } }
.vbox {
  position: absolute; border: 1.5px solid; border-radius: 6px;
  opacity: 0; transform: scale(.92);
}
.vis-photo.playing .vbox { animation: boxIn .45s cubic-bezier(.2,.8,.3,1.2) forwards; animation-delay: var(--d); }
@keyframes boxIn { to { opacity: 1; transform: none; } }
.vbox .vlab {
  position: absolute; top: -10px; left: 8px; font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px; white-space: nowrap; letter-spacing: .03em;
}
.vbox.good { border-color: var(--good); } .vbox.good .vlab { background: var(--good); color: #06251a; }
.vbox.warn { border-color: var(--warn); } .vbox.warn .vlab { background: var(--warn); color: #2a1e02; }
.vis-verdict {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--inset); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  font-size: 13px; color: var(--text2);
}
.vis-verdict b { color: var(--text); }
.vis-verdict .cond {
  margin-left: auto; font-family: var(--mono); font-weight: 700; color: var(--good); font-size: 14px; white-space: nowrap;
}

/* comps moment */
.comp-rows { display: flex; flex-direction: column; gap: 12px; }
.comp-row { display: flex; align-items: center; gap: 12px; }
.comp-row .a { width: 148px; flex: none; font-family: var(--mono); font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-row.subject .a { color: var(--accent); font-weight: 600; }
.comp-track { flex: 1; height: 22px; background: var(--inset); border-radius: 5px; overflow: hidden; }
.comp-fill {
  height: 100%; width: 0; border-radius: 5px; background: var(--border2);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  transition: width 1s cubic-bezier(.25,.8,.3,1); transition-delay: var(--d);
}
.comp-row.subject .comp-fill { background: var(--accent); }
.comp-fill .v { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--text); }
.comp-row.subject .comp-fill .v { color: #fff; }
.comp-verdict {
  margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--good-soft); border: 1px solid rgba(52,211,153,.3); border-radius: 10px; padding: 12px 15px;
}
.comp-verdict .t { font-size: 13px; color: var(--text2); }
.comp-verdict .t b { color: var(--text); }
.comp-verdict .pct { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--good); }

/* params moment */
.param-card { display: flex; flex-direction: column; gap: 16px; }
.param-row { display: flex; flex-direction: column; gap: 8px; }
.param-row .lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); font-weight: 600; }
.param-row .lab .val { font-family: var(--mono); color: var(--accent); }
.param-track { height: 6px; border-radius: 999px; background: var(--inset); position: relative; overflow: visible; }
.param-fill { height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width 1.1s cubic-bezier(.25,.8,.3,1); transition-delay: var(--d); position: relative; }
.param-fill::after {
  content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  border: 2.5px solid var(--panel); box-shadow: 0 1px 5px rgba(0,0,0,.5);
}
.param-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border2); color: var(--text2); background: var(--surface);
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; transition-delay: var(--d);
}
.pchip.on { border-color: var(--accent-bd); background: var(--accent-soft); color: var(--text); }
.in .pchip { opacity: 1; transform: none; }

/* ---------- agents roster ---------- */
.agents-band { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.agent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.agent-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.agent-card .top { display: flex; align-items: center; gap: 9px; }
.agent-card .orb { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.agent-card h4 { margin: 0; font-size: 15.5px; font-weight: 650; }
.agent-card .role { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text3); text-transform: uppercase; }
.agent-card p { margin: 2px 0 0; font-size: 12.5px; color: var(--text2); line-height: 1.5; }

/* ---------- screenshots ---------- */
.shots { position: relative; }
.shot-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.shot-tab {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border2);
  background: var(--surface); color: var(--text2); transition: all .15s;
}
.shot-tab:hover { color: var(--text); }
.shot-tab.on { background: var(--accent-soft); border-color: var(--accent-bd); color: var(--text); }
.shot-frame {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.shot-bar .hc-url { max-width: 380px; margin: 0 auto; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-stage { position: relative; }
.shot-stage img { transition: opacity .35s ease; }

/* ---------- final CTA ---------- */
.cta-band { text-align: center; padding: 110px 0 120px; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 50% 20%, rgba(59,130,246,.17), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { position: relative; margin: 22px 0 0; font-size: 42px; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.cta-band p { position: relative; margin: 16px auto 0; color: var(--text2); max-width: 480px; font-size: 16px; }
.cta-band .hero-cta { justify-content: center; position: relative; }
.cta-band .hero-note { position: relative; font-size: 12.5px; color: var(--text3); max-width: none; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 34px 0 44px; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in .spacer { flex: 1; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--text3); font-size: 13px; }
.foot-links a:hover { color: var(--text2); }
.copyright { color: var(--text3); font-size: 12.5px; }

@media (max-width: 980px) {
  .hero-in, .moment { grid-template-columns: 1fr; }
  .moment.flip .m-visual { order: 0; }
  .steps, .agent-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 42px; }
}
