/* ==========================================================================
   HERO — poster wall, 3D perspective, scroll animations, content overlay
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero section shell
   -------------------------------------------------------------------------- */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 8rem;       /* pt-32 */
  padding-bottom: 6rem;    /* pb-24 */
  background: #000;
}

@media (min-width: 768px)  { #home { padding-top: 9rem; } }
@media (min-width: 1024px) { #home { padding-top: 10rem; } }

/* --------------------------------------------------------------------------
   Background wrapper
   -------------------------------------------------------------------------- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* --------------------------------------------------------------------------
   POSTER WALL — exact CSS from source
   -------------------------------------------------------------------------- */
.poster-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.6vw;
  padding: 0.6vw;
  width: 110vw;
  left: -5vw;
  height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1500px) rotateX(5deg) rotateY(-15deg) scale(1.1);
  transform-origin: center;
}

/* Column — mask fades top and bottom */
.poster-wall .column {
  overflow: hidden;
  height: 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Strip — scrolling container, doubled height for seamless loop */
.poster-wall .strip {
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
  height: 200%;
  animation: scrollUp 50s linear infinite;
}

/* Even columns scroll downward */
.poster-wall .column:nth-child(even) .strip {
  animation: scrollDown 55s linear infinite;
}

/* Individual poster card */
.poster-wall .poster-item {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  border-radius: clamp(6px, 1vw, 14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  flex-shrink: 0;
}
.poster-wall .poster-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Scroll keyframes */
@keyframes scrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes scrollDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Hover pauses all strips */
.poster-wall:hover .strip {
  animation-play-state: paused;
}

/* Responsive poster wall */
@media (max-width: 1023px) {
  .poster-wall {
    grid-template-columns: repeat(5, 1fr);
    width: 108vw;
    left: -4vw;
  }
}
@media (max-width: 639px) {
  .poster-wall {
    grid-template-columns: repeat(2, 1fr);
    width: 100vw;
    left: 0;
  }
}

/* --------------------------------------------------------------------------
   Overlay — gradient on top of poster wall
   -------------------------------------------------------------------------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Hero content
   -------------------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(2, 132, 199, 0.6);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  background-color: rgba(2, 132, 199, 0.9);
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

/* Headline */
.hero-headline {
  font-size: 3rem;     /* text-5xl */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
}
.hero-headline .text-sky { color: #38bdf8; }

@media (min-width: 768px)  { .hero-headline { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-headline { font-size: 4.5rem; } }

.hero-headline .subtitle {
  display: block;
  font-size: 1.5rem;
}
@media (min-width: 768px)  { .hero-headline .subtitle { font-size: 1.875rem; } }
@media (min-width: 1024px) { .hero-headline .subtitle { font-size: 2.25rem; } }

/* Sub-text */
.hero-subtext {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
@media (min-width: 768px) { .hero-subtext { font-size: 1.25rem; } }
.hero-subtext .accent { color: #38bdf8; }

/* CTA buttons */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

.hero-btn-trial {
  background: #fff;
  color: var(--color-gray-900);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: transform 0.2s;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.hero-btn-trial:hover { transform: scale(1.05); }

.hero-btn-start {
  background: #0284c7;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: transform 0.2s;
  display: inline-block;
}
.hero-btn-start:hover { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Reseller Hero — slight variant from resellers/hero.astro
   -------------------------------------------------------------------------- */
.reseller-hero {
  position: relative;
  overflow: hidden;
  background: #000;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.reseller-hero .poster-wall {
  width: 112vw;
  left: -6vw;
  transform: perspective(1500px) rotateX(5deg) rotateY(-15deg) scale(1.1);
}

/* Reseller hero uses a different animation: all strips scroll same direction */
.reseller-hero .poster-wall .strip {
  display: grid;
  grid-auto-rows: 11vw;
  gap: 0.6vw;
  animation: scrollAlt 26s linear infinite;
}
.reseller-hero .poster-wall .column:nth-child(odd) .strip {
  animation-duration: 24s;
}
.reseller-hero .poster-wall .column:nth-child(even) .strip {
  animation-duration: 30s;
}

@keyframes scrollAlt {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.reseller-hero .hero-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.7)  30%,
    rgba(0,0,0,0.5)  50%,
    rgba(0,0,0,0.7)  70%,
    rgba(0,0,0,0.9)  100%
  );
}

.reseller-hero .reseller-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.reseller-hero .reseller-badge svg {
  color: rgb(56, 189, 248);
  width: 20px;
  height: 20px;
}

.reseller-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
@media (min-width: 640px)  { .reseller-hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .reseller-hero h1 { font-size: 4.5rem; } }

.reseller-hero p.subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.reseller-hero .cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .reseller-hero .cta-group { flex-direction: row; } }

.reseller-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-primary-600);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  transition: box-shadow 0.3s, transform 0.3s;
}
.reseller-cta-btn:hover {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
  transform: scale(1.05);
}
.reseller-cta-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
.reseller-cta-btn:hover svg { transform: rotate(12deg); }

@media (max-width: 1024px) {
  .reseller-hero .poster-wall { grid-template-columns: repeat(6, 1fr); width: 108vw; left: -4vw; }
  .reseller-hero .poster-wall .strip { grid-auto-rows: 18vw; }
}
@media (max-width: 640px) {
  .reseller-hero .poster-wall { grid-template-columns: repeat(3, 1fr); width: 104vw; left: -2vw; }
  .reseller-hero .poster-wall .strip { grid-auto-rows: 34vw; }
}

@media (prefers-reduced-motion: reduce) {
  .strip { animation: none !important; }
}
