:root {
  --ink: #0b1026;
  --paper: #f1f0e8;
  --paper-bright: #faf9f3;
  --blue: #2c45ff;
  --violet: #6d47ff;
  --orange: #ff6b2c;
  --line: rgba(11, 16, 38, 0.16);
  --soft-line: rgba(255, 255, 255, 0.22);
  --shadow: 0 30px 80px rgba(11, 16, 38, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(109, 71, 255, 0.13), transparent 25rem),
    linear-gradient(135deg, var(--paper-bright), var(--paper));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(11, 16, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 38, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 24px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
}

.brand-mark span {
  display: block;
  border-radius: 2px;
  background: var(--ink);
  animation: equalize 1.8s ease-in-out infinite alternate;
}

.brand-mark span:nth-child(1) { height: 52%; }
.brand-mark span:nth-child(2) { height: 100%; animation-delay: -0.6s; }
.brand-mark span:nth-child(3) { height: 72%; animation-delay: -1.1s; }

.brand-name {
  font-weight: 850;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.status-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(250, 249, 243, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10a866;
  box-shadow: 0 0 0 0 rgba(16, 168, 102, 0.5);
  animation: ping 2.1s infinite;
}

main {
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 164px);
  grid-template-columns: minmax(480px, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: 54px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
}

h1 {
  margin: 0;
  font-size: clamp(5rem, 10.2vw, 9.6rem);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.075em;
}

h1 .question {
  display: block;
  padding-left: 0.05em;
  font-size: 0.33em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.kaf-word {
  display: flex;
  align-items: flex-end;
}

.kaf-word > span:not(.accent-dot) {
  display: inline-block;
  animation: letter-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.kaf-word > span:nth-child(2) { animation-delay: 0.07s; }
.kaf-word > span:nth-child(3) { animation-delay: 0.14s; }

.accent-dot {
  display: inline-block;
  color: var(--orange);
  transform-origin: center bottom;
  animation: dot-pop 0.65s 0.35s cubic-bezier(0.16, 1.6, 0.3, 1) backwards;
}

.lede {
  max-width: 560px;
  margin: 34px 0 0;
  color: rgba(11, 16, 38, 0.67);
  font-size: clamp(1rem, 1.4vw, 1.23rem);
  line-height: 1.65;
}

.service-area {
  max-width: 560px;
  margin-top: 46px;
}

.service-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-heading h2,
.service-count {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-count {
  color: rgba(11, 16, 38, 0.44);
}

.service-links {
  display: grid;
  gap: 10px;
}

.service-link {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  color: var(--paper-bright);
  background: var(--ink);
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(11, 16, 38, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-link::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 15%, rgba(69, 91, 255, 0.8), transparent 70%);
  transform: translateX(-110%);
  transition: transform 550ms cubic-bezier(0.25, 0.75, 0.25, 1);
}

.service-link:hover,
.service-link:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(11, 16, 38, 0.24);
}

.service-link:hover::before,
.service-link:focus-visible::before {
  transform: translateX(110%);
}

.service-icon,
.service-copy,
.service-arrow {
  position: relative;
  z-index: 1;
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.service-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.service-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-bright);
  font-size: 1.1rem;
  transition: transform 220ms ease;
}

.service-link:hover .service-arrow,
.service-link:focus-visible .service-arrow {
  transform: translate(3px, -3px);
}

.cloud-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 680px);
  justify-self: center;
  border-radius: 50%;
  perspective: 900px;
}

.cloud-stage::before,
.cloud-stage::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.cloud-stage::before {
  inset: 8%;
  border: 1px dashed rgba(11, 16, 38, 0.17);
  animation: spin 50s linear infinite;
}

.cloud-stage::after {
  inset: 21%;
  background: rgba(109, 71, 255, 0.1);
  filter: blur(2px);
}

.cloud-glow {
  position: absolute;
  inset: 20%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 70, 255, 0.5), rgba(44, 69, 255, 0.08) 56%, transparent 72%);
  filter: blur(18px);
  animation: breathe 4.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(11, 16, 38, 0.22);
  border-radius: 50%;
}

.orbit::before {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 107, 44, 0.75);
}

.orbit-one {
  inset: 14%;
  animation: spin 19s linear infinite;
}

.orbit-two {
  inset: 23%;
  border-color: rgba(11, 16, 38, 0.13);
  animation: spin-reverse 14s linear infinite;
}

.orbit-three {
  top: 28%;
  right: 9%;
  bottom: 28%;
  left: 9%;
  transform: rotate(58deg);
}

.orbit-three::before { background: var(--blue); }

.satellite {
  position: absolute;
  z-index: 5;
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 4px 12px rgba(11, 16, 38, 0.28);
}

.satellite-pulse {
  position: absolute;
  inset: -9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: satellite-ping 2.5s ease-out infinite;
}

.satellite-a { top: 13%; left: 35%; }
.satellite-b { right: 7%; bottom: 35%; }
.satellite-c { bottom: 10%; left: 28%; }
.satellite-b .satellite-pulse { animation-delay: -0.8s; }
.satellite-c .satellite-pulse { animation-delay: -1.6s; }

.cloud-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  overflow: hidden;
  width: 48%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32%;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(145deg, var(--blue), #321cba 82%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    var(--shadow);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.core-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, transparent, black);
}

.cloud-icon {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 44%;
  height: 31%;
  transform: translateX(-50%);
}

.cloud-lobe,
.cloud-base {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.91);
}

.cloud-lobe { border-radius: 50%; }
.lobe-one { top: 22%; left: 2%; width: 42%; aspect-ratio: 1; }
.lobe-two { top: 0; left: 27%; width: 52%; aspect-ratio: 1; }
.lobe-three { top: 30%; right: 1%; width: 36%; aspect-ratio: 1; }
.cloud-base { right: 10%; bottom: 0; left: 9%; height: 45%; border-radius: 99px; }

.core-label {
  position: absolute;
  right: 0;
  bottom: 14%;
  left: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.core-kicker,
.core-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.45rem, 0.75vw, 0.63rem);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.core-label strong {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.core-status {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
}

.core-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65ffc1;
  box-shadow: 0 0 10px #65ffc1;
}

.stage-caption {
  position: absolute;
  right: 10%;
  bottom: 3%;
  left: 10%;
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-footer {
  height: 68px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.footer-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@keyframes equalize {
  to { height: 35%; }
}

@keyframes ping {
  70%, 100% { box-shadow: 0 0 0 8px rgba(16, 168, 102, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(-5deg)
      rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  }
  50% {
    transform: translate(-50%, calc(-50% - 12px)) rotate(-2deg)
      rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  }
}

@keyframes satellite-ping {
  0% { opacity: 0.7; transform: scale(0.35); }
  70%, 100% { opacity: 0; transform: scale(1.4); }
}

@keyframes letter-in {
  from { opacity: 0; transform: translateY(0.6em) rotate(4deg); }
}

@keyframes dot-pop {
  from { opacity: 0; transform: scale(0); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 60px;
  }

  .hero-copy {
    width: min(100%, 680px);
  }

  h1 {
    font-size: clamp(5.4rem, 20vw, 9rem);
  }

  .cloud-stage {
    width: min(86vw, 620px);
    margin-top: -10px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 36px, 1440px);
  }

  .site-header { height: 78px; }
  .status-pill span:last-child { display: none; }
  .status-pill { padding: 10px; }

  .hero {
    min-height: auto;
    padding: 44px 0 34px;
  }

  h1 { font-size: clamp(4.6rem, 24vw, 7rem); }
  .lede { margin-top: 25px; }
  .service-area { margin-top: 34px; }
  .cloud-stage { width: 106%; margin-left: -3%; }
  .stage-caption { right: 5%; left: 5%; }
  .site-footer { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
