/* WayPal Landing Page Styles */

:root {
    /* Brand Colors */
    --deep-blue: #1E3A8A;
    --medium-blue: #3B82F6;
    --cyan: #06B6D4;
    --light-blue: #DBEAFE;
    --very-light-blue: #EFF6FF;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #2563EB 50%, #1E3A8A 100%);
    --gradient-text: linear-gradient(135deg, #4A90E2 0%, #2563EB 50%, #1E3A8A 100%);

    /* Shadows */
    --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);
    --shadow-blue: 0 10px 40px -10px rgba(59, 130, 246, 0.4);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Subtle grid texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.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: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 32px -8px rgba(59, 130, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px -8px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-secondary:hover {
    border-color: var(--medium-blue);
    color: var(--medium-blue);
}

.btn-white {
    background: var(--white);
    color: var(--deep-blue);
    box-shadow: var(--shadow-lg);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 1.75rem;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
}

.nav-cta:hover {
    opacity: 0.9;
}

.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(--gray-800);
    border-radius: 2px;
}

/* Brand Header */
.brand-header {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #4A90E2 0%, #2563EB 50%, #1E3A8A 100%);
}

.banner-nav {
    position: absolute;
    top: 24px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 10;
}

.banner-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.banner-nav .nav-cta {
    background: var(--white);
    color: var(--deep-blue) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.banner-nav .nav-cta:hover {
    opacity: 0.95;
}

.banner-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
}

.brand-logo-img {
    max-width: 450px;
    width: 100%;
    height: auto;
}

/* Smaller header for legal pages */
.brand-header-small {
    padding: 20px 0;
}

.banner-logo-small {
    display: flex;
    justify-content: center;
    padding: 30px 24px;
    text-decoration: none;
}

.brand-logo-img-small {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* Hero Section */
.hero {
    padding: 80px 24px 100px;
    background: var(--white);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--very-light-blue);
    color: var(--medium-blue);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

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

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-value .star {
    color: #FBBF24;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 50%, #0a0a0a 100%);
    border-radius: 52px;
    padding: 10px;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    border: 2px solid #3a3a3c;
}

/* Dynamic Island */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 28px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
}

/* Side button (action button) */
.phone-mockup::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 140px;
    width: 3px;
    height: 28px;
    background: linear-gradient(180deg, #3a3a3c 0%, #2a2a2c 100%);
    border-radius: 2px 0 0 2px;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 44px;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 2;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}

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

.badge-top { animation-delay: 0s; }
.badge-right { animation-delay: 0.5s; }
.badge-bottom { animation-delay: 1s; }

.badge-icon {
    font-size: 1.25rem;
}

.badge-top {
    top: 60px;
    left: 0;
}

.badge-right {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.badge-bottom {
    bottom: 80px;
    left: 20px;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--gray-50) 0%, #f0f4ff 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-top: 16px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--very-light-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

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

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step {
    display: flex;
    align-items: center;
    gap: 80px;
}

.step.reverse {
    flex-direction: row-reverse;
}

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

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

.step-image {
    flex: 1;
    max-width: 400px;
}

.step-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* App Preview Section */
.app-preview {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.app-preview .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.preview-content {
    flex: 1;
}

.preview-content h2 {
    margin-bottom: 16px;
}

.preview-content > p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.preview-features {
    list-style: none;
}

.preview-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-weight: 500;
    color: var(--gray-700);
}

.preview-features svg {
    color: var(--cyan);
}

.preview-phones {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-stack {
    position: relative;
    width: 350px;
    height: 500px;
}

.phone {
    position: absolute;
    width: 240px;
    height: 500px;
    background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 50%, #0a0a0a 100%);
    border-radius: 46px;
    padding: 8px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #3a3a3c;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.phone-back {
    left: 0;
    top: 20px;
    transform: rotate(-8deg);
}

.phone-front {
    right: 0;
    top: 0;
    transform: rotate(4deg);
    z-index: 1;
}

/* Download CTA Section */
.download-cta {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.cta-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 16px;
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-visual {
        margin-top: 40px;
        min-height: 400px;
    }

    .floating-badge {
        display: none;
    }

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

    .step, .step.reverse {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .app-preview .container {
        flex-direction: column;
        text-align: center;
    }

    .preview-features {
        display: inline-block;
        text-align: left;
    }
}

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

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

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

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

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .phone-stack {
        width: 280px;
        height: 400px;
    }

    .phone {
        width: 200px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
    }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

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

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

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

/* Legal Pages */
.legal-content {
    padding: 140px 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.legal-section h3 {
    font-size: 1.125rem;
    margin: 20px 0 12px;
    color: var(--gray-800);
}

.legal-section p {
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-section ul {
    color: var(--gray-600);
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--medium-blue);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Navbar scrolled state */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}
