/* ValoVault — tactical HUD direction.
   Two accents with a semantic split taken from the app's own state machine:
   signal (mint) = assigned / instrumentation, pulse (red) = locked in. */

:root {
  --void: #0a0e11;
  --steel: #141b20;
  --steel-2: #1b242a;
  --line: #26323a;
  --bone: #ede9e2;
  --ash: #8494a0;
  --pulse: #ff4655;
  --signal: #4fe3c1;

  --cut: 16px;
  --shell: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --display: "Chakra Petch", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--signal);
  color: var(--void);
  padding: 0.6rem 1rem;
  font: 500 0.85rem/1 var(--mono);
}

.skip:focus {
  left: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Type primitives ---------- */

.eyebrow {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.1rem;
}

.eyebrow .sep,
.meta-note .sep {
  color: var(--line);
  margin: 0 0.35em;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

/* Sentence case at this size: the display face stays recognisable and the
   caps stay reserved for the two levels that actually lead the page. */
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 17, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font: 400 0.82rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ash);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--bone);
  border-bottom-color: var(--signal);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 0.85rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
}

/* Near-black on red rather than white: higher contrast and reads as HUD. */
.btn-primary {
  background: var(--pulse);
  color: #12080a;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn-primary:hover {
  background: #ff6270;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--bone);
}

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

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  margin-bottom: 1.5rem;
}

.hero h1 .hl {
  color: var(--pulse);
}

.lede {
  color: var(--ash);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 46ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.meta-note {
  margin-top: 1.4rem;
  font: 400 0.76rem/1.6 var(--mono);
  color: var(--ash);
}

.meta-note code {
  font: inherit;
  color: var(--bone);
}

/* ---------- Signature: agent select panel ---------- */

.lockin {
  background: var(--steel);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 1.4rem;
}

.lockin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  padding-bottom: 1.1rem;
}

.lockin-state {
  color: var(--signal);
}

.lockin-state::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--signal);
  margin-right: 0.5em;
  vertical-align: 1px;
}

.is-manual .lockin-state {
  color: var(--ash);
}

.is-manual .lockin-state::before {
  background: var(--ash);
}

.agents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.agent {
  appearance: none;
  border: 0;
  background: var(--steel);
  color: var(--ash);
  font: 700 0.82rem/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 0.25rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.agent:hover {
  color: var(--bone);
  background: var(--steel-2);
}

.agent.is-active {
  color: var(--pulse);
  background: var(--steel-2);
}

.timer {
  height: 2px;
  background: var(--line);
}

.timer-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pulse);
  animation: countdown 3.4s linear infinite;
}

@keyframes countdown {
  from { width: 0; }
  to   { width: 100%; }
}

.loadout {
  margin-top: 1.2rem;
}

.slot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.slot dt {
  font: 400 0.7rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  flex: none;
}

.slot dd {
  font: 500 0.9rem/1 var(--mono);
  text-align: right;
}

.slot .skin {
  color: var(--signal);
}

.slot.swap {
  animation: slotIn 0.34s ease both;
  animation-delay: calc(var(--i) * 45ms);
}

@keyframes slotIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}

.lockin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  font: 400 0.7rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.lockin-foot b {
  color: var(--bone);
  font-weight: 500;
}

.applied {
  color: var(--void);
  background: var(--signal);
  padding: 0.4rem 0.7rem;
  font-weight: 500;
}

/* ---------- Screenshot ---------- */

.shot {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.shot-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: baseline;
  font: 500 0.7rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.shot-cap-alt {
  color: var(--ash);
  letter-spacing: 0.08em;
}

.shot img {
  width: 100%;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

/* ---------- Sections ---------- */

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.band {
  background: #0d1216;
  border-top: 1px solid var(--line);
}

.head {
  max-width: 54ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.head .sub {
  margin-top: 1rem;
  color: var(--ash);
}

/* ---------- Hairline grid: one structural device, reused ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}

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

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

.cell {
  background: var(--void);
  padding: 1.8rem 1.6rem;
}

.cell-tight {
  padding: 1.15rem 1.3rem;
}

.cell-key {
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.5rem;
}

.cell h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.cell p {
  color: var(--ash);
  font-size: 0.92rem;
}

.band .cell {
  background: #0d1216;
}

.modes li {
  font: 500 0.85rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

.modes li::before {
  content: "▸";
  color: var(--signal);
  margin-right: 0.65em;
}

/* Numbers appear only here, where the content really is a sequence. */
.steps .num {
  display: block;
  font: 700 1.6rem/1 var(--display);
  color: var(--line);
  margin-bottom: 1.2rem;
}

.steps a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 227, 193, 0.4);
}

.steps a:hover {
  border-bottom-color: var(--signal);
}

.cell code {
  font: 500 0.85em/1 var(--mono);
  color: var(--bone);
}

.closer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.closer p {
  color: var(--ash);
  font: 400 0.85rem/1.5 var(--mono);
}

/* ---------- Showcase ---------- */

.video {
  aspect-ratio: 16 / 9;
  background: var(--steel);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Developers ---------- */

.dev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.code {
  background: #070a0c;
  padding: 1.6rem;
  overflow-x: auto;
  font: 400 0.85rem/1.85 var(--mono);
  color: var(--bone);
}

.code .c {
  color: var(--ash);
}

.dev-links {
  list-style: none;
  background: #0d1216;
  display: flex;
  flex-direction: column;
}

.dev-links li + li {
  border-top: 1px solid var(--line);
}

.dev-links a {
  display: block;
  padding: 0.95rem 1.3rem;
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.dev-links a:hover {
  color: var(--signal);
  background: var(--steel);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
}

.foot-brand {
  font: 700 1rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-by {
  margin-top: 0.5rem;
  color: var(--ash);
  font-size: 0.88rem;
}

.foot-by a {
  color: var(--signal);
  text-decoration: none;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  align-items: flex-start;
}

.foot-links a {
  font: 400 0.78rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--bone);
}

.disclaimer {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
  color: var(--ash);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .lockin {
    max-width: 480px;
  }

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

  .dev {
    grid-template-columns: 1fr;
  }

  .dev-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dev-links li + li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .nav-cta {
    margin-left: auto;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .timer-fill {
    width: 100%;
  }
}
