.floating-lines-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-lines-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* design tokens for the dark-first rebuild, lime and green come from the site's brand variables */
.td-section {
  --td-bg: #021a16;
  --td-bg-2: #01332a;
  --td-green: #21a300;
  --td-lime: #c2ff26;
  --td-lime-soft: rgba(194, 255, 38, 0.12);
  --td-text: #e6efe9;
  --td-muted: #9fb5ad;
  --td-faint: rgba(230, 239, 233, 0.5);
  --td-line: rgba(255, 255, 255, 0.08);
  --td-line-strong: rgba(255, 255, 255, 0.14);
  --td-radius: 20px;
  --td-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* --td-section-bg goes transparent when a page level grainient sits behind everything */
  background: var(--td-section-bg, var(--td-bg));
  color: var(--td-text);
  font-family: inherit;
  /* every section pads both edges, so two in a row stack into double this, kept modest so the stacked gap doesn't read as dead space */
  padding: clamp(48px, 5.5vw, 80px) 0;
  -webkit-font-smoothing: antialiased;
}

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

.td-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* absolute layer for animated backgrounds, sits under the container */
.td-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* faint lime grid that fades out from the center through a radial mask */
.td-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(194, 255, 38, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194, 255, 38, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* top and bottom fades so neighboring sections blend into each other */
.td-fade-edges::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--td-fade-bg, var(--td-bg)) 0%, transparent 18%, transparent 82%, var(--td-fade-bg, var(--td-bg)) 100%);
}

/* section header */
.td-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
}

.td-header--center {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.td-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(194, 255, 38, 0.25);
  border-radius: 999px;
  background: rgba(194, 255, 38, 0.06);
  color: var(--td-lime);
  font-family: var(--td-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.td-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--td-lime);
  box-shadow: 0 0 12px var(--td-lime);
}

.td-h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.td-header--center .td-h2 {
  justify-content: center;
}

.td-lead {
  margin: 0;
  color: var(--td-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.td-mono-label {
  font-family: var(--td-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-lime);
}

/* buttons */
.td-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.td-btn:hover {
  transform: translateY(-1px);
}

.td-btn--primary {
  background: var(--td-lime);
  color: #021a16;
  box-shadow:
    0 0 0 1px rgba(194, 255, 38, 0.5),
    0 10px 40px -10px rgba(194, 255, 38, 0.7);
}

.td-btn--primary:hover {
  background: #d4ff63;
  box-shadow:
    0 0 0 1px rgba(194, 255, 38, 0.7),
    0 14px 48px -10px rgba(194, 255, 38, 0.9);
}

.td-btn--ghost {
  border: 1px solid var(--td-line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.td-btn--ghost:hover {
  border-color: rgba(194, 255, 38, 0.4);
  background: rgba(194, 255, 38, 0.06);
}

.td-btn svg {
  transition: transform 0.2s ease;
}

.td-btn:hover svg {
  transform: translateX(3px);
}

/* glass card with a cursor-following spotlight, position comes from --mx and --my set by useSpotlight */
.td-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.td-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(194, 255, 38, 0.12), transparent 45%);
  transition: opacity 0.3s ease;
}

.td-card:hover {
  border-color: rgba(194, 255, 38, 0.3);
}

.td-card:hover::before {
  opacity: 1;
}

.td-card > * {
  position: relative;
  z-index: 1;
}

.td-icon-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(194, 255, 38, 0.25);
  border-radius: 12px;
  background: rgba(194, 255, 38, 0.07);
  color: var(--td-lime);
}

/* rotating conic beam around a frame, done with a spinning pseudo element since @property is ignored in shadow roots */
.td-beam-frame {
  position: relative;
  padding: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--td-line-strong);
}

.td-beam-frame::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(194, 255, 38, 0.15) 310deg, var(--td-lime) 350deg, transparent 360deg);
  animation: td-spin 7s linear infinite;
}

.td-beam-frame__inner {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: var(--td-bg);
}

.td-beam-frame__inner img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes td-spin {
  to {
    transform: rotate(1turn);
  }
}

/* scroll reveal toggled by useReveal */
/* reveals start just before content reaches the screen, a shorter fade and stagger delays at 40% of what components pass keep the order but stop content from waiting on screen */
.td-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--td-delay, 0ms) * 0.4);
}

.td-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .td-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .td-beam-frame::before {
    animation: none;
  }
}

/* large screens step the layout up instead of leaving a small column in the middle of a wide monitor,
   text measure stays capped by the header and lead max-widths, backgrounds were already full bleed */
@media (min-width: 1680px) {
  .td-container {
    max-width: 1360px;
  }

  .td-header {
    max-width: 840px;
  }

  .td-h2 {
    font-size: 3.9rem;
  }

  .td-lead {
    font-size: 1.35rem;
  }
}

@media (min-width: 1920px) {
  .td-container {
    max-width: 1440px;
  }

  .td-h2 {
    font-size: 4.2rem;
  }
}

/* cards */
.td-cards__grid {
  display: grid;
  grid-template-columns: repeat(var(--td-cols, 3), 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
}

.td-cards__item {
  display: flex;
}

.td-cards__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 30px 28px;
}

.td-cards__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 8px;
}

.td-cards__title {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.td-cards__body {
  margin: 0;
  color: var(--td-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* footnote pinned to the card bottom, styled like a terminal comment */
.td-cards__note {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--td-line-strong);
  color: var(--td-lime);
  font-family: var(--td-mono);
  font-size: 12.5px;
  line-height: 1.55;
}

.td-callout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(194, 255, 38, 0.22);
  border-left: 3px solid var(--td-lime);
  border-radius: 14px;
  background: rgba(194, 255, 38, 0.05);
}

.td-callout p {
  margin: 0;
  color: var(--td-text);
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .td-cards__grid {
    grid-template-columns: repeat(min(var(--td-cols, 3), 2), 1fr);
  }
}

@media (max-width: 640px) {
  .td-cards__grid {
    grid-template-columns: 1fr;
  }
}

/* split */
.td-split__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.td-split.is-image-left .td-split__media {
  order: -1;
}

.td-split.is-text-only .td-split__layout {
  grid-template-columns: minmax(0, 820px);
}

.td-split__body {
  margin-top: 18px;
}

.td-split__code {
  display: inline-flex;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(194, 255, 38, 0.25);
  border-radius: 10px;
  background: #031410;
  color: #fff;
  font-family: var(--td-mono);
  font-size: 14px;
}

.td-split__code span {
  color: var(--td-lime);
}

.td-split__bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.td-split__bullets li,
.td-lists__panel li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.td-split__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--td-lime);
  color: #021a16;
  box-shadow: 0 0 14px rgba(194, 255, 38, 0.4);
}

.td-split__bullets strong {
  display: block;
  color: #fff;
  font-size: 16.5px;
  font-weight: 500;
}

.td-split__bullets p {
  margin: 4px 0 0;
  color: var(--td-muted);
  font-size: 15px;
  line-height: 1.6;
}

.td-split__closing {
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--td-lime);
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.td-split__cta {
  margin-top: 32px;
}

@media (max-width: 960px) {
  .td-split__layout {
    grid-template-columns: 1fr;
  }
  .td-split.is-image-left .td-split__media {
    order: 0;
  }
}

/* statement */
.td-statement__lines {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 55%, transparent 90%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 55%, transparent 90%);
}

.td-statement__inner {
  max-width: 900px;
}

.td-statement__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.td-statement__body p {
  margin: 0;
  color: var(--td-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.75;
}

.td-statement.is-center .td-statement__body p {
  text-align: center;
}

.td-statement__highlight {
  margin: 36px 0 0;
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.td-statement.is-center .td-statement__highlight {
  text-align: center;
}

.td-statement__highlight::first-line {
  color: var(--td-lime);
}

/* optional card under the copy, capped so it reads as an example rather than a second section */
.td-statement__visual {
  max-width: 640px;
  margin-top: 48px;
}

.td-statement.is-center .td-statement__visual {
  margin-inline: auto;
}

/* detail list */
.td-detail__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.td-detail__aside {
  position: sticky;
  top: 120px;
}

.td-detail__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-detail__item {
  display: flex;
  gap: 22px;
  padding: 32px 0;
  border-top: 1px solid var(--td-line);
}

.td-detail__index {
  flex: none;
  width: 32px;
  padding-top: 4px;
  color: var(--td-lime);
  font-family: var(--td-mono);
  font-size: 13px;
}

.td-detail__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.td-detail__body {
  margin: 0;
  color: var(--td-muted);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .td-detail__layout {
    grid-template-columns: 1fr;
  }
  .td-detail__aside {
    position: static;
  }
}

/* lists */
.td-lists__lead {
  max-width: 760px;
  margin-top: 20px;
}

.td-lists__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}

.td-lists__grid.is-pair {
  grid-template-columns: 1fr 1fr;
}

.td-lists__panel {
  height: 100%;
  padding: 32px;
}

.td-lists__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.td-lists__panel ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-lists__panel p {
  margin: 0;
  color: var(--td-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.td-lists__panel strong {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 860px) {
  .td-lists__grid.is-pair {
    grid-template-columns: 1fr;
  }
}

/* logo grid */
.td-logos__lead {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
}

.td-logos__group {
  margin-top: clamp(40px, 5vw, 56px);
}

.td-logos__label {
  display: block;
  margin-bottom: 16px;
  text-align: center;
}

/* fixed-width tracks centered so short groups sit in the middle instead of hugging the left edge */
.td-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 168px));
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-logos__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 10px 18px;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.td-logos__tile:hover {
  border-color: rgba(194, 255, 38, 0.3);
  background: rgba(194, 255, 38, 0.05);
}

.td-logos__tile img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

/* phones fit two tiles a row, the 140px floor above would otherwise drop to one column and leave dead space */
@media (max-width: 640px) {
  .td-logos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .td-logos__tile {
    height: 76px;
    padding: 10px 14px;
  }

  .td-logos__tile img {
    max-height: 48px;
  }
}

/* white mode flattens full-color logos into white marks for the dark background */
.td-logos.is-white .td-logos__tile img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.td-logos.is-white .td-logos__tile:hover img {
  opacity: 1;
}

/* team */
.td-team__lead {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
}

.td-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.td-team__person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-team__person strong {
  margin-top: 14px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
}

.td-team__person span {
  color: var(--td-muted);
  font-size: 14.5px;
}

/* portrait desaturated and tinted green until hover */
.td-team__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background: #062a22;
}

.td-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition:
    filter 0.4s ease,
    transform 0.6s ease;
}

.td-team__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 163, 0, 0.18), rgba(2, 26, 22, 0.35));
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
}

.td-team__person:hover .td-team__photo img {
  filter: none;
  transform: scale(1.03);
}

.td-team__person:hover .td-team__photo::after {
  opacity: 0;
}

@media (max-width: 960px) {
  .td-team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .td-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* split topography, faded in from the top and out at the bottom so it never cuts off at the section edge */
.td-split__topo {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 65%, transparent 100%);
}

