/* ═══════════════════════════════════════════════════════════════
   Feature Pages — Shared Styles
   Extends the main style.css design system
   ═══════════════════════════════════════════════════════════════ */

/* ─── FEATURE HERO ─── */
.feature-hero{min-height:60vh;display:flex;align-items:center;position:relative;padding:160px 28px 80px;overflow:hidden;background:linear-gradient(180deg,#f0fdf8 0%,#fafffe 40%,#fff 100%)}
.feature-hero-bg{position:absolute;inset:0;overflow:hidden}
.feature-hero-bg .orb-1{position:absolute;width:800px;height:800px;top:-30%;left:-15%;background:radial-gradient(circle,rgba(4,120,87,.08),transparent 60%);border-radius:50%;animation:hero-drift 18s ease-in-out infinite}
.feature-hero-bg .orb-2{position:absolute;width:600px;height:600px;bottom:-20%;right:-10%;background:radial-gradient(circle,rgba(139,92,246,.05),transparent 55%);border-radius:50%;animation:hero-drift 22s ease-in-out infinite reverse}

.feature-hero-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:64px;position:relative;z-index:2}
.feature-hero-text{flex:1.2}
.feature-hero-visual{flex:1;display:flex;justify-content:center}

.feature-hero-pill{display:inline-flex;align-items:center;gap:10px;padding:8px 20px;background:rgba(4,120,87,.06);border:1px solid rgba(4,120,87,.12);border-radius:100px;font-size:.78rem;font-weight:600;color:var(--emerald-700);margin-bottom:28px}
.feature-hero-pill .pill-dot{width:8px;height:8px;background:var(--emerald-500);border-radius:50%;box-shadow:0 0 14px rgba(4,120,87,.5);animation:pulse 2s infinite}

.feature-hero-text h1{font-size:clamp(2.4rem,5vw,3.8rem);font-weight:900;line-height:1.08;letter-spacing:-.04em;color:var(--text-primary);margin-bottom:20px}
.feature-hero-text .hero-desc{font-size:clamp(1rem,1.8vw,1.15rem);color:var(--text-secondary);line-height:1.75;max-width:520px;margin-bottom:36px}

.feature-hero-visual img{width:100%;max-width:320px;border-radius:28px;box-shadow:0 32px 80px rgba(0,0,0,.1),0 0 0 1px rgba(4,120,87,.06);border:3px solid rgba(4,120,87,.08)}

/* ─── FEATURE STATS BAR ─── */
.feature-stats{padding:32px 0;background:rgba(4,120,87,.02);border-top:1px solid rgba(4,120,87,.06);border-bottom:1px solid rgba(4,120,87,.06)}
.feature-stats-inner{max-width:1200px;margin:0 auto;padding:0 28px;display:flex;justify-content:center;gap:56px;flex-wrap:wrap}
.feature-stat{text-align:center}
.feature-stat-value{font-size:1.8rem;font-weight:900;color:var(--emerald-700)}
.feature-stat-label{font-size:.78rem;color:var(--text-muted);font-weight:500;margin-top:4px}

/* ─── HIGHLIGHT CARDS ─── */
.feature-highlights{padding:100px 0;background:#fff;position:relative}
.feature-highlights::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 30% 50%,rgba(4,120,87,.03),transparent 50%);pointer-events:none}
.highlights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:56px;position:relative;z-index:1}
.highlight-card{padding:36px 28px;background:rgba(255,255,255,.85);backdrop-filter:blur(16px);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);transition:.45s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:var(--shadow-card)}
.highlight-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent,var(--emerald-500)),transparent);opacity:.4}
.highlight-card:hover{transform:translateY(-6px);border-color:var(--border-glow);box-shadow:var(--shadow-lg)}
.highlight-icon{width:56px;height:56px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;background:rgba(4,120,87,.05);border:1px solid rgba(4,120,87,.08);border-radius:16px;margin-bottom:20px}
.highlight-card h3{font-size:1.15rem;font-weight:700;color:var(--text-primary);margin-bottom:10px}
.highlight-card p{font-size:.88rem;color:var(--text-muted);line-height:1.7}

/* ─── HOW IT WORKS (Feature page variant) ─── */
.feature-steps{padding:100px 0;background:linear-gradient(180deg,var(--emerald-50),#ecfdf5);border-top:1px solid rgba(4,120,87,.06);border-bottom:1px solid rgba(4,120,87,.06)}
.feature-steps-row{display:flex;align-items:flex-start;justify-content:center;gap:28px;margin-top:56px}
.feature-step{text-align:center;flex:1;max-width:300px;padding:40px 24px;background:rgba(255,255,255,.85);backdrop-filter:blur(12px);border:1px solid rgba(4,120,87,.08);border-radius:var(--radius-lg);transition:.45s;box-shadow:var(--shadow-card)}
.feature-step:hover{transform:translateY(-6px);border-color:var(--border-glow);box-shadow:var(--shadow-lg)}
.feature-step-num{width:48px;height:48px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--emerald-700),var(--emerald-600));color:#fff;font-weight:900;font-size:1.1rem;border-radius:50%;box-shadow:0 6px 20px rgba(4,120,87,.2)}
.feature-step-emoji{font-size:2.4rem;margin-bottom:16px}
.feature-step h3{font-size:1.2rem;font-weight:800;margin-bottom:10px}
.feature-step p{font-size:.86rem;color:var(--text-secondary);line-height:1.65}
.feature-step-arrow{font-size:1.6rem;color:rgba(4,120,87,.2);font-weight:300;margin-top:60px}

/* ─── FEATURE DETAILS SECTION ─── */
.feature-details{padding:100px 0;background:#fff}
.details-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:56px}
.detail-item{display:flex;gap:16px;padding:24px;background:var(--bg-secondary);border:1px solid var(--border-subtle);border-radius:16px;transition:.35s}
.detail-item:hover{border-color:var(--border-glow);transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.04)}
.detail-check{width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--emerald-600),var(--emerald-500));color:#fff;font-size:.9rem;font-weight:700;border-radius:10px;box-shadow:0 4px 12px rgba(4,120,87,.15)}
.detail-item h4{font-size:.95rem;font-weight:700;color:var(--text-primary);margin-bottom:4px}
.detail-item p{font-size:.84rem;color:var(--text-muted);line-height:1.6}

/* ─── FEATURE CTA ─── */
.feature-cta{padding:120px 0;text-align:center;position:relative;overflow:hidden;background:linear-gradient(135deg,var(--emerald-800),var(--emerald-700),var(--emerald-600))}
.feature-cta .cta-bg{position:absolute;inset:0}
.feature-cta .cta-orb{position:absolute;border-radius:50%;filter:blur(120px);pointer-events:none}
.feature-cta .cta-orb-1{width:500px;height:500px;top:-25%;left:15%;background:rgba(16,185,129,.2);animation:hero-drift 14s infinite}
.feature-cta .cta-orb-2{width:350px;height:350px;bottom:-15%;right:15%;background:rgba(255,255,255,.06);animation:hero-drift 18s infinite reverse}
.feature-cta h2{font-size:clamp(2rem,4.5vw,3.4rem);font-weight:900;color:#fff;margin-bottom:16px;letter-spacing:-.035em;position:relative;z-index:1}
.feature-cta p{color:rgba(255,255,255,.65);font-size:1.05rem;max-width:480px;margin:0 auto 36px;line-height:1.75;position:relative;z-index:1}
.feature-cta .btn-glow{background:rgba(255,255,255,.95);color:var(--emerald-800);box-shadow:0 8px 32px rgba(0,0,0,.15);position:relative;z-index:1;animation:none}
.feature-cta .btn-glow:hover{background:#fff;transform:translateY(-3px);box-shadow:0 12px 48px rgba(0,0,0,.2)}

/* ─── RELATED FEATURES ─── */
.related-features{padding:80px 0;background:var(--bg-secondary)}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:44px}
.related-card{padding:28px 24px;background:#fff;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);transition:.45s;text-align:center;box-shadow:var(--shadow-card)}
.related-card:hover{transform:translateY(-5px);border-color:var(--border-glow);box-shadow:var(--shadow-lg)}
.related-card .related-emoji{font-size:2rem;margin-bottom:12px}
.related-card h3{font-size:1rem;font-weight:700;margin-bottom:6px}
.related-card p{font-size:.82rem;color:var(--text-muted);line-height:1.6;margin-bottom:16px}
.related-card a{font-size:.82rem;font-weight:600;color:var(--emerald-700);border-bottom:1px solid rgba(4,120,87,.2);transition:.3s}
.related-card a:hover{border-bottom-color:var(--emerald-600)}

/* ─── FEATURES INDEX PAGE ─── */
.features-index-hero{padding:160px 28px 60px;text-align:center;background:linear-gradient(180deg,#f0fdf8 0%,#fafffe 50%,#fff 100%);position:relative;overflow:hidden}
.features-index-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(4,120,87,.06),transparent 50%);pointer-events:none}
.features-index-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:60px 0 100px;max-width:1200px;margin:0 auto;position:relative;z-index:1}
.features-index-card{display:flex;flex-direction:column;padding:36px 28px;background:#fff;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);transition:.45s;box-shadow:var(--shadow-card);overflow:hidden;position:relative}
.features-index-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent,var(--emerald-500)),transparent);opacity:.4}
.features-index-card:hover{transform:translateY(-6px);border-color:var(--border-glow);box-shadow:var(--shadow-lg)}
.features-index-card .fi-emoji{font-size:2.4rem;margin-bottom:16px}
.features-index-card h3{font-size:1.15rem;font-weight:700;margin-bottom:10px}
.features-index-card p{font-size:.86rem;color:var(--text-muted);line-height:1.65;margin-bottom:20px;flex:1}
.features-index-card .fi-link{font-size:.85rem;font-weight:600;color:var(--emerald-700);display:inline-flex;align-items:center;gap:6px;transition:.3s}
.features-index-card:hover .fi-link{color:var(--emerald-600);gap:10px}

/* ─── BREADCRUMB ─── */
.breadcrumb{padding:0;margin-bottom:8px;display:flex;gap:8px;align-items:center;font-size:.78rem;color:var(--text-muted)}
.breadcrumb a{color:var(--emerald-600);font-weight:500}
.breadcrumb a:hover{color:var(--emerald-700)}
.breadcrumb-sep{opacity:.4}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .feature-hero-inner{flex-direction:column;text-align:center}
  .feature-hero-text{align-items:center;display:flex;flex-direction:column}
  .feature-hero-text .hero-desc{margin-left:auto;margin-right:auto}
  .highlights-grid{grid-template-columns:repeat(2,1fr)}
  .feature-steps-row{flex-direction:column;align-items:center}
  .feature-step-arrow{transform:rotate(90deg);margin-top:0}
  .details-grid{grid-template-columns:1fr}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .features-index-grid{grid-template-columns:repeat(2,1fr);padding-left:28px;padding-right:28px}
}
@media(max-width:768px){
  .feature-hero{min-height:auto;padding:140px 28px 60px}
  .highlights-grid{grid-template-columns:1fr}
  .feature-stats-inner{gap:32px}
  .related-grid{grid-template-columns:1fr;max-width:400px;margin-left:auto;margin-right:auto}
  .features-index-grid{grid-template-columns:1fr;padding-left:20px;padding-right:20px}
}
