/* ============================================
   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: 2rem;
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
}

.hero-stat span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.hero-stat-sep {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

/* 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: 380px;
}

.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;
}

/* Phone notification */
.phone-notif {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #475569;
}

.phone-notif-icon {
    font-size: 0.85rem;
}

.phone-notif-text {
    line-height: 1.3;
}

.phone-notif-text strong {
    color: #1a1a2e;
}

/* --- Section badge --- */
.section-badge {
    display: inline-block;
    background: #e8f4f8;
    color: #4A90A4;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* --- 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;
}

/* Highlight card (PWA) */
.feature-card-highlight {
    background: linear-gradient(135deg, #4A90A4 0%, #3d7a8e 100%);
    color: #fff;
    border-color: transparent;
}

.feature-card-highlight h3 {
    color: #fff;
}

.feature-card-highlight p {
    color: rgba(255, 255, 255, 0.85);
}

.feature-card-highlight:hover {
    box-shadow: 0 12px 40px rgba(74, 144, 164, 0.3);
}

.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;
    margin-bottom: 0.75rem;
}

/* Feature tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.feature-tags span {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.feature-card-highlight .feature-tags span {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* --- Benefits --- */
.benefits {
    padding: 4rem 0;
    background: #f8f9fb;
}

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

.benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f4f8;
    color: #4A90A4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.benefit p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

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

.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;
}

/* --- PWA Section --- */
.pwa-section {
    padding: 6rem 0;
    background: #f0f7fa;
}

.pwa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pwa-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.pwa-text > p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.pwa-instructions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pwa-instruction {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pwa-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8f4f8;
    color: #4A90A4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-instruction strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.pwa-instruction span {
    font-size: 0.82rem;
    color: #64748b;
}

/* PWA phone visual */
.pwa-visual {
    display: flex;
    justify-content: center;
}

.pwa-phone {
    width: 240px;
    background: #1a1a2e;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.pwa-phone-screen {
    background: linear-gradient(180deg, #e8f0f4 0%, #d5e3ea 100%);
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-app-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.pwa-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.pwa-ghost {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto;
}

.pwa-tribu {
    position: relative;
}

.pwa-tribu img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

.pwa-tribu span {
    font-size: 0.55rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* --- 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: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

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

.cta-sub {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* --- 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);
    }

    .pwa-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pwa-visual {
        order: -1;
    }

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

@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-stats {
        justify-content: center;
    }

    .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;
    }

    .pwa-text h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .pwa-text > p {
        text-align: center;
    }

    .pwa-section .section-badge {
        display: block;
        text-align: center;
    }

    .pwa-phone {
        width: 200px;
    }

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

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

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