/* RaceLYNQ WheelBridge — public site and NVIDIA review portal.
   No frameworks, no external fonts, no network requests. */

:root {
  --void: #05080a;
  --ink: #0a1013;
  --ink-raised: #0d1519;
  --rule: #16232a;
  --rule-strong: #26383f;
  --text: #e9eef0;
  --dim: #8b9ca4;
  --dim-deep: #5d6f77;
  --red: #ff2233;
  --red-deep: #c8101c;
  --ok: #3fd68e;
  --waiting: #f0a93c;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --sheet: 1160px;
  --gutter: 150px;
  --pad: clamp(20px, 5vw, 44px);
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Fine diagonal machining pattern. Fixed, non-interactive, deliberately faint. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(120, 160, 180, 0.05) 0 1px,
    transparent 1px 7px
  );
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  /* A single long word must never widen the page on a narrow screen. */
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

strong {
  font-weight: 620;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  z-index: 10;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(5, 8, 10, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-block: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: -0.035em;
  font-weight: 620;
}

.wordmark .lynq {
  color: var(--red);
}

.wordmark .unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--dim-deep);
  text-transform: uppercase;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  font-size: 15px;
}

.masthead nav a {
  color: var(--dim);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover {
  color: var(--text);
  border-bottom-color: var(--red);
}

/* ---------- Bands ---------- */

main {
  flex: 1;
}

.band {
  border-top: 1px solid var(--rule);
}

.band:first-child {
  border-top: 0;
}

.band-inner {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 92px);
}

.band-mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--dim-deep);
  line-height: 1.5;
  padding-top: 6px;
}

.band-body > * + * {
  margin-top: 26px;
}

.prose {
  color: var(--dim);
  max-width: 64ch;
}

.prose + .prose {
  margin-top: 16px;
}

.prose.spaced {
  margin-top: 22px;
}

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

.hero .band-inner {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(56px, 10vw, 124px);
}

.hero h1 {
  /* The lower bound has to fit "Real racing hardware," inside a 390px phone. */
  font-size: clamp(1.9rem, 6.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 680;
  max-width: 17ch;
}

.hero .lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  color: var(--dim);
  max-width: 58ch;
  margin-top: 26px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* ---------- Signal chain (the product in one glance) ---------- */

.chain {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.chain li {
  background: var(--ink);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.chain-stage {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim-deep);
  text-transform: uppercase;
}

.chain li strong {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.chain-note {
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.5;
}

/* Red joint marking the direction of signal flow. */
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.chain .device {
  background: var(--ink-raised);
  box-shadow: inset 0 0 0 1px rgba(255, 34, 51, 0.32);
}

.chain .device strong {
  color: #fff;
}

/* ---------- Verified state line ---------- */

.state-line {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 0.9375rem;
  color: var(--dim);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  transform: translateY(-1px);
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(63, 214, 142, 0.6);
}

.dot.waiting {
  background: var(--waiting);
  box-shadow: 0 0 10px rgba(240, 169, 60, 0.55);
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 14px 24px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button:hover {
  background: #ff3b49;
}

.button:active {
  background: var(--red-deep);
}

.button.quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}

.button.quiet:hover {
  background: var(--ink-raised);
  box-shadow: inset 0 0 0 1px var(--dim-deep);
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}

.link:hover {
  border-bottom-color: var(--red);
}

.link-quiet {
  color: var(--dim);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.link-quiet:hover {
  color: var(--text);
  border-bottom-color: var(--rule-strong);
}

/* ---------- Specification table ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.spec caption {
  text-align: left;
  color: var(--dim);
  padding-bottom: 14px;
}

.spec th,
.spec td {
  border-top: 1px solid var(--rule);
  padding: 13px 16px 13px 0;
  vertical-align: baseline;
}

.spec tbody th {
  font-weight: 400;
  color: var(--dim);
  width: 34%;
  white-space: nowrap;
}

.spec td {
  color: var(--text);
}

.spec .mono {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* ---------- USB identity: the one loud element ---------- */

.identity {
  font-family: var(--mono);
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
}

.identity .sep {
  color: var(--red);
}

.identity-caption {
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.9375rem;
}

/* ---------- Panels ---------- */

.panel {
  border: 1px solid var(--rule);
  background: var(--ink);
  padding: clamp(24px, 3.5vw, 36px);
}

.panel > * + * {
  margin-top: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* ---------- Status readout ---------- */

.readout {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
}

.readout li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  background: var(--ink);
}

.readout li:first-child {
  border-top: 0;
}

.readout .dot {
  align-self: center;
  transform: none;
}

.readout .verdict {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.readout .verdict.ok {
  color: var(--ok);
}

.readout .verdict.waiting {
  color: var(--waiting);
}

/* ---------- Procedure ---------- */

.procedure {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.procedure li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.procedure li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  padding-top: 3px;
}

.procedure strong {
  display: block;
  margin-bottom: 4px;
}

.procedure span {
  color: var(--dim);
  font-size: 0.9375rem;
}

/* ---------- Notices ---------- */

.notice {
  border-left: 2px solid var(--waiting);
  background: rgba(240, 169, 60, 0.06);
  padding: 16px 20px;
  color: var(--dim);
  font-size: 0.9375rem;
}

.notice strong {
  color: var(--text);
}

.classification {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(255, 34, 51, 0.4);
  padding: 5px 10px;
  border-radius: 2px;
}

/* ---------- Download card ---------- */

.download {
  border: 1px solid var(--rule-strong);
  background: var(--ink-raised);
  padding: clamp(24px, 3.5vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.download h2 {
  font-size: 1.375rem;
}

.download p {
  color: var(--dim);
  font-size: 0.9375rem;
  margin-top: 8px;
  max-width: 58ch;
}

/* ---------- Sign-in ---------- */

.signin {
  max-width: 460px;
  margin-inline: auto;
  padding-block: clamp(56px, 12vw, 120px);
}

.signin h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 20px;
}

.signin .prose {
  margin-top: 14px;
}

.signin form {
  margin-top: 32px;
}

.signin label {
  display: block;
  font-size: 0.9375rem;
  color: var(--dim);
  margin-bottom: 9px;
}

.signin input {
  width: 100%;
  background: #040708;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
}

.signin input:focus {
  border-color: var(--dim-deep);
}

.signin .button {
  width: 100%;
  margin-top: 16px;
  padding-block: 15px;
}

.form-error {
  margin-top: 14px;
  color: #ff8a92;
  font-size: 0.9375rem;
}

.form-help {
  margin-top: 22px;
  color: var(--dim-deep);
  font-size: 0.875rem;
}

.signout {
  display: inline;
}

.signout button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--dim);
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
}

.signout button:hover {
  color: var(--text);
}

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

footer {
  border-top: 1px solid var(--rule);
  padding-block: 42px;
  color: var(--dim-deep);
  font-size: 0.875rem;
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}

footer p {
  max-width: 62ch;
}

footer .trademark {
  margin-top: 14px;
  line-height: 1.6;
}

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

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

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

  /* Flow marker turns downward at the end of each row. */
  .chain li:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: -5px;
    transform: translateX(50%) rotate(45deg);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .band-inner,
  .hero .band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .band-mark {
    padding-top: 0;
  }

  .masthead {
    position: static;
  }

  .masthead-inner {
    min-height: 0;
  }

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

  .chain li:not(:last-child)::after,
  .chain li:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: -5px;
    transform: translateX(50%) rotate(45deg);
  }

  .readout li {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .readout .verdict {
    grid-column: 2;
  }

  .spec tbody th {
    width: 42%;
    white-space: normal;
  }

  .download .button {
    width: 100%;
    text-align: center;
  }
}

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

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ===================================================================
   racelynq.app — Profile Creator community portal.
   Built on the racelynq.com token set above: same palette, spacing,
   panels, borders and buttons. Only the pieces this site needs are new.
   =================================================================== */

/* Green is reserved for success and active states. */
.ok-text {
  color: var(--ok);
}

/* --- Four-step process ------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.steps li {
  counter-increment: step;
  background: var(--ink);
  padding: 24px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red);
}

.steps strong {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.steps span {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--dim);
}

/* --- Download panel ----------------------------------------------- */

.get {
  border: 1px solid var(--rule-strong);
  background: var(--ink-raised);
  padding: clamp(24px, 3.5vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.get h2 {
  font-size: 1.375rem;
}

.get p {
  color: var(--dim);
  font-size: 0.9375rem;
  margin-top: 8px;
  max-width: 56ch;
}

.get-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim-deep);
}

/* --- Safeguards list ---------------------------------------------- */

.safeguards {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
}

.safeguards li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  font-size: 0.9375rem;
  color: var(--dim);
}

.safeguards li:first-child {
  border-top: 0;
}

.safeguards li strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.safeguards .mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(63, 214, 142, 0.5);
  margin-top: 8px;
}

/* --- Legal / privacy prose ---------------------------------------- */

.legal-body > * + * {
  margin-top: 20px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin-top: 36px;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--dim);
  max-width: 68ch;
}

.legal-body ul {
  margin: 0;
  padding-left: 20px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body code {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--text);
}

/* --- Cross-link back to racelynq.com ------------------------------ */

.sibling {
  border: 1px solid var(--rule);
  background: var(--ink);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sibling p {
  color: var(--dim);
  font-size: 0.9375rem;
  max-width: 60ch;
}

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

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .get .button,
  .sibling .button {
    width: 100%;
    text-align: center;
  }
}
