/* ════════════════════════════════════════════
   CINEMATIC HERO — chero.css
════════════════════════════════════════════ */

.section_chero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* Grid overlay */
.chero_grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(10,37,64,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,37,64,0.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ── BG Text layer ── */
.chero_bg-text {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 1.5rem;
  gap: 0.25rem;
  will-change: transform, opacity, filter;
}

.chero_eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  visibility: hidden;
}

.chero_tagline-1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  will-change: opacity, transform, filter;
  visibility: hidden;
}

.chero_tagline-2 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

/* ── CTA layer (inside .chero_card) ── */
.chero_cta-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.chero_cta-layer.is-active { pointer-events: auto; }

.chero_cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.chero_cta-heading {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin: 1rem 0;
}

.chero_cta-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.chero_cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Inverted secondary for dark card */
.button.is-secondary-inv {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  box-shadow: none;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}
.button.is-secondary-inv:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.chero_cta-stats {
  display: flex;
  gap: 2.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

.chero_cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.chero_cta-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
}

/* Pre-hide GSAP-animated elements to prevent flash before DOMContentLoaded */
#cheroCard {
  transform: translateY(calc(100vh + 300px));
}
.chero_col-text,
.chero_col-brand,
.chero_badge,
.chero_pbars,
.chero_ring-wrap {
  opacity: 0;
  visibility: hidden;
}

/* ── Card outer ── */
.chero_card-outer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  pointer-events: none;
}

/* The card */
.chero_card {
  position: relative;
  width: 90vw;
  height: 88vh;
  border-radius: 2rem;
  background: linear-gradient(145deg, #152a68 0%, #080e1c 100%);
  box-shadow:
    0 50px 120px -20px rgba(0,0,0,0.55),
    0 20px 40px -15px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -2px 4px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  pointer-events: auto;
  will-change: transform, width, height, border-radius;
}

/* Mouse-follow sheen */
.chero_card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(99,91,255,0.07) 0%, transparent 40%);
  mix-blend-mode: screen;
}

/* ── 3-col inner grid ── */
.chero_card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 3.5rem;
  z-index: 10;
}

/* Col 1: text */
.chero_col-text { will-change: transform, opacity; }

.chero_card-heading {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.875rem;
}

.chero_card-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.chero_card-desc strong { color: rgba(255,255,255,0.8); }

.chero_card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chero_card-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  padding-left: 1.25rem;
  position: relative;
}

.chero_card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Col 2: score ring + bars */
.chero_col-radar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  will-change: transform, opacity;
}

.chero_ring-wrap {
  position: relative;
  width: clamp(140px, 16vw, 200px);
  height: clamp(140px, 16vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chero_ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chero_progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
}

.chero_ring-center {
  position: relative;
  text-align: center;
}

.chero_ring-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.chero_ring-label {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.3rem;
}

/* Platform bars */
.chero_pbars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chero_pbar {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1.75rem;
  align-items: center;
  gap: 0.5rem;
}

.chero_pbar-name {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  white-space: nowrap;
}

.chero_pbar-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.chero_pbar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.chero_pbar-fill.is-chatgpt    { background: linear-gradient(90deg, #635bff, #00d4ff); }
.chero_pbar-fill.is-google     { background: linear-gradient(90deg, #00d4ff, #00ff94); }
.chero_pbar-fill.is-perplexity { background: linear-gradient(90deg, #7b4fff, #ff4fd8); }
.chero_pbar-fill.is-gemini     { background: linear-gradient(90deg, #ff4fd8, #635bff); }
.chero_pbar-fill.is-bing       { background: linear-gradient(90deg, #00ff94, #00d4ff); }

.chero_pbar-val {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-align: right;
}

/* Col 3: brand */
.chero_col-brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  will-change: transform, opacity;
}

.chero_brand-text {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.35) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

/* ── Floating badges ── */
.chero_badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.07);
  will-change: transform, opacity;
  z-index: 20;
}

.chero_badge--tl { top: 12%; left: 8%; }
.chero_badge--tr { top: 12%; right: 8%; }
.chero_badge--bl { bottom: 12%; left: 8%; }

.chero_badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chero_badge-dot.is-cyan   { background: var(--cyan);   box-shadow: 0 0 8px var(--cyan); }
.chero_badge-dot.is-violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.chero_badge-dot.is-green  { background: var(--green);  box-shadow: 0 0 8px var(--green); }

.chero_badge-platform {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.chero_badge-score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .chero_card-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    justify-items: center;
  }
  .chero_col-brand { justify-content: center; order: -1; }
  .chero_brand-text { font-size: 2.5rem; }
  .chero_col-radar { order: 0; }
  .chero_col-text { order: 1; text-align: center; }
  .chero_card-desc,
  .chero_card-list { display: none; }
  .chero_badge--bl { display: none; }
  .chero_badge--tl { top: auto; bottom: 18%; left: 3%; }
  .chero_badge--tr { top: auto; bottom: 10%; right: 3%; }
  .chero_pbar { grid-template-columns: 4.5rem 1fr 1.5rem; }
  .chero_cta-stats { gap: 1.5rem; }
}
