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

@font-face {
  font-family: Archivo;
  src: url(assets/fonts/archivo.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --p1-bg: #07090d;
  --p1-text: #f4f6f9;
  --p1-text-dim: rgb(244 246 249 / 0.64);
  --p1-text-faint: rgb(244 246 249 / 0.38);

  --p1-accent: #7aa2ff;
  --p1-accent-strong: #5b87ff;

  --p1-leo: #3b82f6;
  --p1-ems: #ef4444;

  --p1-stroke: rgb(255 255 255 / 0.09);
  --p1-surface-raised: rgb(255 255 255 / 0.06);

  --p1-font-ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --p1-font-display: Archivo, var(--p1-font-ui);

  --p1-ease-out: cubic-bezier(0.32, 0.72, 0, 1);

  --p1-pad-x: clamp(1.5rem, 6vw, 6rem);
  --p1-pad-y: clamp(1.75rem, 5vh, 3.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  background: var(--p1-bg);
  color: var(--p1-text);
  font-family: var(--p1-font-ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.ground {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 78% 8%, #1b2333 0%, #0b0e14 55%, #07090d 100%);
}

.ground::before,
.ground::after {
  content: '';
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.16;
  will-change: transform;
}

.ground::before {
  top: -34vmax;
  left: -30vmax;
  background: radial-gradient(circle, var(--p1-ems) 0%, transparent 62%);
  animation: drift-a 26s var(--p1-ease-out) infinite alternate;
}

.ground::after {
  right: -32vmax;
  bottom: -36vmax;
  background: radial-gradient(circle, var(--p1-leo) 0%, transparent 62%);
  animation: drift-b 31s var(--p1-ease-out) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-5vw, -5vh, 0) scale(1); }
}

.watermark {
  position: fixed;
  top: 50%;
  right: -8vmin;
  z-index: 0;
  width: 62vmin;
  height: auto;
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
  filter: saturate(1.4);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}

.page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(2rem, 6vh, 4rem);
  min-height: 100svh;
  padding: var(--p1-pad-y) var(--p1-pad-x);
}

.masthead {
  display: flex;
  align-items: center;
}

.wordmark {
  width: clamp(215px, 26vw, 340px);
  height: auto;
}

.hero {
  align-self: center;
  max-width: 60ch;
}

.hero > * {
  animation: rise 700ms var(--p1-ease-out) both;
}

.hero > :nth-child(2) { animation-delay: 70ms; }
.hero > :nth-child(3) { animation-delay: 140ms; }

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

.hero__title {
  margin-top: 1rem;
  font-family: var(--p1-font-display);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  padding-left: 1.125rem;
  border-left: 2px solid var(--p1-accent);
  max-width: 52ch;
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  line-height: 1.6;
  color: var(--p1-text-dim);
}

.hero__lede strong {
  color: var(--p1-text);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--p1-accent), var(--p1-accent-strong));
  color: #0a0b0d;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(91 135 255 / 0.28), 0 1px 2px rgb(0 0 0 / 0.4);
  transition:
    transform 140ms var(--p1-ease-out),
    box-shadow 220ms var(--p1-ease-out),
    filter 140ms var(--p1-ease-out);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 38px rgb(91 135 255 / 0.36), 0 1px 2px rgb(0 0 0 / 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn__glyph {
  width: 20px;
  height: 20px;
  flex: none;
}

.actions__note {
  font-size: 0.8125rem;
  color: var(--p1-text-faint);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--p1-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .watermark {
    display: none;
  }
}

@media (max-width: 640px) {
  .wordmark {
    width: min(78vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
