:root {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #111115;
  --surface-hover: #17171d;
  --text: #f2f2f4;
  --muted: #8a8a94;
  --faint: #787882;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #a5aad8;
  --accent-ink: #11121a;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--background);
}

#ambient-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.utility {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  gap: 8px;
  z-index: 2;
  transform: translateX(-50%);
}

.icon-link {
  display: grid;
  width: 57px;
  height: 57px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 100ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent);
  outline: none;
}

.icon-link:active {
  transform: scale(0.96);
}

.icon-link img {
  display: block;
  opacity: 0.78;
}


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

.hero {
  display: grid;
  min-height: 100dvh;
  padding: 72px 24px 96px;
  place-items: center;
  text-align: center;
}

.hero-content {
  transform: translateY(-2vh);
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

h1 span {
  display: inline-block;
  color: var(--accent);
}

.hero p {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  letter-spacing: -0.015em;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: #b8bce3;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(165, 170, 216, 0.35);
  background: rgba(165, 170, 216, 0.08);
}

footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 18px;
}

footer a {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--faint);
  font-size: 0.7rem;
  text-decoration: none;
  transition: color 160ms ease;
}

footer a:hover {
  color: var(--muted);
}

@media (max-width: 767px) {
  .utility {
    top: calc(14px + env(safe-area-inset-top));
  }

  .hero {
    width: 100%;
    padding: 64px 16px 112px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  footer {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }

  footer nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 320px;
    margin: 0 auto;
    gap: 0 4px;
  }

  footer a {
    justify-content: center;
  }
}

@media (max-height: 500px) {
  .utility {
    top: calc(8px + env(safe-area-inset-top));
  }

  .icon-link {
    width: 46px;
    height: 46px;
  }

  .icon-link img {
    width: 25px;
    height: 25px;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero-content {
    transform: none;
  }

  footer {
    padding-top: 7px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #ambient-canvas {
    opacity: 0.46;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .backdrop {
    background: var(--background);
  }
}
