/* Homepage CSS - Marketing page for Wanderbux */

:root {
    /* Primary brand colors - purple gradient from header */
    --primary-color: #667eea;
    --secondary-color: #764ba2;

    /* Complementary accent colors - color theory based */
    --accent-warm: #f093fb;      /* Light purple-pink (analogous) */
    --accent-cool: #4facfe;       /* Blue (split-complementary) */
    --accent-highlight: #a8edea;  /* Cyan-turquoise (triadic harmony) */

    /* Background layers - Dark mode */
    --bg-dark: #0a0e27;          /* Deep navy-purple */
    --bg-dark-alt: #141b3a;      /* Slightly lighter navy */
    --bg-card: rgba(255, 255, 255, 0.03);
}

/* Light mode overrides for homepage */
[data-theme="light"] {
    --bg-dark: #f5f7fa;          /* Light gray-blue */
    --bg-dark-alt: #ffffff;      /* White */
    --bg-card: rgba(0, 0, 0, 0.03);
}

/* Marketing page specific styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    min-height: 100vh;
    padding-top: 76px; /* Height of fixed navbar */
    overflow-x: hidden;
}

/* Gradient text utility - harmonious with header purple */
.gradient-text {
    background: linear-gradient(135deg,
        var(--accent-warm) 0%,      /* Light purple-pink */
        var(--primary-color) 50%,   /* Brand purple */
        var(--accent-highlight) 100%); /* Cyan-turquoise */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

/* Highlighted text with glow - softer purple tones */
.highlight-glow {
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 25px rgba(102, 126, 234, 0.4);
}

.highlight-glow::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

.marketing-nav {
    background:
        linear-gradient(to bottom,
            rgba(102, 126, 234, 1) 0%,
            rgba(118, 75, 162, 1) 70%,
            rgba(118, 75, 162, 0.85) 90%,
            rgba(118, 75, 162, 0.5) 100%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Enhance sticky nav on scroll */
.marketing-nav.scrolled {
    background:
        linear-gradient(to bottom,
            rgba(102, 126, 234, 0.95) 0%,
            rgba(118, 75, 162, 0.95) 70%,
            rgba(118, 75, 162, 0.8) 90%,
            rgba(118, 75, 162, 0.5) 100%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.marketing-nav .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.marketing-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.marketing-nav .nav-link:hover {
    color: white !important;
}

.marketing-nav .btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.marketing-nav .btn-outline-light:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.marketing-nav .btn-light {
    background: white;
    color: #667eea;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid white;
    transition: all 0.3s;
}

.marketing-nav .btn-light:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--bg-dark);
    padding: 12rem 0 10rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
        rgba(102, 126, 234, 0.12) 0%,    /* Primary purple */
        rgba(118, 75, 162, 0.08) 25%,   /* Secondary purple */
        transparent 50%);
    animation: rotate 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),  /* Warm accent */
        radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.08) 0%, transparent 50%),   /* Cool accent */
        radial-gradient(circle at 50% 50%, rgba(168, 237, 234, 0.04) 0%, transparent 70%);  /* Highlight */
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* Value Proposition Section */
.value-section {
    padding: 7rem 0;
    background: linear-gradient(180deg,
        rgba(15, 20, 25, 0.95) 0%,
        rgba(20, 25, 35, 0.98) 100%);
    position: relative;
}

.value-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),  /* Primary purple */
        radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.04) 0%, transparent 50%);   /* Cool blue accent */
    pointer-events: none;
}

.value-section .section-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.value-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    margin-bottom: 5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.value-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow */
.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(240, 147, 251, 0.2) 0%,
        rgba(102, 126, 234, 0.2) 50%,
        rgba(79, 172, 254, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animated gradient overlay on hover */
.value-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(102, 126, 234, 0.08) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    box-shadow:
        0 30px 60px -12px rgba(102, 126, 234, 0.25),
        0 18px 36px -18px rgba(102, 126, 234, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
}

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

.value-card:hover::after {
    opacity: 1;
}

.value-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.8rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.value-description {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    padding: 7rem 0;
    background: var(--bg-dark);
    position: relative;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for feature cards */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(79, 172, 254, 0.2) 0%,
        rgba(102, 126, 234, 0.2) 50%,
        rgba(168, 237, 234, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animated gradient overlay on hover */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(79, 172, 254, 0.08) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(79, 172, 254, 0.25);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    box-shadow:
        0 30px 60px -12px rgba(79, 172, 254, 0.25),
        0 18px 36px -18px rgba(79, 172, 254, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
}

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

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Benefits Section */
.benefits-section {
    padding: 7rem 0;
    background: linear-gradient(180deg,
        rgba(15, 20, 25, 0.95) 0%,
        rgba(20, 25, 35, 0.98) 100%);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(240, 147, 251, 0.05) 0%, transparent 50%),  /* Warm accent */
        radial-gradient(circle at 10% 80%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);   /* Secondary purple */
    pointer-events: none;
}

.benefit-item {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for benefit items */
.benefit-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(240, 147, 251, 0.2) 0%,
        rgba(118, 75, 162, 0.2) 50%,
        rgba(102, 126, 234, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animated gradient overlay on hover */
.benefit-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(240, 147, 251, 0.08) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.benefit-item:hover {
    transform: translateX(15px) scale(1.02);
    border-color: rgba(240, 147, 251, 0.25);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    box-shadow:
        0 30px 60px -12px rgba(240, 147, 251, 0.25),
        0 18px 36px -18px rgba(240, 147, 251, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item:hover::after {
    opacity: 1;
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.benefit-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.marketing-footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.marketing-footer p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Light mode text color overrides */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .section-title,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .value-title,
[data-theme="light"] .value-description,
[data-theme="light"] .feature-title,
[data-theme="light"] .feature-description,
[data-theme="light"] .benefit-title,
[data-theme="light"] .benefit-text {
    color: rgba(0, 0, 0, 0.87);
}

[data-theme="light"] .value-description,
[data-theme="light"] .feature-description,
[data-theme="light"] .benefit-text,
[data-theme="light"] .section-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .highlight-glow {
    color: rgba(0, 0, 0, 0.87);
    text-shadow: 0 0 25px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .value-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .benefit-item {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .value-card:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .benefit-item:hover {
    background: white;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow:
        0 20px 40px -12px rgba(102, 126, 234, 0.2),
        0 12px 24px -12px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .marketing-footer {
    background: #e2e8f0;
    color: rgba(0, 0, 0, 0.87);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title, .value-section .section-title, .cta-title {
        font-size: 2.2rem;
    }

    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .value-section, .features-section, .benefits-section, .cta-section {
        padding: 4rem 0;
    }
}
