/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6B3FA0;
    --primary-dark: #4A2C70;
    --primary-light: #9B6FD0;
    --secondary: #F4D03F;
    --secondary-dark: #D4AC0D;
    --accent: #F4D03F;
    --dark: #1A1A1A;
    --dark-light: #2D2D2D;
    --gray: #666666;
    --gray-light: #999999;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #9B59B6, #6B3FA0);
    --gradient-text: linear-gradient(135deg, #6B3FA0, #9B59B6);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 63, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 63, 160, 0.4);
}

.btn-secondary {
    background: var(--dark);
    color: white;
}

.btn-secondary:hover {
    background: var(--dark-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

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

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

.nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

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

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

/* ── Phone Mockup ── */
.phone-mockup {
    width: 300px;
    height: 610px;
    background: #0D0615;
    border-radius: 44px;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(107,63,160,0.35), 0 0 0 2px #2E1A45;
    position: relative;
    flex-shrink: 0;
}

/* Side buttons */
.phone-mockup::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 130px;
    width: 4px;
    height: 32px;
    background: #1A0E28;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 48px 0 #1A0E28;
}
.phone-mockup::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 150px;
    width: 4px;
    height: 55px;
    background: #1A0E28;
    border-radius: 0 3px 3px 0;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 14px;
    background: #000;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #F0EDF5;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Status bar */
.app-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 4px;
    background: #6B3FA0;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
}

/* App header */
.app-header-bar {
    background: linear-gradient(135deg, #9B59B6 0%, #6B3FA0 100%);
    padding: 10px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-bottom: 3px solid #F4D03F;
}

.app-greeting {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

.app-balance-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 2px;
}

.app-balance-amount {
    color: #F4D03F;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.app-account-chip {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    font-size: 0.62rem;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-top: 4px;
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-bottom: 1px solid #F0F0F0;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.action-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.action-icon.send    { background: linear-gradient(135deg, #9B59B6, #6B3FA0); }
.action-icon.bills   { background: linear-gradient(135deg, #9B59B6, #6B3FA0); }
.action-icon.account { background: linear-gradient(135deg, #9B59B6, #6B3FA0); }
.action-icon.more    { background: rgba(107,63,160,0.1); color: #6B3FA0; }

.action-item span {
    color: #666;
    font-size: 0.6rem;
}

/* Transactions */
.app-transactions {
    flex: 1;
    background: white;
    padding: 10px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tx-header {
    font-size: 0.68rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
    display: block;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.tx-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.tx-icon.tx-credit { background: rgba(39,174,96,0.12); color: #27AE60; }
.tx-icon.tx-debit  { background: rgba(231,76,60,0.12);  color: #E74C3C; }

.tx-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.tx-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #2C3E50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-date {
    font-size: 0.58rem;
    color: #999;
}

.tx-amount {
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tx-amount.tx-credit { color: #27AE60; }
.tx-amount.tx-debit  { color: #E74C3C; }

.tx-divider {
    height: 1px;
    background: #F5F5F5;
    margin: 0 0;
}

/* Bottom nav */
.app-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    border-top: 1px solid #EAEAEA;
    padding: 6px 4px 8px;
}

.bnav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #CCC;
    padding: 4px 0;
    border-radius: 8px;
}

.bnav-item.bnav-active {
    color: #6B3FA0;
    background: rgba(107,63,160,0.08);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--light);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 63, 160, 0.1);
    background: var(--white);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--light);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--gradient);
    opacity: 0.3;
}

/* Security */
.security {
    padding: 100px 0;
    background: var(--white);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.security-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.security-text > p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1rem;
}

.security-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(107, 63, 160, 0.1), rgba(244, 208, 63, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Download */
.download {
    padding: 100px 0;
    background: var(--dark);
}

.download-content {
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.download-content > p {
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--dark);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.store-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #1a4fd6));
    color: var(--white);
    border: 2px solid transparent;
}

.store-btn-primary .store-label,
.store-btn-primary .store-name {
    color: var(--white);
}

.store-btn-primary:hover {
    box-shadow: 0 10px 30px rgba(30, 86, 242, 0.4);
}

.store-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray);
    text-align: left;
}

.store-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-brand .logo-text {
    color: white;
}

.footer-links h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--gray-light);
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 24px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        gap: 20px;
        z-index: 999;
        border-top: 2px solid #F4D03F;
    }

    .nav-links.active a {
        font-size: 1rem;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

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

    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 40px;
    }

    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .security-list {
        align-items: center;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

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

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