/* ============================================================
   CNC HERO — Scoped Styles
   ============================================================ */
:root {
  --cnc-dark-1:   var(--ast-global-color-4);
  --cnc-dark-2:   #0c0c18;
  --cnc-dark-3:   #12121f;
  --cnc-accent:   var(--ast-global-color-0);
  --cnc-accent-2: #7b61ff;
  --cnc-glow:     rgba(0, 212, 255, 0.35);
  --cnc-white:    var(--ast-global-color-2);
  --cnc-muted:    var(--ast-global-color-3);
  --cnc-radius:   12px;
  --cnc-font:     'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Font loaded via wp_enqueue_style in functions.php — no @import needed */

/* ── Section ── */
.cnc-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--cnc-dark-1) 0%, var(--cnc-dark-2) 40%, #0d0d22 100%);
  padding: 100px 0 80px;
  font-family: var(--cnc-font);
  color: var(--cnc-white);
  isolation: isolate;
  /* Prevent full bleed blowout on wide screens */
  max-width: 100vw; 
}

/* ── Grid backdrop ── */
.cnc-hero__grid {
  position: absolute; inset: 0;
  opacity: 0.5;
  z-index: 0;
}

/* ── Floating orbs ── */
.cnc-hero__orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.cnc-hero__orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 70%);
  top: -100px; left: -80px;
}
.cnc-hero__orb--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(123,97,255,0.12), transparent 70%);
  bottom: -60px; right: 5%;
}
.cnc-hero__orb--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,212,255,0.08), transparent 70%);
  top: 50%; left: 55%;
}

/* ── Scanlines ── */
.cnc-hero__scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,212,255,0.015) 2px,
    rgba(0,212,255,0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Inner layout ── */
.cnc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Badge ── */
.cnc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  padding: 6px 18px 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cnc-accent);
  margin-bottom: 24px;
}
.cnc-hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--cnc-accent);
  border-radius: 50%;
}
/* ── Title ── */
.cnc-hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.cnc-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, var(--cnc-accent) 0%, var(--cnc-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Subtitle ── */
.cnc-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cnc-muted);
  max-width: 520px;
  margin: 0 0 32px;
}
.cnc-hero__subtitle strong {
  color: var(--cnc-white);
  font-weight: 600;
}

/* ── Stats row ── */
.cnc-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.cnc-hero__stat {
  display: flex;
  flex-direction: column;
}
.cnc-hero__stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cnc-white);
}
.cnc-hero__stat-label {
  font-size: 0.75rem;
  color: var(--cnc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.cnc-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(0,212,255,0.3), transparent);
}

/* ── CTA Buttons ── */
.cnc-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cnc-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cnc-font);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  outline: none;
}
.cnc-hero__btn--primary:hover svg {
  transform: translateX(4px);
}
.cnc-hero__btn--primary svg {
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Trust row ── */
.cnc-hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cnc-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--cnc-muted);
}
.cnc-hero__trust-item svg {
  stroke: var(--cnc-accent);
  flex-shrink: 0;
}

/* ── Product visual ── */
.cnc-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cnc-hero__visual-frame {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.cnc-hero__visual-glow {
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cnc-accent), var(--cnc-accent-2), var(--cnc-accent));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0.6;
}
.cnc-hero__visual-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}
/* ── Floating tags ── */
.cnc-hero__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,10,20,0.85);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cnc-accent);
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.cnc-hero__tag--1 { top: 15%; right: -24px; }
.cnc-hero__tag--2 { bottom: 18%; left: -20px; }
.cnc-hero__tag-pulse {
  width: 6px; height: 6px;
  background: var(--cnc-accent);
  border-radius: 50%;
}

/* ── Bottom edge neon ── */
.cnc-hero__edge-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cnc-accent) 30%, var(--cnc-accent-2) 70%, transparent 100%);
  opacity: 0.5;
}

/* ── Fade-up animation ── */
/* ── Hide WooCommerce Default Shop Title ── */
/* If this is used on the shop page, we hide the duplicate H1 generated by WooCommerce */
body.post-type-archive-product .page-title {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .cnc-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .cnc-hero__subtitle { margin-left: auto; margin-right: auto; }
  .cnc-hero__stats    { justify-content: center; }
  .cnc-hero__actions  { justify-content: center; }
  .cnc-hero__trust    { justify-content: center; }
  .cnc-hero__content  { order: 1; }
  .cnc-hero__visual   { order: 2; }
  .cnc-hero__visual-img { max-width: 420px; margin: 0 auto; }
  .cnc-hero__tag--1 { right: 0; }
  .cnc-hero__tag--2 { left: 0; }
  .cnc-hero { padding: 60px 0 50px; }
}
@media (max-width: 600px) {
  .cnc-hero__title { font-size: 2rem; }
  .cnc-hero__stats { flex-direction: column; gap: 12px; }
  .cnc-hero__stat-divider { display: none; }
  .cnc-hero__actions { flex-direction: column; align-items: center; }
  .cnc-hero__btn { width: 100%; justify-content: center; }
  .cnc-hero__visual-img { max-width: 300px; }
  .cnc-hero__tag { display: none; }
}
