@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --mx {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --my {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --glow-ry {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 420px;
}

:root {
  --background: #0a0d0b;
  --text: #e8ebe9;
  --muted: #7d8580;
  --green: #5fa777;
  --grid: rgba(255, 255, 255, 0.025);
  --grid-glow: rgba(95, 167, 119, 0.45);
  --glow-radius: 420px;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;

  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--background);

  background-size: 48px 48px;

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;

  pointer-events: none;
  opacity: 0;

  background:
    linear-gradient(var(--grid-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-glow) 1px, transparent 1px),
    radial-gradient(
      ellipse var(--glow-radius) var(--glow-ry) at var(--mx, 50%) var(--my, 50%),
      rgba(95, 167, 119, 0.14),
      transparent 70%
    );
  background-size:
    48px 48px,
    48px 48px,
    100% 100%;

  -webkit-mask-image: radial-gradient(
    ellipse var(--glow-radius) var(--glow-ry) at var(--mx, 50%) var(--my, 50%),
    black,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse var(--glow-radius) var(--glow-ry) at var(--mx, 50%) var(--my, 50%),
    black,
    transparent 75%
  );

  transition: opacity 0.4s ease;
  animation: sweep-in 0.5s ease-out 1;
}

@keyframes sweep-in {
  from {
    --mx: 0%;
    --my: 50%;
    --glow-ry: 100vh;
  }

  to {
    --mx: 100%;
    --my: 50%;
    --glow-ry: 420px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .glow {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .glow {
    opacity: 1;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }
}

main {
  position: relative;
  z-index: 1;

  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;

  animation: appear 1s ease-out both;
}

.mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;

  margin-bottom: 72px;

  color: var(--green);
}

.eyebrow {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  font-size: 12px;
  letter-spacing: 0.18em;

  color: var(--muted);

  margin-bottom: 18px;
}

h1 {
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.92;

  font-weight: 500;
  letter-spacing: -0.055em;

  max-width: 900px;
}

.bottom {
  margin-top: 90px;

  display: flex;
  align-items: center;
  gap: 28px;

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  font-size: 11px;
  letter-spacing: 0.1em;

  color: var(--muted);
}

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

.dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 0 rgba(95, 167, 119, 0.4);

  animation: pulse 2.5s infinite;
}

.domain::before {
  content: "/";
  margin-right: 28px;
  color: #343a36;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 167, 119, 0.35);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(95, 167, 119, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(95, 167, 119, 0);
  }
}

@media (max-width: 600px) {
  main {
    width: calc(100% - 40px);
  }

  .mark {
    margin-bottom: 54px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .bottom {
    margin-top: 65px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .domain::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main,
  .dot,
  .glow {
    animation: none;
  }

  .glow {
    transition: none;
  }
}
