/* sightwire.ai — the public site. Tokens are the Machine S identity sheet's
   dark palette; the site is dark-only by design. */
:root {
  --abyss: #191817;   /* page ground */
  --deep: #201e1c;    /* surfaces */
  --card: #1d1b19;    /* machine tiles inside the mock */
  --sea: #282522;     /* raised, inputs */
  --rule: #2e2b28;    /* inner dividers */
  --tile-line: #34302c;
  --line: #3a3531;    /* hairlines */
  --dash: #4a443d;
  --idle: #5c554e;
  --dim: #8f857a;
  --muted: #a99e90;
  --faint: #b8aea2;   /* secondary text */
  --bone: #f1ece4;    /* text, the mark */
  --signal: #ff9a4d;  /* needs you, primary action */
  --tide: #7ea6cf;
  --kelp: #8fb0a6;
  --mono: 'Martian Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
}
.mono { font-family: var(--mono); }

/* header */
.top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 22px; height: 22px; flex: none; }
.wordmark {
  font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  font-size: 22px;
}
.nav {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px;
}
.nav a { color: var(--faint); text-decoration: none; }
.nav a:hover { color: var(--bone); }
.nav a.mail { color: var(--bone); }

/* hero */
.hero {
  display: flex; flex-direction: column; gap: 28px; max-width: 820px;
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 7vw, 80px);
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint);
}
.hero .eyebrow { color: var(--signal); }
h1 {
  margin: 0; font-size: clamp(42px, 6.6vw, 80px); font-weight: 500;
  letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance;
}
.lede {
  margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6;
  color: var(--faint); max-width: 660px; text-wrap: pretty;
}

/* waitlist */
.waitlist { display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin-top: 8px; }
.waitlist label { font-family: var(--mono); font-size: 12px; }
.waitlist .row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type=email] {
  flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 16px;
  background: var(--sea); border: 1px solid var(--line); border-radius: 8px;
  color: var(--bone); font-size: 16px; font-family: inherit;
}
.waitlist input[type=email]::placeholder { color: var(--dim); }
.waitlist input[type=email]:focus { outline: none; border-color: var(--faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 22px; background: var(--signal); color: var(--abyss);
  border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
  font-family: var(--sans); cursor: pointer; text-decoration: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { cursor: progress; filter: saturate(.6); }
.note { margin: 0; font-size: 14px; color: var(--faint); }
.note a { color: var(--bone); }
.status { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--faint); }
.status.ok { color: var(--bone); }
.status.err { color: var(--signal); }
.waitlist.done .row { display: none; }

/* product mock */
.shot { margin: 0 0 clamp(72px, 10vw, 128px); display: flex; flex-direction: column; gap: 12px; }
.console { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.console-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--faint);
}
.console-head .alert { color: var(--signal); }
.fleet {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 10px; padding: 16px;
}
.m {
  background: var(--card); border: 1px solid var(--tile-line); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.m.wait { border-color: rgba(255, 154, 77, 0.55); }
.m.cloud { border-style: dashed; border-color: var(--dash); }
.m-head {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-family: var(--mono);
}
.m-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m.priv .m-name { color: var(--muted); }
.m-tags { display: flex; align-items: center; gap: 5px; flex: none; }
.tag {
  font-size: 8.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 4px;
}
.tag.you { color: var(--abyss); background: var(--bone); border-color: var(--bone); }
.tag.gpu { color: var(--abyss); background: var(--faint); border-color: var(--faint); }
.tag.dashed { border-style: dashed; border-color: var(--dash); }
.m-sub { font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.d { width: 8px; height: 8px; border-radius: 50%; background: var(--bone); }
.d.idle { background: var(--idle); }
.d.sig { background: var(--signal); }
.d.ring { background: none; border: 1.5px solid var(--bone); }
.d.sel { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--bone); }
.meter { display: flex; align-items: center; gap: 6px; }
.meter .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; display: flex; }
.meter .bar span { background: var(--bone); }
.meter .pct { font-family: var(--mono); font-size: 8.5px; color: var(--muted); }

.caption-row {
  border-top: 1px solid var(--rule); padding: 14px 20px 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
}
.caption-row .k { color: var(--bone); }
.caption-row .v { color: var(--muted); }
.caption-row .d.sel { box-shadow: 0 0 0 2px var(--deep), 0 0 0 3px var(--bone); }
.caption-row .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--signal); }

.diagram { display: block; width: 100%; height: auto; padding: 8px 0; }
.diagram.reef { padding: 0; }
.diagram.compact { display: none; }

.legend {
  display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 20px;
  border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 10px; color: var(--faint);
}
.legend span { display: flex; align-items: center; gap: 6px; }
.shot figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* sections */
.sec { display: flex; flex-direction: column; gap: 32px; padding-bottom: clamp(72px, 10vw, 120px); scroll-margin-top: 24px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
h2 {
  margin: 0; font-size: clamp(28px, 3.8vw, 44px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance;
}
.sec-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--faint); text-wrap: pretty; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.cards.wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card {
  background: var(--deep); border: 1px solid var(--rule); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card.dashed { border: 1px dashed var(--line); }
.card .pip { width: 12px; height: 12px; border-radius: 3px; background: var(--bone); }
.card .pip.sig { background: var(--signal); }
h3 { margin: 0; font-size: 18px; font-weight: 500; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--faint); }
.card p b { color: var(--bone); font-weight: 400; }
.tier { gap: 16px; }
.tier .label { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.tier .label.now { color: var(--signal); }
.tier .list { display: flex; flex-direction: column; gap: 14px; }

.cta {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: clamp(40px, 6vw, 64px); margin-bottom: clamp(56px, 8vw, 96px);
  background: var(--deep); border: 1px solid var(--line); border-radius: 16px;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; max-width: 640px; }
.cta p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--faint); max-width: 600px; }

.foot {
  border-top: 1px solid var(--line); padding: 24px 0 40px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal { font-style: normal; font-size: 11px; line-height: 1.6; color: var(--dim); }
.foot a { color: var(--faint); }

/* motion — the identity's status vocabulary */
@keyframes rfSpin { to { transform: rotate(360deg); } }
@keyframes rfBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes rfHalo { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes rfDash { to { stroke-dashoffset: -5; } }
@keyframes rfHand { 0% { transform: translate(20px, 300px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translate(300px, 170px); opacity: 0; } }
@keyframes rfPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes rfBack { 0% { transform: translate(640px, 245px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(320px, 145px); opacity: 0; } }
@keyframes rfBackV { 0% { transform: translate(80px, 385px); opacity: 0; } 10% { opacity: 1; } 20% { transform: translate(48px, 385px); } 88% { opacity: 1; } 100% { transform: translate(48px, 108px); opacity: 0; } }
@keyframes swLoad { 0% { fill: var(--bone); } 8% { fill: var(--signal); } 24%, 100% { fill: var(--bone); } }
.rf-back { animation: rfBack 3.2s ease-in-out infinite; }
.rf-backv { animation: rfBackV 3.2s ease-in-out infinite; }
.rf-spin { transform-origin: 0 0; animation: rfSpin 16s linear infinite; }
.rf-breathe { transform-origin: 0 0; animation: rfBreathe 2.8s ease-in-out infinite; }
.rf-halo { transform-origin: 0 0; animation: rfHalo 1.8s ease-out infinite; }
.rf-dash { animation: rfDash .6s linear infinite; }
.rf-hand { animation: rfHand 3.4s ease-in-out infinite; }
.rf-pulse { animation: rfPulse 1.6s ease-in-out infinite; }
/* while the form submits, an orange light runs the length of the S */
.loading .brand rect { animation: swLoad 1.56s linear infinite; animation-delay: calc(var(--i, 0) * 120ms); }
@media (prefers-reduced-motion: reduce) {
  .rf-spin, .rf-breathe, .rf-halo, .rf-dash, .rf-hand, .rf-pulse, .rf-back, .rf-backv,
  .loading .brand rect { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .diagram.wide { display: none; }
  .diagram.compact { display: block; }
  .nav { gap: 16px; }
}

/* viewers — phones and tablets that watch and answer but run no agents */
.viewers {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 16px 16px; font-family: var(--mono);
}
.v-chip {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  padding: 6px 10px; background: var(--card); border: 1px solid var(--tile-line);
  border-radius: 999px; color: var(--faint); font-size: 10px;
}
.v-chip .dev { flex: none; color: var(--faint); }
.v-chip.on { border-color: rgba(255, 154, 77, 0.55); }
.v-chip.on .dev { color: var(--signal); }
.v-name { color: var(--bone); white-space: nowrap; }
.v-what { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); white-space: nowrap; }
.v-chip.on .v-what { color: var(--signal); }
.v-what .d { width: 6px; height: 6px; }

/* who the early-access request is for: one segmented control */
.seg { border: 0; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; color: var(--bone); }
.seg-track {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  padding: 4px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px;
}
.seg label { cursor: pointer; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px 10px 28px; border-radius: 8px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.seg span::before {
  content: ''; position: absolute; left: 11px; top: 14px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--idle); transition: background .15s ease;
}
.seg b { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.seg i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg label:hover span { background: var(--card); }
.seg input:checked + span { background: var(--sea); border-color: var(--line); }
.seg input:checked + span::before { background: var(--signal); }
.seg input:checked + span b { color: var(--bone); }
.seg input:checked + span i { color: var(--faint); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 1px; }
@media (max-width: 480px) {
  .seg-track { grid-template-columns: 1fr; }
  .seg span { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
  .seg span::before { top: 50%; margin-top: -4px; }
  .waitlist .btn { flex: 1 1 100%; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
