:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #66717d;
  --line: #dfe4e8;
  --accent: #185c63;
  --accent-soft: #e5f0f1;
  --success: #1f8a5b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.topbar h1,
.hero h2,
.app-card h3,
p {
  margin: 0;
}

.topbar h1 {
  margin-top: 4px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 720;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.eyebrow,
.label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  padding: 36px 0 44px;
}

.hero h2 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 760;
}

.summary {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.status-panel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  align-self: end;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-panel strong {
  display: block;
  font-size: 20px;
}

.status-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--success);
}

.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: block;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.app-card h3 {
  margin-top: 14px;
  font-size: 22px;
}

.app-card p:not(.label) {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.app-card span {
  display: inline-flex;
  margin-top: 22px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.app-card.live {
  border-color: #b7d1d4;
  background: var(--accent-soft);
}

.wide {
  grid-column: span 2;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 32px, 1120px);
    padding-top: 28px;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .apps {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}
