/* GS-3: self-hosted latin subsets (OFL), swap so text paints at once. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/ibm-plex-mono-300-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }

:root {
  --bg-void: #020510;
  --bg-navy: #071324;
  --ink-primary: #f2f6fc;
  --ink-dim-word: #7d90a8;
  --ink-secondary: #98abc2;
  --ink-muted: #6f839c;
  --hairline: rgba(196, 218, 248, 0.085);
  --hairline-strong: rgba(196, 218, 248, 0.14);
  --pill-bg: rgba(255, 255, 255, 0.065);
  --pill-border: rgba(255, 255, 255, 0.09);
  --white: #ffffff;
  --ink-on-white: #070c18;
  --stat-verified: #82baa7;
  --focus-ring: rgba(152, 212, 255, 0.85);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --touch-min: 44px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg-void);
  overflow-x: hidden;
  line-height: 1.5;
}

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

/* ------------------------------------------------------------
   HERO STAGE
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(ellipse 64% 82% at 24% 38%, rgba(28, 63, 98, 0.70) 0%, rgba(15, 36, 62, 0.40) 48%, transparent 78%),
    radial-gradient(circle 460px at 36% 80%, rgba(70, 112, 140, 0.30) 0%, rgba(28, 54, 82, 0.12) 55%, transparent 76%),
    radial-gradient(ellipse 52% 60% at 53% 48%, rgba(16, 36, 64, 0.48) 0%, transparent 72%),
    linear-gradient(96deg, #0b1e35 0%, #0a1b30 28%, #071326 54%, #030715 78%, #01030b 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-grid .line-h-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 90px;
  height: 1px;
  background: var(--hairline);
}

.hero-grid .line-h-bot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  height: 1px;
  background: var(--hairline);
}

.hero-grid .line-v-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30.8%;
  width: 1px;
  background: var(--hairline);
}

.hero-grid .line-v-right {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70.2%;
  width: 1px;
  background: var(--hairline);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.085;
  mix-blend-mode: overlay;
  background-repeat: repeat;
}

/* ------------------------------------------------------------
   TOP NAVIGATION
------------------------------------------------------------ */
.nav {
  position: relative;
  z-index: 10;
  height: 90px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  justify-self: start;
  transition: opacity 0.2s ease;
}

.wordmark:hover { opacity: 0.86; }

.wordmark-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(226, 236, 248, 0.84);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-tab.is-active {
  background: var(--white);
  color: var(--ink-on-white);
  border-color: var(--white);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav-text-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(214, 227, 244, 0.82);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-text-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--pill-bg);
  color: var(--ink-primary);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-pill-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* GS-17: 44px hit area without growing the visible pill (34px, 31px at 860px and below). */
.wordmark::before,
.nav-tab::before,
.nav-text-btn::before,
.nav-pill-btn::before,
.cta-primary::before,
.copy-btn::before,
.log-srcs a::before,
.crumb a::before,
.tool-sec p > a:only-child::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--touch-min);
  transform: translateY(-50%);
}

/* ------------------------------------------------------------
   HERO CONTENT GRID
------------------------------------------------------------ */
.hero-main {
  position: relative;
  z-index: 6;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(290px, 430px) 1fr minmax(180px, 240px);
  align-items: center;
  padding: 40px var(--gutter) 52px;
  gap: 24px;
}

.hero-copy {
  max-width: 420px;
}




.hero-headline {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(2.15rem, 3.85vw, 3.35rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
  margin-bottom: 20px;
}

.hero-headline .dim {
  color: var(--ink-dim-word);
}

.hero-subline {
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-secondary);
  max-width: 36ch;
  margin-bottom: 30px;
  font-weight: 400;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-on-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}

.hero-spacer {
  min-height: 1px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-self: end;
  width: 100%;
  max-width: 210px;
  padding-left: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 2.5vw, 2.3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}


.stat-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-secondary);
  max-width: 20ch;
}





/* ------------------------------------------------------------
   TOOLS STRIP
------------------------------------------------------------ */
.tools-section {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, #030714 0%, #050c1b 100%);
  border-top: 1px solid var(--hairline-strong);
  padding: 88px var(--gutter) 96px;
}

.tools-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.tools-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tools-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.tools-heading {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.tools-sub {
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 40ch;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline-strong);
  border-left: 1px solid var(--hairline-strong);
}

.tool-tile {
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 184px;
  padding: 26px 24px 24px;
  border-right: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  background: rgba(10, 22, 42, 0.28);
  transition: background 0.25s ease;
}

.tool-tile:hover {
  background: rgba(20, 42, 74, 0.42);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.tool-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.tool-tile:hover .tool-arrow {
  transform: translate(2px, -2px);
  color: var(--ink-primary);
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 5;
  background: #02050f;
  border-top: 1px solid var(--hairline);
  padding: 28px var(--gutter);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 1040px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid .line-v-left { left: 36%; }
  .hero-grid .line-v-right { left: 73%; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; }

  .hero-grid .line-h-top { top: 160px; } /* under the three-row nav (152.5px) with an 8px gap */
  .hero-grid .line-v-left,
  .hero-grid .line-v-right { display: none; }

  .nav {
    height: auto;
    padding: 18px var(--gutter) 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 18px; /* at least 18px so 44px hit plates on 22.5px / 31px rows do not overlap */
  }

  .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav-actions { grid-column: 1 / -1; grid-row: 3; justify-self: start; gap: 8px; }

  .nav-text-btn { padding: 0 11px; font-size: 12.5px; height: 31px; }
  .nav-pill-btn { padding: 0 13px; font-size: 12.5px; height: 31px; }

  .nav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    overflow-x: auto;
    /* 8px of room so the 2px focus ring (3px offset) and the 44px hit plate (6.5px past a 31px pill) are not clipped */
    max-width: calc(100% + 16px);
    padding: 8px;
    margin: -8px;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 0 13px; font-size: 12.5px; height: 31px; }

  .hero-main {
    grid-template-columns: 1fr;
    padding: 36px var(--gutter) 44px;
    gap: 0;
    align-items: start;
  }

  .hero-copy { max-width: 100%; }
  .hero-headline { font-size: clamp(2rem, 8.6vw, 2.6rem); }

  /* Dedicated framed showcase band for the glyph bot sculpture on mobile */
  .hero-spacer { height: 290px; }

  .hero-stats {
    justify-self: stretch;
    max-width: 100%;
    padding-left: 0;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-grid .line-h-bot { bottom: 48px; }
}

@media (max-width: 560px) {
  .tools-section { padding: 64px var(--gutter) 72px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-tile { min-height: 144px; }
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--white); color: var(--ink-on-white); padding: 8px 14px; border-radius: 999px; font-size: 13px; }
.skip-link:focus { left: 12px; }
.footer-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-fallback a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--ink-primary); }

.footer-fallback {
  flex-basis: 100%;
  margin: 4px 0 0;
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.footer-fallback a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline-strong);
}
.footer-fallback a:hover { color: var(--ink-primary); text-decoration-color: var(--ink-primary); }
.about-email-fallback { color: var(--ink-muted); }
@media (max-width: 600px) {
  .footer-fallback { text-align: left; }
}


/* GS-13 how it runs + bench */
.runs-section { position: relative; z-index: 5; background: var(--bg-void); border-top: 1px solid var(--hairline-strong); padding: 56px var(--gutter) 60px; }
.runs-heading { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 20px; }
.runs-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline-strong); }
.runs-list li { font-family: var(--font-mono); font-size: 15px; line-height: 1.55; letter-spacing: -0.02em; color: var(--ink-primary); padding: 22px 24px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.runs-n { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-muted); }
.bench-section { position: relative; z-index: 5; background: linear-gradient(180deg, #050c1b 0%, #030714 100%); border-top: 1px solid var(--hairline-strong); padding: 72px var(--gutter) 80px; }
.tools-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tools-grid.three { grid-template-columns: 1fr; } .runs-list { grid-template-columns: 1fr; } .runs-list li { padding-right: 0; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); } .runs-section { padding: 44px var(--gutter) 40px; } .bench-section { padding: 56px var(--gutter) 64px; } }
