/*
  Minimal static Amplica Bio landing page.
  The hero background is generated entirely in CSS: no image, video, canvas,
  JavaScript, or external animation asset is required.
*/

:root {
  --page-gutter: clamp(1.25rem, 3.2vw, 3.5rem);
  --foreground: #d9d5db;
  --muted: #b9b3bb;
  --footer: #7d7a80;
  --surface: #050407;
  --border: rgba(220, 214, 222, 0.56);
  --button-radius: 999px;
  --content-width: 54rem;
  --transition: 160ms ease;
}

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

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

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

body {
  color: var(--foreground);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   Hero / animated CSS background
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    clamp(4rem, 8vh, 6rem)
    var(--page-gutter)
    clamp(5.5rem, 10vh, 7.5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(199, 26, 139, 0.115) 0%,
      rgba(155, 18, 112, 0.065) 18%,
      rgba(67, 10, 54, 0.03) 36%,
      transparent 58%
    ),
    radial-gradient(
      circle at 50% 50%,
      #131017 0%,
      #0a080d 48%,
      #050407 76%,
      #020203 100%
    );
}

/* Fine concentric rings plus very faint radial spokes. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -55vmax;
  pointer-events: none;
  opacity: 0.62;
  background:
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0 5.4vmin,
      rgba(239, 226, 238, 0.018) 5.5vmin 5.68vmin,
      transparent 5.82vmin 10.9vmin
    ),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(231, 65, 176, 0.032) 0deg 2.6deg,
      transparent 2.6deg 45deg
    );
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    #000 17%,
    #000 70%,
    transparent 90%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    #000 17%,
    #000 70%,
    transparent 90%
  );
  transform-origin: 50% 50%;
  animation: ambient-rotate 54s linear infinite;
}

/* A few soft magenta ring highlights slowly breathe in and out. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24%;
  pointer-events: none;
  opacity: 0.76;
  background:
    radial-gradient(
      circle at 50% 50%,
      transparent 0 20%,
      rgba(255, 66, 185, 0.035) 20.4% 20.9%,
      transparent 21.4% 31%,
      rgba(198, 41, 148, 0.045) 31.4% 31.9%,
      transparent 32.5% 45%,
      rgba(236, 76, 182, 0.026) 45.4% 45.8%,
      transparent 46.5% 100%
    );
  filter: blur(0.3px);
  transform-origin: 50% 50%;
  animation: ambient-breathe 11s ease-in-out infinite alternate;
}

@keyframes ambient-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ambient-breathe {
  0% {
    transform: scale(0.94);
    opacity: 0.52;
  }

  55% {
    opacity: 0.78;
  }

  100% {
    transform: scale(1.055);
    opacity: 0.66;
  }
}

.hero__content {
  width: min(100%, var(--content-width));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 4vh, 3.25rem);
}

.hero__copy {
  display: grid;
  justify-items: center;
  gap: clamp(0.85rem, 1.7vh, 1.25rem);
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--foreground);
  font-size: clamp(3rem, 7vw, 6.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  min-width: 7.8rem;
  min-height: 2.8rem;
  padding: 0.82rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  color: #d3ced5;
  font-size: 0.875rem;
  line-height: 1;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: rgba(4, 3, 5, 0.52);
  border-color: rgba(218, 209, 220, 0.54);
}

.button--primary:hover,
.button--primary:focus-visible {
  color: #e0dbe2;
  background: rgba(29, 10, 24, 0.52);
  border-color: rgba(232, 194, 222, 0.72);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  width: 100%;
  color: var(--footer);
  pointer-events: none;
}

.footer__row {
  width: 100%;
  padding:
    0
    var(--page-gutter)
    clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  align-items: center;
  color: var(--footer);
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Responsive simplification
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  :root {
    --page-gutter: 1.1rem;
  }

  .hero {
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    line-height: 0.96;
  }

  .hero__content {
    gap: 2rem;
  }

  .button {
    min-width: 7.1rem;
  }
}

@media (max-width: 440px) {
  .hero__actions {
    width: 100%;
  }

  .button {
    flex: 1 1 8rem;
    max-width: 10rem;
  }
}

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