:root {
  --midnight: #00052e;
  --violet-wash: #06105a;
  --signal: #0428cb;
  --cyan: #34fcff;
  --halo: #afb4db;
  --carbon: #222222;
  --slate: #4f5166;
  --fog: #6b6b83;
  --mist: #8185a0;
  --border: #dbdcdf;
  --paper: #ffffff;
  --panel: #050a36;
  --font-display: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--midnight);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 48px);
  color: var(--paper);
  background: rgba(0, 5, 46, 0.86);
  border-bottom: 1px solid rgba(129, 133, 160, 0.2);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 52px;
}

.brand-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.admin-link {
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-link:hover {
  color: var(--paper);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 6px;
}

.nav-links a,
.portal-link,
.text-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--mist);
  padding: 10px 14px;
}

.nav-links a:hover {
  color: var(--paper);
}

.portal-link,
.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.portal-link {
  padding: 0 18px;
  background: var(--paper);
  color: var(--midnight);
}

.primary-button {
  padding: 0 22px;
  background: var(--signal);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.text-link {
  color: var(--paper);
  padding: 12px 2px;
}

.section-dark {
  background: var(--midnight);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 148px 24px 96px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  content: "";
  background: linear-gradient(180deg, rgba(0, 5, 46, 0), var(--midnight));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: min(760px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(52, 252, 255, 0.2) 0 12%, rgba(4, 40, 203, 0.36) 32%, rgba(6, 16, 90, 0.42) 48%, rgba(0, 5, 46, 0) 72%);
  filter: blur(2px);
}

.particle-field {
  position: absolute;
  width: min(560px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  animation: rotate-field 30s linear infinite;
}

.particle-field span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(52, 252, 255, 0.9);
  opacity: 0.86;
}

.particle-field span:nth-child(1) { top: 6%; left: 48%; }
.particle-field span:nth-child(2) { top: 12%; left: 30%; }
.particle-field span:nth-child(3) { top: 17%; left: 68%; }
.particle-field span:nth-child(4) { top: 25%; left: 18%; }
.particle-field span:nth-child(5) { top: 29%; left: 82%; }
.particle-field span:nth-child(6) { top: 37%; left: 10%; }
.particle-field span:nth-child(7) { top: 42%; left: 92%; }
.particle-field span:nth-child(8) { top: 50%; left: 5%; }
.particle-field span:nth-child(9) { top: 54%; left: 86%; }
.particle-field span:nth-child(10) { top: 64%; left: 15%; }
.particle-field span:nth-child(11) { top: 72%; left: 76%; }
.particle-field span:nth-child(12) { top: 84%; left: 51%; }
.particle-field span:nth-child(13) { top: 22%; left: 50%; }
.particle-field span:nth-child(14) { top: 34%; left: 35%; }
.particle-field span:nth-child(15) { top: 38%; left: 64%; }
.particle-field span:nth-child(16) { top: 48%; left: 31%; }
.particle-field span:nth-child(17) { top: 55%; left: 61%; }
.particle-field span:nth-child(18) { top: 66%; left: 43%; }
.particle-field span:nth-child(19) { top: 73%; left: 30%; }
.particle-field span:nth-child(20) { top: 78%; left: 64%; }
.particle-field span:nth-child(21) { top: 46%; left: 46%; }
.particle-field span:nth-child(22) { top: 18%; left: 42%; }
.particle-field span:nth-child(23) { top: 60%; left: 77%; }
.particle-field span:nth-child(24) { top: 31%; left: 54%; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}

.eyebrow,
.mono {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.eyebrow {
  color: var(--signal);
}

.cyan {
  color: var(--cyan);
}

.blue {
  color: var(--signal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.019em;
}

h1 {
  margin: 18px auto 20px;
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow),
.cta-section > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--mist);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: min(290px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid rgba(129, 133, 160, 0.7);
  border-radius: 8px;
  background: var(--midnight);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.35;
}

.floating-card small {
  color: var(--mist);
  font-size: 13px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.card-a {
  top: 24%;
  left: 6%;
}

.card-b {
  right: 7%;
  bottom: 18%;
}

.intro-band,
.services,
.cta-section {
  padding: 110px 24px;
}

.section-grid,
.section-heading,
.card-grid,
.service-list,
.browser-shell,
footer {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 70px;
  align-items: start;
}

.text-stack p {
  color: var(--mist);
  font-size: 18px;
}

.gradient-transition {
  height: 150px;
  background: linear-gradient(180deg, var(--midnight) 0%, #2b1779 36%, #d8dbff 68%, var(--paper) 100%);
}

.product-showcase {
  padding: 0 24px 110px;
  background: var(--paper);
}

.browser-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #222222;
  color: var(--border);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mist);
}

.browser-top p {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.dashboard {
  display: grid;
  grid-template-columns: 54px 1fr 280px;
  min-height: 560px;
}

.side-rail {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px 14px;
  border-right: 1px solid var(--border);
}

.side-rail i {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.dashboard-main {
  padding: clamp(22px, 4vw, 46px);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.metric-row p {
  margin-bottom: 8px;
  color: var(--slate);
}

.metric-row strong {
  color: var(--midnight);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.timeline {
  position: relative;
  min-height: 130px;
  margin-bottom: 38px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(90deg, transparent 0 19%, rgba(219, 220, 223, 0.8) 19% 19.2%, transparent 19.2% 20%);
}

.timeline div {
  position: absolute;
  left: var(--start);
  width: var(--width);
  height: 28px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--signal);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline div:nth-child(1) { top: 22px; }
.timeline div:nth-child(2) { top: 54px; }
.timeline div:nth-child(3) { top: 86px; }

.kit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.kit-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 220px;
  border-radius: 8px;
  background: #f7f8fb;
}

.kit-carousel-track {
  display: flex;
  width: 500%;
  height: 100%;
  animation: kit-carousel 22s infinite;
}

.kit-carousel img {
  width: 20%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 20%;
}

.kit-carousel img:first-child {
  object-fit: contain;
  background: #fff;
}

.kit-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.kit-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 5, 46, 0.25);
}

.kit-row p:last-child {
  color: var(--slate);
}

.activity-feed {
  padding: 28px 22px;
  border-left: 1px solid var(--border);
  background: #f7f8fb;
}

.activity-feed .mono {
  color: var(--fog);
}

.activity-feed ul {
  display: grid;
  gap: 24px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.activity-feed li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}

.activity-feed li > span:first-child {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  rotate: 45deg;
  background: var(--signal);
}

.activity-feed li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.content-section {
  padding: 110px 24px;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading h2 {
  max-width: 820px;
  margin-top: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card .mono,
.method-steps .mono {
  color: var(--fog);
}

.feature-card h3 {
  margin-top: 72px;
}

.feature-card p:last-child,
.method-steps p:last-child {
  color: var(--slate);
}

.services .section-heading h2 {
  color: var(--paper);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(129, 133, 160, 0.45);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(129, 133, 160, 0.45);
}

.service-list article {
  min-height: 360px;
  padding: 24px;
  background: var(--midnight);
}

.service-list span {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.service-media {
  position: relative;
  overflow: hidden;
  height: 124px;
  margin: 18px 0 34px;
  border: 1px solid rgba(129, 133, 160, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(52, 252, 255, 0.16), rgba(4, 40, 203, 0.08) 42%, rgba(0, 5, 46, 0.1)),
    repeating-linear-gradient(90deg, rgba(219, 220, 223, 0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(219, 220, 223, 0.08) 0 1px, transparent 1px 24px);
}

.service-media::before,
.service-media::after {
  position: absolute;
  content: "";
}

.service-media::before {
  inset: 22px;
  border: 1px dashed rgba(52, 252, 255, 0.5);
  border-radius: 4px;
}

.service-media::after {
  width: 34px;
  height: 34px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 15px, rgba(255, 255, 255, 0.72) 15px 18px, transparent 18px),
    linear-gradient(0deg, transparent 15px, rgba(255, 255, 255, 0.72) 15px 18px, transparent 18px);
}

.service-media.has-image {
  background: #050a36;
}

.service-media.has-image::before,
.service-media.has-image::after {
  display: none;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-list h3 {
  margin-top: 0;
}

.service-list p {
  color: var(--mist);
}

.method {
  background: #f7f8fb;
}

.method-steps {
  display: grid;
  gap: 16px;
}

.method-steps article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.cta-section {
  text-align: center;
}

.cta-section h2 {
  max-width: 850px;
  margin: 14px auto 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  color: var(--slate);
}

footer strong {
  color: var(--midnight);
}

@keyframes rotate-field {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes kit-carousel {
  0%, 16% {
    transform: translateX(0);
  }

  20%, 36% {
    transform: translateX(-20%);
  }

  40%, 56% {
    transform: translateX(-40%);
  }

  60%, 76% {
    transform: translateX(-60%);
  }

  80%, 96% {
    transform: translateX(-80%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .floating-card {
    position: relative;
    inset: auto;
    margin-top: 24px;
  }

  .hero {
    justify-items: center;
  }

  .card-a,
  .card-b {
    display: none;
  }

  .section-grid,
  .dashboard,
  .kit-row {
    grid-template-columns: 1fr;
  }

  .side-rail {
    display: none;
  }

  .activity-feed {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .card-grid,
  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .portal-link {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .header-actions {
    gap: 12px;
  }

  .admin-link {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 126px 18px 72px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .intro-band,
  .services,
  .content-section,
  .cta-section {
    padding: 74px 18px;
  }

  .section-grid,
  .metric-row,
  .card-grid,
  .service-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .browser-shell,
  .section-grid,
  .section-heading,
  .card-grid,
  .service-list,
  footer {
    width: 100%;
  }

  .product-showcase {
    padding: 0 18px 74px;
  }

  .dashboard-main {
    padding: 20px;
  }

  .metric-row {
    gap: 12px;
  }

  .feature-card,
  .service-list article {
    min-height: auto;
  }

  .feature-card h3,
  .service-list h3 {
    margin-top: 0;
  }

  footer {
    display: block;
    padding-inline: 18px;
  }
}
