/* Reseen Systems — Clearview */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --line: #222;
  --fg: #f2f2f2;
  --dim: #8a8a8a;
  --accent: #d8ff3d;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; }
.c-dim { color: var(--dim); }

h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.98; }
.label { color: var(--accent); margin-bottom: 20px; font-size: clamp(13px, 1.3vw, 18px); }

/* ---------- nav : bigger tabs ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(5,5,5,.9); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.16em; font-size: 17px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.nav-links a { padding: 10px 4px; opacity: .9; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta { border: 1px solid #555; padding: 12px 26px !important; }
.nav-cta:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: center; overflow: hidden; cursor: none; background: #050505; }
.hero .btn, .hero .btn-ghost { cursor: pointer; }
.hero-stage { position: absolute; inset: 0; background: #050505; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, 68%) var(--my, 46%), rgba(216,255,61,.07) 0%, transparent 55%),
    linear-gradient(100deg, rgba(5,5,5,.72) 20%, rgba(5,5,5,.2) 58%, transparent);
}
.hero-frame { position: absolute; inset: 104px 26px 26px; pointer-events: none; z-index: 3; }
.corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.5); }
.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.hud-line { position: absolute; left: 34px; right: 34px; display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.65); }
.hud-line.top { top: 6px; }
.hud-line.bottom { bottom: 6px; color: var(--accent); opacity: .9; }
.hud-probe {
  position: absolute; z-index: 4; pointer-events: none;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: opacity .15s;
}
.hud-x, .hud-x::before, .hud-x::after { position: absolute; inset: 0; }
.hud-x::before, .hud-x::after {
  content: '';
  left: 50%; top: 50%;
  width: 16px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(216,255,61,.45);
}
.hud-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.hud-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.hud-probe-readout {
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 3px;
  color: var(--accent); font-size: 10px; letter-spacing: 0.12em;
  text-shadow: 0 1px 8px #050505;
  white-space: nowrap;
}
.hero-content { position: relative; z-index: 2; padding: 0 var(--pad); max-width: 1000px; }
.hero-kicker { color: var(--accent); margin-bottom: 24px; font-size: clamp(13px, 1.3vw, 18px); }
.hero h1 { font-size: clamp(48px, 8vw, 120px); }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero-sub { max-width: 540px; margin-top: 26px; color: #c9c9c9; font-size: clamp(15px, 1.3vw, 17px); }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 16px 32px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--accent); color: #050505; border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: #444; }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: scroll 28s linear infinite; }
.ticker-track span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--dim); white-space: nowrap; }
.ticker-track span::after { content: '+'; margin-left: 48px; color: #333; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 6.5vw, 96px) var(--pad) clamp(70px, 9vw, 130px); }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 880px; margin-bottom: clamp(36px, 5vw, 60px); }
.section h2 { font-size: clamp(34px, 5vw, 76px); }
.sub { margin-top: 22px; color: var(--dim); font-size: 16px; max-width: 620px; }

/* ---------- capability cards (Orasio-style) ---------- */
.cap-cards {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px;
}
.cap-card {
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
  cursor: default; outline: none;
}
.cap-card:hover, .cap-card:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.cap-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #000; }
.cap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* degraded by default; the enhanced frame fades in on hover */
.cap-alt { opacity: 0; transition: opacity .35s; }
.cap-card:hover .cap-alt, .cap-card:focus-visible .cap-alt { opacity: 1; }
.cap-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(5,5,5,.8); color: var(--accent); padding: 5px 9px; font-size: 9px;
}
.cap-card h3 { font-size: 17px; padding: 18px 18px 8px; }
.cap-card p { padding: 0 18px 20px; font-size: 13.5px; color: var(--dim); }

/* VLM analysis overlay */
.vlm-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.cap-card:hover .vlm-overlay, .cap-card:focus-visible .vlm-overlay { opacity: 1; }
.vlm-box {
  position: absolute; left: 44%; top: 38%; width: 14%; height: 20%;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 2000px rgba(5,5,5,.25);
}
.vlm-tag {
  position: absolute; left: 44%; top: 31%;
  background: var(--accent); color: #050505; padding: 2px 7px; font-size: 9px; font-weight: 700;
}
.vlm-chip {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(5,5,5,.85); border: 1px solid var(--line);
  color: var(--fg); padding: 8px 10px; font-size: 9.5px;
}

/* ---------- pipeline ---------- */
.pipe-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; }
.pipe-node {
  flex: 1 1 220px; border: 1px solid var(--line); padding: 26px;
  display: flex; flex-direction: column; gap: 12px; background: var(--bg);
  justify-content: center; min-height: 270px;
}
.pipe-node .mono { color: var(--dim); font-size: 13px; }
.pipe-node b { font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; }
.pipe-node p { font-size: 15.5px; color: var(--dim); line-height: 1.55; margin: 0; }
.pipe-node i { font-style: normal; color: var(--dim); font-size: 12px; }
.pipe-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.pipe-chips span {
  border: 1px solid #333; padding: 6px 10px; font-size: 11px;
  letter-spacing: 0.12em; color: var(--dim);
}
.pipe-node-hot { border-color: var(--accent); background: rgba(216,255,61,.05); box-shadow: 0 0 34px rgba(216,255,61,.07); }
.pipe-node-hot .mono { color: var(--accent); }
.pipe-node-hot .pipe-chips span { border-color: rgba(216,255,61,.35); color: var(--accent); }

/* platforms node: one image of the robot family */
.pipe-node-img { padding: 0; position: relative; overflow: hidden; justify-content: flex-end; }
.pipe-node-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.pipe-node-img-label {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(5,5,5,.92) 55%, transparent);
}
.pipe-bypass-label { font-size: 12.5px; }
.pipe-arrow { flex: 0 0 52px; position: relative; align-self: center; height: 1px; background: var(--line); }
.pipe-arrow span {
  position: absolute; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  animation: dash 1.5s linear infinite;
}
.pipe-arrow span.s2 { animation-delay: .75s; }
@keyframes dash { 0% { left: 0; opacity: 0; } 25% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
/* branch connector: enhance node fans out to the 4 outputs; JS highlights one path at a time */
.pipe-branch { flex: 0 0 72px; align-self: stretch; }
.pipe-branch svg { display: block; width: 100%; height: 100%; }
.pipe-branch path {
  fill: none; stroke: #333; stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: stroke .4s ease, opacity .4s ease;
  opacity: .8;
}
.pipe-branch path.hot {
  stroke: var(--accent); opacity: 1;
  filter: drop-shadow(0 0 5px rgba(216,255,61,.55));
}
.pipe-outputs { flex: 1 1 210px; display: flex; flex-direction: column; justify-content: space-around; align-self: stretch; }
.pipe-out.hot { border-color: var(--accent); }
.pipe-out.hot .mono { text-shadow: 0 0 8px rgba(216,255,61,.7); }
.pipe-out {
  border: 1px solid var(--line); background: var(--bg);
  padding: 15px 18px; font-size: 16.5px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.pipe-out .mono { color: var(--accent); font-size: 13px; }
.pipe-bypass { position: relative; margin-top: 26px; text-align: center; }
.pipe-bypass-line {
  display: block; height: 1px; margin: 0 8%;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: .5;
}
.pipe-bypass-label { display: inline-block; margin-top: 12px; color: var(--dim); }

/* ---------- RTVI (conntour-style: one dynamic prompt, cycling result sets) ---------- */
.rtvi-bar {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #3a3a3a; padding: 19px 22px; font-size: 16px; background: #101010;
}
.rtvi-bar svg { color: var(--accent); flex: none; }
.rtvi-query { white-space: nowrap; overflow: hidden; }
.rtvi-caret { width: 9px; height: 20px; background: var(--accent); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.rtvi-results { display: none; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.rtvi-results.active { display: grid; }
.rtvi-card {
  margin: 0; background: #101010; border: 1px solid var(--line); overflow: hidden;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s, transform .5s, border-color .25s;
}
.rtvi-card:hover { border-color: var(--accent); }
.rtvi-card.on { opacity: 1; transform: none; }
.rtvi-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.rtvi-media img { width: 100%; height: 100%; object-fit: cover; }
.rtvi-box {
  position: absolute; border: 1.5px solid var(--accent);
  box-shadow: 0 0 14px rgba(216,255,61,.25);
}
.rtvi-match {
  position: absolute; background: var(--accent); color: #050505;
  padding: 2px 7px; font-size: 9px; font-weight: 700;
}
.rtvi-card figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.rtvi-card figcaption b { font-size: 11px; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.rtvi-card figcaption span { font-size: 13px; color: var(--dim); }

/* ---------- metrics ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metric {
  padding: clamp(30px, 4vw, 54px) clamp(20px, 3vw, 48px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.metric:last-child { border-right: none; }
.metric b { font-size: clamp(40px, 4.6vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.metric .mono { color: var(--dim); }
.metric-pre, .metric-suf { color: var(--accent); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(80px, 11vw, 160px) var(--pad); }
.cta h2 { font-size: clamp(44px, 7vw, 110px); margin: 18px 0 36px; }
.cta .label { margin-bottom: 0; }
/* alternating SEE / OPERATE — inline-block so the fade doesn't jitter the line;
   centered text re-centers itself when the word length changes */
.cta-word {
  display: inline-block; color: var(--accent);
  transition: opacity .3s ease, transform .3s ease;
}
.cta-word.swap { opacity: 0; transform: translateY(0.18em); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px var(--pad); border-top: 1px solid var(--line);
}
.footer-links { display: flex; gap: 26px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-links a { color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--fg); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.2,.6,.2,1), transform .65s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .09s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
  .hero { cursor: auto; }
}
@media (max-width: 1100px) {
  .cap-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .pipe-arrow { flex-basis: 100%; height: 30px; background: none; }
  .pipe-arrow span { left: 50% !important; animation: none; transform: rotate(135deg); top: 11px; }
  .pipe-node, .pipe-outputs { flex-basis: 100%; }
  .pipe-branch { display: none; }
  .pipe-outputs { gap: 10px; }
  .pipe-node-img { min-height: 300px; }
  .rtvi-results { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .hero-frame { display: none; }
  .hud-probe { display: none; }
  .hero { cursor: auto; }
  .cap-cards { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-logo { font-size: 13px; letter-spacing: 0.1em; gap: 8px; }
}
