@import url("header.css");
/* ==========================================================================
   MeshDTN — site stylesheet
   Dark, technical, brand-matched to MeshDTN-Logo.png / MeshDTN-Banner.png.
   No external requests: system fonts only, no CDN, no trackers.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg:        #06080e;
  --bg-deep:   #07090d;   /* matches the logo/banner artwork background exactly */
  --bg-panel:  #0b1119;
  --bg-raise:  #101825;

  --ink:       #e9eff7;
  --ink-soft:  #b9c6d6;
  --muted:     #8a9ab0;
  --faint:     #64748b;

  --cyan:      #22d3ee;
  --teal:      #2dd4bf;
  --blue:      #3b82f6;
  --violet:    #818cf8;
  --amber:     #fbbf24;
  --rose:      #fb7185;
  --green:     #34d399;

  --line:      rgba(150, 185, 225, 0.13);
  --line-soft: rgba(150, 185, 225, 0.07);
  --glow:      rgba(34, 211, 238, 0.18);

  --grad: linear-gradient(100deg, var(--teal) 0%, var(--cyan) 42%, var(--blue) 100%);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --wrap: 1180px;
  --narrow: 760px;

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

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---------- type ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.018em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; font-weight: 700; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
strong, b { color: #fff; font-weight: 700; }
em { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 .72rem/1 var(--sans);
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.eyebrow.plain::before { display: none; }

.lede {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}
.tagline {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700; line-height: 1.35;
  color: #fff; letter-spacing: -0.02em;
  text-wrap: balance;
}
.gradtext {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.dim { color: var(--muted); }
.small { font-size: .92rem; }
.mono { font-family: var(--mono); font-size: .9em; }

/* ---------- layout ---------- */

section { position: relative; }
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band.tight { padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.band.alt { background: var(--bg-deep); border-block: 1px solid var(--line-soft); }
.band.panel { background: linear-gradient(180deg, var(--bg-panel), var(--bg)); border-top: 1px solid var(--line-soft); }

.head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

.stack > * + * { margin-top: 1.1rem; }
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split.wide-left { grid-template-columns: 1.25fr 1fr; } }

.grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } }



.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; }

.arrowlink {
  display: inline-flex; align-items: center; gap: .42rem;
  font-weight: 700; font-size: .95rem; color: var(--cyan);
}
.arrowlink:hover { text-decoration: none; }
.arrowlink::after { content: "→"; transition: transform .18s ease; }
.arrowlink:hover::after { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg-deep); overflow: hidden; }
.hero-banner { position: relative; }
.hero-banner img { width: 100%; height: auto; }
.hero-banner::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 32%;
  background: linear-gradient(180deg, rgba(6,8,14,0), var(--bg) 92%);
  pointer-events: none;
}
/* The banner artwork is very wide; on phones it is shown whole rather than
   cropped, because the H1 immediately below carries the message anyway. */
@media (max-width: 700px) {
  .hero-banner::after { height: 55%; }
}

.hero-copy { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); position: relative; }
.hero-copy h1 { max-width: 16ch; }
.hero-copy .lede { margin-top: 1.4rem; }
.hero-copy .btnrow { margin-top: 2.1rem; }
.hero-note {
  margin-top: 1.6rem; font-size: .9rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .45rem 1.1rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-note span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}

/* soft radial glow used behind key sections */
.glowbg { overflow: hidden; }
.glowbg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none; z-index: 0;
}
.glowbg > * { position: relative; z-index: 1; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(170deg, var(--bg-raise), var(--bg-panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.45rem;
  position: relative;
  transition: border-color .18s ease, transform .18s ease;
}
.card h3, .card h4 { margin-bottom: .5rem; }
.card p { font-size: .96rem; color: var(--ink-soft); }
.card:hover { border-color: rgba(150,185,225,.26); }
a.card:hover { text-decoration: none; transform: translateY(-2px); }

.card .ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1.05rem;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.22);
  color: var(--cyan);
}
.card .ico svg { width: 21px; height: 21px; }
.card .ico.teal   { background: rgba(45,212,191,.1);  border-color: rgba(45,212,191,.24);  color: var(--teal); }
.card .ico.blue   { background: rgba(59,130,246,.11); border-color: rgba(59,130,246,.26); color: #60a5fa; }
.card .ico.violet { background: rgba(129,140,248,.11);border-color: rgba(129,140,248,.26);color: var(--violet); }
.card .ico.amber  { background: rgba(251,191,36,.1);  border-color: rgba(251,191,36,.24);  color: var(--amber); }

.card-lift { border-top: 2px solid transparent; border-image: var(--grad) 1; }

/* feature strip (3 columns of plain text) */
.strip { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .strip { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.strip .item { border-top: 2px solid rgba(34,211,238,.35); padding-top: 1.15rem; }
.strip .item h3 { font-size: 1.12rem; }
.strip .item p { font-size: .97rem; margin: 0; }

/* ---------- numbered journey steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 4.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.35rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 .95rem/1 var(--mono); color: var(--cyan);
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.3);
}
.step::after {
  content: ""; position: absolute; left: 19.5px; top: calc(1.35rem + 44px); bottom: -1px;
  width: 1px; background: linear-gradient(180deg, rgba(34,211,238,.35), rgba(34,211,238,.05));
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0; font-size: .98rem; }

/* ---------- light "paper" panel for the infographic ---------- */
.paper {
  background: #fdfdfe;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(34,211,238,.13);
  overflow: hidden;
}
.paper img { border-radius: 12px; width: 100%; height: auto; }
.paper.zoomable img { cursor: zoom-in; }
.figcap {
  margin-top: .9rem; font-size: .88rem; color: var(--muted); text-align: center;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(2,4,8,.94); padding: 2vmin;
  overflow: auto;
}
.lightbox.open { display: grid; place-items: center; }
.lightbox img { max-width: 100%; height: auto; border-radius: 10px; background: #fff; }
.lightbox .close {
  position: fixed; top: 16px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid var(--line);
  color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}

/* ---------- callouts ---------- */
.callout {
  border: 1px solid rgba(34,211,238,.28);
  background:
    linear-gradient(135deg, rgba(34,211,238,.09), rgba(59,130,246,.05)),
    var(--bg-panel);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.callout h2, .callout h3 { margin-bottom: .6rem; }
.callout.warn {
  border-color: rgba(251,191,36,.3);
  background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(251,113,133,.04)), var(--bg-panel);
}
.callout.warn .eyebrow { color: var(--amber); }
.callout.warn .eyebrow::before { background: var(--amber); }

blockquote.pull {
  margin: 2rem 0; padding: 0 0 0 1.4rem;
  border-left: 3px solid; border-image: var(--grad) 1;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45; font-weight: 600; color: #fff;
  letter-spacing: -0.02em;
}

/* ---------- lists ---------- */
ul.ticks, ul.crosses, ul.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
ul.ticks li, ul.crosses li, ul.bullets li {
  position: relative; padding-left: 1.8rem; color: var(--ink-soft); font-size: .97rem;
}
ul.ticks li::before, ul.crosses li::before, ul.bullets li::before {
  position: absolute; left: 0; top: 0; font-weight: 800;
}
ul.ticks li::before   { content: "✓"; color: var(--green); }
ul.crosses li::before { content: "✕"; color: var(--rose); }
ul.bullets li::before { content: "—"; color: var(--cyan); }

dl.facts { display: grid; gap: 0; margin: 0; }
dl.facts > div {
  display: grid; grid-template-columns: 1fr; gap: .2rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 640px) { dl.facts > div { grid-template-columns: 210px 1fr; gap: 1.5rem; } }
dl.facts dt { font-weight: 700; color: #fff; font-size: .95rem; }
dl.facts dd { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- tables ---------- */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-panel);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .93rem; }
thead th {
  position: sticky; top: 0;
  background: var(--bg-raise);
  text-align: left; font-weight: 700; color: #fff;
  padding: .95rem 1rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); text-align: left; vertical-align: top;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: #fff; }
tbody tr:hover td, tbody tr:hover th { background: rgba(255,255,255,.022); }
.col-us { background: rgba(34,211,238,.055); }
thead .col-us { background: rgba(34,211,238,.12); color: #fff; }
td.col-us, th.col-us { color: #fff; font-weight: 600; }
.scrollhint { font-size: .84rem; color: var(--faint); margin-top: .7rem; }
@media (min-width: 900px) { .scrollhint { display: none; } }

/* ---------- long tables: a filter box and a scroll box ---------- */
.tablefilter {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem 1.1rem; margin-bottom: .95rem;
}
.tablefilter label {
  font: 700 .72rem/1 var(--sans);
  letter-spacing: .19em; text-transform: uppercase; color: var(--faint);
}
.tablefilter input {
  flex: 1 1 15rem; max-width: 24rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .6rem .8rem;
}
.tablefilter input::placeholder { color: var(--faint); }
.filter-count { margin: 0; font-size: .87rem; color: var(--faint); }

/* Keeps a 95-row table from owning the page. `thead th` is already sticky. */
.tablewrap.tall {
  max-height: min(72vh, 42rem); overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 185, 225, .3) transparent;
}
.tablewrap.tall::-webkit-scrollbar { width: 10px; height: 10px; }
.tablewrap.tall::-webkit-scrollbar-track { background: transparent; }
.tablewrap.tall::-webkit-scrollbar-thumb {
  background: rgba(150, 185, 225, .3); border-radius: 6px;
  border: 2px solid transparent; background-clip: content-box;
}
tbody tr[hidden] { display: none; }
.tablewrap.tall table tbody tr:last-child td,
.tablewrap.tall table tbody tr:last-child th { border-bottom: 1px solid var(--line-soft); }
.tablenote { font-size: .88rem; color: var(--faint); margin-top: .8rem; max-width: 76ch; }

/* ---------- see / cannot see / cannot do ---------- */
.seebox { border-radius: var(--r); border: 1px solid var(--line); padding: 1.4rem; background: var(--bg-panel); }
.seebox.can    { border-color: rgba(52,211,153,.28); }
.seebox.cannot { border-color: rgba(251,113,133,.26); }
.seebox h3 { font-size: 1.02rem; letter-spacing: 0; margin-bottom: .9rem; }
.seebox.can h3    { color: var(--green); }
.seebox.cannot h3 { color: var(--rose); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 700; color: #fff; font-size: 1.06rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 1.1rem;
  font-size: 1.5rem; font-weight: 400; color: var(--cyan); line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.4rem; max-width: 72ch; }
.faq .answer p { font-size: .99rem; }

/* ---------- badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .78rem; border-radius: 999px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .01em;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.pill.live   { color: var(--green); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.pill.wip    { color: var(--amber); border-color: rgba(251,191,36,.3);  background: rgba(251,191,36,.08); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- prose (docs) ---------- */
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }

/* ---------- CTA band ---------- */
.cta {
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(34,211,238,.14), transparent 62%),
    var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lede { margin-inline: auto; text-align: center; }
.cta .btnrow { justify-content: center; margin-top: 2rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  font-size: .93rem;
}
.footer-logo { max-width: 240px; margin-bottom: 1.1rem; }
.footer-grid {
  display: grid; gap: 2.4rem; grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer h4 {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1rem; font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer ul a { color: var(--ink-soft); }
.footer ul a:hover { color: #fff; }
.footer p { color: var(--muted); font-size: .92rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  color: var(--faint); font-size: .87rem;
}
.footer-bottom a { color: var(--muted); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .cta, .lightbox { display: none !important; }
  .card, .callout, .tablewrap { border-color: #ccc; background: #fff; }
  h1, h2, h3, strong { color: #000; }
  p, li, td { color: #222; }
}

/* ---------- interior page header ---------- */
.pagehead {
  padding: clamp(3.2rem, 7vw, 5.2rem) 0 clamp(2.6rem, 5vw, 3.8rem);
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(34,211,238,.13), transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
}
.pagehead h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 18ch; }
.pagehead .lede { margin-top: 1.2rem; }
.crumbs { font-size: .85rem; color: var(--faint); margin: 0 0 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs span { padding: 0 .45rem; }

/* anchor offset for sticky nav */
[id] { scroll-margin-top: 84px; }

.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;
}

/* ---------- the three claims (under the hero) ---------- */
.claims {
  background:
    linear-gradient(180deg, rgba(34,211,238,.07), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--line-soft);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}
.claims-grid {
  display: grid; gap: 1.6rem; grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .claims-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.claims-grid p {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 800; line-height: 1.25;
  color: #fff; letter-spacing: -0.025em;
  padding-left: 1.15rem; position: relative;
  text-wrap: balance;
}
.claims-grid p::before {
  content: ""; position: absolute; left: 0; top: .22em; bottom: .18em;
  width: 3px; border-radius: 3px; background: var(--grad);
}
.claims-grid p span {
  display: block; margin-top: .5rem;
  font-size: .93rem; font-weight: 400; letter-spacing: -0.005em;
  line-height: 1.55; color: var(--muted);
}
