@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --ink: #050709;
  --muted: #4f5963;
  --line: #d7dde2;
  --soft: #edf0f2;
  --panel: #f9fbfc;
  --cyan: #1f6f89;
  --cyan-dark: #164f68;
  --orange: #d97745;
  --orange-dark: #984b22;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 39px, rgba(0, 0, 0, 0.018) 40px) 0 0 / 40px 40px,
    linear-gradient(transparent 0 39px, rgba(0, 0, 0, 0.016) 40px) 0 0 / 40px 40px,
    var(--bg);
  font-family: var(--sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 800;
}

.brand span:first-child {
  font-size: 28px;
}

.nav {
  display: flex;
  gap: 4px;
  color: #11171d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-bottom: 2px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.nav a[href="/"] { order: 1; }
.nav a[href="/timeline/"] { order: 2; }
.nav a[href="/services/"] { order: 3; }
.nav a[href="/investors/"] { order: 4; }
.nav a[href="/aiwf/"] { order: 5; }
.nav a[href="/rnv1-robotics/"] { order: 6; }
.nav a[href="/contact/"] { order: 7; }

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"],
html:has(link[rel="canonical"][href$="/services/"]) .nav a[href="/services/"],
html:has(link[rel="canonical"][href$="/investors/"]) .nav a[href="/investors/"],
html:has(link[rel="canonical"][href$="/aiwf/"]) .nav a[href="/aiwf/"],
html:has(link[rel="canonical"][href$="/rnv1-robotics/"]) .nav a[href="/rnv1-robotics/"],
html:has(link[rel="canonical"][href$="/timeline/"]) .nav a[href="/timeline/"],
html:has(link[rel="canonical"][href$="/contact/"]) .nav a[href="/contact/"] {
  border-color: #11171d;
  border-bottom-color: var(--orange);
  color: #11171d;
  background: rgba(245, 156, 26, 0.09);
}

main {
  background: rgba(255, 255, 255, 0.86);
}

.topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(300px, 42%);
  min-height: 390px;
  border-bottom: 1px solid var(--line);
}

.topic-copy {
  padding: 52px clamp(24px, 5vw, 68px);
  border-right: 1px solid var(--line);
}

.mark {
  color: var(--cyan-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1;
}

p {
  max-width: 760px;
  color: #303a43;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
}

.topic-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px 34px;
  border-top: 3px solid var(--cyan);
  background: rgba(249, 251, 252, 0.92);
}

.topic-panel.orange {
  border-top-color: var(--orange);
}

.system-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.system-list li {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.topic-actions,
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #020305;
  background: #020305;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.button.secondary,
.back {
  background: #fff;
  color: #11171d;
}

.button:hover,
.button:focus-visible,
.back:hover,
.back:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.section-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  border-bottom: 1px solid var(--line);
}

.section-title {
  padding: 30px clamp(24px, 4vw, 56px);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

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

.cell {
  min-height: 170px;
  padding: 26px 28px;
  border-right: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  background: rgba(255, 255, 255, 0.94);
}

.cell:nth-child(2n) {
  border-right: 0;
}

.cell h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  text-transform: uppercase;
}

.cell p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.foot {
  padding: 26px clamp(24px, 5vw, 68px) 38px;
  background: #fff;
  color: #303a43;
  font-size: 13px;
}

.foot a {
  color: var(--cyan-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px 9px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
    padding: 6px 0 0;
    gap: 4px;
    border-top: 1px solid var(--soft);
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 5px;
    border-bottom-color: var(--line);
    font-size: 8.5px;
  }

  .nav a[href="/timeline/"],
  .nav a[href="/investors/"] {
    min-width: 0;
  }

  .topic-hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .topic-copy,
  .section-title {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .cell,
  .cell:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .brand span:first-child {
    font-size: 23px;
  }

  .brand span:last-child {
    font-size: 13px;
  }

  .topic-copy,
  .topic-panel,
  .section-title,
  .cell {
    padding: 28px 22px;
  }
}
