:root {
  color-scheme: light;
  --ink: #102a35;
  --muted: #506872;
  --cyan: #007c89;
  --cyan-light: #35c2c9;
  --amber: #d98d16;
  --paper: #eef3f5;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 4vw, 58px);
}

.image-stage {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("/assets/server-room.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  animation: room-breathe 18s ease-in-out infinite alternate;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(245, 249, 250, 0.56);
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0 42% 0 0;
  z-index: -1;
  background: rgba(246, 250, 251, 0.76);
  border-right: 1px solid rgba(16, 42, 53, 0.10);
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 850;
}

.brand-domain, .live-state, .eyebrow, .activity, .footer {
  font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

.brand-domain {
  color: var(--muted);
  font-size: 12px;
}

.live-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
}

.state-light {
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 141, 22, 0.42);
  animation: state-pulse 2.2s ease-out infinite;
}

.hero {
  align-self: center;
  width: min(760px, 59vw);
  padding: 8vh 0 9vh;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

h1 {
  margin: 0;
  max-width: 750px;
  color: #0b2732;
  font-size: 112px;
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 900;
}

.summary {
  margin: 30px 0 34px;
  max-width: 470px;
  color: #354f59;
  font-size: 20px;
  line-height: 1.45;
}

.activity {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 750;
}

.activity-track {
  height: 4px;
  overflow: hidden;
  background: rgba(16, 42, 53, 0.17);
}

.activity-progress {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--cyan);
  animation: build-progress 4.8s ease-in-out infinite;
}

.activity-value { color: var(--cyan); }

.footer {
  color: #38515b;
  font-size: 10px;
  text-transform: uppercase;
}

.signal-bars {
  position: absolute;
  right: clamp(22px, 4vw, 58px);
  bottom: clamp(58px, 8vw, 100px);
  display: flex;
  align-items: end;
  gap: 5px;
  height: 28px;
}

.signal-bars i {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--cyan);
  animation: signal 1.4s ease-in-out infinite alternate;
}

.signal-bars i:nth-child(2n) { animation-delay: 180ms; }
.signal-bars i:nth-child(3n) { animation-delay: 360ms; }
.signal-bars i:nth-child(4n) { animation-delay: 540ms; }

.light-scan {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(53, 194, 201, 0.48);
  opacity: 0;
  animation: scan 9s linear infinite;
}

@keyframes room-breathe {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-0.35%, -0.2%, 0); }
}

@keyframes state-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 141, 22, 0.42); }
  65%, 100% { box-shadow: 0 0 0 9px rgba(217, 141, 22, 0); }
}

@keyframes build-progress {
  0% { transform: translateX(-110%); width: 28%; }
  50% { width: 58%; }
  100% { transform: translateX(360%); width: 28%; }
}

@keyframes signal {
  from { height: 7px; opacity: 0.35; }
  to { height: 28px; opacity: 1; }
}

@keyframes scan {
  0%, 12% { left: 0; opacity: 0; }
  18% { opacity: 0.8; }
  72% { opacity: 0.35; }
  80%, 100% { left: 100%; opacity: 0; }
}

@media (max-width: 820px) {
  .site-shell { padding: 22px; }
  .site-shell::after { inset: 0; background: rgba(246, 250, 251, 0.70); border: 0; }
  .image-stage { background-position: 62% center; }
  .hero { width: 100%; padding: 13vh 0 12vh; }
  h1 { font-size: 68px; }
  .summary { max-width: 88%; }
  .signal-bars { right: 22px; bottom: 60px; }
}

@media (max-width: 520px) {
  .brand-domain { display: none; }
  .masthead { gap: 14px; }
  .live-state {
    max-width: 132px;
    justify-content: flex-end;
    text-align: right;
    font-size: 9px;
  }
  .hero { padding: 10vh 0 11vh; }
  h1 {
    max-width: 100%;
    font-size: 43px;
    line-height: 0.92;
  }
  .summary {
    max-width: 300px;
    margin: 24px 0 28px;
    font-size: 16px;
  }
  .activity { grid-template-columns: 1fr auto; }
  .activity-label { grid-column: 1 / -1; }
  .footer { gap: 12px; }
}

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