@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1f242c;
  --surface: #2a313b;
  --line: #262c35;
  --text: #e8ebef;
  --muted: #9aa3ae;
  --accent: #3dd6f5;
  --accent-hover: #7ae4fa;
  --on-accent: #0b2a33;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, var(--line) 22px 23px);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 48px 16px; }

.logo { display: block; width: 100%; max-width: 450px; height: auto; color: var(--text); }

/* Home */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 { margin: 0; width: 100%; display: flex; justify-content: center; }

.tagline {
  margin: 24px 0 0;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.rule { width: 48px; height: 3px; margin: 28px 0 36px; background: var(--accent); border: 0; }

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.contact-mail { margin: 16px 0 0; font-size: 0.9375rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > :nth-child(2) { animation-delay: 0.1s; }
  .hero > :nth-child(3) { animation-delay: 0.18s; }
  .hero > :nth-child(4) { animation-delay: 0.26s; }
  .hero > :nth-child(5) { animation-delay: 0.32s; }
}

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

/* Legal page */
.site-header { width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 16px 0; }
.site-header a { display: inline-block; }
.site-header .logo { max-width: 180px; }

.legal { padding-top: 32px; }
.legal h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.2; margin: 0 0 8px; }
.legal section { padding: 24px 0; border-top: 1px solid var(--surface); }
.legal section:first-of-type { margin-top: 24px; }
.legal h2 { font-size: 1.125rem; margin: 0 0 10px; color: var(--accent); font-weight: 600; }
.legal p { margin: 0 0 10px; color: #cfd4da; }
.legal p:last-child { margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--surface);
  background: rgba(31, 36, 44, 0.85);
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer p { margin: 0; }
footer nav { display: flex; gap: 20px; }
