/* ===========================================================
   hero.css — Hero section
   =========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px var(--section-pad-x) 60px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Subtle grid texture in the background */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 30% 50%, black 20%, transparent 90%);
  mask-image: radial-gradient(ellipse 100% 70% at 30% 50%, black 20%, transparent 90%);
  pointer-events: none;
}

/* Brand pixel-block icon as the hero's signature visual */
.hero-mark {
  position: absolute;
  right: -40px; top: 50%; transform: translateY(-48%);
  width: 680px; height: 530px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}
.hero-mark svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 30px 60px rgba(228, 119, 18, 0.1));
}
.hero-mark .scatter {
  animation: hero-float 6s ease-in-out infinite;
  transform-origin: center;
}
.hero-mark .scatter:nth-child(2) { animation-delay: 0.4s; }
.hero-mark .scatter:nth-child(3) { animation-delay: 0.8s; }
.hero-mark .scatter:nth-child(4) { animation-delay: 1.2s; }
.hero-mark .scatter:nth-child(5) { animation-delay: 1.6s; }
.hero-mark .scatter:nth-child(6) { animation-delay: 2.0s; }
.hero-mark .scatter:nth-child(7) { animation-delay: 2.4s; }
.hero-mark .scatter:nth-child(8) { animation-delay: 2.8s; }
@keyframes hero-float {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(-3px, -4px); opacity: 0.85; }
}

/* Top meta strip */
.hero-meta {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 80px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gray);
}
.hero-meta-left { display: flex; gap: 28px; align-items: center; }
.hero-meta-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  margin-right: 10px; vertical-align: middle;
  animation: hero-blink 2s infinite;
}
@keyframes hero-blink {
  0%, 60% { opacity: 1; } 80%, 100% { opacity: 0.3; }
}
.hero-meta-rule { width: 50px; height: 1px; background: var(--gray); opacity: 0.3; }

/* Main grid: headline + intelligence panel */
.hero-grid {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: end;
  flex: 1;
}

/* Headline */
.hero-headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--gray-deep);
  max-width: 1100px;
}
.hero-headline .orange { color: var(--orange); }
.hero-headline .light {
  font-weight: 400;
  color: var(--gray);
  letter-spacing: -0.04em;
}
.hero-headline .underline {
  position: relative; display: inline-block;
  padding-bottom: 0.05em;
}
.hero-headline .underline::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.05em;
  background: var(--orange);
}

/* Intelligence panel (right column) */
.intel-panel {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  position: relative;
}
.intel-panel::before {
  content: ''; position: absolute;
  top: -6px; left: -6px; right: 6px; bottom: 6px;
  border: 1px solid var(--orange);
  z-index: -1;
}
.intel-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gray);
}
.intel-head-left { display: flex; align-items: center; gap: 8px; }
.intel-head-dot {
  width: 6px; height: 6px; background: var(--orange);
  border-radius: 50%;
  animation: hero-blink 1.6s infinite;
}
.intel-row {
  padding: 13px 16px;
  border-bottom: 1px dashed var(--rule);
}
.intel-row:last-child { border-bottom: none; }
.intel-row-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.intel-label {
  color: var(--gray);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 500;
}
.intel-value {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--gray-deep);
}
.intel-value .delta {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--gray);
  margin-left: 6px; font-weight: 500;
  opacity: 0.75;
}
.intel-bar {
  height: 4px; background: var(--bone-deep);
  position: relative; overflow: hidden;
}
.intel-bar i {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--gray-deep);
  animation: intel-fill 1.8s ease-out forwards;
}
.intel-bar i.orange { background: var(--orange); }
@keyframes intel-fill {
  from { width: 0; } to { width: var(--w, 70%); }
}

/* Bottom row: subhead + CTAs */
.hero-bottom {
  position: relative; z-index: 3;
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid var(--rule-strong);
}
.hero-sub {
  max-width: 540px;
  font-size: 16px; line-height: 1.55;
  color: var(--gray);
}
.hero-sub strong {
  color: var(--gray-deep); font-weight: 700;
}
.cta-stack { display: flex; gap: 14px; align-items: center; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 32px;
  background: var(--orange);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  position: relative;
  transition: all 0.3s var(--ease-out);
  border: 1px solid var(--orange);
}
.cta-primary::after {
  content: ''; position: absolute;
  top: 6px; left: 6px; right: -6px; bottom: -6px;
  border: 1px solid var(--gray-deep);
  z-index: -1;
  transition: all 0.3s var(--ease-out);
}
.cta-primary:hover {
  background: var(--gray-deep); border-color: var(--gray-deep);
}
.cta-primary:hover::after {
  top: 0; left: 0; right: 0; bottom: 0;
  border-color: var(--orange);
}
.cta-primary svg { transition: transform 0.3s; }
.cta-primary:hover svg { transform: translateX(4px); }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 24px;
  color: var(--gray-deep);
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid var(--rule-strong);
  background: transparent;
  transition: background 0.25s;
}
.cta-secondary:hover { background: var(--paper); }
.cta-secondary .play {
  width: 22px; height: 22px;
  border: 1px solid var(--gray-deep);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-secondary .play svg { width: 8px; height: 8px; fill: var(--orange); }

/* Responsive */
@media (max-width: 1024px) {
  .hero { padding: 100px var(--section-pad-x) 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-mark { width: 360px; height: 280px; right: -80px; top: 8%; transform: none; opacity: 0.45; }
  .hero-headline { font-size: clamp(40px, 11vw, 84px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 30px; }
  .cta-stack { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 50px; }
  .hero-meta-left { flex-wrap: wrap; gap: 14px; }
  .hero-meta-rule { display: none; }
  .cta-primary, .cta-secondary { padding: 18px 22px; font-size: 11px; }
  .hero-mark { display: none; }
}
