/* ==========================================================================
   NAVIONFX — homepage.css
   Homepage-specific component styles only
   ========================================================================== */

/* ── HERO ── */
.home-hero-lottie { position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(2%); width: 85%; height: 85%; pointer-events: none; z-index: 0; opacity: 0.15; }
.home-hero-lottie svg { width: 100% !important; height: 100% !important; }
.home-hero .container { position: relative; z-index: 1; }
.home-hero .btn-primary { background: #102A67 !important; border-color: #102A67 !important; }
.home-hero .btn-primary:hover { background: #0d2357 !important; border-color: #0d2357 !important; }
.home-hero .pill-badge-inner { background: #102A67 !important; }

/* ── WHY US CAROUSEL ── */
.carousel { position: relative; width: 100%; height: 420px; perspective: 1200px; z-index: 1; display: flex; align-items: center; justify-content: center; overflow: visible; }
.carousel-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.carousel-card { position: absolute; width: 320px; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); background: linear-gradient(160deg, #0d1f3c 0%, #071428 100%); border: 1px solid rgba(96,165,250,0.12); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all 1.2s cubic-bezier(0.25,0.46,0.45,0.94); transform-style: preserve-3d; will-change: transform, opacity; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.carousel-card.pos-center { transform: translateX(-50%) translateY(-50%) translateZ(0px) scale(1); opacity: 1; z-index: 5; box-shadow: 0 20px 60px rgba(30,58,138,0.5), 0 0 0 1px rgba(96,165,250,0.3); border-color: rgba(96,165,250,0.35); }
.carousel-card.pos-left1 { transform: translateX(calc(-50% - 310px)) translateY(-50%) translateZ(-120px) rotateY(25deg) scale(0.85); opacity: 0.55; z-index: 4; }
.carousel-card.pos-right1 { transform: translateX(calc(-50% + 310px)) translateY(-50%) translateZ(-120px) rotateY(-25deg) scale(0.85); opacity: 0.55; z-index: 4; }
.carousel-card.pos-left2 { transform: translateX(calc(-50% - 560px)) translateY(-50%) translateZ(-280px) rotateY(40deg) scale(0.65); opacity: 0.2; z-index: 3; }
.carousel-card.pos-right2 { transform: translateX(calc(-50% + 560px)) translateY(-50%) translateZ(-280px) rotateY(-40deg) scale(0.65); opacity: 0.2; z-index: 3; }
.carousel-card.pos-hidden { transform: translateX(-50%) translateY(-50%) translateZ(-400px) scale(0.4); opacity: 0; z-index: 1; pointer-events: none; }
.carousel-card-img-wrap { width: 100%; height: 220px; background: linear-gradient(160deg, #071428 0%, #040e20 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.carousel-card-img { width: 100%; height: 100%; object-fit: contain; padding: 16px; filter: drop-shadow(0 0 16px rgba(96,165,250,0.15)); transition: transform 0.4s ease; }
.carousel-card.pos-center .carousel-card-img { filter: drop-shadow(0 0 28px rgba(96,165,250,0.3)); transform: scale(1.04); }
.carousel-card-title { padding: 20px 22px 8px; }
.carousel-card-desc { padding: 0 22px 22px; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: transparent; border: none; color: #60a5fa; font-size: 36px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: color var(--transition), transform var(--transition); }
.carousel-btn:hover { color: #93c5fd; transform: translateY(-50%) scale(1.2); }
.carousel-btn--prev { left: -40px; }
.carousel-btn--next { right: -40px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(96,165,250,0.2); transition: all var(--transition); cursor: pointer; }
.carousel-dot.active { background: linear-gradient(90deg, #60a5fa, #06b6d4); width: 24px; border-radius: 4px; }

@media (max-width: 991px) {
  .carousel { height: 460px; }
  .carousel-card { width: 275px; }
  .carousel-card.pos-left1 { transform: translateX(calc(-50% - 260px)) translateY(-50%) translateZ(-120px) rotateY(25deg) scale(0.82); }
  .carousel-card.pos-right1 { transform: translateX(calc(-50% + 260px)) translateY(-50%) translateZ(-120px) rotateY(-25deg) scale(0.82); }
  .carousel-card.pos-left2 { transform: translateX(calc(-50% - 460px)) translateY(-50%) translateZ(-250px) rotateY(40deg) scale(0.6); opacity: 0.15; }
  .carousel-card.pos-right2 { transform: translateX(calc(-50% + 460px)) translateY(-50%) translateZ(-250px) rotateY(-40deg) scale(0.6); opacity: 0.15; }
}
@media (max-width: 767px) {
  .carousel { height: 420px; }
  .carousel-card { width: 250px; }
  .carousel-card.pos-left1 { transform: translateX(calc(-50% - 220px)) translateY(-50%) translateZ(-100px) rotateY(20deg) scale(0.75); opacity: 0.35; }
  .carousel-card.pos-right1 { transform: translateX(calc(-50% + 220px)) translateY(-50%) translateZ(-100px) rotateY(-20deg) scale(0.75); opacity: 0.35; }
  .carousel-card.pos-left1, .carousel-card.pos-right1 { pointer-events: none; }
  .carousel-card.pos-left2, .carousel-card.pos-right2 { opacity: 0; pointer-events: none; }
  .carousel-btn { display: none; }
  .carousel-touch-left, .carousel-touch-right { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 20; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
  .carousel-touch-left { left: 0; }
  .carousel-touch-right { right: 0; }
  .why-us.section-vh-lg { height: auto !important; min-height: unset !important; overflow: visible !important; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
}


/* ── GLOBAL MARKETS ── */
.markets .glow-br { position: absolute; bottom: -120px; right: -120px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%); pointer-events: none; }
.markets .glow-tl { position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%); pointer-events: none; }
.markets-inner { max-width: 900px; margin: 0 auto; }
.markets-grid { display: flex; flex-direction: column; gap: 12px; }
.markets-row { display: flex; gap: 12px; height: 210px; }

.markets-card { position: relative; flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid rgba(59,130,246,0.14); border-radius: 20px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 4px 24px rgba(59,130,246,0.07), 0 1px 4px rgba(0,0,0,0.04); cursor: pointer; will-change: flex-grow; transition: flex-grow 0.6s cubic-bezier(0.4,0,0.2,1), box-shadow 0.6s ease, border-color 0.6s ease; opacity: 0; transform: translateY(18px); }
.markets-card.entered { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4,0,0.2,1), flex-grow 0.6s cubic-bezier(0.4,0,0.2,1), box-shadow 0.6s ease, border-color 0.6s ease; }
.markets-card.active { flex-grow: 2.8; border-color: rgba(59,130,246,0.36); box-shadow: 0 14px 44px rgba(59,130,246,0.12), 0 2px 8px rgba(0,0,0,0.06); flex-direction: row; }
.markets-card::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px; background: linear-gradient(to right, transparent, #3b82f6, transparent); border-radius: 2px; opacity: 0; z-index: 2; transition: opacity 0.6s ease; }
.markets-card.active::before { opacity: 1; }

.markets-card-img { position: relative; flex: 1 1 0; display: flex; align-items: center; justify-content: center; background: #f0f5ff; overflow: hidden; transition: flex 0.6s cubic-bezier(0.4,0,0.2,1), width 0.6s cubic-bezier(0.4,0,0.2,1); border-bottom: 1px solid rgba(59,130,246,0.07); }
.markets-card.active .markets-card-img { flex: 0 0 140px; width: 140px; border-bottom: none; border-right: 1px solid rgba(59,130,246,0.07); }
.markets-card-img img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(59,130,246,0.15)); transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), filter 0.6s ease, width 0.6s ease, height 0.6s ease; }
.markets-card.active .markets-card-img img { width: 100px; height: 100px; filter: drop-shadow(0 6px 22px rgba(59,130,246,0.28)); }

.markets-card-content { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px 14px; gap: 5px; overflow: hidden; transition: padding 0.6s ease; }
.markets-card.active .markets-card-content { flex: 1 1 0; padding: 18px 20px; }

.markets-card-name { font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-size 0.6s ease; }
.markets-card.active .markets-card-name { font-size: 16px; white-space: normal; margin-bottom: 2px; }

.markets-card-desc { font-size: 12px; color: #64748b; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease 0.1s; }
.markets-card.active .markets-card-desc { max-height: 60px; opacity: 1; }

.markets-card-footer { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.markets-stat { font-size: 11px; font-weight: 600; color: #3b82f6; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.markets-binance-tag { font-size: 11px; font-weight: 700; color: #fff; background: #1e293b; border-radius: 100px; padding: 3px 10px; white-space: nowrap; letter-spacing: 0.01em; box-shadow: 0 2px 8px rgba(15,23,42,0.18); }

@media (max-width: 767px) {
  .markets-row { flex-direction: column; height: auto; }
  .markets-card, .markets-card.active { flex: 1 1 auto !important; flex-direction: column !important; }
  .markets-card-img, .markets-card.active .markets-card-img { flex: none !important; width: 100% !important; height: 120px; border-right: none; border-bottom: 1px solid rgba(59,130,246,0.07); }
  .markets-card-desc { max-height: 60px; opacity: 1; }
  .markets.section-vh-lg { height: auto !important; min-height: unset !important; overflow: visible !important; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
}


/* ── PRICING SECTION MOBILE UNLOCK ── */
@media (max-width: 767px) {
  .pricing-section.section-vh-xl { height: auto !important; min-height: unset !important; overflow: visible !important; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
}


/* ── PLATFORMS ── */
.platforms .container { position: relative; z-index: 1; }
.platforms-tabs { display: flex; justify-content: center; background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.15); border-radius: 100px; padding: 5px; width: fit-content; margin: 0 auto 56px; }
.platforms-tab { padding: 10px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; color: rgba(240,246,255,0.35); cursor: pointer; border: none; background: transparent; font-family: var(--font); transition: all 0.25s ease; white-space: nowrap; }
.platforms-tab.active { background: rgba(37,99,235,0.3); color: #f0f6ff; border: 1px solid rgba(96,165,250,0.3); box-shadow: 0 2px 12px rgba(37,99,235,0.25); }
.platforms-panel { display: none; }
.platforms-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; animation: platforms-panel-in 0.5s cubic-bezier(0.22,1,0.36,1); }
@keyframes platforms-panel-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.platforms-panel--flip { direction: rtl; }
.platforms-panel--flip > * { direction: ltr; }

.platforms-img { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #0d1f3c, #071428); border: 1px solid rgba(96,165,250,0.12); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.platforms-img img { width: 80%; height: 80%; object-fit: contain; transition: transform 0.5s ease; }
.platforms-panel.active .platforms-img img { transform: scale(1.03); }
.platforms-img-badge { position: absolute; bottom: 20px; left: 20px; z-index: 2; background: rgba(2,12,27,0.85); backdrop-filter: blur(10px); border: 1px solid rgba(96,165,250,0.2); border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.platforms-img-badge-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: platforms-dot-pulse 2s infinite; }
@keyframes platforms-dot-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }
.platforms-img-badge span { font-size: 12px; font-weight: 700; color: #f0f6ff; }

.platforms-text { display: flex; flex-direction: column; gap: 22px; }
.platforms-text-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(96,165,250,0.4); }
.platforms-text h3 { font-size: 34px; font-weight: 800; color: #f0f6ff; letter-spacing: -0.3px; line-height: 1.2; }
.platforms-text h3 span { background: linear-gradient(135deg,#60a5fa,#2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.platforms-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.platforms-tag { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.18); color: #60a5fa; }
.platforms-tag--soon { background: rgba(250,204,21,0.08); border-color: rgba(250,204,21,0.2); color: #ca8a04; }

.platforms-actions { display: flex; flex-direction: column; gap: 14px; }
.platforms-dl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.platforms-dl-btn { display: flex; align-items: center; gap: 5px; padding: 8px 14px; background: rgba(13,31,60,0.6); border: 1px solid rgba(96,165,250,0.18); border-radius: 10px; font-size: 11.5px; font-weight: 600; color: #f0f6ff; text-decoration: none; font-family: var(--font); transition: all 0.2s; }
.platforms-dl-btn:hover { border-color: rgba(96,165,250,0.45); background: rgba(30,58,138,0.3); transform: translateY(-1px); }
.platforms-cta-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: #60a5fa; text-decoration: none; transition: gap 0.2s; }
.platforms-cta-link:hover { gap: 11px; }
.platforms-coming-note { font-size: 13px; color: rgba(240,246,255,0.25); }

@media (max-width: 900px) {
  .platforms-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .platforms-panel--flip { direction: ltr; }
  .platforms-tabs { flex-wrap: wrap; border-radius: 20px; }
  .platforms-text h3 { font-size: 26px; }
}
@media (max-width: 767px) {
  .platforms-tabs { width: 100%; margin: 0 auto 32px; }
  .platforms-tab { padding: 8px 12px; font-size: 11px; flex: 1; text-align: center; }
  .platforms-img-badge { padding: 6px 10px; }
  .platforms-img-badge span { font-size: 10px; }
  .platforms-img-badge-dot { width: 6px; height: 6px; }
  .platforms-text h3 { font-size: 22px; }
  .platforms-text p { font-size: 13px; }
}

/* ── HOW IT WORKS ── */
.how-it-works-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.how-it-works-visual { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 120px; align-self: flex-start; }
.how-it-works-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11; background: #f8fafc; box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.08); width: 80%; margin-left: auto; }
.how-it-works-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.how-it-works-img.active { opacity: 1; }
.how-it-works-label { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; margin-left: auto; width: 80%; }
.how-it-works-step-count { font-size: 12px; color: #94a3b8; font-weight: 500; }
.how-it-works-step-name { font-size: 13px; font-weight: 700; color: var(--color-accent); }

.timeline-step { display: flex; gap: 20px; }
.timeline-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 2px; }
.timeline-dot-wrap { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: #e2e8f0; border: 2px solid #e2e8f0; transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; flex-shrink: 0; z-index: 1; }
.timeline-step.active .timeline-dot, .timeline-step.done .timeline-dot { background: var(--color-accent); border-color: var(--color-accent); }
.timeline-step.active .timeline-dot { box-shadow: 0 0 0 4px rgba(37,99,235,0.15), 0 0 0 7px rgba(37,99,235,0.06); }
.timeline-line { width: 2px; height: 80px; background: #e2e8f0; border-radius: 2px; margin: 4px 0; position: relative; overflow: hidden; flex-shrink: 0; }
.timeline-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--color-accent); border-radius: 2px; }
.timeline-step.done .timeline-line-fill { height: 100%; }
.timeline-step.active .timeline-line-fill { animation: timeline-travel 3.6s linear forwards; }
@keyframes timeline-travel { 0% { height: 0%; } 100% { height: 100%; } }

.timeline-content { flex: 1; height: 80px; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; }
.timeline-num { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #cbd5e1; transition: color 0.4s ease; }
.timeline-step.active .timeline-num, .timeline-step.done .timeline-num { color: var(--color-accent); }
.timeline-title { font-size: 20px; font-weight: 700; color: #cbd5e1; line-height: 1.3; margin: 0; transition: color 0.4s ease; }
.timeline-step.active .timeline-title { color: var(--color-text-dark); }
.timeline-step.done .timeline-title { color: #94a3b8; }
.timeline-desc { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; opacity: 0; transition: opacity 0.4s ease; }
.timeline-step.active .timeline-desc { opacity: 1; }

@media (max-width: 991px) { .how-it-works-body { grid-template-columns: 1fr; gap: 40px; } .how-it-works-visual { position: static; } }
@media (max-width: 767px) {
  .timeline-line { height: 60px; }
  .how-it-works.section-vh-lg { height: auto !important; min-height: unset !important; overflow: visible !important; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
  .how-it-works-visual { align-items: center; width: 100%; }
  .how-it-works-frame { width: 100%; margin-left: 0; aspect-ratio: 4/3; }
  .how-it-works-label { width: 100%; margin-left: 0; padding: 0 2px; }
}


/* ── FAQ SECTION MOBILE UNLOCK ── */
@media (max-width: 767px) {
  .home-faq.section-vh-lg { height: auto !important; min-height: unset !important; overflow: visible !important; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
}