/* Technology visuals: code editor, neural network, live API, workflows, architecture, deploy log.
   Palette: gold, charcoal, ivory. */
body {
  background-image: linear-gradient(rgba(28, 31, 34, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 31, 34, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  background-attachment: fixed;
}
.hero::before,
.vignette {
  display: none !important;
}
/* window chrome */
.win {
  position: absolute;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--glass-line);
  box-shadow: 0 32px 54px -24px rgba(28, 31, 34, 0.4);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
}
.win.dark {
  background: #1c1f22;
  color: #e8e6e0;
  border-color: #34383c;
}
.wbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  font: 500 11px var(--f-mono);
  color: var(--muted);
}
.wbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6d3cc;
  flex: none;
}
.dark .wbar i {
  background: #4a4f54;
}
.wbar span {
  margin-left: 8px;
}
.wbar em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--bronze);
}
.dark .wbar em {
  color: var(--gold-light);
}
.wbar .live::before,
em.live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fbf71;
  margin-right: 6px;
  animation: pulse 2s infinite;
}
/* hero composition */
.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 32px;
  align-items: center;
}
.hv {
  position: relative;
  perspective: 1500px;
  height: 520px;
}
.hv-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 520px;
  transform-origin: 0 0;
}
.hv-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg));
  transition: transform 0.25s ease-out;
}
.w-net {
  left: 0;
  top: 0;
  width: 330px;
  transform: translateZ(-50px);
}
.w-code {
  left: 150px;
  top: 150px;
  width: 400px;
  transform: translateZ(10px);
}
.w-api {
  left: 56px;
  top: 372px;
  width: 350px;
  transform: translateZ(80px);
}
.hv:hover .w-net {
  transform: translateZ(-20px);
}
.hv:hover .w-api {
  transform: translateZ(110px);
}
#net {
  display: block;
  width: 100%;
  padding: 8px 10px 0;
}
#net line {
  stroke: rgba(200, 145, 58, 0.3);
  stroke-width: 1;
  transition:
    stroke 0.35s,
    stroke-width 0.35s;
}
#net rect {
  fill: #fff;
  stroke: #c8913a;
  stroke-width: 1.3;
  transition: fill 0.3s;
}
.api {
  padding: 8px 14px 10px;
  font: 400 12px/1.95 var(--f-mono);
  min-height: 128px;
  overflow: hidden;
}
.api p {
  margin: 0;
  display: flex;
  gap: 10px;
  white-space: nowrap;
  animation: feedIn 0.45s ease-out;
}
.api .m {
  color: #f2cc7a;
  width: 38px;
}
.api .st {
  color: #6fe3a2;
  font-style: normal;
  margin-left: auto;
}
.api small {
  color: #8a8f94;
  width: 46px;
  text-align: right;
}
@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* about: layered architecture with data moving between layers */
.about-side {
  display: grid;
  place-items: center;
  min-height: 420px;
}
.arch {
  perspective: 1200px;
}
.arch-scene {
  position: relative;
  width: 360px;
  display: grid;
  gap: 18px;
  transform-style: preserve-3d;
  transform: rotateX(9deg) rotateY(var(--ay, -16deg));
  transition: transform 0.3s ease-out;
}
.plate {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-line);
  box-shadow: 0 22px 34px -22px rgba(28, 31, 34, 0.4);
  transform: translateZ(calc(var(--i) * 16px));
}
.plate b {
  font: 600 15px var(--f-display);
  color: var(--text);
}
.plate small {
  grid-column: 1;
  font-size: 11.5px;
  color: var(--muted);
}
.plate u {
  display: none;
}
.plate::after {
  content: '';
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 54px;
  height: 22px;
  border-radius: 5px;
  background: repeating-linear-gradient(
    90deg,
    rgba(200, 145, 58, 0.55) 0 8px,
    transparent 8px 12px
  );
  animation: blinkBar 2.4s infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes blinkBar {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.plate:first-child {
  background: #1c1f22;
  border-color: #1c1f22;
}
.plate:first-child b {
  color: #fff;
}
.plate:first-child small {
  color: #b8bcc2;
}
.plate:first-child::after {
  background: repeating-linear-gradient(90deg, #f2cc7a 0 8px, transparent 8px 12px);
}
.wire {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(rgba(200, 145, 58, 0.5) 0 5px, transparent 5px 10px);
  transform: translateZ(30px);
}
.wire::after {
  content: '';
  position: absolute;
  left: -3px;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: var(--grad-gold);
  animation: climb 2.6s linear infinite;
}
.w1 {
  left: 44px;
}
.w2 {
  left: 50%;
}
.w3 {
  right: 44px;
}
.w2::after {
  animation-delay: -0.9s;
}
.w3::after {
  animation-delay: -1.7s;
}
@keyframes climb {
  from {
    top: 100%;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  to {
    top: -4%;
    opacity: 0;
  }
}
.arch-cap {
  text-align: center;
  margin-top: 18px;
  font: 500 11px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}
/* how: deploy log */
#deploy {
  margin: 0;
  padding: 12px 16px 14px;
  font: 400 12.5px/1.75 var(--f-mono);
  min-height: 140px;
  color: #d9d6cf;
  white-space: pre;
}
#deploy .st {
  color: #6fe3a2;
}
#deploy .dd {
  color: #f2cc7a;
}
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .hv {
    margin-top: 8px;
  }
}
@media (max-width: 900px) {
  .about-side {
    min-height: 0;
    padding: 12px 0 0;
  }
  .arch-scene {
    width: min(340px, 86vw);
  }
  .deploy {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw > *,
  .tiles i,
  .deploy-tag,
  .cv-ml path,
  .cv-ml .now,
  .cv-ml .band,
  .wire::after {
    animation: none !important;
    opacity: 1;
  }
}
.win.ping {
  box-shadow:
    0 0 0 2px rgba(242, 204, 122, 0.75),
    0 32px 54px -24px rgba(28, 31, 34, 0.4);
}
/* About stack: more cursor moments. The stack tilts with the cursor on both axes, fans apart on hover, and the layer under the cursor lifts out with a gold light. */
.arch-scene {
  transform: rotateX(var(--ax, 9deg)) rotateY(var(--ay, -16deg));
}
.plate {
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s,
    border-color 0.3s;
}
.plate::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    170px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 204, 122, 0.38),
    transparent 62%
  );
}
@media (hover: hover) and (pointer: fine) {
  .arch-scene:hover .plate {
    transform: translateZ(calc(var(--i) * 30px));
  }
  .arch-scene:hover .plate:hover {
    transform: translateZ(calc(var(--i) * 30px + 26px));
    border-color: #c8913a;
    box-shadow: 0 34px 44px -22px rgba(200, 145, 58, 0.55);
  }
  .arch-scene:hover .plate:hover::before {
    opacity: 1;
  }
}
