/* Transpermia home — carrier wave (coming soon) */

:root {
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-bg0: #03040b;
  --home-ink: #f5f1ff;
  --home-violet: #8e7dff;
  --home-lav: #c3b9ff;
  --home-pearl: #f3efff;
}

.home-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--home-bg0);
  color: var(--home-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page a {
  color: inherit;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 8vh, 4.5rem);
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 54%, rgb(80 62 170 / 0.10), transparent 30%),
    linear-gradient(180deg, #02030a 0%, #060713 50%, #0d0c20 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 48%, transparent 0 22%, rgb(3 4 11 / 0.10) 50%, rgb(3 4 11 / 0.55) 100%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.home-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(205 194 239 / 0.48);
}

.home-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: #f6f1ff;
  font-size: clamp(64px, 10vw, 146px);
  text-shadow: 0 2px 28px rgb(0 0 0 / 0.48);
}

.home-headline {
  margin: 28px auto 0;
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
  color: #d9d0f7;
  font-size: clamp(22px, 3vw, 39px);
}

.home-support {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
  color: rgb(229 222 244 / 0.70);
}

.home-signoff {
  margin: 30px auto 0;
  max-width: 36ch;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgb(205 194 239 / 0.55);
}

/* Carrier wave — a large slow undulation carries the seed across. */
.home-wavefield {
  position: absolute;
  inset: -12%;
  z-index: 0;
  filter: blur(0.2px);
  animation: home-wave-shift 28s linear infinite;
  pointer-events: none;
}

.home-wavefield::before {
  content: "";
  position: absolute;
  left: -20%;
  top: 15%;
  width: 140%;
  height: 72%;
  background:
    radial-gradient(ellipse at 25% 50%, transparent 0 24%, rgb(119 94 255 / 0.06) 31%, transparent 38%),
    radial-gradient(ellipse at 60% 50%, transparent 0 23%, rgb(190 175 255 / 0.065) 30%, transparent 37%),
    radial-gradient(ellipse at 95% 50%, transparent 0 20%, rgb(112 87 255 / 0.05) 27%, transparent 35%);
  transform: rotate(-7deg);
}

.home-seed {
  position: absolute;
  z-index: 1;
  left: -5%;
  top: 42%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1ebff;
  box-shadow: 0 0 18px 4px rgb(224 216 255 / 0.65), 0 0 75px 24px rgb(120 90 255 / 0.15);
  animation: home-ride 28s linear infinite;
  pointer-events: none;
}

@keyframes home-wave-shift {
  from {
    transform: translateX(-5%) rotate(-2deg);
  }
  to {
    transform: translateX(5%) rotate(1deg);
  }
}

@keyframes home-ride {
  0% {
    left: -5%;
    top: 43%;
  }
  26% {
    top: 35%;
  }
  51% {
    top: 45%;
  }
  76% {
    top: 31%;
  }
  100% {
    left: 105%;
    top: 40%;
  }
}

.home-rise > * {
  animation: home-rise 0.9s var(--home-ease) both;
}

.home-rise > *:nth-child(1) {
  animation-delay: 0.05s;
}
.home-rise > *:nth-child(2) {
  animation-delay: 0.18s;
}
.home-rise > *:nth-child(3) {
  animation-delay: 0.3s;
}
.home-rise > *:nth-child(4) {
  animation-delay: 0.42s;
}
.home-rise > *:nth-child(5) {
  animation-delay: 0.54s;
}

@keyframes home-rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

html {
  scroll-behavior: smooth;
}

/* Consent banner — analytics embed stays off until the visitor chooses. */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: min(560px, calc(100vw - 28px));
  padding: 14px 18px;
  border: 1px solid rgb(210 198 255 / 0.24);
  border-radius: 14px;
  background: rgb(6 7 19 / 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.45);
  color: rgb(229 222 244 / 0.85);
  font-size: 13px;
  line-height: 1.5;
}

.consent-banner__text {
  margin: 0;
  max-width: 34ch;
}

.consent-banner__actions {
  display: flex;
  gap: 8px;
}

.consent-banner__btn {
  border: 1px solid rgb(210 198 255 / 0.3);
  background: rgb(142 125 255 / 0.28);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #f2ecff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.consent-banner__btn:hover {
  background: rgb(142 125 255 / 0.42);
  border-color: rgb(220 210 255 / 0.5);
}

.consent-banner__btn--ghost {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .home-wavefield,
  .home-seed,
  .home-rise > * {
    animation: none !important;
  }
  .home-wavefield {
    opacity: 0.5;
  }
  .home-seed {
    left: 50%;
    top: 42%;
    opacity: 0.5;
  }
}
