:root {
  --bg: #050711;
  --surface: #0f1224;
  --surface-alt: rgba(255, 255, 255, 0.06);
  --text: #f5f7ff;
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.2);
  --accent-strong: rgba(108, 92, 231, 0.4);
  --muted: rgba(245, 247, 255, 0.7);
  --danger: #ff6b81;
  --success: #2ed573;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(108, 92, 231, 0.15), transparent 45%),
    radial-gradient(circle at bottom right, rgba(94, 234, 212, 0.1), transparent 40%),
    var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  z-index: 10;
  background: linear-gradient(90deg, rgba(5, 7, 17, 0.7), rgba(5, 7, 17, 0.25));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav__links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus {
  color: #fff;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  position: relative;
  padding: 8.5rem 1.5rem 8rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}


.hero__globe {
  position: absolute;
  inset: -22% -12% -12%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -3;
  pointer-events: none;
  filter: saturate(140%);
}

.hero__globe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(26, 35, 126, 0.55), rgba(8, 10, 24, 0.92) 60%, rgba(5, 7, 17, 0.98));
  border-radius: 50%;
  transform: scale(1.1);
  filter: blur(12px);
}

.hero__globe::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.45) 0%, rgba(108, 92, 231, 0) 70%);
  filter: blur(18px);
  opacity: 0.7;
}

.hero__globe-shell {
  position: relative;
  width: min(40vw, 30rem);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(26, 35, 126, 0.48), rgba(8, 10, 24, 0.88));
  box-shadow: 0 30px 90px rgba(12, 18, 42, 0.6), inset 0 0 60px rgba(108, 92, 231, 0.2);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  opacity: 0.65;
  transition: opacity 0.9s ease;
}

.hero__globe--active .hero__globe-shell {
  opacity: 1;
}

.hero__globe-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 30px rgba(94, 234, 212, 0.4));
}

.hero__globe-path {
  fill: rgba(94, 234, 212, 0.12);
  stroke: rgba(94, 234, 212, 0.9);
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.15;
  transition: opacity 0.9s ease;
}

.hero__globe--active .hero__globe-path {
  opacity: 0.9;
  animation: heroCountryDraw 2.6s ease forwards;
}

@keyframes heroCountryDraw {
  0% {
    stroke-dasharray: 4 4200;
    stroke-dashoffset: 4200;
  }
  60% {
    stroke-dasharray: 4200 4;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dasharray: 4200 4;
    stroke-dashoffset: 0;
  }
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 45rem;
  height: 45rem;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.4;
  z-index: -2;
}

.hero::before {
  background: var(--accent);
  top: -30%;
  left: -25%;
}

.hero::after {
  background: #00cec9;
  bottom: -30%;
  right: -25%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 17, 0.1) 0%, rgba(5, 7, 17, 0.85) 100%);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__tagline {
  max-width: 52rem;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #00b894);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 35px rgba(108, 92, 231, 0.4);
}

.cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 45px rgba(108, 92, 231, 0.5);
}

.cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cta--secondary:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 36px rgba(108, 92, 231, 0.3);
}

.stats-marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.stats-marquee__inner {
  display: inline-flex;
  align-items: center;
  padding: 1rem 0;
  flex-shrink: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
  white-space: nowrap;
  gap: 1.5rem;
}

.stats-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 18, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(5, 7, 17, 0.25);
  white-space: nowrap;
  backdrop-filter: blur(18px);
}

.stats-card__header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stats-card__vendor-name {
  font-size: 1rem;
}

.stats-card__metrics {
  display: inline-flex;
  gap: 0.6rem;
}

.stats-card__metric {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  color: var(--muted);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

main {
  flex: 1;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.intro {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.intro__text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.intro__badge {
  position: relative;
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(108, 92, 231, 0.25), rgba(0, 184, 148, 0.18));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.badge__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.8;
}

.badge__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.badge__content h3 {
  margin: 0.5rem 0;
  font-size: 1.8rem;
}

.badge__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.edge-pulse {
  position: relative;
  padding: 2.75rem 2rem 2.25rem;
  border-radius: 28px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(140deg, rgba(15, 18, 36, 0.85), rgba(11, 13, 26, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px rgba(8, 10, 24, 0.45);
  overflow: hidden;
}

.edge-pulse::before,
.edge-pulse::after {
  content: '';
  position: absolute;
  width: 26rem;
  height: 26rem;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.45;
}

.edge-pulse::before {
  top: -40%;
  left: -25%;
  background: rgba(108, 92, 231, 0.55);
}

.edge-pulse::after {
  bottom: -45%;
  right: -25%;
  background: rgba(0, 206, 201, 0.4);
}

.edge-pulse__identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.edge-pulse__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  white-space: nowrap;
}

.edge-pulse__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.edge-card {
  background: rgba(8, 11, 24, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(5, 7, 17, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.edge-card__vendor {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.edge-card__latency {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease;
  white-space: nowrap;
}

.edge-card__latency--fast {
  background: rgba(46, 213, 115, 0.18);
  border-color: rgba(46, 213, 115, 0.4);
  color: var(--success);
}

.edge-card__latency--slow {
  background: rgba(255, 107, 129, 0.22);
  border-color: rgba(255, 107, 129, 0.5);
  color: var(--danger);
}

.edge-card__latency--unknown {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.edge-card__latency:hover {
  transform: translateY(-2px);
}

.edge-pulse__loading {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.services {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.services,
.blueprints,
.analyst,
.blogs,
.contact {
  scroll-margin-top: 7rem;
}

.services__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(108, 92, 231, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.analyst {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.analyst__carousel {
  position: relative;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.analyst__track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.analyst__item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 40px rgba(8, 12, 32, 0.35);
}

.analyst__item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.analyst__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.carousel__controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.carousel__controls button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel__controls button:hover,
.carousel__controls button:focus {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.blueprints {
  max-width: 1100px;
  margin: 6rem auto 0;
  text-align: center;
}

.blueprints__header p {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--muted);
}

.blueprints__collections {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
}

.blueprint-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 12, 32, 0.35);
}

.blueprint-card__meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.blueprint-card h3 {
  margin: 0.75rem 0;
}

.blueprint-card p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.blueprint-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(5, 7, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.75rem;
}

.diagram-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.diagram-tier--cdns {
  background: rgba(108, 92, 231, 0.08);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.diagram-tier--telemetry {
  justify-content: center;
}

.diagram-node {
  padding: 1rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 36, 0.8);
  min-width: 160px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(8, 12, 32, 0.3);
}

.diagram-node h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.diagram-node p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.diagram-node--cdn {
  min-width: 130px;
  font-weight: 600;
  background: rgba(108, 92, 231, 0.18);
}

.diagram-node--audience {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(59, 130, 246, 0.18));
}

.diagram-node--control {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.35), rgba(108, 92, 231, 0.2));
}

.diagram-node--data {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.28), rgba(79, 70, 229, 0.18));
}

.diagram-node--stream {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.35), rgba(14, 165, 233, 0.2));
}

.diagram-node--analytics {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 88, 12, 0.2));
}

.diagram-connector {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
}

.diagram-connector--horizontal {
  transform: translateY(-0.25rem);
}

.blueprint-diagram--expanded {
  gap: 2rem;
}

.blueprint-card__cta {
  display: inline-flex;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.28);
  border: 1px solid rgba(108, 92, 231, 0.45);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.blueprint-card__cta:hover,
.blueprint-card__cta:focus {
  background: rgba(108, 92, 231, 0.45);
  transform: translateY(-2px);
}

main.blueprint-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8.5rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.blueprint-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blueprint-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  margin: 0;
}

.blueprint-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.blueprint-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blueprint-section h2 {
  margin: 0;
}

.blueprint-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: start;
}

.blueprint-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
}

.blueprint-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.blueprint-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.blueprint-flow {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  counter-reset: blueprint-step;
}

.blueprint-flow li {
  list-style: none;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 17, 0.75);
  position: relative;
  color: var(--muted);
}

.blueprint-flow li::before {
  counter-increment: blueprint-step;
  content: counter(blueprint-step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.blueprint-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.blueprint-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blueprint-callout {
  color: var(--muted);
  line-height: 1.6;
}

.blogs {
  max-width: 1100px;
  margin: 0 auto;
}

.blogs__grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.6);
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-card a {
  color: var(--text);
  text-decoration: none;
}

.retain-calculator {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.retain-calculator::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(108, 92, 231, 0.18), transparent 60%);
  opacity: 0.9;
  z-index: -1;
}

.retain__form {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.4rem;
  min-width: 220px;
}

.input-group label {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 11, 24, 0.8);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25);
}

.retain__result {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.retain__result .number {
  font-weight: 700;
  color: #74d9ff;
}

.contact {
  margin-top: 6rem;
  padding: 4rem 1.5rem 2rem;
  background: rgba(5, 7, 17, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact__content {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.contact__form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__form fieldset {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  height: 100%;
}

.contact__form fieldset legend {
  padding: 0 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.checkbox-group {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.checkbox-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  background: rgba(9, 12, 27, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 1 1 11rem;
  position: relative;
  cursor: pointer;
}

.checkbox-option:hover,
.checkbox-option:focus-within {
  border-color: #74d9ff;
  background: rgba(9, 12, 27, 0.9);
}

.checkbox-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.checkbox-option span {
  pointer-events: none;
}

.checkbox-option--selected {
  border-color: #74d9ff;
  background: rgba(9, 12, 27, 0.9);
  box-shadow: 0 0 0 1px rgba(116, 217, 255, 0.35);
}

.checkbox-option--focused {
  box-shadow: 0 0 0 2px rgba(116, 217, 255, 0.45);
}

.optional {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.form-row--services {
  align-items: stretch;
}

.form-row--services .contact__services,
.form-row--services .contact__message {
  flex: 1 1 18rem;
  min-width: 260px;
}

.contact__message {
  display: flex;
  flex-direction: column;
}

.contact__message textarea {
  min-height: 100%;
}

.cta--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta--secondary:hover,
.cta--secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.input-group--website.needs-fix input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.25);
}

.input-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.input-group--website.needs-fix .input-hint {
  color: var(--danger);
}

.cwv-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 1.75rem;
}

.cwv-status--ready {
  gap: 0.75rem;
}

.cwv-status__summary {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.cwv-status--ready[data-state='pass'] .cwv-status__summary {
  color: var(--success);
}

.cwv-status--ready[data-state='needs-attention'] .cwv-status__summary {
  color: var(--danger);
}

.cwv-status__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cwv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.cwv-chip--pass {
  border-color: rgba(46, 213, 115, 0.6);
  background: rgba(46, 213, 115, 0.18);
  color: var(--text);
}

.cwv-chip--fail {
  border-color: rgba(255, 107, 129, 0.6);
  background: rgba(255, 107, 129, 0.18);
  color: var(--text);
}

.cwv-status__period {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .intro {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 800px) {
  .site-nav {
    padding: 0.75rem 1.5rem;
  }

  .site-nav__links {
    gap: 1.1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 7.5rem;
  }

  main.blueprint-main {
    padding-top: 7.5rem;
  }

  .blueprint-diagram {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6.5rem 1.25rem 6rem;
  }

  main.blueprint-main {
    padding: 6.5rem 1.25rem 4.5rem;
  }

  .stats-marquee__inner {
    gap: 1.1rem;
  }

  .stats-card {
    padding: 0.65rem 0.9rem;
    gap: 0.75rem;
  }

  .stats-card__metrics {
    gap: 0.45rem;
  }

  .stats-card__metric {
    font-size: 0.88rem;
    padding: 0.25rem 0.6rem;
  }

  .retain-calculator {
    padding: 2rem;
  }

  .form-row--services {
    flex-direction: column;
  }

  .checkbox-option {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    border-radius: 18px;
    white-space: normal;
  }

  .stats-card__metrics {
    flex-wrap: wrap;
  }

  .stats-card__metric {
    font-size: 0.85rem;
  }

  .diagram-tier--telemetry {
    flex-direction: column;
  }

  .diagram-connector--horizontal {
    transform: none;
  }

  .blueprint-columns {
    grid-template-columns: 1fr;
  }
}
