:root {
  --brand-start: #b22234;
  --brand-center: #7a1f2b;
  --brand-end: #1f3a93;
  --brand-glow: #4da3ff;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.42);
  --font-display: "Kaushan Script", cursive;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
}

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

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(31, 58, 147, 0.55) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-start) 0%, var(--brand-center) 46%, var(--brand-end) 100%);
  background-size: 100% 100%, 140% 140%;
  background-position: center, 0% 50%;
  animation: gradient-drift 18s ease-in-out infinite alternate;
}

@keyframes gradient-drift {
  0% {
    background-position: center, 0% 40%;
  }
  100% {
    background-position: center, 100% 60%;
  }
}

/* Living aurora blobs */
.aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.7;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__blob--a {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(178, 34, 52, 0.85) 0%, transparent 70%);
  animation: float-a 14s ease-in-out infinite;
}

.aurora__blob--b {
  width: min(64vw, 600px);
  height: min(64vw, 600px);
  bottom: 0%;
  right: 4%;
  background: radial-gradient(circle, rgba(31, 58, 147, 0.9) 0%, transparent 70%);
  animation: float-b 17s ease-in-out infinite;
}

.aurora__blob--c {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  top: 42%;
  left: 48%;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.35) 0%, transparent 70%);
  animation: float-c 11s ease-in-out infinite;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8%, 12%) scale(1.12);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, -8%) scale(1.08);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(-20%, -10%) scale(0.95);
  }
  50% {
    transform: translate(10%, 8%) scale(1.15);
  }
}

.constellation {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Floating flex cards — abstract “personas” in the field */
.flex-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.flex-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(72px, 11vw, 128px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate3d(0, 0, 0) rotate(var(--r));
  animation: card-rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both, card-breathe 7s ease-in-out infinite;
  animation-delay: var(--delay), calc(var(--delay) + 1.4s);
  overflow: hidden;
}

.flex-card--tall {
  width: clamp(64px, 9vw, 104px);
  aspect-ratio: 2 / 3;
}

.flex-card--wide {
  width: clamp(90px, 14vw, 150px);
  aspect-ratio: 4 / 3;
}

.flex-card__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.7;
}

.flex-card__bar {
  position: absolute;
  left: 14%;
  right: 28%;
  bottom: 16%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
}

.flex-card__dot {
  position: absolute;
  top: 14%;
  left: 14%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-glow));
  box-shadow: 0 0 18px rgba(77, 163, 255, 0.45);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0) rotate(var(--r)) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--r)) scale(1);
  }
}

@keyframes card-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r));
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(calc(var(--r) + 2deg));
  }
}

/* Hero — one composition, brand first */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 0.9s ease 0.15s forwards;
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.hero__brand {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: brand-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero__brand-text {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(
    105deg,
    #ffffff 0%,
    #ffffff 42%,
    #ffe8ec 48%,
    #ffffff 54%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen-shift 4.8s ease-in-out 1.8s infinite;
}

@keyframes sheen-shift {
  0%,
  55% {
    background-position: 100% 0;
  }
  75%,
  100% {
    background-position: 0% 0;
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero__line {
  margin-top: 1.1rem;
  max-width: 22ch;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0;
  animation: fade-up 0.9s ease 0.55s forwards;
}

.hero__soon {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: fade-up 0.9s ease 0.75s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  opacity: 0;
  animation: fade-up 0.8s ease 1.2s forwards;
}

@media (max-width: 720px) {
  .flex-card:nth-child(3),
  .flex-card:nth-child(5) {
    display: none;
  }

  .hero {
    padding-inline: 1.25rem;
  }

  .hero__brand {
    font-size: clamp(3.6rem, 18vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .aurora__blob,
  .flex-card,
  .hero__eyebrow,
  .hero__brand,
  .hero__brand-text,
  .hero__line,
  .hero__soon,
  .footer,
  .hero__eyebrow-dot {
    animation: none !important;
  }

  .hero__brand-text {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
  }

  .hero__eyebrow,
  .hero__brand,
  .hero__line,
  .hero__soon,
  .footer {
    opacity: 1;
  }
}
