@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --page: #080d0f;
  --panel: #0f171a;
  --panel-raised: #172227;
  --line: #29373c;
  --text: #f0f5f2;
  --muted: #9cacaf;
  --accent: #d8f060;
  --selection: #c6d0e9;
  --selection-text: #142026;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #070b0d;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 42px; }
.top-nav { display: flex; align-items: stretch; height: 100%; gap: 28px; }
.top-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
}
.top-nav a:hover, .top-nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; height: 100%; gap: 20px; }
.header-socials { display: flex; align-items: center; gap: 7px; padding-left: 17px; border-left: 1px solid var(--line); }
.social-link { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 50%; color: var(--muted); text-decoration: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease; }
.social-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-link:hover, .social-link:focus-visible { border-color: var(--accent); background: rgba(224, 74, 69, .12); color: var(--text); outline: none; transform: translateY(-1px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.view-toggle { padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font: 700 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .02em; }
.view-toggle:hover, .view-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }

.docs-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.contents {
  position: sticky;
  top: 0;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 27px 16px 48px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.contents-label { display: flex; gap: 9px; align-items: center; margin: 0 12px 18px; color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.contents-label span { color: var(--accent); }
.tree, .tree ul { margin: 0; padding: 0; list-style: none; }
.tree > li { border-top: 1px solid var(--line); }
.tree > li:last-child { border-bottom: 1px solid var(--line); }
.tree button, .tree a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  text-align: left;
  text-decoration: none;
}
.tree button:hover, .tree a:hover { background: var(--panel-raised); }
.tree .arrow { width: 14px; color: var(--muted); transition: transform .18s ease; }
.tree .folder[aria-expanded="true"] > button .arrow { transform: rotate(90deg); }
.tree .folder > ul { display: none; padding: 0 0 8px 25px; }
.tree .folder[aria-expanded="true"] > ul { display: block; }
.tree .leaf { color: #c9d4d2; font-weight: 520; }
.tree .leaf::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #65787a; }
.tree .leaf.selected { background: var(--selection); color: var(--selection-text); font-weight: 740; }
.tree .leaf.selected::before { background: var(--selection-text); }

.article { width: min(960px, 100%); padding: clamp(44px, 7vw, 92px) clamp(26px, 7vw, 112px) 110px; }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.04em; }
h1 { max-width: 800px; margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.04; }
h2 { margin: 52px 0 12px; font-size: 31px; line-height: 1.15; }
.article-lead { max-width: 720px; margin: 20px 0 0; color: #c6d1cf; font-size: 19px; }
.article-rule { width: 100%; height: 1px; margin: 40px 0; background: var(--line); }
.article p { max-width: 760px; color: #c5d0ce; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 32px 0 18px; }
.quick-link { min-height: 146px; padding: 22px; border: 1px solid var(--line); background: #0c1316; text-decoration: none; transition: border-color .15s, transform .15s; }
.quick-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick-link b { display: block; margin-bottom: 7px; color: var(--text); font-size: 16px; }
.quick-link span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.article ul { max-width: 760px; padding-left: 20px; color: #c5d0ce; }
.article li { margin: 7px 0; }
.source-note { margin-top: 48px; padding: 18px 20px; border-left: 3px solid var(--accent); background: #10191c; color: var(--muted); font-size: 14px; }
.documentation-content { width: min(960px, 100%); padding: clamp(44px, 7vw, 92px) clamp(26px, 7vw, 112px) 110px; font-family: "Helvetica Neue", HelveticaNeue-Medium, Roboto, "Noto Sans", Arial, sans-serif; font-size: 14px; line-height: 1.65; }
body.wide-content .documentation-content { width: 100%; max-width: none; }
body.wide-content .documentation-content p, body.wide-content .documentation-content ul, body.wide-content .table-wrap { max-width: none; }
.documentation-content h1, .documentation-content h2, .documentation-content h3, .documentation-content h4 { font-family: inherit; color: var(--text); font-weight: 700; letter-spacing: 0; }
.documentation-content h1 { max-width: 800px; margin: 0 0 28px; font-size: 25px; line-height: 1.25; }
.documentation-content h2 { margin: 48px 0 15px; font-size: 20px; line-height: 1.35; }
.documentation-content h3 { margin: 32px 0 12px; font-size: 16px; line-height: 1.4; }
.documentation-content h4 { margin: 25px 0 10px; font-size: 14px; line-height: 1.45; }
.documentation-content p, .documentation-content ul { max-width: 760px; color: var(--text); }
.documentation-content p { margin: 0 0 17px; }
.documentation-content .video-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.documentation-content .video-link:hover { text-decoration: underline; }
.documentation-content .quickstart-video { margin: -10px 0 22px; color: var(--muted); font-size: 13px; }
.documentation-content ul { padding-left: 20px; }
.documentation-content li { margin: 7px 0; }
.table-wrap { width: min(860px, 100%); margin: 28px 0 38px; overflow-x: auto; background: transparent; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0 7px; }
.table-wrap th, .table-wrap td { padding: 15px 17px; background: #0e171a; color: #c5d0ce; text-align: left; vertical-align: top; }
.table-wrap td:first-child { border-radius: 7px 0 0 7px; color: var(--text); font-weight: 650; }
.table-wrap td:last-child { border-radius: 0 7px 7px 0; }
.table-wrap tr:not(:first-child):hover td { background: #142126; }
.table-wrap p { margin: 0; color: inherit; }
.table-wrap h1, .table-wrap h2, .table-wrap h3, .table-wrap h4 { margin: 0; color: inherit; font: inherit; letter-spacing: normal; }
.table-wrap ul { margin: 0; padding-left: 18px; }
.data-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 860px; margin: 24px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #10191c; color: var(--muted); font-size: 13px; }
.data-flow b { color: var(--accent); font-size: 17px; }
.data-flow code, .data-table code, .data-structure-note code { color: var(--text); font-family: "Roboto Mono", Consolas, monospace; font-size: .92em; }
.data-structure-note { max-width: 820px; margin: 0 0 34px; }
.data-structure-note strong { color: var(--text); }
.data-structure-note ul { margin: 8px 0 0; }
.data-table { margin-top: 18px; }
.data-table th { background: #1b292d; color: var(--text); font-weight: 780; }
.data-table td:first-child { color: inherit; font-weight: 400; box-shadow: none; }
.settings-table td:first-child { width: 31%; white-space: normal; }
.settings-table td:last-child { width: 69%; }
.output-data-table td:nth-child(1) { width: 34%; }
.output-data-table td:nth-child(2) { width: 13%; white-space: nowrap; }
.output-data-table td:nth-child(3) { width: 53%; }
.documentation-content .data-structure-title { margin: 25px 0 8px; color: var(--accent); font-size: 15px; }
.data-structure-title code { font-family: "Roboto Mono", Consolas, monospace; font-size: .94em; }
.contents nav ul, .contents nav ul ul { margin: 0; padding: 0; list-style: none; }
.contents nav > ul > li { border-top: 1px solid var(--line); }
.contents nav > ul > li:last-child { border-bottom: 1px solid var(--line); }
.contents nav a { display: block; padding: 10px 12px; color: #c9d4d2; font-size: 14px; text-decoration: none; }
.contents nav a:hover, .contents nav a.current { background: var(--panel-raised); color: var(--text); }
.contents nav ul ul { padding-left: 18px; }
.source-figure { max-width: min(760px, 100%); margin: 28px 0 34px; }
.source-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #0c1316; }
.source-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; font-weight: 650; }

.contact-main { min-height: calc(100vh - 72px); padding: clamp(58px, 10vw, 140px) 32px; }
.contact-inner { width: min(860px, 100%); margin: auto; }
.contact-card { margin-top: 48px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); background: var(--panel); }
.contact-card p { max-width: 590px; color: #c5d0ce; font-size: 18px; }
.email-link { display: inline-block; margin-top: 15px; color: var(--accent); font: clamp(26px, 4vw, 42px)/1.2 Georgia, "Times New Roman", serif; text-decoration: none; }
.email-link:hover { text-decoration: underline; }
.entry-main { min-height: calc(100vh - 72px); padding: clamp(60px, 10vw, 140px) 32px; }
.entry-inner { width: min(960px, 100%); margin: auto; }
.entry-inner > h1 { max-width: 820px; }
.entry-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 55px; }
.entry-link { min-height: 290px; padding: 28px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .15s, transform .15s; }
.entry-link:hover { border-color: var(--accent); transform: translateY(-3px); }
.entry-link span { display: block; margin-bottom: 38px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.entry-link b { display: block; color: var(--text); font: 32px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.entry-link p { max-width: 360px; color: var(--muted); }
.entry-link i { color: var(--accent); font-size: 14px; font-style: normal; font-weight: 750; }

@media (max-width: 780px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand-logo { height: 34px; }
  .top-nav { gap: 18px; }
  .header-actions { gap: 12px; }
  .header-socials { gap: 4px; padding-left: 10px; }
  .view-toggle { padding: 7px 8px; }
  .docs-shell { display: block; }
  .contents { position: relative; top: auto; height: auto; max-height: 47vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-links { grid-template-columns: 1fr; }
  .entry-links { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .view-toggle { display: none; }
  .header-actions { gap: 8px; }
  .top-nav { display: flex; gap: 0; }
  .top-nav a { font-size: 12px; }
  .header-socials { gap: 2px; padding-left: 6px; }
  .social-link { width: 26px; height: 26px; }
  .social-link svg { width: 15px; height: 15px; }
}

@media (max-width: 360px) {
  .site-header { padding: 0 12px; }
  .brand-logo { height: 28px; }
  .top-nav { gap: 12px; }
  .top-nav a { font-size: 12px; }
}


/* NSL black, gray, and red visual identity */
:root {
  --page: #000000;
  --panel: #1e1e1e;
  --panel-raised: #292929;
  --line: #3a3a3a;
  --text: #f3f3f3;
  --muted: #a7a7a7;
  --accent: #e04a45;
  --accent-deep: #bc2c2b;
  --selection: #e2e2e2;
  --selection-text: #1e1e1e;
}
body { font: 400 16px/1.7 Roboto, Arial, sans-serif; }
::selection { background: var(--selection); color: var(--selection-text); }
.site-header { background: var(--page); }
.view-toggle { font-family: Roboto, Arial, sans-serif; }
.tree .leaf, .contents nav a { color: #d0d0d0; }
.tree .leaf::before { background: #777777; }
h1, h2 { font-family: Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -.035em; }
.article-lead { color: #d6d6d6; }
.article p, .article ul, .contact-card p { color: #d0d0d0; }
.quick-link, .source-figure img { background: #121212; }
.source-note { border-left-color: var(--accent-deep); background: #171717; }
.documentation-content { font-family: Roboto, Arial, sans-serif; }
.table-wrap th, .table-wrap td { background: #151515; color: #d0d0d0; }
.table-wrap tr:not(:first-child):hover td { background: #222222; }
.data-flow { background: #171717; }
.data-flow b { color: var(--accent-deep); }
.data-table th { background: #262626; }
.documentation-content .data-structure-title { color: var(--accent-deep); }
.email-link { font-family: Roboto, Arial, sans-serif; font-weight: 700; }
.entry-link b { font-family: Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -.035em; }


/* Homepage vehicle-physics hero */
.entry-main--home { padding: 0 0 clamp(60px, 10vw, 140px); }
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 38vw, 520px);
  display: grid;
  place-items: start center;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .98) 0%, rgba(0, 0, 0, .82) 14%, transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 30%, transparent 70%, rgba(0, 0, 0, .4)),
    linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 45%),
    url("assets/hero-car-physics.png") center 57% / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 42%, rgba(0, 0, 0, .2)); }
.hero-logo { width: min(660px, 58vw); height: auto; margin-top: clamp(28px, 4vw, 58px); filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .78)); }
.entry-home-content { padding: clamp(48px, 8vw, 110px) 32px 0; }
.intro-video { width: min(900px, 100%); aspect-ratio: 16 / 9; margin-top: 38px; overflow: hidden; border: 1px solid var(--line); background: #111; box-shadow: 0 18px 42px rgba(0, 0, 0, .35); }
.intro-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.products { width: min(900px, 100%); margin-top: clamp(62px, 9vw, 104px); padding-top: 20px; border-top: 1px solid var(--line); }
.products-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.products-heading .kicker { margin: 0 0 7px; }
.products-heading h2 { margin: 0; font-family: Roboto, Arial, sans-serif; font-size: clamp(30px, 4vw, 45px); font-weight: 700; letter-spacing: -.04em; }
.product-card { display: grid; grid-template-columns: minmax(260px, 43%) 1fr; overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease, background-color .18s ease; }
.product-card:hover, .product-card:focus-visible { border-color: var(--accent); background: #252525; outline: none; transform: translateY(-3px); }
.product-card img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; background: #111; }
.product-card-content { display: flex; min-height: 100%; flex-direction: column; align-items: flex-start; padding: clamp(25px, 4vw, 42px); }
.product-type { margin: 0 0 28px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { margin: 0; font: 700 clamp(27px, 3.5vw, 39px)/1.05 Roboto, Arial, sans-serif; letter-spacing: -.045em; }
.product-card-content > p:not(.product-type) { max-width: 440px; margin: 19px 0 28px; color: var(--muted); font-size: 16px; }
.product-card-content span { margin-top: auto; padding-bottom: 2px; border-bottom: 1px solid currentColor; color: var(--text); font-size: 14px; font-weight: 700; }
.product-card-content span b { margin-left: 8px; color: var(--accent); font-size: 17px; }
@media (max-width: 780px) {
  .hero { min-height: clamp(280px, 80vw, 390px); background-position: 55% 57%; }
  .hero-logo { width: min(74vw, 480px); margin-top: clamp(22px, 6vw, 34px); }
  .entry-home-content { padding: 48px 26px 0; }
  .product-card { grid-template-columns: 1fr; }
  .product-card img { min-height: 0; aspect-ratio: 3 / 2; }
}
