/* =========================================================
   Hero — The centerpiece. Maximum quality.
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* Background image layer (right-weighted composition) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://www.genspark.ai/api/files/s/M8HWCxzW');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroZoom 24s var(--ease-in-out) infinite alternate;
  filter: saturate(1.05) contrast(1.02);
}

@keyframes heroZoom {
  0%   { transform: scale(1.06) translateX(0); }
  100% { transform: scale(1.12) translateX(-1.5%); }
}

/* Left-side darkening — emphasizes text without killing the right-side fantasy */
.hero-overlay-left {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 10, 0.92) 0%,
      rgba(7, 7, 14, 0.78) 22%,
      rgba(9, 9, 18, 0.45) 42%,
      rgba(9, 9, 18, 0.15) 60%,
      rgba(9, 9, 18, 0.0) 78%
    );
}

/* Soft vignette + bottom fade to bg */
.hero-overlay-bottom {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(245, 200, 212, 0.08), transparent 55%),
    linear-gradient(
      180deg,
      rgba(7, 7, 11, 0.4) 0%,
      transparent 22%,
      transparent 60%,
      rgba(7, 7, 11, 0.85) 92%,
      var(--bg-0) 100%
    );
}

/* Floating mist particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--mist-pink);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px var(--mist-pink-glow);
  animation: drift linear infinite;
}

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-120vh) translateX(40px); opacity: 0; }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 60px;
}

.hero-left {
  max-width: 620px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mist-pink);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mist-pink));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 110px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-0);
  margin-bottom: 32px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: revealLine 1.4s var(--ease-out) forwards;
}

.hero-title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.45s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.6s; }

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--mist-pink);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mist-pink-glow), transparent);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-1);
  max-width: 480px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.9s forwards;
}

.hero-desc strong {
  color: var(--text-0);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.1s forwards;
}

@keyframes revealLine {
  to { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Right side — sometimes used for a floating credit card */
.hero-right {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 40px;
}

.hero-meta-card {
  position: relative;
  padding: 22px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  max-width: 320px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1.4s forwards;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.hero-meta-card .meta-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.hero-meta-card .meta-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-0);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 8px;
}

.hero-meta-card .meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.hero-meta-card .meta-row .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #65d68f;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px #65d68f;
}

/* Hero bottom bar */
.hero-bottombar {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  z-index: 6;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
}

.hero-bottombar > * { pointer-events: auto; }

.hero-bottombar .marquee {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero-bottombar .marquee span {
  color: var(--text-3);
}

.hero-bottombar .marquee em {
  color: var(--mist-pink);
  font-style: normal;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}

.hero-scroll .line-down {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--text-1));
  position: relative;
  overflow: hidden;
}

.hero-scroll .line-down::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, var(--mist-pink));
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 120px 24px 80px;
    gap: 40px;
  }
  .hero-overlay-left {
    background:
      linear-gradient(
        180deg,
        rgba(7,7,14,0.88) 0%,
        rgba(7,7,14,0.55) 40%,
        rgba(7,7,14,0.65) 100%
      );
  }
  .hero-right {
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .hero-bottombar {
    padding: 0 24px;
    bottom: 24px;
  }
}

@media (max-width: 720px) {
  .hero { min-height: 92vh; }
  .hero-meta-card { display: none; }
  .hero-bottombar .marquee { display: none; }
  .hero-actions .btn { padding: 14px 22px; }
}
