:root {
  --brand-red: #b81d24;
  --brand-deep: #7a1419;
  --brand-ink: #231f20;
  --brand-soft: #fff7f7;
  --paper: #ffffff;
  --line: #eadde0;
  --muted: #6f6265;
  --good: #15945f;
  --warn: #c97912;
  --bad: #d33b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fbf7f7;
  color: var(--brand-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.status-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(184, 29, 36, 0.06) 0, rgba(255, 255, 255, 0) 360px),
    #fbf7f7;
}

.brand-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #7a1419 0%, #b81d24 58%, #da4b50 100%);
  background-size: 120% 120%;
  padding: 1.35rem 0 4rem;
  box-shadow: 0 24px 70px rgba(122, 20, 25, 0.24);
  animation: brandGlow 12s ease-in-out infinite alternate;
}

.brand-band::before,
.brand-band::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.brand-band::before {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -130px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: slowDrift 14s ease-in-out infinite alternate;
}

.brand-band::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.08);
  animation: slowDriftReverse 16s ease-in-out infinite alternate;
}

.brand-band > .container {
  position: relative;
  z-index: 1;
}

.status-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 3.25rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark:hover {
  color: #fff;
}

.brand-mark-frame {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(52, 9, 12, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-mark:hover .brand-mark-frame {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 18px 44px rgba(52, 9, 12, 0.28);
}

.brand-mark-frame img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-mark strong,
.brand-mark small {
  display: block;
  line-height: 1.15;
}

.brand-mark strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-mark small {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.18rem;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.pulse-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #68e9aa;
  box-shadow: 0 0 0 5px rgba(104, 233, 170, 0.2);
  flex: 0 0 auto;
  animation: livePulse 1.8s ease-out infinite;
}

.nav-status-warn .pulse-dot {
  background: #ffd166;
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 2rem;
}

.status-nav,
.hero-copy,
.hero-status,
.service-card,
.panel-card {
  animation: riseIn 620ms ease both;
}

.hero-copy {
  animation-delay: 90ms;
}

.hero-status {
  animation-delay: 180ms;
}

.service-card:nth-child(1) {
  animation-delay: 260ms;
}

.service-card:nth-child(2) {
  animation-delay: 340ms;
}

.service-card:nth-child(3) {
  animation-delay: 420ms;
}

.panel-card {
  animation-delay: 500ms;
}

.eyebrow,
.card-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0.9rem;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: 4.35rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.signal-strip {
  display: flex;
  align-items: flex-end;
  gap: 0.42rem;
  height: 34px;
  margin-top: 1.6rem;
}

.signal-strip span {
  width: 7px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  animation: signalBars 1.25s ease-in-out infinite;
}

.signal-strip span:nth-child(2) {
  height: 20px;
  animation-delay: 120ms;
}

.signal-strip span:nth-child(3) {
  height: 28px;
  animation-delay: 240ms;
}

.signal-strip span:nth-child(4) {
  height: 16px;
  animation-delay: 360ms;
}

.status-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.status-link:hover {
  color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(52, 9, 12, 0.2);
}

.status-link-muted {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.status-link-muted:hover {
  color: #fff;
}

.hero-status {
  padding: 1.15rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero-status-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.95rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-status-head span,
.hero-status-grid span,
.checked-at {
  color: rgba(255, 255, 255, 0.72);
}

.hero-status-head strong {
  text-transform: capitalize;
}

.hero-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-status-grid div {
  min-height: 86px;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-status-grid div:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.17);
}

.hero-status-grid span,
.hero-status-grid strong {
  display: block;
}

.hero-status-grid span {
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.hero-status-grid strong {
  font-size: 1.16rem;
  overflow-wrap: anywhere;
}

.checked-at {
  margin: 0.95rem 0 0;
  font-size: 0.86rem;
}

.status-content {
  margin-top: -2.15rem;
  padding-bottom: 4rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-card,
.panel-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(82, 41, 47, 0.08);
}

.service-card {
  position: relative;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--brand-red);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 240ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 29, 36, 0.28);
  box-shadow: 0 24px 54px rgba(82, 41, 47, 0.14);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  transition: transform 220ms ease;
}

.service-icon .fa {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.06) rotate(-3deg);
}

.service-icon-api {
  background: var(--brand-red);
}

.service-icon-db {
  background: #264653;
}

.service-icon-push {
  background: #2a9d8f;
}

.card-kicker {
  color: var(--brand-red);
  margin-bottom: 0.45rem;
}

.service-card h2,
.panel-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0;
}

.service-card p,
.service-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 34px;
  margin-top: auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.state-chip span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  animation: chipBlink 2.4s ease-in-out infinite;
}

.state-chip-good {
  background: rgba(21, 148, 95, 0.1);
  color: #0f7048;
}

.state-chip-good span {
  background: var(--good);
}

.state-chip-warn {
  background: rgba(201, 121, 18, 0.12);
  color: #905508;
}

.state-chip-warn span {
  background: var(--warn);
}

.state-chip-bad {
  background: rgba(211, 59, 59, 0.12);
  color: #9b2020;
}

.state-chip-bad span {
  background: var(--bad);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.panel-card {
  padding: 1.35rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.service-list {
  display: grid;
  gap: 0.75rem;
}

.service-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 1px solid #f0d9dc;
  transition: transform 180ms ease, background 180ms ease;
}

.service-item:hover {
  transform: translateX(4px);
  background: #fff1f2;
}

.service-item strong {
  display: block;
  font-size: 1rem;
}

.service-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-red);
  background: #fff;
  box-shadow: inset 0 0 0 1px #f0d9dc;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.service-item-icon .fa {
  font-size: 1.22rem;
  line-height: 1;
}

.service-item:hover .service-item-icon {
  color: #fff;
  background: var(--brand-red);
  transform: rotate(-4deg) scale(1.04);
}

.support-card {
  align-self: start;
}

.snapshot-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.snapshot-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid #f0e3e5;
}

.snapshot-list div:last-child {
  border-bottom: 0;
}

.snapshot-list dt {
  color: var(--muted);
  font-weight: 700;
}

.snapshot-list dd {
  margin: 0;
  font-weight: 900;
  color: var(--brand-ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-red);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.support-link:hover {
  color: #fff;
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(184, 29, 36, 0.18);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(104, 233, 170, 0.34);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(104, 233, 170, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(104, 233, 170, 0);
  }
}

@keyframes chipBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.46;
  }
}

@keyframes signalBars {
  0%, 100% {
    transform: scaleY(0.55);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes brandGlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes slowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-18px, 22px, 0) scale(1.05);
  }
}

@keyframes slowDriftReverse {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -16px, 0) scale(1.08);
  }
}

@media (max-width: 991.98px) {
  .hero-grid,
  .detail-grid,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3.35rem;
  }

  .hero-status {
    max-width: 560px;
  }
}

@media (max-width: 575.98px) {
  .brand-band {
    padding-bottom: 3.2rem;
  }

  .status-nav,
  .brand-mark {
    align-items: flex-start;
  }

  .status-nav {
    flex-direction: column;
    padding-bottom: 2.25rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-status-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-list div {
    flex-direction: column;
    gap: 0.25rem;
  }

  .snapshot-list dd {
    text-align: left;
  }
}

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