/* Randolph Technology — site styles
   No external resources: system font stack, inline SVG, no CDN. */

:root {
  --bg: #06080c;
  --bg-alt: #0a0d13;
  --panel: #0d1118;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #e9edf3;
  --muted: #8d97a7;
  --dim: #5d6676;
  --accent: #6c9cff;
  --accent-2: #9db8ff;
  --accent-soft: rgba(108, 156, 255, .12);
  --warn: #f0b24a;

  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1160px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #05070b; }

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

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: #05070b; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ───────── Type ───────── */

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: balance;
}
h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }

.grad {
  background: linear-gradient(92deg, #fff 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.label, .eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }

.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(108, 156, 255, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(108, 156, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 156, 255, 0); }
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--text); color: #06080c;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--lg { padding: 18px 30px; font-size: 1.05rem; font-family: var(--mono); font-weight: 500; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .28); }
.btn--ghost span { transition: transform .25s var(--ease); }
.btn--ghost:hover span { transform: translateX(3px); }

/* ───────── Nav ───────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(6, 8, 12, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 28px; height: 28px; color: var(--text); flex: none; }
.brand__name { font-weight: 600; letter-spacing: .26em; font-size: .78rem; text-transform: uppercase; white-space: nowrap; }
.brand__name span { color: var(--muted); font-weight: 400; margin-left: .7em; }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: .92rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ───────── Hero ───────── */

.hero { position: relative; padding: 150px 0 0; overflow: hidden; }

.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 32%, rgba(108, 156, 255, .16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: radial-gradient(90% 75% at 60% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(90% 75% at 60% 25%, #000 25%, transparent 78%);
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
}

.hero__copy h1 { margin: 22px 0 26px; }
.lede { color: var(--muted); font-size: 1.14rem; max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Order-book panel */

.book {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4) inset;
  overflow: hidden;
}
.book__head, .book__foot { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.book__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.book__title { display: inline-flex; align-items: center; gap: 9px; }
.book__title i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.book__tag { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--dim); font-size: .64rem; }
.book__canvas { display: block; width: 100%; height: 300px; }
.book__foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.book__foot div { padding: 13px 18px; }
.book__foot div + div { border-left: 1px solid var(--line); }
.book__foot span { display: block; color: var(--dim); font-size: .64rem; margin-bottom: 3px; }
.book__foot b { font-weight: 500; font-size: .95rem; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.book__foot div:first-child b { color: var(--accent-2); }
.book figcaption {
  padding: 9px 18px 11px; border-top: 1px solid var(--line);
  font-size: .72rem; color: var(--dim);
}

/* Pillars */

.pillars {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars li + li { border-left: 1px solid var(--line); }
.pillars a { display: block; height: 100%; padding: 30px 28px 34px; transition: background .3s; }
.pillars li:first-child a { padding-left: 0; }
.pillars a:hover { background: linear-gradient(180deg, rgba(108, 156, 255, .06), transparent); }
.pillars__k { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.pillars b { display: block; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 10px; }
.pillars p { color: var(--muted); font-size: .95rem; max-width: 26em; }

/* Stats */

.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div { padding: 30px 28px 32px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; }
.stats dt { color: var(--muted); font-size: .88rem; }
.stats dd { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ───────── Sections ───────── */

.section { padding: 128px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head h2, .split__head h2, .cta h2 { margin-top: 18px; }
.section__sub { color: var(--muted); margin-top: 20px; max-width: 38em; font-size: 1.06rem; }

/* Cards */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 34px 30px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 30px auto 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: #0f141c; }
.card:hover::before { opacity: .8; }

.card__icon { width: 40px; height: 40px; margin-bottom: 26px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-accent { stroke: var(--accent); }
.s-dim { stroke: rgba(233, 237, 243, .55); }
.s-dash { stroke: var(--line-strong); stroke-dasharray: 2 4; }

.card h3 { margin-bottom: 12px; font-size: 1.24rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card li { position: relative; padding-left: 20px; font-size: .92rem; color: #c3cad6; }
.card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 1px; background: var(--accent); }

/* Split layout */

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.split__head { position: sticky; top: 110px; }
.split__head .btn { margin-top: 34px; }

.benefits { border-top: 1px solid var(--line); }
.benefits li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.benefits__n { font-family: var(--mono); font-size: .8rem; color: var(--accent); padding-top: 5px; }
.benefits h3 { font-size: 1.3rem; margin-bottom: 8px; }
.benefits p { color: var(--muted); max-width: 34em; }

/* Venues */

.venues { margin-top: 110px; padding-top: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.venues__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.venues__list { display: flex; flex-wrap: wrap; gap: 14px 52px; }
.venues__list li { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: #aab3c2; transition: color .2s; }
.venues__list li:hover { color: var(--text); }

/* Technology */

.latency {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px;
  padding: 44px 40px; margin-bottom: 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(108, 156, 255, .12), transparent 70%),
    var(--panel);
  scroll-margin-top: 100px;
}
.latency__copy .tech__k { color: var(--accent); margin-bottom: 22px; }
.latency__copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 18px; text-wrap: balance; }
.latency__copy p:not(.tech__k) { color: var(--muted); max-width: 30em; }
.latency__list { align-self: center; }
.latency__list li {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em;
}
.latency__list li:last-child { border-bottom: 1px solid var(--line-strong); }
.latency__list li::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

.pipe {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #c3cad6;
  overflow: hidden;
}
.pipe span { white-space: nowrap; }
.pipe i {
  flex: 1; min-width: 18px; height: 1px; position: relative;
  background: var(--line-strong); overflow: hidden;
}
.pipe i::after {
  content: ""; position: absolute; inset: 0 auto 0 -40%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow 2.8s linear infinite;
}
.pipe i:nth-of-type(2)::after { animation-delay: .35s; }
.pipe i:nth-of-type(3)::after { animation-delay: .7s; }
.pipe i:nth-of-type(4)::after { animation-delay: 1.05s; }
@keyframes flow { to { left: 100%; } }

.tech { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.tech article { padding: 32px 26px 36px; }
.tech article + article { border-left: 1px solid var(--line); }
.tech__k { font-family: var(--mono); font-size: .74rem; color: var(--dim); margin-bottom: 44px; }
.tech h3 { margin-bottom: 10px; }
.tech p:not(.tech__k) { color: var(--muted); font-size: .95rem; }

/* About */

.about__lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; letter-spacing: -.015em; margin-bottom: 22px; }
.about p:not(.about__lead) { color: var(--muted); max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 24px; }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.facts dd { font-size: 1.05rem; }

/* CTA */

.cta { text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -55%; width: 900px; height: 700px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(108, 156, 255, .2), transparent);
  pointer-events: none;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.04em; }
.cta .section__sub { margin-bottom: 40px; }

/* Footer */

.footer { border-top: 1px solid var(--line); padding: 44px 0 90px; font-size: .9rem; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; line-height: 1.65; display: grid; gap: 14px; }
.footer__legal p:first-child { max-width: 78em; }

/* ───────── Reveal on scroll (only when JS is on) ───────── */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .tech .reveal:nth-child(2), .benefits .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .tech .reveal:nth-child(3), .benefits .reveal:nth-child(3) { transition-delay: .16s; }
.tech .reveal:nth-child(4), .benefits .reveal:nth-child(4) { transition-delay: .24s; }

/* ───────── Draft helpers ───────── */

.draft .ph {
  color: var(--warn);
  background: rgba(240, 178, 74, .1);
  outline: 1px dashed rgba(240, 178, 74, .55);
  outline-offset: 3px;
  border-radius: 4px;
}
.draft .btn .ph { background: none; color: #8a5a00; outline-color: rgba(138, 90, 0, .6); }
.draft .ph-soft { text-decoration: underline dashed rgba(240, 178, 74, .55); text-underline-offset: 6px; text-decoration-thickness: 1px; }

.draftbar {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: none; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px;
  background: rgba(20, 16, 6, .9); color: #f3d9a4;
  border: 1px solid rgba(240, 178, 74, .4); border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.draft .draftbar, .draftbar.is-on { display: inline-flex; }
.draftbar b { color: var(--warn); }
.draftbar button { padding: 5px 11px; border-radius: 999px; background: rgba(240, 178, 74, .16); color: #f3d9a4; }
.draftbar button:hover { background: rgba(240, 178, 74, .28); }

/* ───────── Responsive ───────── */

@media (max-width: 1020px) {
  .hero { padding-top: 124px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .book { max-width: 620px; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split__head { position: static; }
  .latency { grid-template-columns: 1fr; gap: 36px; padding: 36px 30px; }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .tech article:nth-child(3) { border-left: 0; }
  .tech article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tech__k { margin-bottom: 28px; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .section { padding: 88px 0; }
  .section__head { margin-bottom: 44px; }

  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: rgba(6, 8, 12, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__links .btn { margin-top: 20px; justify-content: center; padding: 13px 20px; }
  .nav.is-open { background: rgba(6, 8, 12, .96); }

  .book__canvas { height: 230px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stats div { padding: 22px 16px 24px; }
  .stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .pillars { grid-template-columns: 1fr; margin-top: 64px; }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pillars a, .pillars li:first-child a { padding: 24px 0 26px; }
  .latency { padding: 28px 22px; }
  .latency__list li { padding: 15px 0; font-size: 1.04rem; }

  .benefits li { grid-template-columns: 36px 1fr; padding: 24px 0; }
  .venues { margin-top: 72px; flex-direction: column; align-items: flex-start; }
  .venues__list { gap: 10px 32px; }
  .venues__list li { font-size: 1.25rem; }

  .pipe { flex-wrap: wrap; gap: 10px 12px; padding: 18px; font-size: .72rem; }
  .pipe i { flex: 0 0 18px; }
  .tech { grid-template-columns: 1fr; }
  .tech article + article { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .btn--lg { padding: 16px 22px; font-size: .95rem; }
  .footer { padding-bottom: 80px; }
}

/* Large displays: scale type and layout up together */
@media (min-width: 1700px) {
  html { font-size: 112.5%; }
  :root { --wrap: 1320px; }
  .book__canvas { height: 340px; }
}
@media (min-width: 2300px) {
  html { font-size: 131.25%; }
  :root { --wrap: 1560px; }
  .book__canvas { height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* The spaced-caps wordmark is wide: on very narrow screens keep only "Randolph" in the header. */
@media (max-width: 400px) {
  .nav .brand__name span { display: none; }
}
