:root {
  --bar-height: 64px;
  --bar-bg: #000;
  --bar-fg: #fff;
  --accent: #ffffff;
  --logo-size: 40px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  overflow: hidden;
  height: 100%;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
  overflow: hidden;
  background: #fff;
  animation: hero-screenshake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) 4.5s both;
}

.intro-splash {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0);
  z-index: 100;
  background: #fff;
  box-shadow: none;
  animation: splash-iris-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.intro-splash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-splash.flying {
  animation: none;
  box-shadow: none;
}

.intro-splash.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

@keyframes splash-iris-up {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .intro-splash {
    width: 220px;
    height: 220px;
  }
}

@keyframes hero-screenshake {
  0%   { transform: translate(0, 0); }
  8%   { transform: translate(-9px, -6px); }
  18%  { transform: translate(8px, 5px); }
  28%  { transform: translate(-7px, 6px); }
  38%  { transform: translate(5px, -5px); }
  48%  { transform: translate(-4px, 3px); }
  60%  { transform: translate(3px, -2px); }
  72%  { transform: translate(-2px, 1px); }
  85%  { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0); }
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

.hero-canvas {
  position: absolute;
  display: none;
  pointer-events: none;
}

.hero.parallax-active .hero-canvas {
  display: block;
  transform-origin: center;
  animation: hero-bg-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 2.55s both;
}

.hero.fallback-mode .hero-image {
  visibility: visible;
  transform-origin: center;
  animation: hero-bg-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 2.55s both;
}

@keyframes hero-bg-reveal {
  0%   { opacity: 0; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  animation: hero-fadein 1.2s ease-out 3.85s forwards;
}

@keyframes hero-fadein {
  to { opacity: 1; }
}

.hero-logo-wrap {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 34%;
  max-width: 520px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.hero-logo-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 245, 215, 0.9) 0%,
    rgba(255, 225, 160, 0.55) 22%,
    rgba(255, 200, 100, 0.15) 45%,
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  animation: hero-logo-flash 1.5s ease-out 3.8s both;
}

@keyframes hero-logo-flash {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0; }
  20%  { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.0); opacity: 0; }
}

.hero-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(
    circle,
    transparent 0%,
    black 18%,
    black 45%,
    transparent 82%
  );
  mask-image: radial-gradient(
    circle,
    transparent 0%,
    black 18%,
    black 45%,
    transparent 82%
  );
}

.hero-rays-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hero-rays-a {
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 8.4deg,
    rgba(255, 235, 185, 0.5) 8.7deg,
    rgba(255, 235, 185, 0.5) 9.3deg,
    transparent 9.6deg
  );
  animation: hero-rays-spin-a 90s linear infinite;
}

.hero-rays-b {
  background: repeating-conic-gradient(
    from 4deg,
    transparent 0deg,
    transparent 17.5deg,
    rgba(255, 245, 215, 0.4) 17.8deg,
    rgba(255, 245, 215, 0.4) 18.2deg,
    transparent 18.5deg
  );
  animation: hero-rays-spin-b 160s linear infinite reverse;
  opacity: 0.9;
}

@keyframes hero-rays-spin-a {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hero-rays-spin-b {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  opacity: 0;
  animation: hero-logo-explode 1.35s cubic-bezier(0.16, 1, 0.3, 1) 3.75s both;
  transform-origin: center;
}

@keyframes hero-logo-explode {
  0% {
    opacity: 0;
    transform: scale(0.15) rotate(-12deg);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55)) blur(16px);
  }
  40% {
    opacity: 1;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55)) blur(0);
  }
  60% {
    transform: scale(1.16) rotate(6deg);
  }
  78% {
    transform: scale(0.94) rotate(-2deg);
  }
  92% {
    transform: scale(1.03) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55)) blur(0);
  }
}

.hero-rays {
  opacity: 0;
  animation: hero-fadein 1s ease-out 4.05s forwards;
}

.hero-cta-row {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  pointer-events: auto;
  opacity: 0;
  animation: hero-fadein 0.55s ease-out 5.15s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  outline: none;
}

.hero-cta-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-cta {
    padding: 12px 18px;
    font-size: 13px;
  }
  .hero-cta-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .hero-logo-wrap {
    width: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero.parallax-active .hero-canvas,
  .hero.fallback-mode .hero-image,
  .ember-canvas,
  .hero-rays,
  .hero-logo,
  .hero-logo-wrap::after {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(0) !important;
  }
  .hero-logo {
    transform: none !important;
  }
  .hero-logo-wrap::after {
    display: none;
  }
  .hero-cta-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

