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

:root {
    --primary: #003366;
    --primary-light: #0052a3;
    --primary-dark: #002244;
    --accent: #00a3e0;
    --accent-light: #33b5e5;
    --success: #00c853;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-cashback {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

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

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

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

.btn-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--gray-800);
}

.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.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: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

/* Phone Mockup - Premium Design */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-wrapper {
    position: relative;
    transform: rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(0, 163, 224, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 290px;
    height: 590px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border-radius: 50px;
    padding: 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Phone notch */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notch-speaker {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    border-radius: 2px;
}

.notch-camera {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #1a3a5c, #0a1a2c);
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0, 163, 224, 0.5);
}

/* Side buttons */
.phone-button {
    position: absolute;
    background: linear-gradient(90deg, #1a1a2e, #252540);
    border-radius: 2px;
}

.phone-button-left {
    left: -2px;
    top: 120px;
    width: 3px;
    height: 60px;
}

.phone-button-right-1 {
    right: -2px;
    top: 100px;
    width: 3px;
    height: 35px;
}

.phone-button-right-2 {
    right: -2px;
    top: 150px;
    width: 3px;
    height: 70px;
}

/* Phone screen */
.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #003366 0%, #004080 40%, #0052a3 100%);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Status bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.status-time {
    font-size: 14px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.status-icon {
    width: 16px;
    height: 16px;
}

/* App content */
.app-content {
    padding: 16px 16px 0;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: none;
    padding-bottom: 0;
}

.app-title {
    display: flex;
    flex-direction: column;
}

.app-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.app-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.app-balance {
    text-align: right;
}

.balance-amount {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #00c853;
}

.balance-currency {
    font-size: 16px;
    font-weight: 600;
    color: #00c853;
}

.app-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 20px;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-height: 280px;
}

.cashback-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cashback-item:last-child {
    border-bottom: none;
}

.shop-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-icon svg {
    width: 24px;
    height: 24px;
}

.shop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.shop-category {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.cashback-percent {
    font-weight: 800;
    color: #00c853;
    font-size: 18px;
}

/* App bottom navigation */
.app-nav {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 30px 30px;
    margin: auto -16px 0;
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 500;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item.active {
    color: white;
}

/* Home indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Phone reflection */
.phone-reflection {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
    width: 280px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.3), transparent);
    border-radius: 50px 50px 0 0;
    filter: blur(10px);
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* Phone floating animation */
@keyframes phoneFloat {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(2deg) translateY(0);
    }
    50% {
        transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
    }
}

.phone-wrapper {
    animation: phoneFloat 4s ease-in-out infinite;
}

/* Screen shine effect */
@keyframes screenShine {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateX(200%) rotate(45deg);
    }
}

.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    animation: screenShine 4s ease-in-out infinite;
    pointer-events: none;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
}

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

.benefit-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
}

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

.step {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 280px;
    transition: all 0.2s;
}

.step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.step p {
    font-size: 14px;
    color: var(--gray-600);
}

.step-arrow {
    font-size: 32px;
    color: var(--accent);
    font-weight: 300;
}

/* Partners */
.partners {
    padding: 100px 0;
    background: var(--gray-50);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.partner-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partner-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.partner-cashback {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    background: rgba(0, 200, 83, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.partners-note {
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient);
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta .btn-primary:hover {
    background: var(--gray-100);
}

.cta-note {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 60px 0 24px;
}

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

.footer-brand p {
    color: var(--gray-300);
    margin-top: 16px;
    font-size: 14px;
}

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

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--gray-300);
}

.footer-links a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-300);
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 24px;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-wrapper {
        transform: none;
    }
    
    .phone-frame {
        width: 260px;
        height: 530px;
    }
    
    .phone-glow {
        width: 300px;
        height: 500px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .benefits-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2,
    .cta h2 {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.benefit-card,
.step,
.partner-card {
    animation: fadeInUp 0.6s ease-out;
}

.benefit-card:nth-child(2) { animation-delay: 0.1s; }
.benefit-card:nth-child(3) { animation-delay: 0.2s; }
.benefit-card:nth-child(4) { animation-delay: 0.3s; }
