/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ================================================================
   SHARED LAYOUT
   ================================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.section { padding: 8rem 0; }
@media (min-width: 1024px) { .section { padding: 10rem 0; } }

/* ================================================================
   SHARED TYPOGRAPHY
   ================================================================ */
.h-display {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.h-display--xl {
  font-size: clamp(3.75rem, 9vw, 8.75rem);
}
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.font-mono   { font-family: var(--font-mono); }
.font-display{ font-family: var(--font-display); }

.text-stroke {
  -webkit-text-stroke: 1.5px currentColor;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.eyebrow__line {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--fg-20);
}
.eyebrow--center { justify-content: center; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--fg);
  color: var(--bg);
  border-radius: 9999px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn--sm { padding: 0.375rem 1rem; font-size: 0.75rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 9999px; height: 3.5rem; }
.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg-20);
}
.btn--outline:hover { background: var(--fg-04); opacity: 1; }
.btn--outline-inv {
  background: transparent;
  color: var(--bg);
  border: 1px solid var(--bg-20);
}
.btn--outline-inv:hover { background: var(--bg-10); opacity: 1; }
.btn--inv {
  background: var(--bg);
  color: var(--fg);
}
.btn--inv:hover { opacity: 0.9; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: top 0.4s, padding 0.4s;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 5rem;
  max-width: 1400px;
  margin: 0 auto;
  transition: all 0.5s;
}
@media (min-width: 1024px) { .nav__bar { padding: 0 2rem; } }

.nav.scrolled {
  top: 1rem;
  padding: 0 1rem;
}
.nav.scrolled .nav__bar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--fg-10);
  border-radius: 1.5rem;
  height: 3.5rem;
  max-width: 1200px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--bg);
  transition: color 0.5s, font-size 0.5s;
}
.nav.scrolled .nav__logo { color: var(--fg); font-size: 1.25rem; }
.nav__tm {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  margin-left: 0.25rem;
  vertical-align: super;
  opacity: 0.5;
}

.nav__links {
  display: none;
  gap: 3rem;
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}
.nav__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav.scrolled .nav__links a { color: var(--fg-60); }
.nav.scrolled .nav__links a:hover { color: var(--fg); }

.nav__cta {
  display: none;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) { .nav__cta { display: flex; } }
.nav__signin {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.nav__signin:hover { color: #fff; }
.nav.scrolled .nav__signin { color: var(--fg-60); }
.nav.scrolled .nav__signin:hover { color: var(--fg); }
.nav .btn {
  background: #fff;
  color: var(--fg);
  padding: 0.5rem 1.5rem;
  transition: all 0.5s;
}
.nav.scrolled .btn {
  background: var(--fg);
  color: var(--bg);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
}

.nav__toggle {
  display: block;
  padding: 0.5rem;
  color: #fff;
  transition: color 0.3s;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav.scrolled .nav__toggle { color: var(--fg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 40;
  flex-direction: column;
  padding: 7rem 2rem 2rem;
  justify-content: space-between;
}
.nav__mobile.open { display: flex; }
.nav__mobile-links { display: flex; flex-direction: column; gap: 2rem; }
.nav__mobile-links a {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--fg);
  transition: color 0.3s;
}
.nav__mobile-links a:hover { color: var(--muted); }
.nav__mobile-cta {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.nav__mobile-cta .btn,
.nav__mobile-cta .btn--outline { flex: 1; height: 3.5rem; font-size: 1rem; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}
.hero__overlay {
  position: absolute;
  inset: 0;
}
.hero__overlay--lr {
  background: linear-gradient(to right, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 40%, transparent 100%);
}
.hero__overlay--tb {
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(255,255,255,0.7) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.15;
}
.hero__grid-h,
.hero__grid-v {
  position: absolute;
  background: var(--fg-20);
}
.hero__grid-h { height: 1px; left: 0; right: 0; }
.hero__grid-v { width: 1px;  top: 0; bottom: 0; }

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 8rem 1.5rem 10rem;
}
@media (min-width: 1024px) { .hero__content { padding: 10rem 3rem 12rem; } }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-60);
  margin-bottom: 2rem;
}
.hero__eyebrow-line {
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--fg-30);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero__title span { display: block; white-space: nowrap; }
.hero__word { display: inline-block; min-width: 2ch; }
.hero__letter {
  display: inline-block;
  opacity: 0;
  filter: blur(20px);
  transition: color 0.4s ease;
}

.hero__stats {
  position: absolute;
  bottom: 3rem;
  left: 0; right: 0;
  z-index: 10;
}
.hero__stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .hero__stats-inner { padding: 0 3rem; gap: 5rem; } }
.hero__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--fg);
}
.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-50);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* ================================================================
   FEATURES
   ================================================================ */
.features { background: var(--bg); }
.features__header {
  display: grid;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 6rem;
}
@media (min-width: 1024px) {
  .features__header { grid-template-columns: 7fr 5fr; }
}
.features__desc {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.625;
}
.feature-card {
  border: 1px solid var(--fg-10);
  background: var(--secondary);
  min-height: 500px;
  display: flex;
  overflow: hidden;
  position: relative;
}
.feature-card__text {
  position: relative;
  flex: 1;
  padding: 2rem;
  background: var(--secondary);
}
@media (min-width: 1024px) { .feature-card__text { padding: 3rem; } }
.feature-card__canvas {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}
.feature-card__num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 1rem 0 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.5s;
}
.feature-card:hover .feature-card__title { transform: translateX(8px); }
.feature-card__body {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.625;
  max-width: 28rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.feature-card__stat-val {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.feature-card__stat-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
.feature-card__img {
  display: none;
  position: relative;
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
}
@media (min-width: 1024px) { .feature-card__img { display: block; } }
.feature-card__img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.feature-card__img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--secondary), transparent);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how { background: var(--secondary); overflow: hidden; }
.how__header {
  display: grid;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 0;
}
@media (min-width: 1024px) { .how__header { grid-template-columns: 1fr 1fr; } }
.how__title {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 9vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.how__title .dim1 { display: block; }
.how__title .dim2 { display: block; color: var(--muted); }
.how__title .dim3 { display: block; color: rgba(10,10,10,0.25); }
.how__tree {
  position: relative;
  height: 20rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .how__tree { height: 40rem; } }
.how__tree img {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom;
}
.how__tree-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--secondary), transparent);
}

.how__steps { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 1024px) { .how__steps { grid-template-columns: repeat(3,1fr); } }

.step {
  position: relative;
  text-align: left;
  padding: 2rem;
  border: 1px solid var(--fg-20);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.5s, background 0.5s;
}
@media (min-width: 1024px) { .step { padding: 3rem; } }
.step.active { border-color: var(--fg-60); }

.step__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--fg-20);
  transition: color 0.3s;
}
.step.active .step__num { color: var(--accent); }
.step__track {
  flex: 1; height: 1px;
  background: var(--fg-10);
  overflow: hidden;
}
.step__progress {
  height: 100%;
  background: var(--accent);
  width: 0;
}
.step.active .step__progress {
  animation: step-progress 6s linear forwards;
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.25rem;
}
.step__subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.step__body {
  color: var(--muted);
  line-height: 1.625;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.step.active .step__body { opacity: 1; }
.step__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.step.active .step__bar { transform: scaleX(1); }

@keyframes step-progress { from { width: 0; } to { width: 100%; } }

/* ================================================================
   INFRASTRUCTURE
   ================================================================ */
.infra { background: var(--bg); }
.infra__header-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .infra__header-grid { grid-template-columns: auto 1fr; gap: 4rem; } }
.infra__globe { width: 12rem; }
@media (min-width: 1024px) { .infra__globe { width: 18rem; } }
.infra__globe img { width: 100%; height: 100%; object-fit: contain; }
.infra__desc { margin-top: 2rem; font-size: 1.25rem; color: var(--muted); line-height: 1.625; max-width: 28rem; }

.infra__cards { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .infra__cards { grid-template-columns: 2fr 1fr; } }

.infra__main-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--fg-10);
  background: var(--fg-02);
  overflow: hidden;
  min-height: 300px;
}
@media (min-width: 1024px) { .infra__main-card { padding: 3rem; } }
.infra__main-card svg.infra-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.7;
}
.infra__big-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.infra__big-label { color: var(--muted); font-size: 1.5rem; }
.infra__big-desc { color: var(--muted); max-width: 28rem; margin-top: 1rem; position: relative; z-index: 1; }

.infra__side-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.infra__stat-card {
  padding: 2rem;
  border: 1px solid var(--fg-10);
  background: var(--fg-02);
  flex: 1;
}
.infra__stat-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.infra__stat-lbl { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

.infra__regions { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 1024px) { .infra__regions { grid-template-columns: repeat(4,1fr); } }
.region-card {
  padding: 1.5rem;
  border: 1px solid var(--fg-10);
  transition: border-color 0.3s, background 0.3s;
}
.region-card.active { border-color: var(--fg-30); background: var(--fg-04); }
.region-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-20);
  transition: background 0.3s;
  display: inline-block;
  margin-right: 0.5rem;
}
.region-card.active .region-card__dot { background: var(--accent); }
.region-card__status { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: flex; align-items: center; margin-bottom: 0.75rem; }
.region-card__name { font-weight: 500; margin-bottom: 0.25rem; }
.region-card__nodes { font-size: 0.875rem; color: var(--muted); }

/* Infrastructure SVG lines animation */
@keyframes draw-line {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 0.7; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.infra-svg .conn-line {
  stroke: var(--accent);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 1000;
  animation: draw-line 3s ease-in-out infinite;
}

/* ================================================================
   METRICS
   ================================================================ */
.metrics { background: var(--bg); }
.metrics__live {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.metrics__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(236,168,214,0.1);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.metrics__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.metrics__time { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.metrics__graph { width: 100%; margin: 0 0 0; }
.metrics__graph img { width: 100%; height: auto; }
.metrics__cards { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .metrics__cards { grid-template-columns: repeat(3,1fr); } }
.metric-card {
  border: 1px solid var(--fg-10);
  background: var(--fg-02);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .metric-card { padding: 3.5rem; } }
.metric-card__val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
}
.metric-card__canvas { width: 100%; height: 2rem; display: block; }
.metric-card__label { font-size: 1.125rem; }
.metric-card__sub { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.metrics__ticker {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fg-10);
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
}
.metrics__ticker span:last-child { color: var(--fg); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ================================================================
   INTEGRATIONS
   ================================================================ */
.integrations { overflow: hidden; }
.integrations__header { text-align: center; padding-top: 8rem; }
@media (min-width: 1024px) { .integrations__header { padding-top: 10rem; } }
.integrations__sub {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.625;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.integrations__connection {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -4rem;
}
.integrations__connection img { width: 100%; height: auto; }
.integrations__grid-wrap {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .integrations__grid-wrap { padding: 0 3rem; } }
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .integrations__grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .integrations__grid { grid-template-columns: repeat(4,1fr); } }

.int-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--fg-10);
  cursor: default;
  transition: border-color 0.4s, background 0.4s;
}
@media (min-width: 1024px) { .int-card { padding: 2rem; } }
.int-card:hover { border-color: var(--fg); background: var(--fg-04); }
.int-card__halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.int-card__tag {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  background: var(--fg-10);
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.int-card:hover .int-card__tag { background: var(--fg); color: var(--bg); }
.int-card__logo {
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--fg-60);
  transition: color 0.3s;
  position: relative; z-index: 1;
}
.int-card:hover .int-card__logo { color: var(--fg); }
.int-card__name { font-weight: 500; position: relative; z-index: 1; }
.int-card__underline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--fg-20);
  overflow: hidden;
}
.int-card__underline-fill {
  height: 100%;
  background: var(--fg);
  width: 0;
  transition: width 0.5s;
}
.int-card:hover .int-card__underline-fill { width: 100%; }

.integrations__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--fg-10);
  padding-bottom: 8rem;
}
@media (min-width: 1024px) { .integrations__footer { padding-bottom: 10rem; } }
.integrations__stats { display: flex; flex-wrap: wrap; gap: 3rem; }
.integrations__stat-val {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin-right: 0.75rem;
}
.integrations__stat-lbl { font-size: 0.875rem; color: var(--muted); }
.integrations__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.3s;
}
.integrations__more:hover { color: var(--fg); }
.integrations__more span { transition: transform 0.3s; }
.integrations__more:hover span { transform: translateX(4px); }

/* ================================================================
   SECURITY
   ================================================================ */
.security { background: var(--bg); }
.security__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .security__grid { grid-template-columns: 7fr 5fr; } }
.security__main {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--fg-10);
  min-height: 400px;
  overflow: hidden;
}
@media (min-width: 1024px) { .security__main { padding: 3rem; } }
.security__zero {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
}
.security__zero-lbl { color: var(--muted); margin-top: 0.5rem; }
.security__certs {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.security__cert {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--fg-10);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.security__features { display: flex; flex-direction: column; gap: 1rem; }
.sec-feature {
  padding: 1.5rem;
  border: 1px solid var(--fg-10);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: default;
  transition: border-color 0.4s, background 0.4s;
}
.sec-feature.active { border-color: var(--fg-30); background: var(--fg-04); }
.sec-feature__icon {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--fg-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.sec-feature.active .sec-feature__icon {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.sec-feature__title { font-weight: 500; margin-bottom: 0.25rem; }
.sec-feature__body { font-size: 0.875rem; color: var(--muted); }

/* ================================================================
   DEVELOPERS
   ================================================================ */
.developers { position: relative; overflow: hidden; }
.developers__bg {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%; height: 85%;
  pointer-events: none;
}
.developers__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.developers__bg-fade-l {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
}
.developers__bg-fade-t {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.developers__content { position: relative; z-index: 10; max-width: 50%; }
.developers__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dev-feature h3 { font-weight: 500; margin-bottom: 0.25rem; }
.dev-feature p { font-size: 0.875rem; color: var(--muted); }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials {
  background: var(--fg);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.testimonials__ascii {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255,255,255,0.02);
  line-height: 1.4;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.testimonials__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 5rem;
}
.testimonials .eyebrow { color: rgba(255,255,255,0.4); }
.testimonials .eyebrow__line { background: var(--bg-20); }
.testimonials__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--bg);
  margin-top: 1rem;
}
.testimonials__heading span { color: rgba(255,255,255,0.4); }
.testimonials__arrows { display: none; gap: 0.5rem; }
@media (min-width: 1024px) { .testimonials__arrows { display: flex; } }
.testimonials__arrow {
  padding: 1rem;
  border: 1px solid var(--bg-20);
  color: var(--bg);
  transition: background 0.3s;
}
.testimonials__arrow:hover { background: var(--bg-10); }

.testimonials__body {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .testimonials__body { grid-template-columns: 7fr 5fr; gap: 5rem; } }

.testi__quote-mark {
  position: absolute;
  top: -4rem; left: -1rem;
  font-family: var(--font-display);
  font-size: 12rem;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testi__quote-wrap { position: relative; }
.testi__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.testi__author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi__avatar {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-10);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bg);
  flex-shrink: 0;
}
.testi__name { font-size: 1.125rem; font-weight: 500; }
.testi__role { color: rgba(255,255,255,0.6); }

.testi__metric {
  padding: 2.5rem;
  border: 1px solid var(--bg-20);
  background: var(--bg-10);
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .testi__metric { padding: 2.5rem; } }
.testi__metric-val {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  display: block;
  margin-bottom: 1rem;
}
.testi__metric-lbl { font-size: 1.125rem; color: rgba(255,255,255,0.6); }
.testi__progress { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.testi__prog-btn {
  flex: 1; height: 4px;
  background: var(--bg-20);
  overflow: hidden;
  cursor: pointer;
}
.testi__prog-fill {
  height: 100%;
  background: var(--bg);
  width: 0;
  transition: width 0.3s;
}
.testi__prog-fill.done { width: 100%; opacity: 0.5; }
.testi__prog-fill.active { animation: testi-progress 8s linear forwards; }
@keyframes testi-progress { from { width: 0; } to { width: 100%; } }

.testi__companies { border-top: 1px solid var(--bg-10); padding-top: 1.5rem; }
.testi__companies-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 1rem;
}
.testi__companies-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.testi__co-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--bg-10);
  color: rgba(255,255,255,0.4);
  transition: border-color 0.3s, color 0.3s;
}
.testi__co-btn.active { border-color: var(--bg-40); color: var(--bg); }
.testi__co-btn:hover { border-color: var(--bg-30); }

/* ================================================================
   PRICING
   ================================================================ */
.pricing { background: var(--bg); }
.pricing__header { display: grid; gap: 2rem; margin-bottom: 5rem; }
@media (min-width: 1024px) { .pricing__header { grid-template-columns: 7fr 5fr; } }
.pricing__whale {
  position: relative;
  height: 24rem;
}
@media (min-width: 1024px) { .pricing__whale { height: auto; } }
.pricing__whale img { width: 100%; height: 100%; object-fit: contain; }

.pricing__cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .pricing__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.pricing-card {
  border: 1px solid var(--fg-10);
  background: var(--bg);
  position: relative;
  transition: all 0.5s;
}
.pricing-card.featured {
  border-color: var(--fg);
}
@media (min-width: 1024px) {
  .pricing-card { margin: 0 -1px; }
  .pricing-card.featured { margin: 0 -8px; z-index: 10; transform: scale(1.02); }
}
.pricing-card__badge {
  position: absolute;
  top: -1rem;
  left: 2rem; right: 2rem;
  display: flex;
  justify-content: center;
}
.pricing-card__badge span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pricing-card__body { padding: 2rem; }
@media (min-width: 1024px) { .pricing-card__body { padding: 2.5rem; } }
.pricing-card__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.pricing-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0.5rem;
}
.pricing-card__desc { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.pricing-card__divider { border: none; border-top: 1px solid var(--fg-10); margin: 2rem 0; }
.pricing-card__price { margin-bottom: 2rem; }
.pricing-card__amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
}
.pricing-card__period { font-size: 0.875rem; color: var(--muted); margin-left: 0.5rem; }
.pricing-card__billing { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.pricing-card__features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.pricing-card__features li svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.pricing-card__cta {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--fg-20);
  color: var(--fg);
  background: transparent;
  transition: all 0.3s;
}
.pricing-card__cta:hover { border-color: var(--fg); background: var(--fg-04); }
.pricing-card.featured .pricing-card__cta {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.pricing-card.featured .pricing-card__cta:hover { opacity: 0.9; }
.pricing-card__cta svg { transition: transform 0.3s; }
.pricing-card__cta:hover svg { transform: translateX(4px); }

.pricing__footer {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--fg-10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.pricing__trust { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pricing__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.pricing__trust-item svg { color: var(--accent); }
.pricing__compare {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
  transition: color 0.3s;
}
.pricing__compare:hover { color: var(--fg); }

/* Billing toggle */
.pricing__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
}
.toggle-track {
  width: 3rem; height: 1.5rem;
  background: var(--fg);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 1.125rem; height: 1.125rem;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.3s;
}
.toggle-track.monthly .toggle-thumb { transform: translateX(1.5rem); }
.toggle-lbl { color: var(--muted); }
.toggle-lbl.active { color: var(--fg); font-weight: 500; }
.pricing__save {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: var(--accent);
  color: var(--fg);
}

/* ================================================================
   CTA
   ================================================================ */
.cta { background: var(--bg); }
.cta__box {
  position: relative;
  border: 1px solid var(--fg);
  overflow: hidden;
}
.cta__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(600px circle at 50% 50%, rgba(0,0,0,0.06), transparent 40%);
}
.cta__box:hover .cta__spotlight { opacity: 1; }
.cta__inner {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .cta__inner { flex-direction: row; align-items: center; padding: 6rem 4rem; }
}
.cta__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.cta__desc { font-size: 1.25rem; color: var(--muted); line-height: 1.625; max-width: 36rem; margin-bottom: 3rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta__note { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); margin-top: 2rem; }
.cta__img {
  display: none;
  width: 600px;
  height: 650px;
  margin-right: -4rem;
  flex-shrink: 0;
  align-items: flex-end;
}
@media (min-width: 1024px) { .cta__img { display: flex; } }
.cta__img img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.cta__corner-tr {
  position: absolute;
  top: 0; right: 0;
  width: 8rem; height: 8rem;
  border-bottom: 1px solid var(--fg-10);
  border-left: 1px solid var(--fg-10);
}
.cta__corner-bl {
  position: absolute;
  bottom: 0; left: 0;
  width: 8rem; height: 8rem;
  border-top: 1px solid var(--fg-10);
  border-right: 1px solid var(--fg-10);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--fg); color: var(--bg); position: relative; }
.footer__banner {
  position: relative;
  width: 100%;
  height: 21rem;
  overflow: hidden;
}
@media (min-width: 768px) { .footer__banner { height: 26rem; } }
.footer__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.footer__banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--fg));
}
.footer__banner-sides {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.4), transparent 30%, transparent 70%, rgba(10,10,10,0.4));
}
.footer__content { padding: 4rem 0 0; }
@media (min-width: 1024px) { .footer__content { padding: 5rem 0 0; } }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer__brand { grid-column: span 2; }
@media (min-width: 1024px) { .footer__brand { grid-column: span 1; } }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg);
}
.footer__logo-tm { font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.4); }
.footer__desc { color: rgba(255,255,255,0.5); line-height: 1.625; max-width: 18rem; font-size: 0.875rem; margin-bottom: 2rem; }
.footer__social { display: flex; gap: 1.5rem; }
.footer__social a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s;
}
.footer__social a:hover { color: var(--bg); }
.footer__col-title { font-size: 0.875rem; font-weight: 500; color: var(--bg); margin-bottom: 1.5rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer__col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__col a:hover { color: var(--bg); }
.footer__badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  background: var(--bg);
  color: var(--fg);
  border-radius: 9999px;
}
.footer__bottom {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--bg-10);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }
.footer__status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.3); }
.footer__status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
