@import url("https://fonts.googleapis.com/css2?family=Inter:wght@700;800&display=swap");

:root {
  color-scheme: dark;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #000;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22) 72%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42) 100%);
}

body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background: url("assets/landscape-night.png") center / cover no-repeat;
  filter: brightness(1.95) contrast(1.2) saturate(1.05);
  transform: scale(1.01);
}

main {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  perspective: 1000px;
}

h1 {
  position: relative;
  margin: 0;
  color: #d7d7d7;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 0 #f1f1f1,
    0 3px 8px rgba(255, 255, 255, 0.08),
    0 18px 52px rgba(0, 0, 0, 0.95),
    0 0 70px rgba(0, 0, 0, 0.88);
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transition: transform 220ms ease-out;
  animation: enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  color: #2c2c2c;
  content: attr(data-text);
  text-shadow:
    1px 1px 0 #3b3b3b,
    2px 2px 0 #303030,
    3px 3px 0 #252525,
    4px 4px 0 #1b1b1b;
  transform: translate(0.035em, 0.045em);
}

h1::after {
  position: absolute;
  inset: 0;
  color: transparent;
  content: attr(data-text);
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 47%, transparent 55%);
  background-position: 150% 0;
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: sheen 5s 1.2s ease-in-out infinite;
}

@keyframes enter {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes sheen {
  0%, 30% { background-position: 150% 0; }
  55%, 100% { background-position: -100% 0; }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.8rem, 15vw, 5.25rem);
    letter-spacing: -0.07em;
  }
}

@media (max-width: 360px) {
  h1 { font-size: 14.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  h1::after { animation: none; }
  h1 { transform: none; }
}
