/* ═══════════════════════════════════════════════════
   NEXAURO — Sections (Apple-Level Design)
   How It Works + Solutions
   ═══════════════════════════════════════════════════ */

/* ═══ HOW IT WORKS ═══ */
#how-it-works {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

#how-it-works h2 { color: var(--text); }

.process-visual {
  margin: 56px auto 72px;
  max-width: 700px;
}

.process-visual img {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 20px 60px rgba(0,180,216,0.15));
}

.timeline-wrapper { position: relative; }
.timeline-line { display: none; }

.phase-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity 0.4s;
}

.phase-card:hover { border-color: rgba(212,175,55,0.2); transform: translateY(-6px); }
.phase-card:hover::before { opacity: 1; }

.phase-icon { font-size: 36px; margin-bottom: 16px; }
.phase-num { font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.phase-accent { display: none; }
.phase-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.phase-desc { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.phase-date { margin-top: 20px; color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: 1px; }

@media (max-width: 768px) {
  .phase-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .phase-cards { grid-template-columns: 1fr; }
}

/* ═══ SOLUTIONS ═══ */
#solutions {
  background: var(--bg-dark);
  text-align: center;
}

#solutions h2 { color: var(--text); }

.solutions-3d-visual {
  margin: 48px auto 64px;
  max-width: 500px;
}

.solutions-3d-visual img {
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 16px 50px rgba(0,180,216,0.2));
  animation: solutionsGlow 5s ease-in-out infinite;
}

@keyframes solutionsGlow {
  0%, 100% { filter: drop-shadow(0 16px 50px rgba(0,180,216,0.2)); }
  50% { filter: drop-shadow(0 20px 60px rgba(212,175,55,0.25)); }
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.sol-card:hover {
  border-color: rgba(212,175,55,0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sol-icon { font-size: 40px; margin-bottom: 16px; }
.sol-name { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 20px; }

.sol-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 16px;
}

.sol-label.pain { color: #E74C3C; }
.sol-label.solution { color: var(--gold); }

.sol-bullets { display: flex; flex-direction: column; gap: 8px; }
.sol-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.sol-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.sol-dot.red { background: #E74C3C; }
.sol-dot.gold { background: var(--gold); }

.sol-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sol-metric-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.15);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.sol-card .btn-secondary {
  margin-top: 24px;
  width: 100%;
  height: 48px;
  font-size: 14px;
}

/* ── Detail Panel ── */
#panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

#panel-overlay.open { opacity: 1; pointer-events: auto; }

#detail-panel {
  position: fixed;
  top: 0; right: -480px;
  width: 480px; max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 5001;
  overflow-y: auto;
  padding: 48px 36px;
  transition: right 0.5s var(--ease-out);
}

#detail-panel.open { right: 0; }

.panel-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-dim); font-size: 28px; cursor: pointer; transition: color 0.3s; }
.panel-close:hover { color: var(--text); }
.panel-icon { font-size: 48px; margin-bottom: 12px; }
.panel-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.panel-divider { width: 40px; height: 2px; background: var(--gold); margin: 16px 0; }
.panel-subtitle { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }
.panel-step { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.panel-step-num { font-family: var(--font-heading); font-weight: 700; color: var(--gold); font-size: 14px; min-width: 24px; }
.panel-step-text { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.panel-mockup { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; margin: 24px 0; color: var(--text-muted); font-size: 14px; }
.panel-cta { margin-top: 16px; width: 100%; }

/* ─── Morph Blob ─── */
.morph-blob {
  position: absolute;
  width: 400px; height: 400px;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
  animation: morphBlob 12s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 55% 45% 35% 65% / 60% 35% 65% 40%; transform: rotate(120deg) scale(1.1); }
  66% { border-radius: 30% 70% 55% 45% / 40% 60% 40% 60%; transform: rotate(240deg) scale(0.95); }
}

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .morph-blob { width: 200px; height: 200px; }
}
