/* ============================================
   Ma Tribu - Landing Page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.landing-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Nav --- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-nav .landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.landing-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4A90A4;
    letter-spacing: -0.5px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: #1a1a2e;
}

.landing-nav-btn {
    background: #4A90A4 !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
}

.landing-nav-btn:hover {
    background: #3d7a8e !important;
    transform: translateY(-1px);
}

.landing-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a2e;
    padding: 0.5rem;
}

/* --- Hero --- */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #f0f7fa 0%, #fff 100%);
    overflow: hidden;
}

.hero .landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #e8f4f8;
    color: #4A90A4;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    color: #1a1a2e;
}

.hero-gradient {
    background: linear-gradient(135deg, #4A90A4 0%, #E8845C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-trust {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Buttons landing */
.btn-landing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-landing-primary {
    background: #4A90A4;
    color: #fff;
    box-shadow: 0 4px 14px rgba(74, 144, 164, 0.35);
}

.btn-landing-primary:hover {
    background: #3d7a8e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.btn-landing-ghost {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-landing-ghost:hover {
    border-color: #4A90A4;
    color: #4A90A4;
}

.btn-landing-white {
    background: #fff;
    color: #4A90A4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-landing-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-phone {
    width: 280px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: rotate(2deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-12px); }
}

.phone-screen {
    background: #f8f9fa;
    border-radius: 26px;
    padding: 1rem 0.8rem;
    min-height: 420px;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.2rem;
}

.phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4A90A4;
}

.phone-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #4A90A4;
}

.phone-card {
    background: #fff;
    border-radius: 14px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.phone-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.phone-task {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: #1a1a2e;
}

.phone-check {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
}

.phone-check.done {
    background: #7BC67E;
    border-color: #7BC67E;
    position: relative;
}

.phone-check.done::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.phone-task-text {
    flex: 1;
}

.phone-task-text.strike {
    text-decoration: line-through;
    color: #94a3b8;
}

.phone-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-check-sm {
    width: 12px;
    height: 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.phone-check-sm.done {
    background: #7BC67E;
    border-color: #7BC67E;
}

.phone-shopping-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    padding: 0.15rem 0;
    color: #475569;
}

/* --- Features --- */
.features {
    padding: 6rem 0;
}

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- How it works --- */
.how {
    padding: 6rem 0;
    background: #f8f9fb;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.step {
    text-align: center;
    max-width: 260px;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #4A90A4, #3d7a8e);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: #64748b;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    color: #cbd5e1;
}

/* --- CTA --- */
.cta {
    padding: 6rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #4A90A4 0%, #3d7a8e 50%, #2c6a7e 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-card .btn-landing {
    position: relative;
    z-index: 1;
}

/* --- Footer --- */
.landing-footer {
    border-top: 1px solid #f1f5f9;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-brand strong {
    font-size: 1.1rem;
    color: #4A90A4;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #4A90A4;
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }

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

@media (max-width: 768px) {
    .landing-nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.75rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .landing-nav-links.open {
        display: flex;
    }

    .landing-nav-btn {
        text-align: center;
        display: block;
    }

    .landing-menu-toggle {
        display: block;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero .landing-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-phone {
        width: 240px;
        transform: rotate(0);
    }

    @keyframes phoneFloat {
        0%, 100% { transform: rotate(0) translateY(0); }
        50% { transform: rotate(0) translateY(-8px); }
    }

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

    .feature-card {
        padding: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
