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

:root {
  --color-primary: #000000;
  --color-text: #ffffff;
  --color-text-light: rgba(255, 255, 255, 0.56);
  --font-family: SF Pro Text, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Header logo */
.header-logo {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1.5rem;
  z-index: 10;
}

.header-logo-img {
  width: 90px;
  height: 40px;
  display: block;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Main content area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

/* Logo */
.logo {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
  animation: logo-spin 24s linear infinite;
}

/* Header / Headline */
.headline {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 17px;
  line-height: 24px;
  color: var(--color-text-light);
  max-width: 40ch;
}

/* Footer */
footer {
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  margin: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.email-link {
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.company {
  color: var(--color-text-light);
}

.email-link:hover,
.email-link:focus-visible {
  text-decoration: none;
}

.email-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 439px) {
  footer {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (min-width: 640px) {
  .logo {
    width: 150px;
    height: 150px;
  }

  .header-logo {
    padding: 2rem;
    padding-top: 0.5rem;
  }

  .header-logo-img {
    width: 135px;
    height: 60px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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

  .skip-link {
    transition: none;
  }

  .logo {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f9fafb;
    --color-text-light: #9ca3af;
    --color-bg: #111827;
    --color-footer-bg: #1f2937;
  }

  footer {
    border-top-color: #374151;
  }
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
