/* ====== MOTAPAY — Homepage Styles ====== */

/* ====== HERO ====== */
.hero {
    background: var(--ink);
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107, 63, 160, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(107, 63, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(107, 63, 160, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    pointer-events: none;
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 2.5rem;
}

.hero-logo img {
    height: 70px;
    width: auto;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero h1 em {
    color: var(--purple);
    font-style: italic;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero-cta {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-cta:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107, 63, 160, 0.4);
    text-decoration: none;
}

.hero-note {
    margin-top: 2rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

/* ====== HOW IT WORKS ====== */
.how-it-works {
    padding: 5.5rem 1.5rem;
    background: var(--white);
}

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

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.section-header p {
    font-size: 1rem;
    color: var(--muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(16.67% + 1rem);
    right: calc(16.67% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--purple-soft) 50%, var(--purple) 100%);
    opacity: 0.3;
}

.step {
    text-align: center;
    padding: 0 0.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background: var(--purple-soft);
    color: var(--purple);
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ====== PROBLEM / SOLUTION ====== */
.problem-section {
    padding: 5rem 1.5rem;
    background: var(--surface);
}

.split-content {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.split-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 400;
}

.split-content .solution-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--body);
}

.split-content .solution-text p + p {
    margin-top: 1rem;
}

/* ====== STATS ====== */
.stats-section {
    padding: 5rem 1.5rem;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    color: var(--purple);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ====== WHY MOTAPAY ====== */
.why-section {
    padding: 5.5rem 1.5rem;
    background: var(--ink);
}

.why-section .section-header h2 {
    color: var(--white);
}

.why-section .section-header p {
    color: rgba(255,255,255,0.45);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.75rem;
    transition: background 0.2s, border-color 0.2s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
}

/* ====== FINAL CTA ====== */
.final-cta {
    padding: 5rem 1.5rem;
    background: var(--purple-deep);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(107, 63, 160, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.final-cta p {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.final-cta .hero-cta {
    background: var(--white);
    color: var(--purple-deep);
}

.final-cta .hero-cta:hover {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

/* ====== HOMEPAGE RESPONSIVE ====== */
@media (max-width: 768px) {
    .hero { padding: 8rem 1.25rem 4rem; }
    .hero h1 { font-size: 1.75rem; }

    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }
    .steps::before { display: none; }

    .split-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
