:root {
  color-scheme: light;
  --ink: #17202b;
  --muted: #66717f;
  --line: #dce2e8;
  --line-strong: #c8d0d8;
  --blue: #2f6fb3;
  --blue-dark: #1f568e;
  --blue-soft: #edf5fc;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --night: #0a0f1a;
  --night-2: #101a2e;
  --sans: "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.site-header {
  min-height: 70px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 43px;
  height: 28px;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-mark path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-name { font-size: 19px; }
.brand-dot { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  color: #44515f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--blue); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 640px;
  padding: 112px 5vw 104px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 74% 42%, rgba(47,111,179,.22), transparent 62%),
    linear-gradient(160deg, #070b14 0%, #0b1322 55%, #0a1424 100%);
  border-bottom: 1px solid #0a1220;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,230,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,230,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 55%, transparent 100%);
}
/* Legibility scrim: darkens the left region where the text lives so
   copy stays high-contrast over the animated pulse. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(5,9,16,.92) 0%,
    rgba(5,9,16,.82) 34%,
    rgba(5,9,16,.45) 56%,
    rgba(5,9,16,0) 78%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  color: #f4f8fd;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #a9d2f7;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #58c0ff;
  box-shadow: 0 0 0 3px rgba(88,192,255,.25);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  color: #f6faff;
}
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero h1 span { color: #a9c8e8; font-weight: 400; }
.hero-copy {
  max-width: 600px;
  margin: 30px 0 0;
  color: #d3e0ee;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 13px 22px;
  border-radius: 8px;
  color: #08111f;
  background: linear-gradient(180deg, #bfe0ff, #7fbcf0);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 24px rgba(88,160,255,.28);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(88,160,255,.4); }
.hero-scale {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: #93a8c4;
  letter-spacing: .04em;
}
.hero-scale sup { font-size: .75em; }

/* ---------- SECTIONS ---------- */
.eyebrow, .section-kicker { font-family: var(--mono); }
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}
.tools-section, .about-section { padding: 86px 5vw; }
.tools-section { background: var(--soft); border-bottom: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}
.section-heading h2, .about-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.035em;
  line-height: 1.05;
  font-weight: 600;
}
.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.tool-card {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(29,50,72,.06);
  position: relative;
  overflow: hidden;
}
.tool-card.featured::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #58c0ff, var(--blue));
}
.tool-card-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
}
.tool-number {
  font-family: var(--mono);
  color: #8b99a6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  padding-top: 7px;
  border-right: 1px solid var(--line);
}
.tool-title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-title-line h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 600;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #a9c9e7;
  color: #245d94;
  background: var(--blue-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.status-led {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2fae62;
  box-shadow: 0 0 0 2px rgba(47,174,98,.2);
}
.tool-subtitle { margin: 10px 0 15px; color: #405263; font-size: 18px; font-weight: 600; }
.tool-description { max-width: 780px; margin: 0; color: #5b6874; font-size: 15px; line-height: 1.65; }
.tool-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
}
.tool-tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #52616f;
  background: #fafbfc;
  font-family: var(--mono);
  font-size: 12px;
}
.tool-actions { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 210px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.button.secondary { background: white; color: #455767; }
.button.secondary:hover { border-color: #9eabb6; background: #f8fafb; }

.future-slot {
  max-width: 1240px;
  margin: 14px auto 0;
  min-height: 92px;
  border: 1px dashed #c5cdd5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  color: #7b8792;
}
.future-icon { font-size: 30px; font-weight: 300; line-height: 1; color: #9ba7b2; }
.future-slot strong { display: block; color: #5f6b77; margin-bottom: 3px; }
.future-slot span { font-size: 13px; }

.about-section { background: white; }
.about-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}
.about-copy { color: #566472; font-size: 17px; line-height: 1.75; }
.about-copy p { margin: 0 0 18px; }
.about-copy strong { color: var(--ink); }
.site-footer {
  min-height: 90px;
  padding: 26px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #7b8792;
  font-size: 13px;
}
.site-footer strong { color: #3c4956; font-family: var(--display); }

/* ---------- SUBPAGES ---------- */
.page-hero {
  padding: 84px 5vw 54px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; }
.page-hero h1 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.04em;
  line-height: 1.02;
  font-weight: 600;
}
.page-hero .lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: #52606e;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}
.page-section { padding: 70px 5vw; }
.page-section:nth-of-type(even) { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-wrap { max-width: 1240px; margin: 0 auto; }
.page-wrap h2 {
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -.03em;
  font-weight: 600;
}
.prose { max-width: 760px; color: #4b5866; font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--blue-dark); font-weight: 600; }
.prose code {
  font-family: var(--mono);
  font-size: .9em;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 26px;
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .08em;
}
.step h3 {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -.02em;
  font-weight: 600;
}
.step p { margin: 0; color: #5b6874; font-size: 15px; line-height: 1.6; }

.contact-card {
  background: linear-gradient(160deg, #0b1322, #0e1a2e);
  color: #eaf2fb;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.contact-card p { margin: 0; color: #a9bdd4; font-size: 15px; }

.res-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.res {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.res:hover { transform: translateY(-2px); border-color: #9fbdd9; box-shadow: 0 12px 30px rgba(29,50,72,.08); }
.res .res-kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.res h3 { margin: 8px 0 6px; font-family: var(--display); font-size: 18px; letter-spacing: -.01em; font-weight: 600; }
.res p { margin: 0; color: #5b6874; font-size: 14px; line-height: 1.55; }
a.res .res-more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-dark);
  letter-spacing: .02em;
}

/* Detailed concept subsections */
.concept {
  max-width: 820px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.concept:first-of-type { border-top: 0; }
.concept .concept-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.concept h3 {
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.03em;
  font-weight: 600;
}
.concept .concept-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}
.concept p { margin: 0 0 15px; color: #4b5866; font-size: 16px; line-height: 1.72; }
.concept ul { margin: 0 0 15px; padding-left: 22px; color: #4b5866; font-size: 16px; line-height: 1.7; }
.concept li { margin: 0 0 7px; }
.concept code {
  font-family: var(--mono);
  font-size: .88em;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.concept .in-tool {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--blue-soft);
  border: 1px solid #cfe1f2;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #345169;
}
.concept .in-tool strong { color: #234c70; }

@media (max-width: 900px) {
  .hero { padding: 88px 5vw 76px; min-height: 560px; }
  .section-heading, .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .tool-card { grid-template-columns: 1fr; }
  .tool-actions { flex-direction: row; min-width: 0; }
  .tool-actions .button { flex: 1; }
}

@media (max-width: 620px) {
  .site-header { min-height: 60px; padding: 0 14px; gap: 10px; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 32px; }
  .brand { flex: 0 0 auto; gap: 8px; }
  /* Let the nav scroll sideways instead of pushing links off the screen */
  .site-nav {
    gap: 16px;
    flex: 1 1 auto;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
  /* Pulse is centered on phones (see hero JS). Replace the left-weighted
     scrim with an even dark veil so the whole pulse sits behind the mask:
     dimmer, but visible, and text keeps its contrast. */
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(5,9,16,.86) 0%,
      rgba(5,9,16,.68) 42%,
      rgba(5,9,16,.72) 70%,
      rgba(5,9,16,.9) 100%
    );
  }
  .hero { min-height: 480px; padding: 68px 20px 56px; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { gap: 16px; }
  .tools-section, .about-section { padding: 58px 20px; }
  .section-heading { margin-bottom: 24px; }
  .tool-card { padding: 24px 19px; gap: 24px; }
  .tool-card-main { grid-template-columns: 1fr; gap: 8px; }
  .tool-number { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 9px; }
  .tool-title-line h3 { font-size: 34px; }
  .tool-subtitle { font-size: 16px; }
  .tool-actions { flex-direction: column; }
  .future-slot { padding: 18px; align-items: flex-start; }
  .site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow-dot { animation: none; }
}
