/* =========================================================
   ForGrowth Academy — hero-premium.css
   ISOLATED. Every selector is scoped inside .hero.
   Dark stage carrying the headline on the left and a live campaign
   dashboard on the right, continuing the charcoal of the logo screen.
   ========================================================= */

.hero {
  background: #1A1A1C;
  position: relative;
  overflow: hidden;
}

/* Warm depth, bottom right — the glow in the reference. */
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,64,11,0.30), rgba(217,64,11,0.08) 45%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero .hero-inner { position: relative; z-index: 2; }

/* ---------- two-column layout ---------- */
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero .hero-copy { min-width: 0; }

/* ---------- type on dark ---------- */
.hero .hero-eyebrow .mono-tag { color: #F0561F; }
.hero h1 .line span { color: #FFFFFF; }
.hero h1 .line:nth-child(3) span { color: #F0561F; }
.hero .hero-sub { color: rgba(248, 246, 241, 0.68); }

/* The global `body { overflow-wrap: break-word }` rule (layout-fixes.css)
   splits a long word like MARKETING mid-letter once the two-column grid
   below narrows the copy column. Keep the headline unbreakable instead —
   the font-size clamp on the 2-column band (below) is sized to fit it. */
.hero h1,
.hero h1 .line span { overflow-wrap: normal; word-break: normal; }

/* 10vw (styles.css) sizes the headline for a full-width single-column hero.
   Once the grid below splits into two columns the copy column is only
   ~half the viewport, so the same vw figure overshoots and forces
   "MARKETING" to wrap. Scale against the narrower column instead. */
@media (min-width: 981px) {
  .hero h1 { font-size: clamp(52px, calc(7.5vw - 6px), 108px); }
}

/* Outline button needs to read on charcoal. */
.hero .btn-outline {
  color: #F8F6F1;
  border-color: rgba(248, 246, 241, 0.26);
  background: rgba(255, 255, 255, 0.03);
}
.hero .btn-outline:hover {
  border-color: #F8F6F1;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* ---------- dashboard cluster ---------- */
.hero .hero-visual {
  position: relative;
  min-width: 0;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .hv-card {
  background: rgba(38, 38, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}

/* main dashboard, tilted slightly like the reference */
.hero .hv-dash {
  width: min(340px, 100%);
  padding: 14px 16px 16px;
  transform: rotate(-3deg);
  animation: hvFloat 9s ease-in-out infinite;
}

.hero .hv-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero .hv-bar span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.hero .hv-bar span:first-child { background: #F0561F; }
.hero .hv-bar p {
  margin: 0 0 0 10px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 241, 0.72);
}

.hero .hv-chart { height: 92px; margin-bottom: 14px; }
.hero .hv-chart svg { width: 100%; height: 100%; display: block; }
.hero .hv-line {
  stroke-dasharray: 420;
  animation: hvDraw 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}
@keyframes hvDraw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }

.hero .hv-metrics { list-style: none; margin: 0; padding: 0; }
.hero .hv-metrics li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.hero .hv-metrics li:last-child { margin-bottom: 0; }
.hero .hv-metrics span {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: rgba(248, 246, 241, 0.6);
}
.hero .hv-metrics i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.hero .hv-metrics b {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: 3px;
  background: linear-gradient(90deg, #D9400B, #F0561F);
  transform-origin: left;
  animation: hvFill 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1s backwards;
}
@keyframes hvFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* growth score card */
.hero .hv-score {
  position: absolute;
  right: -2%;
  bottom: 4%;
  width: 132px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(4deg);
  animation: hvFloat 11s ease-in-out 0.8s infinite;
}
.hero .hv-score svg { width: 46px; height: 46px; flex: none; }
.hero .hv-ring {
  stroke-dasharray: 214;
  animation: hvRing 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s backwards;
}
@keyframes hvRing { from { stroke-dashoffset: 214; } to { stroke-dashoffset: 62; } }
.hero .hv-score p {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: rgba(248, 246, 241, 0.72);
}

/* floating tool chips */
.hero .hv-chip {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hero .hv-chip img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero .hv-chip-1 { left: 2%;  top: 14%; animation: hvFloat 8s ease-in-out infinite; }
.hero .hv-chip-2 { left: 6%;  top: 52%; animation: hvFloat 10s ease-in-out 1.2s infinite; }

@keyframes hvFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* The old decorative layer and keyword chips would fight this composition. */
.hero .bg-system { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .hero-visual { min-height: 320px; }
  .hero .hv-score { right: 4%; }
  .hero .hv-chip-1 { left: 4%; }
  .hero .hv-chip-2 { left: 8%; }
}

@media (max-width: 620px) {
  .hero .hero-visual { min-height: 300px; }
  .hero .hv-dash { width: min(300px, 92%); transform: rotate(-2deg); }
  .hero .hv-score { width: 116px; right: 0; bottom: 0; }
  .hero .hv-chip { width: 36px; height: 36px; border-radius: 10px; }
  .hero .hv-chip-1 { left: 0; top: 8%; }
  .hero .hv-chip-2 { left: 2%; top: 56%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hv-dash, .hero .hv-score, .hero .hv-chip,
  .hero .hv-line, .hero .hv-metrics b, .hero .hv-ring { animation: none; }
  .hero .hv-line { stroke-dashoffset: 0; }
  .hero .hv-ring { stroke-dashoffset: 62; }
}
