/* ============================================================
   HomepageHero — Homepage hero section
   Design tokens from src/styles/tokens.css.
   ============================================================ */

/* ---- Outer section ---- */
.homepage-hero {
  position:         relative;
  z-index:          150;
  display:          flex;
  flex-direction:   column;
  align-items:      center;
  padding-top:      8rem;      /* 128px — matches Figma pt-[128px] */
  width:            100%;
  font-family:      var(--font-family-default);
  background:       linear-gradient(180deg, var(--background) 0%, var(--secondary) 100%);
  box-sizing:       border-box;
}

.regularText {
  font-weight: 400;
}
p.homepage-hero__preheadline {
    color: #C64110;
    font-size: 24px;
    line-height: 120%;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ---- Inner container — heading + player stacked ---- */
.homepage-hero .container {
  display:        flex;
  flex-direction: column;
}

.homepage-row {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    align-items: center;
}

.homepage-mobile-img {
  display: none;
}

.homepage-hero__player {
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 16px;
    gap: 0 !important;
    margin-top: 50px;
    margin-bottom: 50px;
    display: none !important;
}

.homepage-hero__player h3{
    font-size: 19px;
    line-height: 23px;
    text-align: center;
    font-weight: 700;
    color: #3A3A36;
    margin-bottom: 16px;
}

.demo-player[data-size="l"],
.demo-player[data-size="m"] {
    height: auto !important;
    max-width: 1024px;
    max-height: 260px;
    min-height: 260px;
}
.demo-player-l--playing{
  grid-template-columns: 1fr !important;
}
.demo-player-l__right{
  padding-top:15px !important;
}
.demo-player-l__idle-gradient, .demo-player-l__idle-copy,
.demo-player-m__idle-gradient, .demo-player-m__idle-copy,
.demo-player-m__dropdown-wrap{
    display:none !important;
}
.demo-player-l__idle-overlay, .demo-player-m__idle-overlay{
    backdrop-filter: blur(0px) !important;
    width: 40px;
    height: 40px;
    top: 12px;
    left: 12px;
}
.demo-player-m__idle-btn--ghost {
    visibility: visible !important;
    pointer-events: auto !important;
}
.demo-player-l__idle-buttons, .demo-player-m__idle-buttons{
    width: 100% !important;
    height: 100%;
    opacity: 0 !important;
}
.demo-player-l__idle-preview, .demo-player-m__idle-preview{
    opacity: 1 !important;
    grid-template-columns: 1fr !important;
    border: none !important;
}
.demo-player-l__features, .demo-player-m__features{
    display: none !important;
}
.demo-player-l__playing-head, .demo-player-m__playing-head{
    display: none !important;
}
.demo-player {
    border: none !important;
    padding: 0 !important;
}

@media (max-width: 991px) {
  .homepage-hero .container {
    gap: 6rem;                 /* 96px */
  }

  .homepage-hero__intro {
    flex-direction: column;
  }

  .homepage-hero__body {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .homepage-hero .container {
    gap: 0rem;               /* 32px */
  }
  .homepage-desktop-img{
    display: none !important;
  }
  .homepage-mobile-img{
    display: block !important;
    margin-top: 32px !important;
  }
  .container{
    padding: 0 1rem !important;
    max-width: 100% !important;
  }
}


/* ============================================================
   Heading block
   ============================================================ */

.homepage-hero__heading {
  display:        flex;
  flex-direction: column;
  width:          100%;
}


/* ---- H1 — two-line display heading ---- */

.homepage-hero__h1 {
  display:        flex;
  flex-direction: column;
  margin:         0;
  font-size:      3rem;        /* 48px — Figma font-size-5xl */
  line-height:    1;
  color:          var(--foreground);
}

.homepage-hero__h1-bold {
  font-weight: var(--font-weight-bold);
}

.homepage-hero__h1-light {
  font-weight: 300;
}


/* ---- Intro row — body copy + CTAs ---- */

.homepage-hero__intro {
    display: flex;
    gap: 2.25rem;
    align-items: flex-start;
    width: 100%;
    flex-direction: column;
    margin-top:0px;
}

.homepage-hero__body {
  flex:        1;
  max-width:   46.875rem;          /* 800px */
  margin:      0;
  font-size:   1.25rem;        /* 20px — Figma font-size-xl */
  font-weight: var(--font-weight-regular);
  line-height: 1.75rem;        /* 28px — Figma line-height-xl */
  color:       var(--foreground);
}

.homepage-hero__actions {
  display:     flex;
  flex-wrap:   wrap;
  gap:         var(--spacing-3);  /* 12px */
  align-items: flex-start;
  flex-shrink: 0;
}

.homepage-hero__secondary-cta {
  display: grid;
  gap:     10px;
}

.homepage-hero__secondary-note {
  margin:       0;
  text-align:   center;
  font-size:    var(--font-size-xs);    /* 12px */
  line-height:  var(--line-height-xs);  /* 16px */
  font-weight:  var(--font-weight-regular);
  color:        var(--muted-foreground);
}


/* ============================================================
   Built-in player — sits above the skyline illustration
   ============================================================ */

.homepage-hero__player {
  position: relative;
  z-index:  1;
  width:    100%;
}




/* ============================================================
   Bottom decoration image — absolutely positioned, takes no space
   Fixed 1512×126px, centered horizontally
   ============================================================ */

.homepage-hero__decoration {
  position:         absolute;
  bottom:           0;
  left:             50%;
  transform:        translateX(-50%);
  width:            1512px;
  max-width:        none;
  height:           126px;
  pointer-events:   none;
  z-index:          0;
  mask-image:       linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}


/* ============================================================
   No-player fallback — collapse the container gap and add space
   so the illustration is visible:
   64px gap + 126px illustration height = 190px bottom padding
   ============================================================ */

.homepage-hero--no-player {
  padding-bottom: 190px;
}

.homepage-hero--no-player .container {
  gap: 0;
}


/* ============================================================
   Mobile — landscape/tablet (≤767px)
   ============================================================ */

@media (max-width: 767px) {
  .homepage-hero {
    padding-top: 5rem;         /* 80px */
  }

  .homepage-hero__h1 {
    font-size: 2.25rem;  
    padding-bottom: 2rem !important;      /* 36px */
  }

  .homepage-hero__heading {
    padding-bottom: 0rem;      /* 32px */
  }
  p.homepage-hero__preheadline,
  .homepage-hero__h1 {
    padding: 0 1rem;
  }

  .homepage-hero__intro {
    flex-direction: column;
    gap:            2.25rem;    /* 36px */
  }

  .homepage-hero__body {
    max-width: 100%;
  }

  .homepage-hero__actions {
    flex-direction: column;
  }

  .homepage-hero__secondary-note {
    padding-left: 1.5rem;
    text-align:   left;
  }
  .homepage-hero__intro{
    padding: 0 1rem;
  }
  .homepage-hero__player{
    max-width: calc(100% - 2rem);
    margin: 0 auto 50px !important;
  }
}


/* ============================================================
   Portrait mobile (≤479px)
   ============================================================ */

@media (max-width: 479px) {
  .homepage-hero {
    padding-top: 4rem;         /* 64px */
  }

  .homepage-hero__h1 {
    font-size: 2.25rem; 
  }
}

@media (min-width: 768px) {
  .homepage-hero__h1{
    margin-bottom: 32px;
  }
  .homepage-row{
    margin-bottom: 32px;
  }
}
/* ============================================================
   Container — shared responsive layout constraint
   Provides 1024px max content width with responsive side padding.
   Import this in any component that uses the .container class.
   ============================================================ */

.container {
  position:  relative;
  width:     1024px;
  max-width: calc(100% - 160px); /* 80px × 2 — desktop */
  margin:    0 auto;
}

/* Tablet (≤991px): 60px × 2 = 120px */
@media (max-width: 991px) {
  .container {
    max-width: calc(100% - 120px);
  }
}

/* Landscape mobile (≤767px): 2rem × 2 = 4rem */
@media (max-width: 767px) {
  .container {
    max-width: calc(100% - 4rem);
  }
}



/* ============================================================
   Wide container — 1360px content + 48px side padding
   Used for full-bleed section content blocks (slider, big cards)
   that need to be wider than the standard 1024px text container.
   ============================================================ */

.container-wide {
  width:      100%;
  max-width:  calc(1360px + 96px);   /* 1360px content + 48px × 2 */
  padding:    0 3rem;                /* 48px sides */
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet + landscape mobile (≤991px) */
@media (max-width: 991px) {
  .container-wide {
    padding: 0 2rem;
  }

  .container-wide > * {
    margin-left:  -1rem;
    width:        calc(100% + 2rem) !important;
  }
}


