*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f7fa;
  --bg-subtle: #eef2f7;
  --surface: #ffffff;
  --text-primary: #1a2b4b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #fdb876;
  --accent-hover: #f5a64b;
  --border: #1a2b4b;
  --border-light: #e2e8f0;
  --shadow: none;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.header {
  margin-bottom: 2.25rem;
}

.logo {
  display: block;
  height: 48px;
  width: auto;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-body {
  padding: 2.75rem 2.25rem 2.5rem;
  text-align: center;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  border: 1px solid rgba(245, 166, 75, 0.18);
  background: rgba(245, 166, 75, 0.08);
  color: var(--accent);
}

.icon svg {
  width: 24px;
  height: 24px;
}

h1 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.message {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 380px;
  margin: 0 auto 1.75rem;
}

.message a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(245, 166, 75, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.message a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.message a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.back-online {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.back-online svg {
  flex-shrink: 0;
  color: var(--text-primary);
}

.footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .card-body {
    padding: 3rem 2.75rem 2.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .message {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}
