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

:root {
    --primary: #F5A623;
    --primary-glow: rgba(245, 166, 35, 0.4);
    --primary-soft: rgba(245, 166, 35, 0.1);
    --secondary: #1A237E;
    --accent: #00C853;
    --accent-glow: rgba(0, 200, 83, 0.3);
    --bg-dark: #0A0E27;
    --bg-card: #1C2145;
    --bg-card-hover: #252B55;
    --text: #FFFFFF;
    --text-dim: #A0A8D0;
    --glass: rgba(28, 33, 69, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --gradient-gold: linear-gradient(135deg, #F5A623, #FF6B35);
    --gradient-text: linear-gradient(to right, #fff, var(--primary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animations */
.bg-blob {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: move 20s infinite alternate;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: move2 25s infinite alternate;
    top: auto;
    bottom: 20%;
    right: -100px;
    left: auto;
    opacity: 0.2;
}

@keyframes move {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(50%, 20%); }
}

@keyframes move2 {
    from { transform: translate(10%, 10%); }
    to { transform: translate(-40%, -30%); }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.15rem;
    border-radius: 16px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--glass-border-hover);
}

/* Hero Section */
.hero {
    padding: 8rem 10% 4rem;
    text-align: center;
    position: relative;
}

.badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(245, 166, 35, 0.2);
    letter-spacing: 0.02em;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

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

/* Store Badges */
.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 4rem;
    align-items: center;
}

.store-link {
    transition: transform 0.3s;
}

.store-link:hover {
    transform: scale(1.05);
}

.store-badge {
    height: 52px;
}

/* Features */
.features {
    padding: 4rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 166, 35, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* ============================================ */
/* How It Works Section                         */
/* ============================================ */

.how-it-works {
    padding: 6rem 10%;
    position: relative;
}

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

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.steps-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #000;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    flex: 1;
    transition: all 0.4s ease;
}

.step-content:hover {
    border-color: rgba(245, 166, 35, 0.3);
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

.step-content strong {
    color: var(--primary);
    font-weight: 600;
}

.step-connector {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245, 166, 35, 0.4), rgba(245, 166, 35, 0.1));
    margin-left: 27px;
    border-radius: 2px;
}

/* ============================================ */
/* Credits Section                              */
/* ============================================ */

.credits-section {
    padding: 6rem 10%;
    position: relative;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.credit-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.credit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.highlight-card {
    border-color: rgba(245, 166, 35, 0.3);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(28, 33, 69, 0.7));
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.credit-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.credit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.credit-card p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.92rem;
}

.credit-card strong {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================ */
/* Final CTA                                    */
/* ============================================ */

.final-cta {
    padding: 6rem 10%;
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.final-cta p {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 1rem auto 2.5rem;
    line-height: 1.7;
}

/* Footer */
footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-dim);
    opacity: 0.5;
    font-size: 0.8rem;
}

.footer-logo {
    justify-content: center;
    margin-bottom: 2rem;
}

/* ============================================ */
/* Accessibility                                */
/* ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    z-index: 999;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================ */
/* Mobile Hamburger Menu                        */
/* ============================================ */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 150;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: color 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--primary);
}

.mobile-nav .btn {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
    border-bottom: none;
}

/* ============================================ */
/* Responsive — Tablet (1024px)                 */
/* ============================================ */

@media (max-width: 1024px) {
    .hero { padding: 6rem 8% 3rem; }
    .features { padding: 3rem 6%; }
    .how-it-works { padding: 5rem 6%; }
    .credits-section { padding: 5rem 6%; }
    .final-cta { padding: 5rem 6%; }
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.4rem; }
}

/* ============================================ */
/* Responsive — Mobile (768px)                  */
/* ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .cta-group { flex-direction: column; align-items: center; }
    
    /* Header */
    nav { display: none; }
    .header-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-nav { display: flex; }
    header { padding: 1rem 5%; }
    
    /* Sections */
    .hero { padding: 5rem 5% 3rem; }
    .features { padding: 3rem 5%; grid-template-columns: 1fr; }
    .how-it-works { padding: 4rem 5%; }
    .credits-section { padding: 4rem 5%; }
    .final-cta { padding: 4rem 5%; }
    footer { padding: 3rem 5%; }

    /* Steps */
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-connector {
        margin-left: 0;
        margin: 0 auto;
    }

    .step-content {
        width: 100%;
    }

    .step-content:hover {
        transform: translateY(-4px);
    }

    /* Credits */
    .credits-grid {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 360px;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .store-badges {
        margin-top: 3rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* Cards */
    .card {
        padding: 2rem;
    }
}

/* ============================================ */
/* Responsive — Small Phone (480px)             */
/* ============================================ */

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }
    .section-subtitle { font-size: 0.95rem; }
    .step-number { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; border-radius: 12px; }
    .step-content { padding: 1.5rem; }
    .credit-card { padding: 1.5rem; }
    .card { padding: 1.5rem; border-radius: 18px; }
    .badge { font-size: 0.8rem; padding: 6px 14px; }
    
    .store-badge { height: 44px; }
    
    .logo-text { font-size: 1.2rem; }
    .logo-img { width: 32px; height: 32px; }
}

/* ============================================ */
/* Responsive — Extra Small (360px)             */
/* ============================================ */

@media (max-width: 360px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    .hero { padding: 4.5rem 4% 2.5rem; }
    .features, .how-it-works, .credits-section, .final-cta { padding: 3rem 4%; }
    footer { padding: 2.5rem 4%; }
    .btn { padding: 14px 20px; font-size: 0.9rem; }
}

/* ============================================ */
/* Print Styles                                 */
/* ============================================ */

@media print {
    .bg-blob, .mobile-menu-btn, .mobile-nav, header { display: none; }
    body { background: white; color: black; }
    .card, .step-content, .credit-card { border: 1px solid #ccc; }
    h1, h2, h3 { -webkit-text-fill-color: initial; background: none; color: #333; }
}
