/* ==========================================================================
   HOMEPAGE HERO — editorial personal-brand layout
   Framed panel, scrolling services strip, giant "GROWTH" word behind a
   cut-out portrait, floating proof cards, achievements row underneath.
   Uses the homepage design tokens (--accent-orange = brand lime, etc.).
   ========================================================================== */

.home-hero {
  background-color: var(--bg-dark-primary, #07090E);
  background-image: radial-gradient(rgba(163, 234, 67, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  /* <main> already starts below the fixed header, so no header offset here */
  padding: 28px 0 64px;
  position: relative;
  overflow: hidden;
}

/* ---------- Frame ---------- */
.hh-frame {
  position: relative;
  min-height: 680px;
  padding: 22px 44px 44px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, #10141E 0%, #0A0D13 55%, #080A0F 100%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

/* diagonal "window light" beams + lime glow behind the portrait */
.hh-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 255, 255, 0.028) 140px 230px, transparent 230px 320px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hh-glow {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  left: 58%;
  bottom: -220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(163, 234, 67, 0.22) 0%, rgba(163, 234, 67, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

/* ---------- Services strip ---------- */
.hh-ticker {
  position: relative;
  z-index: 4;
  border: 1px solid rgba(163, 234, 67, 0.22);
  background: rgba(10, 13, 19, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  overflow: hidden;
  padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hh-ticker-track {
  display: flex;
  width: max-content;
  animation: hh-marquee 38s linear infinite;
}
.hh-ticker:hover .hh-ticker-track {
  animation-play-state: paused;
}
.hh-ticker-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hh-ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.hh-ticker-list li::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange, #A3EA43);
  box-shadow: 0 0 8px rgba(163, 234, 67, 0.8);
}
@keyframes hh-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Identity row ---------- */
.hh-top {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 28px;
}
.hh-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--accent-orange, #A3EA43);
  text-transform: uppercase;
}
.hh-brand {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.hh-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(163, 234, 67, 0.28);
  background: rgba(163, 234, 67, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-orange, #A3EA43);
}
.hh-tagline {
  margin: 4px 0 0;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.hh-tagline strong {
  color: #FFFFFF;
}

/* ---------- Stage: giant word, portrait, proof cards ---------- */
.hh-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hh-word {
  position: absolute;
  top: 118px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(150px, 17vw, 250px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, rgba(163, 234, 67, 0.62) 0%, rgba(163, 234, 67, 0.22) 55%, rgba(163, 234, 67, 0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  /* fade the left side so it never competes with the name and H1 */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.35) 30%, #000 52%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.35) 30%, #000 52%, #000 100%);
}
.hh-portrait {
  position: absolute;
  bottom: 0;
  left: 58%;
  transform: translateX(-50%);
  height: 560px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.hh-card {
  position: absolute;
  right: 44px;
  width: 276px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 18, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: hh-float 6s ease-in-out infinite;
}
.hh-card-rank { top: 196px; }
.hh-card-clicks { top: 318px; right: 72px; animation-delay: -2s; }
.hh-card-leads { top: 470px; animation-delay: -4s; }
@keyframes hh-float {
  50% { transform: translateY(-8px); }
}

.hh-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hh-card-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(163, 234, 67, 0.12);
  border: 1px solid rgba(163, 234, 67, 0.25);
  color: var(--accent-orange, #A3EA43);
}
.hh-card-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}
.hh-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}
.hh-card-rank-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #080808;
  background: var(--accent-orange, #A3EA43);
  border-radius: 8px;
  padding: 3px 8px;
}
.hh-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hh-card-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
}
.hh-card-growth {
  font-size: 12px;
  color: var(--accent-orange, #A3EA43);
}
.hh-card-spark {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 8px;
}

/* ---------- Copy + CTAs ---------- */
.hh-content {
  position: relative;
  z-index: 3;
  margin-top: auto;
  max-width: 450px;
  padding-top: 40px;
}
.hh-h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0;
}
.hh-h1 span {
  display: block;
  color: var(--accent-orange, #A3EA43);
}
.hh-lead {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}
.hh-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hh-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  font-size: 13px;
}
.hh-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 0;
  transition: color 0.2s ease;
}
.hh-social a:hover {
  color: var(--accent-orange, #A3EA43);
}
.hh-social svg {
  color: var(--accent-orange, #A3EA43);
}

/* ---------- Achievements row ---------- */
.hh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.hh-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.hh-stat-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(163, 234, 67, 0.1);
  color: var(--accent-orange, #A3EA43);
}
.hh-stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}
.hh-stat-label {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hh-card { width: 210px; right: 28px; }
  .hh-card-clicks { right: 44px; }
  .hh-portrait { height: 520px; left: 60%; }
  .hh-content { max-width: 400px; }
}

/* Tablet + phone: stack the frame — identity, portrait stage, copy */
@media (max-width: 1023px) {
  .home-hero {
    padding: 16px 0 48px;
  }
  .hh-frame {
    min-height: 0;
    padding: 16px 20px 28px;
    border-radius: 22px;
  }
  .hh-top {
    margin-top: 22px;
  }
  .hh-tagline {
    display: none;
  }
  .hh-stage {
    position: relative;
    inset: auto;
    height: 440px;
    margin: 8px -20px 0;
  }
  .hh-word {
    top: 34px;
    font-size: 19vw;
    letter-spacing: -0.05em;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hh-portrait {
    left: 50%;
    height: 420px;
  }
  .hh-glow {
    left: 50%;
    bottom: auto;
    top: 260px;
    width: 460px;
    height: 460px;
  }
  /* compact chips that sit beside the portrait, not over it */
  .hh-card {
    width: auto;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .hh-card-rank { top: 170px; right: auto; left: 12px; }
  .hh-card-clicks { top: auto; bottom: 34px; right: 12px; }
  .hh-card-leads { display: none; }
  .hh-card-spark { display: none; }
  .hh-card-icon { width: 30px; height: 30px; }
  .hh-card-label { font-size: 11px; }
  .hh-card-value { flex-direction: column; align-items: flex-start; gap: 0; font-size: 20px; }
  .hh-content {
    max-width: none;
    margin-top: 0;
    padding-top: 28px;
  }
  .hh-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .hh-name { font-size: 22px; }
  .hh-stage { height: 400px; }
  .hh-portrait { height: 384px; }
  .hh-card-title { font-size: 12.5px; }
  .hh-card-sub { font-size: 11.5px; }
  .hh-card-rank-badge { display: none; }
  .hh-card-rank { top: 150px; left: 8px; }
  .hh-card-clicks { right: 8px; bottom: 22px; }
  .hh-h1 { font-size: 32px; }
  .hh-ctas .btn { flex: 1 1 100%; }
  .hh-stat { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .hh-stat-value { font-size: 21px; }
}

/* ==========================================================================
   Desktop: full-bleed hero that fills the whole screen (width + height)
   The frame becomes the section itself; content keeps a readable width via
   --hh-pad, and the portrait, word and cards scale with the screen height.
   ========================================================================== */
@media (min-width: 1024px) {
  .home-hero {
    /* visible area below the fixed header (header is 72px + 2px border) */
    --hh-screen: calc(100vh - var(--header-height, 72px) - 2px);
    /* side gutter: grows on very wide screens so content stays ~1560px wide */
    --hh-pad: max(clamp(28px, 4vw, 72px), calc((100vw - 1560px) / 2));
    padding: 0;
  }
  @supports (height: 100svh) {
    .home-hero {
      --hh-screen: calc(100svh - var(--header-height, 72px) - 2px);
    }
  }
  .home-hero > .container {
    max-width: none;
    width: 100%;
    padding: 0;
    height: var(--hh-screen);
    min-height: 600px;
    display: flex;
    flex-direction: column;
  }
  .hh-frame {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 20px var(--hh-pad) 32px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    box-shadow: none;
  }
  .hh-glow {
    width: 780px;
    height: 780px;
    left: 57%;
  }
  .hh-card {
    right: var(--hh-pad);
  }
  .hh-card-clicks {
    right: calc(var(--hh-pad) + 28px);
  }
  .hh-top {
    margin-top: 20px;
  }
  /* brand line and availability pill share one row */
  .hh-brand {
    display: inline-block;
    margin-right: 12px;
  }
  .hh-availability {
    margin-top: 10px;
  }
  .hh-word {
    top: 17%;
    font-size: min(17vw, 36vh, 330px);
  }
  .hh-portrait {
    left: 57%;
    height: min(92%, 780px);
  }
  .hh-card-rank { top: 25%; }
  .hh-card-clicks { top: 43%; }
  .hh-card-leads { top: auto; bottom: 9%; }
  .hh-content {
    max-width: min(520px, 38vw);
    padding-top: 20px;
  }
  .hh-h1 {
    font-size: clamp(32px, 5.4vh, 54px);
  }
  .hh-lead {
    margin-top: 14px;
    font-size: 15px;
  }
  .hh-ctas {
    margin-top: 22px;
  }
  /* stats band runs along the bottom of the screen, aligned to the content */
  .hh-stats {
    margin: 0;
    padding: 14px var(--hh-pad) 16px;
    background: #07090E;
  }
  .hh-stat {
    padding: 14px 20px;
  }
}

/* shorter laptop screens: drop the social row (also in the footer) */
@media (min-width: 1024px) and (max-height: 860px) {
  .hh-social {
    display: none;
  }
}
