/* ============================================================
   BiliSG Theme v2 — Home Page Section Styles
   Ported from ref/landing-page-ref-v2/src/pages/Home.tsx
   ============================================================ */


/* ══════════════════════════════════════════════════════════════
   1. HERO SECTION
   ══════════════════════════════════════════════════════════════ */

.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-sky);
  padding-top: var(--space-22);
  padding-bottom: var(--space-16);
}

@media (min-width: 640px) {
  .home-hero {
    padding-top: var(--space-27);
  }
}

@media (min-width: 1024px) {
  .home-hero {
    padding-bottom: var(--space-22);
  }
}

.home-hero__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.home-hero__glow {
  pointer-events: none;
  position: absolute;
  /* Reference: -top-38 -left-32 size-[620px] = -190px top, -160px left, 620px size */
  top: -190px;
  left: -160px;
  width: 620px;
  height: 620px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  filter: blur(48px);
}

.home-hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--space-11);
}

@media (min-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}

/* Text content */
.home-hero__content {
  max-width: 36rem;
}

.home-hero__title {
  margin-top: 1rem;
}

.home-hero__title-accent {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: var(--color-brand-ink);
}

.home-hero__intro {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(33, 33, 33, 0.8);
}

@media (min-width: 640px) {
  .home-hero__intro {
    font-size: 1.25rem;
  }
}

.home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-7);
}

/* Media area */
.home-hero__media {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .home-hero__media {
    margin-right: 0;
  }
}

.home-hero__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow-lift);
}

.home-hero__image {
  aspect-ratio: 4 / 3.4;
  width: 100%;
  object-fit: cover;
}

.home-hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 33, 33, 0.35), transparent, transparent);
}

/* Phone overlay */
.home-hero__phone {
  display: none;
  position: absolute;
  bottom: -2rem;
  left: -0.5rem;
}

@media (min-width: 640px) {
  .home-hero__phone {
    display: block;
  }
}

@media (min-width: 1024px) {
  .home-hero__phone {
    left: -1rem;
  }
}

/* Zones card */
.home-hero__zones-card {
  position: absolute;
  top: 1.25rem;
  right: -0.5rem;
  width: 175px;
  border-radius: var(--radius-3xl);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .home-hero__zones-card {
    right: -0.5rem;
  }
}

.home-hero__zones-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.home-hero__zones-list {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.home-hero__zones-bar {
  width: 0.5rem;
  border-radius: var(--radius-full);
}

.home-hero__zones-list ol {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-hero__zone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.home-hero__zone-num {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding-top: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-soft);
  font-size: 0.75rem;
  color: var(--color-brand-ink);
}


/* ══════════════════════════════════════════════════════════════
   2. WHY IT MATTERS SECTION
   ══════════════════════════════════════════════════════════════ */

.why-it-matters {
  padding: var(--space-16) 0;
}

@media (min-width: 640px) {
  .why-it-matters {
    padding: var(--space-22) 0;
  }
}

.why-it-matters__inner {
  display: grid;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .why-it-matters__inner {
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-14);
  }
}

.why-it-matters__content {
  order: 1;
}

@media (min-width: 1024px) {
  .why-it-matters__content {
    order: 2;
  }
}

.why-it-matters__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--space-6);
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(33, 33, 33, 0.8);
}

@media (min-width: 640px) {
  .why-it-matters__text {
    font-size: 1.25rem;
  }
}

.why-it-matters__illustration {
  order: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .why-it-matters__illustration {
    order: 1;
  }
}


/* ══════════════════════════════════════════════════════════════
   3. DIFFERENT WAY SECTION
   ══════════════════════════════════════════════════════════════ */

.different-way {
  /* Use page-inset for padding */
}

.different-way__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--color-brand-soft);
  padding: var(--space-16) 0;
}

@media (min-width: 640px) {
  .different-way__panel {
    border-radius: var(--radius-4xl);
    padding: var(--space-22) 0;
  }
}

.different-way__glow {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: -8rem;
  width: 32.5rem;
  height: 32.5rem;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  filter: blur(48px);
}

.different-way__grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--space-11);
}

@media (min-width: 1024px) {
  .different-way__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-16);
  }
}

/* Phone stack */
.different-way__phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .different-way__phones {
    height: 540px;
  }
}

.different-way__phones-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
  .different-way__phones-bg {
    width: 460px;
    height: 460px;
  }
}

.different-way__phone--left {
  position: absolute;
  top: 14%;
  left: 2%;
  transform: rotate(-8deg);
}

@media (min-width: 640px) {
  .different-way__phone--left {
    left: 6%;
  }
}

.different-way__phone--right {
  position: absolute;
  top: 4%;
  right: 2%;
  transform: rotate(6deg);
}

@media (min-width: 640px) {
  .different-way__phone--right {
    right: 6%;
  }
}

/* Cards */
.different-way__cards {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--space-13);
}

@media (min-width: 1024px) {
  .different-way__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ══════════════════════════════════════════════════════════════
   4. EVIDENCE SECTION
   ══════════════════════════════════════════════════════════════ */

.home-evidence {
  padding: var(--space-16) 0;
}

@media (min-width: 640px) {
  .home-evidence {
    padding: var(--space-22) 0;
  }
}

.home-evidence__header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .home-evidence__header {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* Stats grid */
.home-evidence__stats {
  display: grid;
  gap: 1px;
  margin-top: var(--space-11);
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .home-evidence__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-evidence__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-evidence__stat {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  background: var(--color-ink);
  padding: var(--space-6);
}

.home-evidence__stat-label {
  font-size: 1.125rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}

.home-evidence__stat-figure {
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .home-evidence__stat-figure {
    font-size: 4rem;
  }
}

.home-evidence__stat-bar {
  position: absolute;
  top: 0;
  left: var(--space-6);
  width: 2.5rem;
  height: 4px;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}


/* ══════════════════════════════════════════════════════════════
   5. AUDIENCE SECTION
   ══════════════════════════════════════════════════════════════ */

.home-audience {
  padding-bottom: var(--space-16);
}

@media (min-width: 640px) {
  .home-audience {
    padding-bottom: var(--space-22);
  }
}

.home-audience__cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .home-audience__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ══════════════════════════════════════════════════════════════
   6. SUPPORTERS SECTION
   ══════════════════════════════════════════════════════════════ */

.home-supporters {
  background: white;
  padding-top: 2rem;
  padding-bottom: var(--space-16);
}

@media (min-width: 640px) {
  .home-supporters {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
  }
}

.home-supporters__title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.home-supporters__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .home-supporters__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .home-supporters__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem 2rem;
  }
}

.home-supporters__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  padding: 0 0.5rem;
}

.home-supporters__logo {
  width: 100%;
  max-width: 200px;
  max-height: 3.25rem;
  height: auto;
  object-fit: contain;
}

.home-supporters__logo--tall {
  max-height: 4.25rem;
  max-width: 130px;
}


/* ══════════════════════════════════════════════════════════════
   7. COLLABORATION SECTION
   ══════════════════════════════════════════════════════════════ */

.home-collaboration {
  padding-bottom: var(--space-16);
}

@media (min-width: 640px) {
  .home-collaboration {
    padding-bottom: var(--space-22);
  }
}

.home-collaboration__panel {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.25rem;
  overflow: hidden;
  border-radius: 25px;
  background: var(--color-ink);
  padding: 2.25rem 1.5rem;
}

@media (min-width: 640px) {
  .home-collaboration__panel {
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .home-collaboration__panel {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-14);
  }
}

.home-collaboration__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-brand);
}

.home-collaboration__content {
  position: relative;
}

.home-collaboration__title {
  margin-top: 1rem;
  color: white;
}

.home-collaboration__text {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.home-collaboration__btn {
  margin-top: 1.5rem;
}

/* Ways list */
.home-collaboration__ways {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-collaboration__way {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.home-collaboration__way-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--color-teal);
}

.home-collaboration__way-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}


/* ══════════════════════════════════════════════════════════════
   8. NEWBORN ILLUSTRATION (Why It Matters)
   ══════════════════════════════════════════════════════════════ */

.newborn-illustration {
  overflow: hidden;
  border-radius: 25px;
  background: var(--color-grey);
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .newborn-illustration {
    padding: 1rem;
  }
}

.newborn-illustration__visual {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .newborn-illustration__visual {
    gap: 0.75rem;
  }
}

.newborn-illustration__group {
  display: grid;
  gap: 0.25rem 0.5rem;
  border-radius: 15px;
  padding: 0.75rem 0.25rem;
}

@media (min-width: 640px) {
  .newborn-illustration__group {
    padding: 0.75rem 0.5rem;
  }
}

.newborn-illustration__group--jaundice {
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-warning-soft);
}

.newborn-illustration__group--healthy {
  grid-template-columns: repeat(2, 1fr);
  background: var(--color-sky);
}

.newborn-illustration__baby {
  width: 100%;
  height: auto;
}

.newborn-illustration__labels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .newborn-illustration__labels {
    gap: 0.75rem;
  }
}

.newborn-illustration__label-title {
  font-size: 1rem;
  font-weight: 600;
}

.newborn-illustration__label-title--jaundice {
  color: var(--color-brand-ink);
}

.newborn-illustration__label-title--healthy {
  color: var(--color-icon-primary);
}

.newborn-illustration__label-count {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.newborn-illustration__stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

@media (min-width: 640px) {
  .newborn-illustration__stat {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.newborn-illustration__stat-figure {
  white-space: nowrap;
  line-height: 1;
  color: var(--color-brand-ink);
  font-variant-numeric: tabular-nums;
}

.newborn-illustration__stat-text {
  max-width: 230px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(33, 33, 33, 0.8);
}

.newborn-illustration__note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}
