/* assets/css/how_it_works.css */
:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --secondary: #0f172a;
    --bg: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

/* Base resets for the page specific elements */
.hiw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section */
.hiw-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: var(--white);
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hiw-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hiw-hero .hiw-container {
    position: relative;
    z-index: 2;
}

.hiw-hero-badge {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hiw-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hiw-hero h1 span {
    color: var(--primary-light);
}

.hiw-hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hiw-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-hiw-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hiw-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(13, 148, 136, 0.5);
    color: var(--white);
}

.btn-hiw-outline {
    background: transparent;
    color: var(--white);
    text-decoration: none;
    padding: 13px 31px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hiw-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}

/* Section Global Styles */
.hiw-section {
    padding: 6rem 0;
    background: var(--white);
}

.hiw-section.alt-bg {
    background: var(--bg);
}

.hiw-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hiw-section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hiw-section-header h2 span {
    color: var(--primary);
}

.hiw-section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline / Steps Section */
.hiw-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hiw-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: rgba(13, 148, 136, 0.2);
    border-radius: 2px;
}

.hiw-step {
    position: relative;
    padding-left: 100px;
    margin-bottom: 4rem;
}

.hiw-step:last-child {
    margin-bottom: 0;
}

.hiw-step-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
    z-index: 2;
}

.hiw-step-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.hiw-step-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.hiw-step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hiw-step-content h3 i {
    color: var(--primary);
    font-size: 1.25rem;
    background: rgba(13, 148, 136, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.hiw-step-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* KYC Grid */
.kyc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.kyc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.kyc-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.08);
}

.kyc-icon {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.kyc-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.kyc-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Split Features (Deposit/Withdraw) */
.hiw-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.hiw-split:last-child {
    margin-bottom: 0;
}

.hiw-split.reverse {
    flex-direction: row-reverse;
}

.hiw-split-content {
    flex: 1;
}

.hiw-split-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hiw-split-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hiw-feature-list {
    list-style: none;
    padding: 0;
}

.hiw-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
}

.hiw-feature-list li i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.hiw-split-visual {
    flex: 1;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(13, 148, 136, 0.15));
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hiw-mockup-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
}

.hiw-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.hiw-mockup-header div {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1rem;
}

.hiw-mockup-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.hiw-mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border);
}

.hiw-mockup-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hiw-mockup-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hiw-mockup-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* FAQ Accordion */
.hiw-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.hiw-faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hiw-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.08);
}

.hiw-faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
}

.hiw-faq-question i {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.hiw-faq-item.active .hiw-faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.hiw-faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    line-height: 1.6;
}

.hiw-faq-item.active .hiw-faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
}

/* Responsive */
@media (max-width: 992px) {
    .hiw-split, .hiw-split.reverse {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hiw-hero h1 {
        font-size: 2.5rem;
    }
    .hiw-timeline::before {
        left: 20px;
    }
    .hiw-step {
        padding-left: 60px;
    }
    .hiw-step-marker {
        width: 32px;
        height: 32px;
        left: 4px;
        font-size: 0.9rem;
    }
    .hiw-step-content {
        padding: 1.5rem;
    }
    .hiw-cta-group {
        flex-direction: column;
    }
    .btn-hiw-primary, .btn-hiw-outline {
        width: 100%;
        justify-content: center;
    }
}
