/* ==========================================================================
   HERO.CSS — FRAMER STYLE HERO, 2-HILL COVER & REALTIME DATA PIPELINE
   ========================================================================== */

.hero-framer {
  position: relative;
  background-color: #051D13;
  background-image: 
    radial-gradient(ellipse at 50% 25%, rgba(255, 217, 100, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7, 40, 26, 0.85) 0%, rgba(5, 29, 19, 0.72) 45%, rgba(5, 29, 19, 0.95) 85%, #051D13 100%),
    url('../img/forest-hero.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #FFFFFF;
  min-height: 94vh;
  padding: 100px 0 180px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

/* Eyebrow Badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: #E2ECE5;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 175, 81, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 175, 81, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 175, 81, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 175, 81, 0); }
}

/* Headline Tối Ưu Mượt Mà */
.hero-title {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.3;
  font-weight: 800;
  color: #FFFFFF !important;
  max-width: 920px;
  margin: 0 auto 22px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-title em {
  font-style: normal;
  color: var(--gold) !important;
  background: linear-gradient(135deg, #FFE28A 0%, #FFB800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Subtitle */
.hero-desc {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: #CFE0D3;
  max-width: 740px;
  margin: 0 auto 36px;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Trust Badges */
.hero-trust-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #B9CDBE;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item strong {
  color: #FFFFFF;
}

/* ==========================================================================
   2-HILL PARALLAX TRANSITION (CHE PHỦ & TÁCH MỞ KHI CUỘN)
   ========================================================================== */

.hero-hills-transition {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 440px;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.hill-layer {
  position: absolute;
  bottom: 0;
  height: 100%;
  will-change: transform, opacity;
  transition: transform 0.05s linear, opacity 0.05s linear;
}

/* Ánh sáng glow xanh ngọc nhẹ ôm sát viền tán rừng */
.forest-backlight {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.hill-left .forest-backlight {
  background: radial-gradient(ellipse 60% 40% at 25% 45%, rgba(0, 255, 136, 0.22) 0%, rgba(0, 175, 81, 0.1) 50%, transparent 80%);
  filter: blur(16px);
}

.hill-right .forest-backlight {
  background: radial-gradient(ellipse 60% 40% at 75% 45%, rgba(0, 255, 136, 0.22) 0%, rgba(0, 175, 81, 0.1) 50%, transparent 80%);
  filter: blur(16px);
}

.hill-layer svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 -4px 10px rgba(0, 255, 136, 0.12)) drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.4));
}

.hill-left {
  left: -6%;
  width: 74%;
  bottom: -10px;
  transform-origin: left bottom;
}

.hill-right {
  right: -6%;
  width: 74%;
  bottom: -10px;
  transform-origin: right bottom;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 15;
  font-size: 11px;
  letter-spacing: 2px;
  color: #B9CDBE;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue .line {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--gold), transparent);
}

/* ==========================================================================
   SECTION DASHBOARD REVEAL & REALTIME PIPELINE
   ========================================================================== */

.section-dashboard-reveal {
  position: relative;
  background: #051D13;
  padding: 60px 0 90px;
  z-index: 5;
  margin-top: -80px;
  overflow: hidden;
}

.hero-mockup-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 6;
}

/* Vầng hào quang ánh sáng vàng kim */
.golden-aura-glow {
  position: absolute;
  inset: -35px;
  background: radial-gradient(ellipse at center, rgba(255, 217, 100, 0.5) 0%, rgba(255, 184, 0, 0.28) 45%, rgba(0, 175, 81, 0.12) 65%, transparent 80%);
  filter: blur(45px);
  border-radius: 40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Master Dashboard */
.hero-mockup-card.master-dash {
  position: relative;
  z-index: 3;
  background: rgba(11, 38, 26, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 217, 160, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 217, 100, 0.25);
  overflow: hidden;
  text-align: left;
  transition: transform 0.15s ease-out;
}

.mockup-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.d1 { background: #FF5F56; }
.dot.d2 { background: #FFBD2E; }
.dot.d3 { background: #27C93F; }

.mockup-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #D2E4D6;
  letter-spacing: 0.02em;
}

.mockup-status {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-indicator {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.mockup-body {
  padding: 26px 28px;
}

/* 3 Metrics: Tổng Chi | Doanh Thu | Lợi Nhuận Gộp */
.master-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 217, 160, 0.3);
}

.metric-label {
  font-size: 11.5px;
  color: #9FB8A5;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.metric-val {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.text-green { color: #00E676; }
.text-gold { color: #FFD97A; }

.metric-sub {
  font-size: 12px;
  color: #B9CDBE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-sub strong {
  color: #FFFFFF;
}

/* ==========================================================================
   ANIMATED DATA PIPELINES (KHOẢNG CÁCH DÀI HƠN: 96PX)
   ========================================================================== */

.pipeline-connector {
  position: relative;
  height: 96px;
  display: flex;
  justify-content: space-around;
  z-index: 2;
}

.pipe {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.7) 0%, rgba(255, 217, 100, 0.5) 100%);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.45);
}

.pipe-pulse {
  position: absolute;
  width: 6px;
  height: 22px;
  background: #00FF88;
  border-radius: 3px;
  box-shadow: 0 0 12px #00FF88, 0 0 24px #00E676;
  animation: pipeFlowUp 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pipe-right .pipe-pulse {
  animation-delay: 1.1s;
}

@keyframes pipeFlowUp {
  0% { bottom: 0; opacity: 0; transform: scaleY(0.4); }
  20% { opacity: 1; transform: scaleY(1); }
  80% { opacity: 1; transform: scaleY(1); }
  100% { bottom: 100%; opacity: 0; transform: scaleY(0.4); }
}

.pipe-badge {
  position: relative;
  z-index: 3;
  background: rgba(6, 30, 20, 0.94);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00FF88;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 230, 118, 0.2);
}

/* ==========================================================================
   2 SOURCE DASHBOARDS: GOOGLE ADS & KIOTVIET
   ========================================================================== */

.source-dashboards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.source-dash-card {
  background: rgba(14, 45, 32, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: left;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.source-dash-card:hover {
  background: rgba(18, 55, 40, 0.95);
  border-color: rgba(255, 217, 160, 0.3);
}

.source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.source-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #FFFFFF;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.source-status {
  font-size: 11.5px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot-sm {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.source-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.source-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s-label {
  font-size: 11px;
  color: #8DA996;
  font-weight: 500;
  white-space: nowrap;
}

.s-val {
  font-size: clamp(0.98rem, 1.3vw, 1.2rem);
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   SCALING INDICATOR BAR (ĐIỀU KHIỂN & MÔ PHỎNG QUY MÔ)
   ========================================================================== */

.scaling-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.scale-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8DA996;
  text-transform: uppercase;
}

.scale-tiers {
  display: flex;
  gap: 8px;
}

.scale-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C8DCD0;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.scale-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.scale-btn.active {
  background: var(--gold);
  color: #07281A;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 217, 100, 0.45);
}

/* ==========================================================================
   RESPONSIVE DESIGN CHO MOBILE & TABLET (< 768PX & < 480PX)
   ========================================================================== */

@media (max-width: 768px) {
  .hero-framer {
    padding: 70px 0 160px;
    min-height: 88vh;
    background-position: center top;
    background-size: cover;
  }
  
  .hero-wrap {
    padding-bottom: 50px;
  }
  
  .hide-mobile { display: none; }
  
  .hero-title {
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.32;
    padding: 0 8px;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-trust-row {
    gap: 10px 18px;
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .hero-hills-transition {
    height: 240px;
    bottom: -1px;
  }

  .hill-left, .hill-right {
    width: 100%;
    bottom: -4px;
  }

  .section-dashboard-reveal {
    background: #051D13;
    padding: 30px 0 60px;
    margin-top: -50px;
  }

  .mockup-header {
    padding: 12px 16px;
  }

  .mockup-title {
    font-size: 11.5px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mockup-body {
    padding: 16px;
  }

  .master-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .metric-label {
    font-size: 10.5px;
    margin-bottom: 4px;
  }

  .metric-val {
    font-size: 1.6rem;
    margin-bottom: 2px;
  }

  .metric-sub {
    font-size: 11px;
  }

  /* Pipeline connector on mobile */
  .pipeline-connector {
    height: 64px;
  }

  .pipe-badge {
    font-size: 10px;
    padding: 2px 10px;
  }

  /* Source dashboards on mobile */
  .source-dashboards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .source-dash-card {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .source-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .source-brand {
    font-size: 12px;
  }

  .source-metrics-row {
    gap: 6px;
  }

  .s-label {
    font-size: 9.5px;
  }

  .s-val {
    font-size: 0.95rem;
  }

  .scaling-indicator-bar {
    gap: 6px;
    margin-top: 20px;
  }

  .scale-label {
    width: 100%;
    text-align: center;
    font-size: 10px;
    margin-bottom: 2px;
  }

  .scale-tiers {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .scale-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
}
