:root {
  color-scheme: dark;
  --brand: #4AA87E;
  --brand-bright: #70D7A7;
  --brand-soft: rgba(74, 168, 126, 0.18);
  --bg: #06100D;
  --bg-2: #081411;
  --text: #F4FBF7;
  --muted: #ABC6B8;
  --ring: rgba(112, 215, 167, 0.78);
  --shadow: rgba(0, 0, 0, 0.36);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 47%, rgba(74, 168, 126, 0.19), transparent 23rem),
    radial-gradient(circle at 23% 19%, rgba(112, 215, 167, 0.09), transparent 22rem),
    radial-gradient(circle at 83% 78%, rgba(74, 168, 126, 0.08), transparent 20rem),
    linear-gradient(135deg, #030807 0%, var(--bg) 43%, var(--bg-2) 100%);
}

body.has-custom-cursor,
body.has-custom-cursor a {
  cursor: none;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.ambient::before,
.ambient::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.45;
}

.ambient::before {
  width: 42vmax;
  height: 42vmax;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74, 168, 126, 0.2), transparent 64%);
}

.ambient::after {
  width: 66vmax;
  height: 66vmax;
  left: -16vmax;
  bottom: -34vmax;
  background: radial-gradient(circle, rgba(74, 168, 126, 0.11), transparent 67%);
}

.streaks {
  position: absolute;
  inset: -28%;
  transform: rotate(-24deg);
  opacity: 0.72;
  will-change: transform;
}

.streaks::before,
.streaks::after {
  position: absolute;
  inset: 0;
  content: "";
  background-repeat: repeat;
  background-size: 17rem 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.streaks-primary::before {
  background-image:
    linear-gradient(180deg, transparent 0 24%, rgba(74, 168, 126, 0.0) 24%, rgba(74, 168, 126, 0.33) 35%, transparent 56%),
    linear-gradient(90deg, transparent 0 48%, rgba(74, 168, 126, 0.18) 49%, transparent 50%);
  animation: drift-main 16s linear infinite;
}

.streaks-primary::after {
  background-image:
    linear-gradient(180deg, transparent 0 8%, rgba(255, 255, 255, 0.12) 18%, transparent 36%),
    linear-gradient(90deg, transparent 0 58%, rgba(112, 215, 167, 0.13) 59%, transparent 60%);
  background-size: 23rem 100%;
  animation: drift-secondary 22s linear infinite;
  opacity: 0.58;
}

.streaks-secondary {
  transform: rotate(-24deg) translate3d(7%, -5%, 0);
  opacity: 0.34;
}

.streaks-secondary::before {
  background-image:
    linear-gradient(180deg, transparent 0 33%, rgba(74, 168, 126, 0.18) 44%, transparent 62%),
    linear-gradient(90deg, transparent 0 67%, rgba(244, 251, 247, 0.08) 68%, transparent 69%);
  background-size: 31rem 100%;
  animation: drift-soft 28s linear infinite;
}

.streaks-secondary::after {
  display: none;
}

.site-main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.25rem, 4vw, 3rem);
  place-items: center;
}

.hero {
  display: grid;
  width: min(100%, 74rem);
  min-height: min(34rem, 100svh - 2.5rem);
  place-items: center;
  align-content: center;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  text-align: center;
}

.wordmark {
  margin: 0;
  color: var(--brand);
  font-size: clamp(4.8rem, 17vw, 15rem);
  font-weight: 780;
  line-height: 0.9;
  letter-spacing: 0;
  user-select: none;
  text-shadow:
    0 0 1.2rem rgba(74, 168, 126, 0.26),
    0 0 4.8rem rgba(74, 168, 126, 0.22),
    0 1.25rem 4rem var(--shadow);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  min-width: min(18.5rem, 100%);
  padding: 0.95rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(112, 215, 167, 0.5);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(74, 168, 126, 0.28), rgba(74, 168, 126, 0.08)),
    rgba(244, 251, 247, 0.035);
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.28),
    0 0 2.6rem rgba(74, 168, 126, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.cta::before {
  position: absolute;
  inset: 1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.18) 45%, transparent 64%);
  opacity: 0;
  transform: translateX(-45%);
  transition:
    opacity 180ms ease,
    transform 360ms ease;
}

.cta span {
  position: relative;
  z-index: 1;
}

.cta:hover {
  border-color: rgba(112, 215, 167, 0.84);
  background:
    linear-gradient(135deg, rgba(74, 168, 126, 0.37), rgba(74, 168, 126, 0.11)),
    rgba(244, 251, 247, 0.055);
  box-shadow:
    0 1.75rem 4.5rem rgba(0, 0, 0, 0.33),
    0 0 3.2rem rgba(74, 168, 126, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.cta:hover::before {
  opacity: 1;
  transform: translateX(45%);
}

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

.cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 0.45rem;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 160ms ease,
    height 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor-ring {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(112, 215, 167, 0.78);
  box-shadow:
    0 0 1.3rem rgba(74, 168, 126, 0.2),
    inset 0 0 1.1rem rgba(74, 168, 126, 0.12);
}

.custom-cursor-dot {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--brand-bright);
  box-shadow: 0 0 0.9rem rgba(112, 215, 167, 0.65);
}

body.cursor-hover .custom-cursor-ring {
  width: 3.65rem;
  height: 3.65rem;
  border-color: rgba(112, 215, 167, 0.45);
  background: rgba(74, 168, 126, 0.07);
}

body.cursor-hover .custom-cursor-dot {
  background: var(--text);
}

@keyframes drift-main {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 17rem 0;
  }
}

@keyframes drift-secondary {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 23rem 0;
  }
}

@keyframes drift-soft {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 31rem 0;
  }
}

@media (max-width: 42rem) {
  body {
    background:
      radial-gradient(circle at 50% 42%, rgba(74, 168, 126, 0.18), transparent 18rem),
      linear-gradient(145deg, #030807 0%, var(--bg) 52%, #081612 100%);
  }

  .site-main {
    padding: 1.25rem;
  }

  .hero {
    min-height: min(30rem, 100svh - 2.5rem);
    gap: 1.2rem;
  }

  .wordmark {
    font-size: clamp(4.2rem, 22vw, 7.3rem);
  }

  .cta {
    width: min(100%, 19rem);
    min-height: 3.65rem;
  }

  .streaks {
    inset: -44%;
    opacity: 0.46;
  }
}

@media (max-height: 31rem) {
  .hero {
    gap: 1rem;
    min-height: auto;
  }

  .wordmark {
    font-size: clamp(3.7rem, 18vh, 6.5rem);
  }

  .cta {
    min-height: 3.2rem;
    padding-block: 0.8rem;
  }
}

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

  .streaks::before,
  .streaks::after {
    animation: none !important;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body.has-custom-cursor,
  body.has-custom-cursor a {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}
