:root {
  --ink: #2c4a5a;
  --ink-soft: #5e7b8a;
  --accent: #3a6073;
  --accent-dark: #2c4a5a;
  --card: rgba(255, 255, 255, 0.55);
  --ring: rgba(58, 96, 115, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(155deg, #f6f9fb 0%, #dde7ee 42%, #c2d2dd 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 3rem);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 3vh, 1.75rem);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Language switch */
.lang-switch {
  position: absolute;
  top: clamp(1rem, 3vh, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  background: var(--card);
  border: 1px solid rgba(58, 96, 115, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.lang-switch:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* Logo */
.logo {
  width: clamp(150px, 42vw, 250px);
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(44, 74, 90, 0.06),
    0 18px 40px -12px rgba(44, 74, 90, 0.35);
}

/* Tagline */
.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 1.1vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
}

/* Contact links */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.contact a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  background: var(--card);
  border: 1px solid rgba(58, 96, 115, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.contact a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(44, 74, 90, 0.55);
}

.contact a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.email-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Footer */
.legal {
  position: absolute;
  bottom: clamp(1rem, 3vh, 1.75rem);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* 404 */
.notfound .code {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

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

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