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

:root {
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-50: #EFF6FF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-500: #64748B;
  --slate-700: #334155;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #B6C2D6;
  color: var(--navy-900);
  line-height: 1.6;
  padding: 2rem 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container.narrow {
  max-width: 600px;
  text-align: center;
}

header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-block;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.last-updated {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.content {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.content p {
  margin-bottom: 1.25rem;
  color: var(--slate-700);
  line-height: 1.75;
}

.content strong { color: var(--navy-900); }

.content h2 {
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-200);
  letter-spacing: -0.4px;
}

.content h2:first-of-type { margin-top: 0; }

.content h3 {
  font-size: 1.15rem;
  color: var(--blue-700);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.content ul, .content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--slate-700);
}

.content li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}

.content a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}

.content a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--blue-700);
  border-color: var(--blue-500);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  text-align: center;
  color: var(--slate-500);
  font-size: 0.9rem;
}

/* 404 specific */
.error-code {
  font-size: clamp(6rem, 15vw, 8rem);
  font-weight: 900;
  color: var(--blue-600);
  margin: 2.5rem 0 1rem;
  line-height: 1;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.error-message {
  font-size: 1.05rem;
  color: var(--slate-500);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.home-button {
  display: inline-block;
  padding: 0.95rem 2rem;
  background: var(--blue-600);
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  letter-spacing: -0.2px;
}

.home-button:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
}

.support-text {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .content { padding: 2rem 1.5rem; }
  .content h2 { font-size: 1.3rem; }
  .content h3 { font-size: 1.05rem; }
  .container { padding: 0 20px; }
  .error-code { font-size: 5rem; }
  .error-title { font-size: 1.8rem; }
  .home-button { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
}
