/* Nyx Industries — site styles
   Brand: cyan #22D3EE on #0A0F1A. Display: Archivo. Body: IBM Plex Sans.
   One accent colour. Amber is functional only: it labels a target rather than a measurement. */

:root {
  --bg:        #0A0F1A;
  --bg-raise:  #111A29;
  --bg-sink:   #070B13;
  --line:      #1E2A3D;
  --text:      #E8EEF7;
  --muted:     #93A4BC;
  --dim:       #63748C;
  --cyan:      #22D3EE;
  --cyan-dim:  #0E7A8C;
  --amber:     #F2A93B;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--step-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: Archivo, "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 2rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand img { height: 34px; width: auto; flex: none; display: block; }
.brand b {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.06em;
}
.brand span { color: var(--muted); font-weight: 700; letter-spacing: 0.06em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
/* .nav a (0,2,0) outranks .btn (0,1,0), so the header button needs its own rule. */
.nav a.btn, .nav a.btn:hover { color: #04141C; }
.nav a.btn.ghost, .nav a.btn.ghost:hover { color: var(--cyan); }

.btn {
  display: inline-block;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 0.97rem;
  padding: 0.62rem 1.15rem; border-radius: 3px;
  text-decoration: none; border: 1px solid var(--cyan);
  color: #04141C; background: var(--cyan);
  -webkit-font-smoothing: auto;
}
.btn:hover { background: #46DEF5; border-color: #46DEF5; }
.btn.ghost { background: none; color: var(--cyan); }
.btn.ghost:hover { background: rgba(34, 211, 238, 0.1); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8.5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-mark {
  position: absolute; right: -8vw; top: 50%; transform: translateY(-50%);
  width: min(660px, 62vw); height: auto; opacity: 0.06; pointer-events: none;
  color: var(--cyan);
}
.hero .wrap { position: relative; }
.hero h1 { font-size: var(--step-4); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lede {
  font-size: var(--step-2); color: var(--muted); max-width: 52ch;
  margin-top: 1.6rem; line-height: 1.45;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.4rem; }

/* ---------- generic section ---------- */

.band { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.band.sunk { background: var(--bg-sink); }
.band h2 { font-size: var(--step-3); max-width: 22ch; }
.band .intro { color: var(--muted); margin-top: 1.1rem; font-size: var(--step-1); }

.pull {
  font-family: Archivo, sans-serif; font-weight: 600;
  font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.015em;
  max-width: 34ch; margin: 0;
}

/* two-column band: statement left, body right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 5vw, 4.5rem); }
.split > :last-child > :last-child { margin-bottom: 0; }

/* ---------- what we solve: hairline list, not a card kit ---------- */

.solves { margin-top: 2.75rem; border-top: 1px solid var(--line); }
.solve {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline;
  padding: 1.65rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.solve:hover { background: rgba(34, 211, 238, 0.04); }
.solve h3 { font-size: var(--step-2); }
.solve p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.solve .go { color: var(--cyan); font-size: 0.95rem; white-space: nowrap; }

/* ---------- the two modes ---------- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.mode h3 { font-size: var(--step-2); }
.mode p { color: var(--muted); margin-top: 0.9rem; }
.mode ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.mode li { padding: 0.5rem 0; border-top: 1px solid var(--line); color: var(--text); font-size: 1.02rem; }
.rule-line {
  margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-family: Archivo, sans-serif; font-weight: 600; font-size: var(--step-2);
  letter-spacing: -0.015em; max-width: 46ch; line-height: 1.35;
}

/* ---------- proof ---------- */

.proof { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.fact { border-left: 2px solid var(--cyan); padding-left: 1.15rem; }
.fact .n { font-family: Archivo, sans-serif; font-weight: 700; font-size: var(--step-3); letter-spacing: -0.03em; display: block; }
.fact h3 { font-size: 1.05rem; font-weight: 600; margin-top: 0.35rem; }
.fact p { color: var(--muted); font-size: 0.98rem; margin: 0.5rem 0 0; }
.fact .where { display: block; margin-top: 0.7rem; color: var(--dim); font-size: 0.86rem; }

.tag {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.08em;
  font-weight: 600; padding: 0.16rem 0.45rem; border-radius: 2px; vertical-align: 0.28em;
}
.tag.measured { color: var(--cyan); border: 1px solid var(--cyan-dim); }
.tag.target { color: var(--amber); border: 1px solid #6B4A12; }

.discipline { margin-top: 2.5rem; color: var(--dim); font-size: 0.95rem; max-width: 62ch; }

/* ---------- cost / help columns (solution pages) ---------- */

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2.4rem; }
.col { display: flex; flex-direction: column; }
.col h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.col p { color: var(--muted); font-size: 1.0rem; margin-top: 0.6rem; }
.col .answer {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line);
  color: var(--text); font-size: 1.0rem;
}
.col .answer b { color: var(--cyan); font-weight: 600; display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }

/* ---------- flow ---------- */

.flow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.flow li {
  flex: 1 1 8rem; background: var(--bg-raise); border: 1px solid var(--line);
  padding: 1rem 1.1rem; border-radius: 3px; font-size: 1rem;
}
.flow li b { display: block; font-family: Archivo, sans-serif; color: var(--cyan); font-size: 0.82rem; margin-bottom: 0.35rem; }
.loopback { margin-top: 1rem; color: var(--dim); font-size: 0.95rem; }

/* ---------- first step / evaluation band ---------- */

.step-band { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.75rem, 4vw, 3rem); margin-top: 2.5rem; }
.step-band h2, .step-band h3 { font-size: var(--step-2); }
.step-band p { color: var(--muted); margin-top: 0.9rem; }

.cta-band { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); background: var(--bg-sink); }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; }
.cta-band p { color: var(--muted); margin-top: 1.1rem; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 2.75rem 0; color: var(--dim); font-size: 0.93rem; }
.foot-logo { height: 90px; width: auto; display: block; margin-bottom: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot .legal { margin-left: auto; }

/* ---------- video ---------- */

.video {
  position: relative; width: 100%; max-width: 940px; margin-top: 2.2rem;
  padding-top: min(56.25%, 528px);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg-sink);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- case studies ---------- */

.studies { margin-top: 2.75rem; border-top: 1px solid var(--line); }
.study {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 4vw, 3rem); padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.study h3 { font-size: var(--step-2); }
.study .meta { color: var(--dim); font-size: 0.9rem; margin-top: 0.7rem; }
.study-body p { color: var(--muted); font-size: 1.02rem; }
.study-body p b { color: var(--text); font-weight: 600; }
.study-body p:last-child { margin-bottom: 0; }
.study.pending .study-body p { color: var(--dim); }

/* ---------- posture list ---------- */

.posture { margin: 2.2rem 0 0; padding: 0; list-style: none; max-width: 78ch; }
.posture li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.04rem; }
.posture li b { color: var(--text); font-weight: 600; }

/* ---------- form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; max-width: 820px; }
.field { display: flex; flex-direction: column; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.65rem 0.75rem;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.form .btn { border: 1px solid var(--cyan); cursor: pointer; }
.field.wide .btn { align-self: start; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split, .modes, .proof, .cols3 { grid-template-columns: 1fr; }
  .solve { grid-template-columns: 1fr; gap: 0.5rem; }
  .solve .go { display: none; }
  .study { grid-template-columns: 1fr; gap: 0.9rem; }
  .form { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0.25rem;
    background: var(--bg-raise); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); }
  .nav-toggle {
    display: inline-block; margin-left: auto; background: none; border: 1px solid var(--line);
    color: var(--text); border-radius: 3px; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.9rem; cursor: pointer;
  }
  .hero-mark { opacity: 0.05; }
  .foot .legal { margin-left: 0; }
}
