/* ==========================================================================
   NAVIONFX — tools.css
   Shared how-to steps section used across all tool pages
   ========================================================================== */


/* ── HOW TO USE SECTION ── */
.how-to-section { position: relative; overflow: hidden; }
.how-to-section::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; z-index: 0; }
.how-to-section .container { position: relative; z-index: 1; }
.how-to-wrap { max-width: 900px; margin: 0 auto; }

/* ── STEP NODES ── */
.how-to-nodes { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; padding: 0 40px; }
.how-to-node-col { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.how-to-connector { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(37,99,235,0.3), #2563eb, rgba(37,99,235,0.3)); position: relative; overflow: hidden; }
.how-to-connector::after { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); animation: howToShimmer 2.5s linear infinite; }

.how-to-node { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.how-to-node--outline { background: #fff; border: 2px solid #2563eb; box-shadow: 0 0 0 8px rgba(37,99,235,0.08); }
.how-to-node--filled { background: #2563eb; border: 2px solid #2563eb; box-shadow: 0 0 0 10px rgba(37,99,235,0.12), 0 8px 28px rgba(37,99,235,0.35); }
.how-to-node-num { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: #2563eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; font-family: var(--font); line-height: 1; }
.how-to-node-num--dark { background: #fff; color: #2563eb; border: 2px solid #2563eb; }

/* ── STEP CARDS ── */
.how-to-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.how-to-card { background: #fff; border: 1.5px solid rgba(37,99,235,0.1); border-radius: 20px; padding: 28px 24px; box-shadow: 0 4px 24px rgba(37,99,235,0.07); display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden; }
.how-to-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(37,99,235,0.13); border-color: rgba(37,99,235,0.25); }
.how-to-card--featured { border: 2px solid rgba(37,99,235,0.28); box-shadow: 0 8px 40px rgba(37,99,235,0.13); }
.how-to-card--featured:hover { box-shadow: 0 20px 56px rgba(37,99,235,0.18); border-color: rgba(37,99,235,0.4); }
.how-to-card-topbar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb); background-size: 200% 100%; animation: howToShimmer2 2s linear infinite; }

.how-to-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; padding: 5px 13px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font); width: fit-content; }
.how-to-badge--blue { background: rgba(37,99,235,0.07); border: 1px solid rgba(37,99,235,0.15); color: #2563eb; }
.how-to-badge--filled { background: #2563eb; color: #fff; }
.how-to-badge--green { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #16a34a; }

.how-to-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; animation: howToDotPulse 2s infinite; }
.how-to-dot--blue { background: #2563eb; }
.how-to-dot--white { background: #fff; }
.how-to-dot--green { background: #22c55e; }

.how-to-card-title { font-size: 17px; font-weight: 700; color: #0d1321; margin: 0; line-height: 1.3; font-family: var(--font); }
.how-to-card-desc { font-size: 13px; color: rgba(15,23,42,0.5); line-height: 1.7; margin: 0; font-family: var(--font); }

/* ── BOTTOM CTA ── */
.how-to-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; padding: 24px 32px; background: #fff; border: 1.5px solid rgba(37,99,235,0.1); border-radius: 20px; box-shadow: 0 2px 20px rgba(37,99,235,0.06); flex-wrap: wrap; max-width: 900px; margin-left: auto; margin-right: auto; }
.how-to-cta-text { font-size: 14px; color: rgba(15,23,42,0.5); margin: 0; font-family: var(--font); }
.how-to-cta .btn-primary, .how-to-cta .btn-secondary { width: 150px; text-align: center; padding: 10px 0 !important; font-size: 13px !important; }



@keyframes howToDotPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.8); } }
@keyframes howToShimmer { 0% { left:-100%; } 100% { left:200%; } }
@keyframes howToShimmer2 { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

@media (max-width: 767px) {
  .how-to-cards { grid-template-columns: 1fr; }
  .how-to-nodes { padding: 0 20px; }
  .how-to-node { width: 56px; height: 56px; }
  .how-to-node--filled { width: 64px; height: 64px; }
  .how-to-cta { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .how-to-cta .btn-primary, .how-to-cta .btn-secondary { width: 100%; max-width: 280px; }
  .hero-btns-left { justify-content: center; }
  .hero-chips { justify-content: center; }
}
@media (max-width: 480px) { .how-to-nodes { display: none; } }