@charset "UTF-8";

:root {
    --primary-color: #146DED;
    --primary-dark: #0f5bb5;
    --secondary-color: #F5F7FA;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 16px;
    /* Base size for mobile readability */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Container */
.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Hero Section - Mobile First */
.hero {
    background: var(--white);
    color: var(--text-color);
    padding: 100px 0 40px;
    position: relative;
    text-align: center;
    /* Center on mobile */
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    /* Stack vertically on mobile */
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.hero-text {
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #000;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 500;
    color: var(--text-light);
}

.hero-slogan {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 4px 12px;
    background: #e6f0ff;
    color: var(--primary-color);
    display: inline-block;
    border-radius: 50px;
}

.hero-desc {
    margin-bottom: 30px;
    font-size: 1rem;
    opacity: 0.9;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.hero-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 16px rgba(20, 109, 237, 0.25);
    transition: transform 0.2s active 0.1s;
    width: 100%;
    /* Full width on very small screens, or mostly full */
    max-width: 280px;
}

.hero-btn:active {
    transform: scale(0.98);
}

.hero-image-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -10px;
}

.phone-mockup {
    width: 270px;
    /* Slightly wider */
    height: 585px;
    /* Taller to match modern aspect ratio better (approx 9:19.5) */
    background: #333;
    /* Changed to dark grey to match image top and hide white gap */
    border-radius: 12px;
    /* Minimal radius to avoid cutting corners */
    border: 4px solid #333;
    /* Thin bezel */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    /* Padding removed to let image fill the screen */
    background-color: #333;
    /* Dark background for any letterboxing */
    overflow: hidden;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure 100% of image is visible without cropping */
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    /* Match inner radius closely */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.phone-mockup img.active {
    opacity: 1;
    z-index: 2;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.4;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    /* Horizontal layout for feature card on mobile */
    align-items: center;
    text-align: left;
    border: 1px solid #f0f0f0;
    gap: 20px;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(20, 109, 237, 0.08);
    /* Light blue bg */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-text {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Roles Section */
.roles {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.role-container {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    gap: 30px;
}

.role-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.role-header {
    padding: 25px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-merchant {
    background: linear-gradient(135deg, #146DED, #6C9EF0);
}

.role-master {
    background: linear-gradient(135deg, #2D3E50, #4A6583);
}

.role-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.role-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-align: right;
}

.role-body {
    padding: 25px 20px;
}

.role-list {
    list-style: none;
}

.role-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 0.95rem;
}

.role-list li:last-child {
    margin-bottom: 0;
}

.role-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Process Section */
.process {
    padding: 60px 0;
    background-color: var(--white);
}

.process-steps {
    display: flex;
    flex-direction: column;
    /* Stack strictly on mobile */
    gap: 0;
    margin-top: 30px;
    padding-left: 20px;
    /* Space for line */
}

.step-item {
    position: relative;
    text-align: left;
    padding: 0 0 30px 30px;
    /* Space for content */
    border-left: 2px solid #E0E0E0;
    /* Vertical line */
}

.step-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    position: absolute;
    left: -17px;
    /* Half of width + 2px border centering */
    top: 0;
    z-index: 2;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    margin-top: 2px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 50px 0 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    display: block;
}

.footer-info {
    color: #999;
    font-size: 0.8rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer p {
    margin: 8px 0;
}

/* Desktop Enhancements (Min-Width) */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .hero {
        text-align: left;
        padding: 100px 0 80px;
    }

    .hero::before {
        top: -50%;
        right: -10%;
        width: 800px;
        height: 800px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
    }

    .hero-text {
        flex: 1;
        margin-bottom: 0;
    }

    .hero-btn {
        width: auto;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-desc {
        margin-left: 0;
        max-width: none;
    }

    .hero-image-placeholder {
        flex: 1;
        margin-top: 0;
        justify-content: center;
    }

    .phone-mockup {
        width: 300px;
        height: 600px;
        border-width: 10px;
    }

    /* Restacking Features to Grid */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .feature-card {
        display: block;
        text-align: center;
        padding: 40px 30px;
    }

    .feature-icon {
        margin: 0 auto 20px;
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    /* Desktop Grid for features if 4 items */
    @media (min-width: 992px) {
        .feature-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* Roles Side by Side */
    .role-container {
        flex-direction: row;
    }

    .role-card {
        flex: 1;
    }

    .role-header {
        display: block;
        text-align: center;
        padding: 30px;
    }

    .role-subtitle {
        text-align: center;
        margin-top: 5px;
    }

    .role-body {
        padding: 40px 30px;
    }

    /* Horizontal Process Steps */
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding-left: 0;
        margin-top: 50px;
    }

    .step-item {
        flex: 1;
        text-align: center;
        padding: 0 10px;
        border: none;
    }

    /* Horizontal Line for Desktop */
    .process-steps::before {
        content: '';
        position: absolute;
        top: 25px;
        /* Half of 50px circle height */
        left: 50px;
        right: 50px;
        height: 2px;
        background-color: #E0E0E0;
        z-index: 1;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto 20px;
        position: relative;
        left: auto;
        top: auto;
    }
}

.hero-logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-logo-img {
        width: 160px;
        margin-left: 0;
        margin-right: 0;
    }
}
