/* Nexa: drop licensed .woff2 files into /fonts to activate.
   Outfit is a close geometric fallback until then. */
@font-face {
  font-family: "Nexa";
  src: url("/fonts/Nexa-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nexa";
  src: url("/fonts/Nexa-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070608;
  --bg-deep: #030204;
  --ink: #f4f0f4;
  --ink-soft: #c9c0c9;
  --mauve: #a894a9;
  --plum: #6a456b;
  --violet: #b878c4;
  --amber: #f0a04a;
  --amber-deep: #c47428;
  --font: "Nexa", "Outfit", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--amber) 55%, transparent);
  color: var(--bg-deep);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 110% 90% at 6% 10%,
      rgba(168, 107, 184, 0.1) 0%,
      rgba(168, 107, 184, 0.045) 35%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 95% 75% at 94% 90%,
      rgba(240, 160, 74, 0.055) 0%,
      rgba(240, 160, 74, 0.02) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 70% at 55% 48%,
      rgba(106, 69, 107, 0.14) 0%,
      rgba(106, 69, 107, 0.06) 38%,
      transparent 78%
    ),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg) 42%, #0c0a0d 68%, var(--bg-deep) 100%);
  animation: atmosphere-drift 28s var(--ease-soft) infinite alternate;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 38%,
      rgba(240, 160, 74, 0.018) 50%,
      transparent 62%,
      transparent 100%
    );
  animation: light-sweep 14s var(--ease-soft) infinite;
  pointer-events: none;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 5vw, 4.5rem);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__copy {
  position: relative;
  max-width: 34rem;
  animation: rise 1s var(--ease-out) both;
}

.brand {
  font-size: clamp(3.25rem, 8vw + 0.5rem, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  white-space: nowrap;
  animation: brand-in 1.1s var(--ease-out) both;
}

.brand::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--amber), var(--violet));
  border-radius: 1px;
  transform-origin: left center;
  animation: rule-draw 1s var(--ease-out) 0.35s both;
}

h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--violet);
  margin-bottom: 0.9rem;
  animation: rise 1s var(--ease-out) 0.12s both;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--mauve);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 28rem;
  animation: rise 1s var(--ease-out) 0.22s both;
}

.lede em,
.lede .emphasis {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 500;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--amber);
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 2px;
  overflow: hidden;
  transition:
    background 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft),
    transform 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft);
  animation: rise 1s var(--ease-out) 0.32s both;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
}

.cta:hover {
  background: var(--violet);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(168, 107, 184, 0.28);
}

.cta:hover::before {
  transform: translateX(120%);
}

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

.cta:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rise 1.1s var(--ease-out) 0.2s both;
}

.ambient {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  isolation: isolate;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  mix-blend-mode: soft-light;
  will-change: transform, opacity;
}

.ambient__glow--a {
  width: 68%;
  height: 68%;
  top: 10%;
  left: 4%;
  background: rgba(184, 120, 196, 0.28);
  animation: glow-a 11s var(--ease-soft) infinite;
}

.ambient__glow--b {
  width: 60%;
  height: 60%;
  top: 30%;
  left: 34%;
  background: rgba(240, 160, 74, 0.16);
  animation: glow-b 13s var(--ease-soft) infinite;
}

.ambient__glow--c {
  width: 48%;
  height: 48%;
  top: 22%;
  left: 26%;
  background: rgba(106, 69, 107, 0.32);
  animation: glow-c 9s var(--ease-soft) infinite;
}

.ambient__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(184, 120, 196, 0.15));
}

.ring {
  fill: none;
  stroke-linecap: round;
  transform-origin: 200px 200px;
}

.ring--1 {
  stroke: var(--violet);
  stroke-width: 1.6;
  stroke-dasharray: 32 16;
  opacity: 0.9;
  animation: spin 20s linear infinite;
}

.ring--2 {
  stroke: var(--plum);
  stroke-width: 1.25;
  stroke-dasharray: 5 12;
  opacity: 0.75;
  animation: spin-rev 30s linear infinite;
}

.ring--3 {
  stroke: var(--mauve);
  stroke-width: 1;
  stroke-dasharray: 48 28 6 28;
  opacity: 0.4;
  animation: spin 44s linear infinite;
}

.ring--4 {
  stroke: color-mix(in srgb, var(--amber) 70%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 2 14;
  opacity: 0.75;
  animation: spin-rev 24s linear infinite;
}

.core {
  fill: var(--amber);
  opacity: 0.95;
  transform-origin: 200px 200px;
  animation: core-breathe 4.5s var(--ease-soft) infinite;
  filter: drop-shadow(0 0 10px rgba(240, 160, 74, 0.55));
}

.core-pulse {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 200px 200px;
  animation: pulse-ring 4.5s ease-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  display: block;
  will-change: transform, opacity;
}

.orb--1 {
  width: 10px;
  height: 10px;
  background: var(--amber);
  top: 18%;
  left: 52%;
  box-shadow: 0 0 14px rgba(240, 160, 74, 0.6);
  animation: orbit-1 14s linear infinite;
}

.orb--2 {
  width: 7px;
  height: 7px;
  background: var(--violet);
  top: 48%;
  left: 78%;
  box-shadow: 0 0 12px rgba(184, 120, 196, 0.55);
  animation: orbit-2 19s linear infinite;
}

.orb--3 {
  width: 5px;
  height: 5px;
  background: var(--mauve);
  top: 72%;
  left: 40%;
  animation: orbit-3 11s linear infinite;
}

.orb--4 {
  width: 8px;
  height: 8px;
  background: var(--amber);
  opacity: 0.75;
  top: 36%;
  left: 18%;
  animation: orbit-4 16s linear infinite;
}

.orb--5 {
  width: 4px;
  height: 4px;
  background: var(--ink);
  opacity: 0.6;
  top: 22%;
  left: 70%;
  animation: orbit-5 9s linear infinite;
}

.orb--6 {
  width: 6px;
  height: 6px;
  background: var(--violet);
  top: 62%;
  left: 62%;
  animation: orbit-6 13s linear infinite;
}

@keyframes atmosphere-drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-1.4%, 1.1%);
  }
}

@keyframes light-sweep {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(8%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(1.75rem) scale(0.98);
    letter-spacing: -0.02em;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: -0.045em;
  }
}

@keyframes rule-draw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes glow-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(10%, 7%) scale(1.12);
    opacity: 1;
  }
}

@keyframes glow-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-12%, -9%) scale(1.18);
    opacity: 0.85;
  }
}

@keyframes glow-c {
  0%,
  100% {
    transform: translate(0, 0) scale(0.95);
    opacity: 0.55;
  }
  50% {
    transform: translate(5%, -7%) scale(1.08);
    opacity: 0.9;
  }
}

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

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

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes orbit-1 {
  0% {
    transform: rotate(0deg) translateX(110px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(110px) rotate(-360deg);
  }
}

@keyframes orbit-2 {
  0% {
    transform: rotate(40deg) translateX(145px) rotate(-40deg);
  }
  100% {
    transform: rotate(400deg) translateX(145px) rotate(-400deg);
  }
}

@keyframes orbit-3 {
  0% {
    transform: rotate(180deg) translateX(95px) rotate(-180deg);
  }
  100% {
    transform: rotate(540deg) translateX(95px) rotate(-540deg);
  }
}

@keyframes orbit-4 {
  0% {
    transform: rotate(260deg) translateX(130px) rotate(-260deg);
  }
  100% {
    transform: rotate(620deg) translateX(130px) rotate(-620deg);
  }
}

@keyframes orbit-5 {
  0% {
    transform: rotate(90deg) translateX(160px) rotate(-90deg);
  }
  100% {
    transform: rotate(450deg) translateX(160px) rotate(-450deg);
  }
}

@keyframes orbit-6 {
  0% {
    transform: rotate(310deg) translateX(75px) rotate(-310deg);
  }
  100% {
    transform: rotate(670deg) translateX(75px) rotate(-670deg);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding-top: clamp(2.5rem, 10vw, 4rem);
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero__copy {
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__visual {
    order: -1;
  }

  .ambient {
    width: min(78vw, 320px);
  }

  .brand {
    white-space: normal;
  }

  .brand::after {
    margin-inline: auto;
  }

  .lede {
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .atmosphere::before,
  .hero__copy,
  .hero__visual,
  .brand,
  .brand::after,
  h1,
  .lede,
  .cta,
  .ambient__glow,
  .ring,
  .core,
  .core-pulse,
  .orb {
    animation: none;
  }

  .core-pulse {
    opacity: 0.25;
  }

  .ambient__glow {
    opacity: 0.7;
  }

  .brand::after {
    transform: none;
    opacity: 1;
  }

  .cta::before {
    display: none;
  }
}
