/* ==========================================================
 * Nestrohub AI - Premium SaaS Stylesheet
 * File: /public/assets/css/ai-how-it-works.css
 * Core Theme: Dark Luxury Architecture
 * ========================================================== */

:root {
    --nh-bg: #020617;
    --nh-surface: #0F172A;
    --nh-card: #1E293B;
    --nh-primary: #2563EB;
    --nh-primary-hover: #1d4ed8;
    --nh-border: rgba(255, 255, 255, 0.08);
    --nh-muted: #94a3b8;
    --nh-cyan: #38bdf8;
    --nh-gold: #fbbf24;
    --nh-text-success: #22c55e;
    --nh-text-danger: #ef4444;
}

/* Global Layout */
.nh-ai-page { position: relative; overflow-x: hidden; background-color: var(--nh-bg); color: #f8fafc; font-family: 'Poppins', sans-serif; }
.nh-container { width: 100%; max-width: 1400px; margin: auto; padding: 0 24px; }
.nh-ai-section { padding: 100px 0; position: relative; z-index: 1; }
.nh-bg-alternate { background-color: var(--nh-surface); border-top: 1px solid var(--nh-border); border-bottom: 1px solid var(--nh-border); }

/* Global Components */
.nh-card { background: var(--nh-card); border: 1px solid var(--nh-border); border-radius: 24px; transition: .35s ease; }
.nh-card:hover { transform: translateY(-8px); border-color: var(--nh-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Typography */
h1, h2, .nh-hero-title, .nh-section-title, .nh-card-title, .nh-stat-number, .nh-trust-metric { font-family: 'Playfair Display', serif; }
.nh-section-header-center { text-align: center; margin-bottom: 70px; display: flex; flex-direction: column; align-items: center; }
.nh-super-title { font-size: 0.85rem; font-weight: 700; color: var(--nh-cyan); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.nh-section-title { font-size: 52px; font-weight: 800; color: #ffffff; margin: 0 0 16px; }
.nh-section-desc { max-width: 700px; margin: 0 auto; font-size: 1.1rem; color: var(--nh-muted); line-height: 1.6; }

/* Buttons */
.nh-btn-primary { background: var(--nh-primary); color: #fff; padding: 16px 38px; border-radius: 50px; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s ease; border: none; }
.nh-btn-primary:hover { background: var(--nh-primary-hover); transform: translateY(-2px); color: #fff; }
.nh-btn-outline { border: 1px solid var(--nh-primary); color: #fff; background: transparent; padding: 16px 38px; border-radius: 50px; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s ease; }
.nh-btn-outline:hover { background: var(--nh-primary); color: #fff; }
.nh-btn-full { width: 100%; }

/* Text Utilities */
.nh-text-primary { color: var(--nh-primary); }
.nh-text-success { color: var(--nh-text-success); }
.nh-text-danger { color: var(--nh-text-danger); }
.nh-text-muted { color: var(--nh-muted); }

/* Animations */
.animate-fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-fade-up.is-visible { opacity: 1; transform: translateY(0); }
@keyframes nhShieldPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); } 70% { box-shadow: 0 0 0 30px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }

/* Ambient Glows */
.nh-ambient-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%); filter: blur(100px); z-index: 0; pointer-events: none; }
.glow-top-left { top: -100px; left: -200px; }
.glow-center-right { top: 40%; right: -200px; }

/* ==========================================================
 * 1. HERO SECTION
 * ========================================================== */
.nh-ai-hero { position: relative; padding: 170px 0 120px; text-align: center; border-bottom: 1px solid var(--nh-border); }
.nh-hero-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: 0; pointer-events: none; }
.nh-ai-hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.nh-trust-pills { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.nh-pill { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--nh-border); padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--nh-cyan); display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); }
.nh-hero-title { font-size: 72px; font-weight: 800; margin: 0 auto 24px; max-width: 1000px; line-height: 1.15; color: #ffffff; }
.nh-hero-desc { font-size: 20px; color: var(--nh-muted); line-height: 1.7; max-width: 800px; margin: 0 auto 40px; }
.nh-hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 70px; }
.nh-hero-stats { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 50px; border-top: 1px solid var(--nh-border); }
.nh-stat-item { display: flex; flex-direction: column; align-items: center; }
.nh-stat-number { font-size: 48px; font-weight: 800; color: #ffffff; margin-bottom: 8px; line-height: 1; }
.nh-stat-label { font-size: 0.9rem; color: var(--nh-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* ==========================================================
 * 2. WORKFLOW GRID
 * ========================================================== */
.nh-workflow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-top: 80px; }
.nh-workflow-card { position: relative; padding: 40px 30px; overflow: hidden; }
.nh-workflow-number { position: absolute; top: 20px; right: 25px; font-size: 54px; font-family: 'Playfair Display', serif; color: rgba(255,255,255,.05); font-weight: 800; }
.nh-workflow-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(59,130,246,.1); color: var(--nh-primary); font-size: 28px; margin-bottom: 25px; }
@media (min-width: 1200px) {
    .nh-workflow-card::after { content:""; position:absolute; top:70px; right:-30px; width:30px; height:2px; background:rgba(255,255,255,.1); }
    .nh-workflow-card:last-child::after { display:none; }
}
.nh-card-title { font-size: 24px; font-weight: 700; color: #ffffff; margin: 0 0 12px; }
.nh-card-desc { color: var(--nh-muted); font-size: 1rem; line-height: 1.6; margin: 0; }

/* ==========================================================
 * 3. FEATURES GRID
 * ========================================================== */
.nh-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.nh-feature-card { padding: 40px 32px; background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.1) 100%); }
.nh-feature-icon { width: 64px; height: 64px; border-radius: 16px; background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent); border: 1px solid rgba(56, 189, 248, 0.1); color: var(--nh-cyan); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; transition: transform 0.3s ease; }
.nh-feature-card:hover .nh-feature-icon { transform: scale(1.1); }
.nh-feature-card .nh-card-desc { margin-bottom: 24px; }

/* ==========================================================
 * 4. COMPARISON
 * ========================================================== */
.nh-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.nh-compare-card { padding: 50px; position: relative; }
.nh-ai-powered { border-color: var(--nh-primary); background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 41, 59, 0.5) 100%); box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15); }
.nh-compare-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--nh-primary), var(--nh-cyan)); color: #fff; padding: 8px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.nh-compare-list { list-style: none; padding: 0; margin: 0; }
.nh-compare-list li { padding: 16px 0; border-bottom: 1px solid var(--nh-border); color: #cbd5e1; display: flex; align-items: center; gap: 16px; font-size: 1.1rem; }
.nh-compare-list li:last-child { border-bottom: none; padding-bottom: 0; }
.nh-compare-list i { font-size: 1.4rem; }

/* ==========================================================
 * 5. TRUST BANNER
 * ========================================================== */
.nh-trust-banner { display: flex; align-items: center; justify-content: space-between; gap: 80px; min-height: 380px; padding: 60px 80px; background: linear-gradient(135deg, var(--nh-card) 0%, #0f172a 100%); }
.nh-trust-content { flex: 1; }
.nh-trust-banner .nh-section-title { text-align: left; }
.nh-trust-list { list-style: none; padding: 0; margin-top: 35px; }
.nh-trust-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; font-size: 18px; line-height: 1.8; }
.nh-trust-list i { color: #22c55e; font-size: 20px; margin-top: 4px; }
.nh-trust-list strong { color: #fff; margin-right: 8px; }
.nh-trust-side { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nh-trust-circle { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at top, rgba(59,130,246,.25), transparent 70%); border: 2px solid rgba(59,130,246,.45); display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 0 40px rgba(59,130,246,.15); transition: .35s; }
.nh-trust-circle:hover { transform: translateY(-8px); box-shadow: 0 0 60px rgba(59,130,246,.35); }
.nh-trust-circle i { font-size: 48px; color: #3b82f6; margin-bottom: 15px; }
.trust-percent { font-size: 42px; font-weight: 800; font-family: 'Playfair Display', serif; color: #fff; line-height: 1; }
.trust-label { margin-top: 10px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #94a3b8; }

/* ==========================================================
 * 6. ECOSYSTEM CATEGORIES
 * ========================================================== */
.nh-ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.nh-ecosystem-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.nh-ecosystem-img { width: 100%; height: 240px; object-fit: cover; border-bottom: 1px solid var(--nh-border); }
.nh-ecosystem-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.nh-ecosystem-content .nh-card-desc { margin-bottom: 24px; flex-grow: 1; }

/* ==========================================================
 * 7. TESTIMONIALS
 * ========================================================== */
.nh-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.nh-testimonial-card { padding: 40px; }
.nh-stars { color: var(--nh-gold); font-size: 20px; letter-spacing: 2px; margin-bottom: 20px; }
.nh-review-text { font-size: 1.15rem; font-style: italic; color: #e2e8f0; line-height: 1.8; margin: 0 0 30px; }
.nh-reviewer-profile { display: flex; align-items: center; gap: 16px; }
.nh-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.nh-reviewer-name { margin: 0 0 4px; font-size: 1.1rem; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.nh-reviewer-role { font-size: 0.9rem; color: var(--nh-muted); }

/* ==========================================================
 * 8. FAQ ACCORDION
 * ========================================================== */
.nh-faq-list { max-width: 900px; margin: 60px auto 0; }
.nh-faq-item { margin-bottom: 18px; overflow: hidden; padding: 0; }
.nh-faq-question { width: 100%; background: none; border: 0; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 26px 30px; cursor: pointer; font-size: 20px; font-weight: 600; font-family: 'Poppins', sans-serif; transition: 0.3s; }
.nh-faq-question:hover { color: var(--nh-primary); }
.nh-faq-icon { font-size: 28px; color: var(--nh-primary); transition: .3s; }
.nh-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.nh-faq-answer-inner { padding: 0 30px 30px; color: var(--nh-muted); line-height: 1.8; font-size: 1rem; }
.nh-faq-item.active .nh-faq-answer { max-height: 300px; }
.nh-faq-item.active .nh-faq-icon { transform: rotate(45deg); }
.nh-faq-item.active .nh-faq-question { color: var(--nh-primary); background: rgba(37, 99, 235, 0.05); border-bottom: 1px solid var(--nh-border); }

/* ==========================================================
 * 9. CTA
 * ========================================================== */
.nh-cta-box { text-align: center; padding: 80px 40px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(2, 6, 23, 0.95) 100%); }
.nh-cta-box .nh-section-title { margin-bottom: 16px; }
.nh-cta-actions { display: flex; justify-content: center; gap: 20px; margin: 40px 0 30px; }
.nh-cta-trust { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ==========================================================
 * RESPONSIVE BREAKPOINTS
 * ========================================================== */
@media (max-width: 1200px) {
    .nh-workflow-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .nh-section-header-center .nh-section-title { font-size: 44px; }
    .nh-ai-hero-title { font-size: 56px; }
    .nh-comparison-grid { grid-template-columns: 1fr; }
    .nh-trust-banner { flex-direction: column; text-align: center; padding: 50px 30px; gap: 40px; }
    .nh-trust-list { text-align: left; }
    .nh-trust-circle { width: 180px; height: 180px; }
    .nh-ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nh-ai-section { padding: 80px 0; }
    .nh-ai-hero { padding: 140px 0 80px; }
    .nh-ai-hero-title { font-size: 42px; }
    .nh-ai-hero-actions, .nh-cta-actions { flex-direction: column; width: 100%; max-width: 350px; margin: 0 auto 40px; }
    .nh-ai-hero-actions a, .nh-cta-actions a { width: 100%; justify-content: center; }
    .nh-hero-stats { grid-template-columns: repeat(2, 1fr); }
    
    .nh-workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .nh-workflow-card::after { display: none; }
    
    .nh-ecosystem-grid { grid-template-columns: 1fr; }
    .nh-testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .nh-container { padding: 0 16px; }
    .nh-section-header-center .nh-section-title { font-size: 36px; }
    .nh-ai-hero-title { font-size: 36px; }
    .nh-hero-stats { grid-template-columns: 1fr; }
    .nh-workflow-grid { grid-template-columns: 1fr; }
    .nh-features-grid { grid-template-columns: 1fr; }
    .nh-compare-card { padding: 30px 20px; }
    .nh-faq-question { padding: 18px 20px; font-size: 1.1rem; }
    .nh-faq-answer-inner { padding: 0 20px 20px; }
}
