/* =============================================
   SKILLSWAP — hero.css
   ============================================= */

.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px); overflow: hidden;
}
.hero-left {
  padding: 60px 48px;
  display: flex; flex-direction: column; justify-content: center;
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,93,38,0.1); border: 1px solid rgba(232,93,38,0.25);
  color: var(--orange); padding: 5px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; width: fit-content; margin-bottom: 28px;
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

.hero-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 4.5vw, 5.2rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -2px;
  color: var(--ink); margin-bottom: 24px; transition-delay: 0.1s;
}
.line-italic { display: block; color: var(--orange); font-style: italic; }
.underline-wrap { position: relative; display: inline-block; }
.underline-svg { position: absolute; bottom: -6px; left: 0; width: 100%; overflow: visible; }
.underline-path {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.1s ease 0.85s;
}
.underline-path.drawn { stroke-dashoffset: 0; }

.hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 400px;
  margin-bottom: 40px; line-height: 1.6; transition-delay: 0.2s;
}
.hero-sub strong { color: var(--ink-soft); font-weight: 500; }

.cta-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; transition-delay: 0.3s; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 14px;
  background: var(--ink); color: var(--cream);
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.btn-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s ease; z-index: 0;
}
.btn-cta:hover::before { transform: scaleX(1); }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(232,93,38,0.35); }
.btn-cta .fire, .btn-cta .cta-text { position: relative; z-index: 1; }
.btn-cta .fire { font-size: 1.1rem; display: inline-block; transition: transform 0.3s; }
.btn-cta:hover .fire { transform: scale(1.3) rotate(-10deg); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 20px; border-radius: 14px;
  background: transparent; color: var(--ink-soft);
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}
.btn-ghost:hover { color: var(--orange); gap: 14px; }
.btn-ghost .arrow { display: inline-block; transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.social-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 48px; transition-delay: 0.4s;
}
.avatars { display: flex; }
.av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: white;
  margin-left: -8px; flex-shrink: 0;
}
.av:first-child { margin-left: 0; }
.social-text { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.social-text strong { color: var(--ink); }
.live-count { color: var(--green); font-weight: 600; }

/* ── RIGHT PANEL ── */
.hero-right {
  position: relative; background: var(--dark);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,240,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,232,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-symbol {
  position: absolute; font-family: 'Fraunces', serif;
  font-size: 38vw; font-weight: 900; color: rgba(255,255,255,0.02);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; user-select: none; white-space: nowrap;
}

.skill-orbit { position: relative; width: 380px; height: 380px; }
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(245,240,232,0.1);
  animation: spinRing 30s linear infinite;
}
.orbit-ring.ring-2 { inset: 40px; animation-duration: 20s; animation-direction: reverse; }
@keyframes spinRing { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.center-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 100px; height: 100px; border-radius: 28px;
  background: var(--orange); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 0 60px rgba(232,93,38,0.4); z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
  0%,100%{transform:translate(-50%,-50%) translateY(0)}
  50%{transform:translate(-50%,-50%) translateY(-8px)}
}
.badge-icon { font-size: 1.8rem; }
.badge-label {
  font-family: 'Fraunces', serif; font-size: 0.65rem;
  font-weight: 700; color: white; letter-spacing: 1px; text-transform: uppercase;
}
.badge-count {
  font-family: 'Fraunces', serif; font-size: 0.7rem;
  color: rgba(255,255,255,0.7); font-weight: 700;
}
.badge-count.pop { animation: countPop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes countPop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

.float-card {
  position: absolute; background: rgba(245,240,232,0.06);
  backdrop-filter: blur(12px); border: 1px solid rgba(245,240,232,0.12);
  border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; z-index: 4;
  opacity: 0; transform: translateY(10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s, border-color 0.2s;
  animation: floatCard 4s ease-in-out infinite;
}
.float-card.show { opacity: 1; transform: translateY(0) scale(1); }
.float-card:hover { background: rgba(245,240,232,0.12); border-color: rgba(245,240,232,0.25); }
@keyframes floatCard { 0%,100%{margin-top:0} 50%{margin-top:-6px} }
.float-card.offer { border-color: rgba(232,93,38,0.3); }
.float-card.offer .fc-type { color: rgba(232,150,100,0.7); }
.float-card.want { border-color: rgba(45,122,79,0.3); }
.float-card.want .fc-type { color: rgba(80,180,120,0.7); }
.fc-emoji { font-size: 1.2rem; }
.fc-skill { font-weight: 600; font-size: 0.82rem; color: #f5f0e8; }
.fc-type { font-size: 0.7rem; color: rgba(245,240,232,0.4); margin-top: 1px; }

.match-pulse {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--orange); opacity: 0; z-index: 3; pointer-events: none;
}
.match-pulse.flash { animation: pulseFlash 0.6s ease forwards; }
@keyframes pulseFlash {
  0%{opacity:0;transform:translate(-50%,-50%) scale(1)}
  30%{opacity:0.18}
  100%{opacity:0;transform:translate(-50%,-50%) scale(2.8)}
}

.skills-ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 32px; display: flex; gap: 10px; align-items: center;
  border-top: 1px solid rgba(245,240,232,0.06); overflow: hidden;
}
.ticker-label {
  font-size: 0.7rem; color: rgba(245,240,232,0.3);
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; gap: 8px;
  animation: ticker 22s linear infinite; width: max-content;
}
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-pill {
  padding: 4px 12px; border-radius: 100px; font-size: 0.74rem; font-weight: 500;
  background: rgba(245,240,232,0.07); color: rgba(245,240,232,0.5);
  border: 1px solid rgba(245,240,232,0.1); white-space: nowrap;
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 80px 48px; background: var(--cream);
  border-top: 1px solid var(--sand);
}
.how-title {
  font-family: 'Fraunces', serif; font-size: 2.2rem;
  font-weight: 900; text-align: center; color: var(--ink);
  margin-bottom: 48px; letter-spacing: -1px;
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: 900px; margin: 0 auto;
}
.how-card {
  text-align: center; padding: 32px 24px;
  background: white; border-radius: 20px;
  border: 1.5px solid var(--sand);
  transition: transform 0.2s, box-shadow 0.2s;
}
.how-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.how-icon { font-size: 2.5rem; margin-bottom: 16px; }
.how-step {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.how-card h3 {
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
.how-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 420px; }
  .hero-left { padding: 40px 24px; }
  .skill-orbit { transform: scale(0.75); }
  .how-section { padding: 60px 24px; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-left { padding: 28px 20px; }
  .skill-orbit { transform: scale(0.6); }
  .cta-group { flex-direction: column; align-items: stretch; }
  .btn-cta { justify-content: center; }
}
/* ── Community Stats Section ── */
.community-section {
  background: var(--ink); padding: 72px 48px;
  position: relative; overflow: hidden;
}
.community-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,240,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,232,0.03) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.community-section .how-title { color: var(--cream); position: relative; z-index: 1; }
.community-section p { position: relative; z-index: 1; color: rgba(245,240,232,0.55) !important; }
.community-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.comm-stat {
  text-align: center; padding: 20px 48px;
}
.comm-num {
  font-family: 'Fraunces', serif; font-size: 2.8rem;
  font-weight: 900; color: var(--orange); line-height: 1;
  margin-bottom: 6px;
}
.comm-label {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(245,240,232,0.5); text-transform: uppercase; letter-spacing: 0.8px;
}
.comm-divider {
  width: 1px; height: 60px;
  background: rgba(245,240,232,0.1);
}
@media (max-width: 700px) {
  .community-section { padding: 48px 24px; }
  .comm-stat { padding: 16px 24px; }
  .comm-divider { display: none; }
  .community-stats { gap: 8px; }
}