@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #001e3c;
  --ink-2: #002b52;
  --mint: #99ffcc;
  --sig: #00ff41;
  --dim: rgba(153, 255, 204, .66);
  --faint: rgba(153, 255, 204, .12);
  --line: rgba(153, 255, 204, .24);
  --block: rgba(153, 255, 204, .055);
  --r: 28px;
  --mono: 'Share Tech Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(60vw 50vh at 88% -8%, rgba(0, 255, 65, .16), transparent 62%),
    radial-gradient(70vw 60vh at 4% 22%, rgba(153, 255, 204, .13), transparent 66%),
    radial-gradient(50vw 60vh at 70% 92%, rgba(0, 255, 65, .1), transparent 70%);
  background-attachment: fixed;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(closest-side, rgba(153, 255, 204, .16), transparent),
    radial-gradient(closest-side, rgba(0, 255, 65, .12), transparent);
  background-size: 42vw 42vw, 30vw 30vw;
  background-position: 80% 24%, 12% 78%;
  background-repeat: no-repeat;
  filter: blur(28px);
  opacity: .8;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, -1.5%, 0) scale(1); }
  to { transform: translate3d(2%, 2.5%, 0) scale(1.08); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.22); opacity: .8; }
}

@keyframes dotPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--sig);
}

:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .02em;
}

p {
  margin: 0 0 1em;
}

hr {
  height: 1px;
  margin: 1em 0 1.4em;
  border: 0;
  background: linear-gradient(90deg, var(--sig), rgba(0, 255, 65, 0), rgba(153, 255, 204, .3));
}

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

.stripe {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 30, 60, .82);
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.stripe-brand {
  color: var(--sig);
}

.stripe-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sig);
  box-shadow: 0 0 10px var(--sig);
  animation: dotPulse 2.6s ease-in-out infinite;
}

.sitehead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 24, 48, .82);
  backdrop-filter: blur(14px) saturate(140%);
}

.head-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandmark,
.foot-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(0, 255, 65, .28), rgba(153, 255, 204, .06) 70%);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 18px rgba(0, 255, 65, .18);
  color: var(--sig);
  overflow: hidden;
}

.brandmark svg,
.foot-logo svg {
  width: 26px;
  height: 26px;
}

.glyph {
  font-size: 19px;
  line-height: 1;
}

.brandname {
  overflow: hidden;
  max-width: 46vw;
  color: var(--mint);
  font-size: 15px;
  letter-spacing: .12em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.menubtn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--faint);
  color: var(--mint);
  font: inherit;
  font-size: 15px;
  letter-spacing: .1em;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--sig);
}

.bars {
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before { top: -4px; }
.bars::after { top: 4px; }

.sitenav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 26px);
  min-width: 0;
}

.navgroup ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navgroup a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 15px;
  letter-spacing: .06em;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.navgroup a:hover,
.navgroup a:focus-visible {
  background: var(--faint);
  color: var(--sig);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  min-height: max(70vh, 480px);
  padding: 12vh clamp(18px, 6vw, 80px) 14vh;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(0, 30, 60, .1), rgba(0, 30, 60, .84) 76%),
    linear-gradient(180deg, rgba(0, 30, 60, .5), rgba(0, 30, 60, .94));
}

.hero-fig {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(closest-side at 34% 38%, rgba(0, 255, 65, .3), transparent),
    radial-gradient(closest-side at 70% 62%, rgba(153, 255, 204, .26), transparent);
  background-size: 60% 60%, 50% 50%;
  background-position: 30% 30%, 72% 66%;
  background-repeat: no-repeat;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
  filter: saturate(90%) contrast(105%);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-fig figcaption {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  bottom: 54px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .3em;
}

.cell {
  position: absolute;
  display: block;
  border-radius: 46% 54% 60% 40% / 52% 42% 58% 48%;
  background: radial-gradient(circle at 40% 35%, rgba(0, 255, 65, .5), rgba(0, 255, 65, .04) 72%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: breathe 9s ease-in-out infinite;
}

.c1 {
  top: 12%;
  left: 8%;
  width: clamp(120px, 22vw, 260px);
  height: clamp(120px, 22vw, 260px);
}

.c2 {
  right: 10%;
  top: 24%;
  width: clamp(90px, 16vw, 200px);
  height: clamp(90px, 16vw, 200px);
  animation-duration: 12s;
  animation-delay: -3s;
  background: radial-gradient(circle at 40% 35%, rgba(153, 255, 204, .55), rgba(153, 255, 204, .04) 72%);
}

.c3 {
  left: 42%;
  bottom: 6%;
  width: clamp(100px, 18vw, 220px);
  height: clamp(100px, 18vw, 220px);
  animation-duration: 15s;
  animation-delay: -6s;
  opacity: .45;
}

.hero-copy {
  position: relative;
  max-width: 860px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 .3em;
  font-size: clamp(2.1rem, 6.4vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
  color: #effff6;
  text-shadow: 0 0 34px rgba(0, 255, 65, .28);
}

.lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--dim);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
}

.band {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 14px;
  background: linear-gradient(90deg, rgba(0, 255, 65, .9), rgba(153, 255, 204, .5), rgba(0, 255, 65, .9));
  transform: skewY(-1.6deg);
  transform-origin: left bottom;
  box-shadow: 0 0 28px rgba(0, 255, 65, .35);
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3.4vw, 48px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) clamp(16px, 4vw, 44px) clamp(56px, 8vw, 100px);
}

.rail {
  position: sticky;
  top: 92px;
  padding: 22px 20px 24px;
  border-radius: var(--r);
  background: var(--block);
}

.rail-title {
  margin-bottom: .2em;
  color: var(--sig);
  font-size: 15px;
  letter-spacing: .28em;
}

.rail hr {
  margin: .5em 0 1em;
}

.raillist {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.raillist a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 6px;
  border-radius: 12px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.35;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.raillist a:hover,
.raillist a:focus-visible {
  background: rgba(0, 255, 65, .09);
  color: var(--mint);
  transform: translateX(3px);
}

.idx {
  color: var(--sig);
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .8;
}

.prose {
  min-width: 0;
  max-width: 74ch;
  color: var(--mint);
  font-size: 17px;
  line-height: 1.85;
}

.prose article {
  margin: 0 0 22px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r);
  background: var(--block);
  scroll-margin-top: 96px;
}

.prose article:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: .1em;
  color: #effff6;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
}

.prose h3 {
  margin-top: 1.4em;
  color: var(--sig);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.prose p {
  color: rgba(226, 255, 241, .88);
}

.prose strong {
  color: #effff6;
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: .45em;
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--sig);
  color: var(--dim);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.prose a {
  color: var(--sig);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, .4);
  text-underline-offset: 3px;
}

.prose time {
  color: var(--dim);
  font-size: 14px;
  letter-spacing: .06em;
}

.prose article[id] {
  scroll-margin-top: 96px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 44px) clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
  background: rgba(0, 24, 48, .7);
}

.foot-brand {
  flex: 1 1 240px;
  min-width: 210px;
}

.foot-name {
  margin: 12px 0 14px;
  color: #effff6;
  font-size: 15px;
  letter-spacing: .16em;
}

.sub {
  display: flex;
  gap: 8px;
  max-width: 300px;
}

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--faint);
  color: var(--mint);
  font: inherit;
  font-size: 15px;
}

.sub input::placeholder {
  color: var(--dim);
}

.sub button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sig);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sub button:hover,
.sub button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 255, 65, .4);
}

.foot-nav {
  flex: 2 1 360px;
  min-width: 240px;
}

.foot-nav dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 20px;
  margin: 0;
}

.foot-nav dt {
  margin-top: 4px;
}

.foot-nav dt a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
  font-size: 15px;
  letter-spacing: .05em;
}

.foot-nav dt a:hover,
.foot-nav dt a:focus-visible {
  color: var(--sig);
}

.foot-nav dd {
  margin: 0 0 2px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .18em;
}

.foot-legal {
  flex: 1 1 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
}

.copy {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .06em;
  text-align: right;
}

.top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: .12em;
}

.top:hover,
.top:focus-visible {
  color: var(--sig);
}

@media (max-width: 900px) {
  .menubtn {
    display: inline-flex;
  }

  .sitenav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 10px clamp(14px, 4vw, 40px) 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 22, 44, .97);
    backdrop-filter: blur(16px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  .sitenav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .navgroup ul {
    display: block;
  }

  .navgroup a {
    display: flex;
    min-height: 46px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(153, 255, 204, .1);
    color: var(--mint);
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 40px;
  }

  .rail {
    position: static;
    order: 2;
  }

  .prose {
    order: 1;
    max-width: none;
  }

  .raillist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .foot-legal {
    align-items: flex-start;
    min-height: 0;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .copy {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brandname {
    display: none;
  }

  .hero {
    min-height: 64vh;
    padding: 15vh 18px 12vh;
  }

  .hero-fig figcaption {
    display: none;
  }

  .foot-nav dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 14px;
  }

  .foot-brand,
  .foot-nav {
    flex: 1 1 100%;
  }

  .raillist {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose article {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .cell,
  .dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .navgroup a,
  .raillist a,
  .sub button {
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
