/*
 * Vallum landing page.
 * Faithful static port of the original design system.
 * Colors use oklch; the two named breakpoints match Tailwind's sm (640px) and md (768px).
 */

/* Self-hosted fonts (latin subset, woff2) — no third-party requests. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/inter-300.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}

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

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

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

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

:root {
  --background: oklch(0.06 0.01 264);
  --foreground: oklch(0.94 0.01 247);
  --muted-foreground: oklch(0.55 0.03 257);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout shell */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Background image — full-bleed collage cover */
.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-drift {
  position: absolute;
  inset: 0;
  animation: slow-drift 90s ease-in-out infinite;
}

.bg-drift img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
}

.bg-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-color: oklch(0.06 0.01 264 / 0.1);
}

/* Content — positioned in the upper band, clear of the white collage area */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 48rem;
  flex-direction: column;
  align-items: center;
  padding: 8vh 1.5rem 0;
  text-align: center;
}

.title {
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.tagline {
  margin-top: 0.75rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.625;
  font-weight: 300;
  color: oklch(0.94 0.01 247 / 0.9);
}

/* Entrance animations */
.title,
.tagline {
  opacity: 0;
  animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tagline {
  animation-delay: 120ms;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  z-index: 10;
  width: 100%;
  padding: 2rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* sm */
@media (min-width: 640px) {
  .title {
    font-size: 4.5rem;
  }

  .tagline {
    font-size: 1.125rem;
  }

  .footer-inner {
    flex-direction: row;
  }
}

/* md */
@media (min-width: 768px) {
  .title {
    font-size: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .title,
  .tagline {
    opacity: 1;
    animation: none;
  }

  .bg-drift {
    animation: none;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-drift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.03) translate(-1%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}
