/* ConveGenius Insights — cinematic hero (homepage only) */

.hero3 {
  position: relative; overflow: hidden;
  min-height: clamp(640px, 90vh, 940px);
  background:
    radial-gradient(120% 95% at 82% 8%, #E6F6FF 0%, #EEF4FF 38%, #FFFFFF 78%);
}
.hero3-stage { position: absolute; inset: 0; }

.hero3-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease-out), visibility 0.8s; }
.hero3-slide.is-active { opacity: 1; visibility: visible; }
.hero3 .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero3-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.78) 32%, rgba(255,255,255,0.20) 60%, rgba(255,255,255,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, rgba(255,255,255,0.6) 100%);
}

.hero3-grid {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding-top: 40px; padding-bottom: 96px;
}

/* ----- copy ----- */
.hero3-copy { display: grid; gap: 22px; justify-items: start; }
.hero3-copy .eyebrow-capsule { background: rgba(255,255,255,0.7); border-color: rgba(44,46,116,0.45); color: var(--cgi-blue-tech); }
.hero3-title {
  font-size: clamp(40px, 5vw, 66px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.02em; color: var(--cgi-navy-900); margin: 0;
}
.hero3-title .grad {
  background: linear-gradient(100deg, var(--cgi-blue-tech) 0%, var(--cgi-cyan-deep) 55%, var(--cgi-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero3-line { width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cgi-blue-tech), var(--cgi-cyan)); }
.hero3-sub { font-size: 18px; color: var(--cgi-grey-700); margin: 0; max-width: 44ch; }
.hero3-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-glow { background: linear-gradient(100deg, var(--cgi-blue-tech), var(--cgi-blue-600)); color: #fff; box-shadow: 0 8px 26px rgba(44,46,116,0.30); }
.btn-glow:hover { box-shadow: 0 10px 32px rgba(58,61,152,0.45); }

/* text entrance + shimmer on active slide */
@media (prefers-reduced-motion: no-preference) {
  .hero3-slide .hero3-copy > * { opacity: 0; transform: translateY(22px); }
  .hero3-slide.is-active .hero3-copy > * { animation: h3rise 0.7s var(--ease-out) forwards; }
  .hero3-slide.is-active .hero3-copy > *:nth-child(1) { animation-delay: 0.12s; }
  .hero3-slide.is-active .hero3-copy > *:nth-child(2) { animation-delay: 0.20s; }
  .hero3-slide.is-active .hero3-copy > *:nth-child(3) { animation-delay: 0.28s; }
  .hero3-slide.is-active .hero3-copy > *:nth-child(4) { animation-delay: 0.36s; }
  .hero3-slide.is-active .hero3-copy > *:nth-child(5) { animation-delay: 0.44s; }
  @keyframes h3rise { to { opacity: 1; transform: none; } }
  .hero3-slide.is-active .hero3-title .grad {
    background-size: 220% 100%; animation: h3shimmer 4.5s ease-in-out 0.6s infinite;
  }
  @keyframes h3shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  .hero3-visual { opacity: 0; transform: translateX(34px) scale(0.97); }
  .hero3-slide.is-active .hero3-visual { animation: h3vis 0.9s var(--ease-out) 0.25s forwards; }
  @keyframes h3vis { to { opacity: 1; transform: none; } }
}

/* ----- glass visual ----- */
.hero3-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.glass-panel {
  position: relative; width: 100%; max-width: 420px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,0.78), rgba(236,245,255,0.55));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 24px 70px rgba(10,40,110,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 22px; overflow: hidden; z-index: 2;
}
.glass-panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 22px;
  background: linear-gradient(120deg, transparent 40%, rgba(58,61,152,0.10) 75%, transparent 100%);
}
.gp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gp-title { font: 700 13px/1.2 var(--font-sans); letter-spacing: 0.04em; color: var(--cgi-navy-900); display: flex; align-items: center; gap: 8px; }
.gp-title i, .gp-title svg { width: 16px; height: 16px; color: var(--cgi-cyan-deep); }
.gp-live { font: 700 10px/1 var(--font-sans); letter-spacing: 0.12em; color: var(--cgi-cyan-deep); display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.gp-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cgi-cyan); box-shadow: 0 0 8px var(--cgi-cyan); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* floating glass chips (3D blocks) */
.glass-chip {
  position: absolute; border-radius: 14px; z-index: 1;
  background: linear-gradient(150deg, rgba(255,255,255,0.6), rgba(58,61,152,0.10));
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 14px 36px rgba(10,40,110,0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip-a { width: 84px; height: 84px; left: -18px; top: 22px; transform: rotate(-12deg); animation: floatA 8s ease-in-out infinite; }
.chip-b { width: 60px; height: 60px; right: -10px; bottom: 36px; transform: rotate(10deg); animation: floatB 9s ease-in-out infinite; }
.chip-c { width: 44px; height: 44px; right: 40px; top: -14px; transform: rotate(6deg); animation: floatA 7s ease-in-out infinite; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes floatA { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-16px) rotate(-8deg); } }
  @keyframes floatB { 0%,100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(14px) rotate(6deg); } }
}

/* neural panel svg */
.nn-svg { width: 100%; height: 200px; display: block; }
.nn-svg .edge { stroke: rgba(44,46,116,0.30); stroke-width: 1.4; stroke-dasharray: 4 6; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.nn-svg .node { fill: #0B1E50; }
.nn-svg .node.glow { fill: var(--cgi-cyan-deep); animation: nodePulse 2.6s ease-in-out infinite; }
@keyframes nodePulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.gp-foot { margin-top: 14px; display: flex; gap: 8px; }
.gp-tag { font: 600 11px/1 var(--font-sans); color: var(--cgi-blue-tech); background: rgba(157,210,206,0.25); border: 1px solid rgba(157,210,206,0.5); border-radius: 999px; padding: 6px 11px; }

/* measurement scope */
.scope { position: relative; height: 200px; display: grid; place-items: center; }
.scope svg { width: 200px; height: 200px; }
.scope .ring { fill: none; stroke: rgba(44,46,116,0.22); stroke-width: 1.2; }
.scope .sweep { transform-origin: 100px 100px; animation: sweep 3.4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.scope .tick { stroke: rgba(44,46,116,0.5); stroke-width: 1.4; }
.scope .read { position: absolute; right: 6px; bottom: 2px; font: 800 22px/1 var(--font-sans); color: var(--cgi-navy-900); }
.scope .read small { font: 700 11px/1 var(--font-sans); color: var(--cgi-cyan-deep); display: block; letter-spacing: 0.1em; }

/* analytics dashboard */
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpi { background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8); border-radius: 12px; padding: 10px; }
.dash-kpi b { font: 800 18px/1 var(--font-sans); color: var(--cgi-navy-900); }
.dash-kpi span { font: 600 10px/1.3 var(--font-sans); color: var(--cgi-grey-500); display: block; margin-top: 4px; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; padding: 8px 4px 0; border-bottom: 1px solid rgba(10,40,110,0.10); }
.dash-bars i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--cgi-cyan), var(--cgi-blue-tech)); transform-origin: bottom; transform: scaleY(0.1); animation: grow 1.1s var(--ease-out) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.dash-spark { width: 100%; height: 40px; margin-top: 10px; }
.dash-spark path { fill: none; stroke: var(--cgi-cyan-deep); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.8s var(--ease-out) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-badge { position: absolute; top: 18px; right: 18px; font: 800 12px/1 var(--font-sans); color: #0B7A52; background: rgba(31,194,180,0.16); border: 1px solid rgba(31,194,180,0.4); border-radius: 999px; padding: 7px 12px; }

/* ----- progress tabs ----- */
.hero3-tabs {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5;
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.h3tab { text-align: left; background: none; border: none; cursor: pointer; display: grid; gap: 9px; padding: 0; }
.h3tab .h3bar { height: 3px; border-radius: 2px; background: rgba(10,40,110,0.14); overflow: hidden; }
.h3tab .h3bar > i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cgi-blue-tech), var(--cgi-cyan)); }
.h3tab .h3label { font: 600 13px/1.3 var(--font-sans); color: var(--cgi-grey-500); transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.h3tab .h3label .h3num { font: 700 11px/1 var(--font-sans); color: rgba(10,40,110,0.4); }
.h3tab.is-active .h3label { color: var(--cgi-navy-900); }
.h3tab.is-active .h3label .h3num { color: var(--cgi-cyan-deep); }
.h3tab:hover .h3label { color: var(--cgi-blue-tech); }

@media (max-width: 1100px) {
  .hero3-grid { grid-template-columns: 1fr; }
  .hero3-visual { display: none; }
  .hero3-tabs { position: static; margin-top: 24px; }
  .hero3 { min-height: auto; }
  .hero3-stage { position: relative; }
  .hero3-slide { position: absolute; }
  .hero3-slide.is-active { position: relative; }
}

@media (max-width: 760px) {
  .hero3-grid { padding-top: 24px; padding-bottom: 32px; }
  .hero3-tabs { grid-template-columns: 1fr; gap: 10px; }
  .hero3-title { font-size: clamp(30px, 8vw, 40px); }
  .hero3-sub { font-size: 15px; }
  .hero3 .scene { opacity: 0.5; }
}
