:root {
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --brand: #2563eb;
  --brand-dark: #1948b6;
  --green: #14864b;
  --green-bg: #dff8ea;
  --amber: #93630a;
  --amber-bg: #fff1c7;
  --red: #a33a35;
  --red-bg: #fee2e2;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 232, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(220px, 48vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

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

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 56px 0 44px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.status-hero h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.domains-first .section-heading h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.card-actions a,
.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.card-actions a {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover,
.card-actions a:hover {
  background: var(--brand-dark);
}

.button.secondary,
.card-actions button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover,
.card-actions button:hover {
  background: var(--surface-soft);
}

.status-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-row,
.domain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.summary-label,
.domain-role {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.operational {
  background: var(--green-bg);
  color: var(--green);
}

.status-badge.redirecting {
  background: var(--amber-bg);
  color: var(--amber);
}

.status-badge.maintenance {
  background: var(--red-bg);
  color: var(--red);
}

.summary-metric {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.summary-metric strong {
  font-size: 3rem;
  line-height: 1;
}

.summary-metric span,
.summary-note {
  color: var(--muted);
}

.summary-note {
  margin: 22px 0 0;
  font-size: 0.88rem;
}

.section {
  padding: 50px 0;
}

.domains-first {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 73px);
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

.domains-first .section-heading {
  margin-right: auto;
  margin-left: auto;
}

.domains-first .domain-grid {
  justify-content: center;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h1,
.section-heading h2,
.split h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.section-heading p,
.split p {
  color: var(--muted);
}

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

.domain-card {
  display: flex;
  flex-direction: column;
  min-height: 242px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.domain-card.main-domain {
  border-color: rgba(37, 99, 235, 0.38);
}

.domain-card.maintenance {
  background: #fffafa;
}

.domain-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  letter-spacing: 0;
}

.domain-card p {
  flex: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-actions {
  margin-top: auto;
}

.card-actions a,
.card-actions button {
  flex: 1 1 86px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.guidance-list {
  display: grid;
  gap: 12px;
}

.guidance-list > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 900;
}

.guidance-list strong {
  font-size: 1rem;
}

.guidance-list p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

.footer p {
  margin: 4px 0 0;
}

.footer a {
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 14px;
  border-radius: 8px;
  background: #101827;
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.domain-grid .reveal:nth-child(2),
.guidance-list .reveal:nth-child(2),
.faq-list .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.domain-grid .reveal:nth-child(3),
.guidance-list .reveal:nth-child(3),
.faq-list .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.domain-grid .reveal:nth-child(4),
.faq-list .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.domain-grid .reveal:nth-child(5),
.faq-list .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

.faq-list .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 1080px) {
  .status-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .status-hero {
    min-height: auto;
    padding-top: 42px;
  }

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

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main,
  .footer {
    width: min(100% - 28px, 1180px);
  }

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

  .summary-metric {
    grid-template-columns: 58px 1fr;
  }

  .summary-metric strong {
    font-size: 2.3rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
