/* ============================================
   SECTION COMPONENTS
   - Guide Section (Dark Banner)
   - Calcumate Container
   - Testimonials
   - How It Works (Split Hero + Steps)
   ============================================ */

/* ── Guide Section ─────────────────────────── */
/* ── Guide Section — Dark Banner ──────────── */
.guide-section {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Ambient glows */
.guide-ambient {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 69, 38, 0.08), transparent 70%);
    top: -150px;
    right: -100px;
    z-index: 0;
    animation: about-float 10s ease-in-out infinite;
    pointer-events: none;
}

.guide-ambient-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05), transparent 70%);
    bottom: -100px;
    left: -80px;
    z-index: 0;
    animation: about-float 12s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Dot pattern */
.guide-dot-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.guide-container {
    z-index: 1;
    position: relative;
}

/* Banner layout */
.guide-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

/* Left content */
.guide-banner-content {
    flex: 1;
    min-width: 0;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: var(--weight-bold);
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    background: rgba(234, 69, 38, 0.15);
    color: var(--primary-light);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.guide-badge i {
    font-size: 10px;
}

.guide-banner-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    color: #F9FAFB;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.guide-banner-desc {
    font-size: var(--text-base);
    color: #D1D5DB;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Inline steps row */
.guide-inline-steps {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    justify-content: center;
}

.guide-inline-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-inline-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    box-shadow: 0 2px 8px rgba(234, 69, 38, 0.3);
    flex-shrink: 0;
}

.guide-inline-label {
    font-size: var(--text-sm);
    color: #E5E7EB;
    font-weight: var(--weight-medium);
}

/* CTA buttons */
.guide-banner-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.guide-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563EB;
    color: #fff;
    font-weight: var(--weight-semibold);
    padding: 14px 28px;
    border-radius: var(--border-radius-full);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all var(--dur) var(--ease);
    border: none;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
    font-size: var(--text-base);
}

.guide-cta-btn i {
    font-size: 14px;
    transition: transform var(--dur-fast) var(--ease);
}

.guide-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    background: #3B82F6;
    color: #fff;
}

.guide-cta-btn:hover i {
    transform: rotate(90deg);
}

.guide-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #E5E7EB;
    font-weight: var(--weight-semibold);
    padding: 13px 24px;
    border-radius: var(--border-radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: all var(--dur) var(--ease);
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
    font-size: var(--text-base);
}

.guide-outline-btn i {
    font-size: 13px;
    transition: transform var(--dur-fast) var(--ease);
}

.guide-outline-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.guide-outline-btn:hover i {
    transform: scaleX(1.2);
}

/* Right visual — isometric unit comparison */
.guide-banner-visual {
    flex-shrink: 0;
    max-width: 100%;
    width: 100%;
}

.guide-iso-scene {
    width: 100%;
    height: auto;
}

.guide-iso-unit {
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.guide-iso-unit:hover {
    filter: brightness(1.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .guide-ambient,
    .guide-ambient-2 {
        animation: none;
    }
}

/* Calcumate container */
.calcumate-container {
    text-align: center;
    background: var(--surface);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border-light);
}

#calcumate-root {
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: auto;
}

/* ── Testimonials ──────────────────────────── */
.testimonials-section {
    background-color: var(--surface);
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: var(--surface);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    margin: 0 15px 30px;
    transition: border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-100);
}

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--primary-light);
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.15;
    transition: all var(--dur) var(--ease);
}

.testimonial-card:hover .testimonial-quote {
    transform: translateY(-3px) rotate(10deg);
    opacity: 0.25;
}

.testimonial-text {
    font-size: var(--text-md);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    line-height: 1.65;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card:hover .testimonial-avatar {
    border-radius: 50%;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-info h5 {
    margin: 0 0 5px;
    font-weight: var(--weight-semibold);
    font-size: var(--text-md);
}

.testimonial-info span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.testimonial-rating {
    margin-top: 15px;
    color: var(--warning-color);
    font-size: 16px;
}

/* ── How It Works ──────────────────────────── */
/* ── How It Works — Split Hero + Steps ─────── */
.how-it-works {
    background: linear-gradient(180deg, var(--surface), #FAFBFE);
    position: relative;
    overflow: hidden;
}

/* Ambient */
.hiw-ambient {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-50), transparent 70%);
    top: -120px;
    right: -100px;
    z-index: 0;
    animation: about-float 10s ease-in-out infinite;
    pointer-events: none;
}

.hiw-ambient-2 {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--info-ghost), transparent 70%);
    bottom: -100px;
    left: -80px;
    z-index: 0;
    animation: about-float 12s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Two-column layout */
.hiw-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ── Left: Hero Card ── */
.hiw-hero-card {
    background: linear-gradient(135deg, #FEF5F3, #FFF8F6);
    border-radius: var(--border-radius-xl);
    padding: 36px 32px;
    border: 1px solid rgba(234, 69, 38, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.hiw-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: var(--weight-bold);
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    background: rgba(234, 69, 38, 0.08);
    color: var(--primary-color);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.hiw-badge i {
    font-size: 10px;
}

.hiw-hero-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.hiw-hero-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Feature highlights 2x2 grid */
.hiw-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
}

.hiw-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hiw-highlight-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--dur) var(--ease);
}

.hiw-hero-card:hover .hiw-highlight-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.hiw-highlight-text {
    display: flex;
    flex-direction: column;
}

.hiw-highlight-text strong {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--gray-900);
    line-height: 1.3;
}

.hiw-highlight-text span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

/* Stats row */
.hiw-stats {
    display: flex;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(234, 69, 38, 0.08);
}

.hiw-stat {
    display: flex;
    flex-direction: column;
}

.hiw-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--weight-extrabold);
    color: var(--primary-color);
    font-family: var(--font-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hiw-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--weight-medium);
}

/* ── Right: Step Cards ── */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hiw-step-card {
    background: var(--surface);
    border-radius: var(--border-radius-xl);
    padding: 22px 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}

/* Left accent bar on hover */
.hiw-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 var(--border-radius-full) var(--border-radius-full) 0;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease-spring);
}

.hiw-step-card:hover::before {
    transform: scaleY(1);
}

.hiw-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(234, 69, 38, 0.06);
    border-color: var(--primary-100);
}

.hiw-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    box-shadow: var(--shadow-primary);
    transition: all var(--dur) var(--ease);
}

.hiw-step-card:hover .hiw-step-num {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary-lg);
}

.hiw-step-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--dur) var(--ease);
}

.hiw-step-card:hover .hiw-step-icon {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.hiw-step-content {
    flex: 1;
    min-width: 0;
}

.hiw-step-title {
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    color: var(--gray-900);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
    transition: color var(--dur-fast) var(--ease);
}

.hiw-step-card:hover .hiw-step-title {
    color: var(--primary-color);
}

.hiw-step-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hiw-ambient,
    .hiw-ambient-2 {
        animation: none;
    }
    .hiw-step-card::before {
        transition: none;
    }
}