/* ==========================================================================
   SQUISH HERO SECTION STYLES
   - Rich cobalt/royal blue filter over background video
   - Dot matrix grid ONLY on bottom portion (masked gradient)
   - Mobile responsive matching mobile screenshot (no dots, stacked layout)
   - Preserves previous header
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --squish-font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --squish-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --squish-white: #ffffff;
  --squish-text-sub: rgba(255, 255, 255, 0.92);
  --squish-btn-bg: #ffffff;
  --squish-btn-text: #09090b;
}

/* Base resets for hero section */
.squish-hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--squish-font-sans);
  background-color: #061952;
}

/* --------------------------------------------------------------------------
   Background Video & Overlays
   -------------------------------------------------------------------------- */
.squish-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.squish-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.92) contrast(1.08) saturate(1.15);
}

/* Vibrant Blue Color Grading Filter */
/* .squish-blue-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(24, 72, 190, 0.40) 0%, 
      rgba(14, 52, 168, 0.55) 35%, 
      rgba(8, 36, 130, 0.82) 70%, 
      rgba(5, 22, 90, 0.96) 100%
    );
  z-index: 2;
  pointer-events: none;
} */

/* Subtle Vignette & Contrast gradient */
.squish-vignette-overlay {
  position: absolute;
  inset: 0;
  /* background: 
    radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0) 30%, rgba(3, 16, 68, 0.6) 100%),
    linear-gradient(180deg, rgba(2, 10, 40, 0.45) 0%, rgba(0, 0, 0, 0) 25%, rgba(4, 18, 75, 0.6) 100%); */
  z-index: 2;
  pointer-events: none;
}

/* Dot Matrix Grid - ONLY IN BOTTOM PORTION */
.squish-dot-grid {
      --o7dpv7: multiply;
    background-color: rgb(2, 71, 176);
    mask: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.25px, transparent 1.25px);
  background-size: 32px 32px;
  background-position: center bottom;
  pointer-events: none;
  z-index: 3;
  /* opacity: 0.95; */
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.9) 75%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.9) 75%, black 100%);
}

/* Subtle glowing accent matrix in lower center */
.squish-center-matrix {
  position: absolute;
  bottom: 85px;
  left: 45%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 14px);
  grid-gap: 18px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
}

.squish-center-matrix span {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Hero Content Container (Main Grid / Flex)
   -------------------------------------------------------------------------- */
.squish-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 130px 48px 65px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
}

/* Left Content Column */
.squish-hero-left {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  order: 1;
  animation: squishFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Heading */
.squish-hero-title {
  font-family: var(--squish-font-serif);
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--squish-white);
  margin: 0 0 22px 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

/* Animated Text Generation Effect */
.squish-hero-title.text-generate {
  display: block;
  user-select: text;
  position: relative;
}

.squish-hero-title .gen-line {
  display: block;
  overflow: visible;
  white-space: normal;
}

.squish-hero-title .gen-word {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.35s ease;
}

.squish-hero-title .gen-word:hover {
  transform: translateY(-2px) scale(1.015);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 0 45px rgba(147, 197, 253, 0.6);
}

.squish-hero-title .gen-space {
  display: inline-block;
  width: 0.26em;
}

.squish-hero-title .gen-char {
  display: inline-block;
  opacity: 0;
  filter: blur(20px) brightness(2.2);
  transform: translateY(12px) scale(0.92);
  animation: heroGenBlurReveal 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--i, 0) * 42ms + 220ms);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

/* Give second line a subtle natural breath delay */
.squish-hero-title .gen-line:nth-child(2) .gen-char {
  animation-delay: calc(var(--i, 0) * 42ms + 340ms);
}

@keyframes heroGenBlurReveal {
  0% {
    opacity: 0;
    filter: blur(20px) brightness(2.2);
    transform: translateY(12px) scale(0.92);
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.95), 0 0 60px rgba(147, 197, 253, 0.8);
  }
  40% {
    opacity: 0.85;
    filter: blur(8px) brightness(1.6);
    transform: translateY(3px) scale(0.97);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.9), 0 0 45px rgba(147, 197, 253, 0.7);
  }
  75% {
    opacity: 0.98;
    filter: blur(1.5px) brightness(1.15);
    transform: translateY(-0.5px) scale(1.01);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.5), 0 2px 20px rgba(0, 0, 0, 0.3);
  }
  100% {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: translateY(0) scale(1);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  }
}


/* Subtitle */
.squish-hero-subtitle {
  font-family: var(--squish-font-sans);
  font-size: clamp(15.5px, 1.28vw, 18.5px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--squish-text-sub);
  max-width: 480px;
  margin: 0 0 34px 0;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

.squish-hero-subtitle .highlight-text {
  font-weight: 700;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(90deg, #ffffff 0%, #bfdbfe 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

/* Main CTA Pill Button */
.squish-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--squish-btn-bg);
  color: var(--squish-btn-text);
  font-family: var(--squish-font-sans);
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease, opacity 0.2s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.squish-hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background-color: #f8fafc;
}

.squish-hero-cta:active {
  transform: translateY(-1px) scale(0.99);
}

.squish-hero-cta.loading {
  opacity: 0.8;
  pointer-events: none;
}

.squish-hero-cta.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: squishSpin 0.7s linear infinite;
}

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


/* --------------------------------------------------------------------------
   Creators / Social Proof Badge (Desktop: Bottom Right, Mobile: Top)
   -------------------------------------------------------------------------- */
.squish-creators-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 6px;
  order: 2;
  animation: squishFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  user-select: none;
}

.squish-creators-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Star Rating */
.squish-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ffffff;
  font-size: 11px;
}

.squish-stars i {
  color: #ffffff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

/* "3k+ creators" text */
.squish-creators-count {
  font-family: var(--squish-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--squish-white);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Avatars Stack */
.squish-avatars-stack {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.squish-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  margin-left: -9px;
  object-fit: cover;
  background-color: #94a3b8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.2s ease;
  position: relative;
}

.squish-avatar:first-child {
  margin-left: 0;
}

.squish-avatar:hover {
  transform: translateY(-3px) scale(1.15);
  z-index: 10;
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes squishFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints - DESKTOP, TABLET & MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .squish-hero-content {
    padding: 120px 32px 55px 32px;
  }
  .squish-hero-title {
    font-size: clamp(44px, 5.8vw, 68px);
  }
  .squish-center-matrix {
    display: none;
  }
}

/* MOBILE SCREEN (< 820px) */
@media (max-width: 820px) {
  /* HIDE ALL DOTS ON MOBILE AS REQUESTED */
  .squish-dot-grid,
  .squish-center-matrix {
    display: none !important;
  }

  .squish-hero-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
  }

  .squish-hero-content {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0;
    padding: 120px 24px 38px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Rating section placed at TOP of mobile content block */
  .squish-creators-badge {
    order: 1;
    margin-bottom: 36px;
    padding-bottom: 0;
    align-self: flex-start;
    gap: 10px;
  }

  .squish-creators-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .squish-stars {
    font-size: 12px;
    gap: 4px;
    letter-spacing: 1px;
  }

  .squish-stars i {
    color: #ffffff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
  }

  .squish-creators-count {
    font-family: var(--squish-font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--squish-white);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  }

  .squish-avatars-stack {
    display: flex;
    align-items: center;
    margin-top: 4px;
  }

  .squish-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    margin-left: -10px;
    /* box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35); */
  }

  .squish-avatar:first-child {
    margin-left: 0;
  }

  /* Left column containing Title, Subtitle, CTA placed below rating */
  .squish-hero-left {
    order: 2;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .squish-hero-title {
    font-size: clamp(42px, 11vw, 54px);
    line-height: 1.05;
    margin: 0 0 18px 0;
    letter-spacing: -0.015em;
    color: var(--squish-white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  }

  .squish-hero-subtitle {
    font-size: 16.5px;
    line-height: 1.48;
    margin: 0 0 42px 0;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  }

  /* Full-width clean pill CTA button */
  .squish-hero-cta {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 9999px;
    text-align: center;
    background: #ffffff;
    color: #09090b;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .squish-hero-content {
    padding: 100px 20px 32px 20px;
  }

  .squish-creators-badge {
    margin-bottom: 32px;
  }

  .squish-hero-title {
    font-size: clamp(38px, 10.5vw, 48px);
    margin-bottom: 16px;
  }

  .squish-hero-subtitle {
    font-size: 15.5px;
    line-height: 1.45;
    margin-bottom: 36px;
  }

  .squish-avatar {
    width: 38px;
    height: 38px;
    margin-left: -9px;
  }
}

