/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dadi-light);
  padding-top: 7rem;   /* pt-28 on mobile */
}

/* Engineering grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(74,75,113,0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74,75,113,0.065) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

/* Animated SVG canvas */
.hero-svg-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.30;
  pointer-events: none;
  overflow: hidden;
}
.hero-svg-canvas svg { position: absolute; width: 100%; height: 100%; }

/* SVG growth chart path */
#hero-axis-h,
#hero-axis-v {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-path 1.5s ease-in-out forwards;
}
#hero-axis-v { animation-delay: 0.5s; }
#hero-growth-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-path 2.5s ease-out forwards;
  animation-delay: 1s;
}
.hero-node {
  opacity: 0;
  transform-origin: center;
  animation: hero-node-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes hero-node-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-node-1 { animation-delay: 1s; }
.hero-node-2 { animation-delay: 1.8s; }
.hero-node-3 { animation-delay: 2.2s; }
.hero-node-4 { animation-delay: 3.5s; }

/* Spinning settings icon */
.hero-spin-icon {
  position: absolute;
  top: 25%; left: 25%;
  opacity: 0.20;
}
.hero-spin-icon svg { width: 6rem; height: 6rem; color: var(--dadi-blue); }

/* Floating revenue card */
.hero-float-card {
  position: absolute;
  top: 50%;
  right: 10%;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-xl);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 0;
}
.hero-float-card .card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-card .card-icon svg { width: 1.25rem; height: 1.25rem; color: #16a34a; }
.hero-float-card .card-label { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.hero-float-card .card-value { font-size: 1.125rem; font-weight: 700; color: #0f172a; }

/* Radial mask for readability */
.hero-radial-mask {
  position: absolute;
  inset: 0;
  background: white;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 20%, black 100%);
  mask-image:         radial-gradient(ellipse 60% 50% at 50% 50%, transparent 20%, black 100%);
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(1.5rem,6vw,9rem);
  pointer-events: none;
}

/* Status badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--dadi-blue);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}
.hero-badge svg { width: 1rem; height: 1rem; }

/* Headings */
.hero-h1 {
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.hero-h1-gradient {
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Sub-copy */
.hero-copy {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #64748b;
  max-width: 42rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* CTA row */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
}

@media (min-width: 540px) {
  .hero-cta { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero { padding-top: 6rem; }
  .hero-badge  { margin-bottom: 2rem; }
  .hero-h1-gradient { margin-bottom: 1.5rem; }
  .hero-copy   { margin-bottom: 2.5rem; }
  .hero-float-card { right: 20%; }
}
