/* Font declarations */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible/Atkinson-Hyperlegible-Regular-102.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible/Atkinson-Hyperlegible-Bold-102.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
:root {
  --bg: #0a0d1a;
  --card: #141826;
  --text: #e9edf1;
  --muted: #a9b3c1;
  --accent: #5b6fbd;
  --accent-light: #7b8dc8;
  --accent-purple: #8b7eb8;
  --ring: rgba(91, 111, 189, 0.35);
  --maxw: 720px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #4b5563;
    --accent: #4a5ba8;
    --accent-light: #6b7db8;
    --accent-purple: #7a6ca8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.06);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(91, 111, 189, 0.12), transparent) no-repeat, 
              radial-gradient(900px 500px at -10% 20%, rgba(139, 126, 184, 0.1), transparent) no-repeat, 
              var(--bg);
}

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 60px;
  width: 100%;
}

.main-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

h1 {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.2;
  margin: 0 0 24px;
  font-weight: 700;
  color: var(--accent);
}

.message {
  color: var(--text);
  font-size: 19px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.sub-message {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.contact-section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(91, 111, 189, 0.15);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(91, 111, 189, 0.35);
  position: relative;
  overflow: hidden;
}

.contact-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 111, 189, 0.45);
  background: linear-gradient(135deg, var(--accent-light), var(--accent-purple));
}

.contact-link svg {
  width: 20px;
  height: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .main-card {
    padding: 32px 24px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .message,
  .sub-message {
    font-size: 16px;
  }
  
  .contact-link {
    padding: 12px 24px;
    font-size: 16px;
  }
}
