:root {
  --accent: #feab3a;
  --text: #ccc;
  --muted: #8b90a6;
  --link: #6f93d6;
  --blue: #8ea2ff; /* matches the logo halo */
  --logo: min(320px, 62vw, 42svh);
  /* Must cover the particle band drawn by script.js (see BAND_HALF there). */
  --band: 340px;
  --pulse: 4s; /* half a breath: dim to bright */
}

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

html {
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, rgb(10, 10, 44) 0%, rgb(4, 4, 26) 50%, #000 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--link);
  text-decoration: none;
  border-radius: 4px;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6svh, 4rem) 1rem 1rem;
  text-align: center;
}

.logo-wrap {
  position: relative;
  isolation: isolate; /* keeps the halo above the page background */
  width: var(--logo);
  aspect-ratio: 1;
}

.particles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: var(--band);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.logo {
  position: relative;
  margin: 0;
}

/* Soft halo behind the logo (and the particles) that swells with the pulse. */
.logo::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 200, 255, 0.42) 50%, rgba(120, 140, 255, 0.14) 72%, transparent);
  opacity: 0.3;
  animation: glow var(--pulse) ease-in-out infinite alternate;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  opacity: 0.7;
  filter: brightness(5);
  animation: pulse var(--pulse) ease-in-out infinite alternate;
}

/* Only opacity and transform animate, so the pulse runs on the compositor
   without per-frame style recalcs or repaints. */
@keyframes pulse {
  to {
    opacity: 0.95;
    transform: scale(1.015);
  }
}

@keyframes glow {
  from {
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.tagline {
  margin: clamp(2rem, 9svh, 6rem) 0 0;
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.1em;
}

.tagline span {
  display: block;
}

.anim-text {
  background-image: linear-gradient(92deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hue 10s infinite linear;
  will-change: filter;
}

@keyframes hue {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: clamp(1.25rem, 4svh, 2.25rem);
  padding: 0.8em 1.5em;
  border: 1px solid rgba(142, 162, 255, 0.6);
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background-color 0.2s, border-color 0.2s;
}

.cta:hover {
  text-decoration: none;
  background: rgba(142, 162, 255, 0.18);
  border-color: var(--blue);
}

.cta:focus-visible {
  outline-color: var(--blue);
}

.cta-arrow {
  color: var(--blue);
  transition: transform 0.2s;
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

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

.contact {
  padding: 1.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 15px;
}

.contact p {
  margin: 0;
}

.contact b {
  display: block;
  font-weight: 600;
}

.contact .fine-print {
  margin-top: 0.9rem;
  font-size: 13px;
  color: var(--muted);
}

.fine-print a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(139, 144, 166, 0.4);
  text-underline-offset: 3px;
}

.fine-print a:hover {
  color: var(--text);
}

/* Short landscape phones: tighten so everything fits without scrolling. */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --logo: min(200px, 38svh);
    --band: 240px;
  }
  .hero {
    padding-top: 0.5rem;
  }
  .tagline {
    margin-top: 1rem;
    font-size: 16px;
    line-height: 1.7;
  }
  .cta {
    margin-top: 0.75rem;
  }
  .contact {
    padding-top: 0.5rem;
  }
  .contact .fine-print {
    margin-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim-text,
  .logo img,
  .logo::before {
    animation: none;
  }
  .cta,
  .cta-arrow {
    transition: none;
  }
}
