:root {
  --bg: #f7f5f0;
  --ink: #1a1817;
  --muted-70: rgba(26, 24, 23, 0.7);
  --muted-45: rgba(26, 24, 23, 0.45);
  --hairline: 1px solid rgba(26, 24, 23, 0.15);
  --font: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.7;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* fills the space under the header so the hero can centre in it */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* collage */
.collage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.collage__field {
  position: absolute;
  inset: -20% 0;
  filter: grayscale(1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.collage__field img {
  position: absolute;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* header */
.header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  font-size: 13px;
  border-bottom: var(--hairline);
  opacity: 0;
  animation: rise 0.7s ease 0.05s forwards;
}

.header a {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 40px;
  gap: 18px;
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -2px;
}

.hero__tagline {
  margin: 0;
  font-size: 15px;
  color: var(--muted-70);
  max-width: 460px;
  line-height: 1.6;
}

.hero__aside {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted-45);
  text-decoration: underline;
}

/* fomo dashboard preview */
.preview {
  position: fixed;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  width: 280px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px 12px;
  background: #fafaf9;
  border: var(--hairline);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.preview:hover {
  opacity: 1;
  border-color: rgba(26, 24, 23, 0.4);
  transform: translateY(-2px);
}

.preview__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview__logo {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: block;
  flex: none;
}

.preview__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.4px;
  flex: 1;
}

.preview__arrow {
  font-size: 11px;
  color: var(--muted-45);
}

.preview__spark {
  display: block;
  height: 34px;
  width: 100%;
}

.preview__spark svg {
  display: block;
  width: 100%;
  height: 34px;
}

.preview__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  color: var(--muted-45);
}

.preview__cta {
  border-bottom: 1px solid rgba(26, 24, 23, 0.3);
  color: var(--ink);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .preview:hover {
    transform: none;
  }
}

@media (max-height: 560px) {
  .preview__spark {
    display: none;
  }
}

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

@media (max-width: 720px) {
  .header {
    padding: 16px 20px;
  }

  .preview {
    left: 20px;
    bottom: 20px;
    width: 250px;
  }

  .hero {
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }
}
