/* ==================== HERO SECTION - SCOPED STYLES ==================== */
/* Version: 3.0 - Production Ready */
/* All styles prefixed with .hero- to prevent conflicts */
/* Performance-optimized with GPU acceleration */

/* Base Reset for Hero Section Only */
.hero-section * { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

/* Hero Container */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 50px;
  background: #0a0e1a;
  position: relative;
  isolation: isolate; /* Create stacking context */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hero Content Grid */
.hero-content {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
  padding: 0 4rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ==================== LEFT COLUMN: COPY ==================== */

.hero-number-big {
  font-size: 7rem;
  font-weight: 900;
  color: #F59E0B;
  line-height: 1;
}

.hero-number-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: #F59E0B;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  color: #e8f0ff;
  margin: 2rem 0;
}

.hero-headline-emphasis {
  font-style: italic;
  background: linear-gradient(135deg, #06B6D4, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.75rem;
  color: #b0c4de;
  margin-bottom: 2rem;
}

/* CTA Button */
.hero-btn-primary {
  display: inline-flex;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #00E5FF, #A78BFA);
  color: #000;
  font-size: 1.125rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  transform: translateZ(0); /* Hardware acceleration */
}

.hero-btn-primary:hover {
  transform: translateY(-3px) translateZ(0);
}

/* ==================== RIGHT COLUMN: QUADRANT GRID ==================== */

.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  isolation: isolate;
}

.hero-quadrant-grid {
  width: 440px;
  height: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  position: relative;
  transform: translateZ(0);
}

/* Individual Quadrant */
.hero-quad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.hero-quad.hero-dimmed {
  opacity: 0.3;
}

.hero-quad.hero-highlighted {
  transform: scale(1.05) translateZ(0);
  box-shadow: 0 0 30px currentColor;
  z-index: 10;
  animation: hero-gentle-pulse 3s infinite;
}

@keyframes hero-gentle-pulse {
  0%, 100% { box-shadow: 0 0 30px currentColor; }
  50% { box-shadow: 0 0 40px currentColor, 0 0 60px currentColor; }
}

/* Quadrant Colors - LOCKED */
.hero-q1 {
  background: linear-gradient(135deg, rgba(6,182,212,0.5), rgba(6,182,212,0.3));
  border-top-left-radius: 16px;
}

.hero-q2 {
  background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(139,92,246,0.3));
  border-top-right-radius: 16px;
}

.hero-q3 {
  background: linear-gradient(135deg, rgba(107,114,128,0.4), rgba(107,114,128,0.2));
  border-bottom-left-radius: 16px;
}

.hero-q4 {
  background: linear-gradient(135deg, rgba(245,158,11,0.6), rgba(245,158,11,0.4));
  border-bottom-right-radius: 16px;
}

/* Quadrant Content */
.hero-icon {
  width: 3rem !important;
  height: 3rem !important;
  max-width: 3rem !important;
  max-height: 3rem !important;
  min-width: 3rem !important;
  min-height: 3rem !important;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  margin-bottom: 0.5rem;
  display: block;
}

.hero-qname {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px #000;
  text-align: center;
  line-height: 1.3;
}

.hero-qpct {
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 20px currentColor, 0 2px 8px #000;
}

/* ==================== AXES - LOCKED POSITIONING ==================== */

.hero-y-axis {
  position: absolute;
  left: -180px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-x-axis {
  position: absolute;
  bottom: -42px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
}

.hero-axis-label {
  font-size: 16px;
  font-weight: 700;
  color: #b0c4de;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-axis-low {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}

.hero-axis-high {
  font-size: 16px;
  font-weight: 600;
  color: #06B6D4;
}

/* ==================== INTERACTIVE ELEMENTS ==================== */

/* Tap Indicator (Mobile) */
.hero-tap-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: hero-pulse-ripple 2s infinite;
  z-index: 15;
}

.hero-tap-indicator.hero-active {
  display: flex;
}

@keyframes hero-pulse-ripple {
  0% { transform: scale(0.8); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(0.8); opacity: 1; }
}

/* Hover Hint (Desktop) */
.hero-hover-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: none;
  animation: hero-fade-in-out 2s infinite;
  pointer-events: none;
  z-index: 15;
}

.hero-hover-hint.hero-active {
  display: block;
}

@keyframes hero-fade-in-out {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Tooltip (Desktop Hover) */
.hero-tooltip {
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid currentColor;
  border-radius: inherit;
  padding: 1.5rem;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-tooltip.hero-active {
  display: flex;
}

.hero-tooltip.hero-q1 {
  border-color: rgba(6,182,212,0.6);
}

.hero-tooltip.hero-q2 {
  border-color: rgba(139,92,246,0.6);
}

.hero-tooltip.hero-q3 {
  border-color: rgba(107,114,128,0.6);
}

.hero-tooltip.hero-q4 {
  border-color: rgba(245,158,11,0.6);
}

/* ==================== MODAL OVERLAYS ==================== */

/* Assessment Modal */
.hero-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.hero-modal-overlay.hero-active {
  display: flex;
}

.hero-modal {
  background: rgba(15,20,25,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(6,182,212,0.3);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.hero-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #06B6D4;
  margin-bottom: 0.5rem;
}

.hero-modal-subtitle {
  font-size: 1rem;
  color: #b0c4de;
}

.hero-question {
  margin-bottom: 2rem;
}

.hero-question-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8f0ff;
  margin-bottom: 1.5rem;
}

.hero-question-number {
  color: #06B6D4;
  font-weight: 800;
}

.hero-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-option-btn {
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.hero-option-btn:hover {
  background: rgba(6,182,212,0.1);
  border-color: #06B6D4;
  transform: translateX(8px);
}

/* Result Modal (Mobile) */
.hero-result-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-result-modal.hero-active {
  display: flex;
}

.hero-result-modal.hero-q1 {
  background: linear-gradient(135deg, rgba(6,182,212,0.95), rgba(6,182,212,0.85));
}

.hero-result-modal.hero-q2 {
  background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(139,92,246,0.85));
}

.hero-result-modal.hero-q3 {
  background: linear-gradient(135deg, rgba(107,114,128,0.95), rgba(107,114,128,0.85));
}

.hero-result-modal.hero-q4 {
  background: linear-gradient(135deg, rgba(245,158,11,0.95), rgba(245,158,11,0.85));
}

.hero-result-icon-large {
  width: 96px;
  height: 96px;
  margin-bottom: 2rem;
  color: #fff;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.hero-result-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-result-percentage {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-result-description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.95);
}

.hero-btn-result-cta {
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.hero-btn-result-cta:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Bottom Sheet (Mobile) */
.hero-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  background: rgba(15,20,25,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9200;
  overflow-y: auto;
  display: none;
}

.hero-bottom-sheet.hero-active {
  transform: translateY(0);
  display: block;
}

.hero-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}

.hero-bottom-sheet-content {
  padding: 0 1.5rem 2rem;
}

.hero-bottom-sheet-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-bottom-sheet-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0c4de;
  margin-bottom: 1.5rem;
}

.hero-bottom-sheet-section {
  margin-bottom: 1.5rem;
}

.hero-bottom-sheet-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #06B6D4;
  margin-bottom: 0.75rem;
}

.hero-bottom-sheet-section ul {
  list-style: none;
  padding: 0;
}

.hero-bottom-sheet-section li {
  font-size: 0.9rem;
  color: #b0c4de;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.hero-bottom-sheet-section li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #06B6D4;
}

.hero-close-sheet {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== MOBILE RESPONSIVE - CRITICAL ==================== */

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  
  .hero-number-big {
    font-size: 64px;
  }
  
  .hero-number-label {
    font-size: 20px;
  }
  
  .hero-headline {
    font-size: 32px;
  }
  
  .hero-subheadline {
    font-size: 20px;
  }
  
  .hero-btn-primary {
    padding: 16px 28px;
    font-size: 16px;
  }
  
  .hero-visual-wrapper {
    padding: 60px 0;
  }
  
  .hero-quadrant-grid {
    width: 340px;
    height: 340px;
  }
  
  .hero-quad {
    padding: 16px;
  }
  
  .hero-qpct {
    font-size: 28px;
  }
  
  .hero-qname {
    font-size: 13px;
    line-height: 1.2;
  }
  
  .hero-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    margin-bottom: 4px;
  }
  
  /* CRITICAL: Mobile Axis Positioning - DO NOT MODIFY */
  .hero-y-axis {
    left: -95px;
    gap: 4px;
  }
  
  .hero-y-axis .hero-axis-label {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  
  .hero-y-axis .hero-axis-low,
  .hero-y-axis .hero-axis-high {
    font-size: 10px;
  }
  
  .hero-x-axis {
    bottom: -26px;
    gap: 4px;
  }
  
  .hero-x-axis .hero-axis-label {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  
  .hero-x-axis .hero-axis-low,
  .hero-x-axis .hero-axis-high {
    font-size: 9px;
  }
  
  .hero-hover-hint {
    display: none !important;
  }
  
  .hero-modal {
    padding: 32px 24px;
  }
  
  .hero-modal-title {
    font-size: 24px;
  }
  
  .hero-question-text {
    font-size: 18px;
  }
  
  .hero-option-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .hero-quadrant-grid {
    width: 300px;
    height: 300px;
  }
  
  .hero-qpct {
    font-size: 24px;
  }
  
  .hero-qname {
    font-size: 12px;
  }
  
  .hero-icon {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
  
  .hero-y-axis {
    left: -90px;
  }
  
  .hero-x-axis {
    bottom: -24px;
    gap: 3px;
  }
  
  .hero-x-axis .hero-axis-label {
    font-size: 9px;
  }
}

/* Large Desktop */
@media (min-width: 1600px) {
  .hero-content {
    max-width: 1800px;
  }
}

/* ==================== END HERO SECTION STYLES ==================== */
