/* CalFast Landing Page - Modern Light Theme with Colorful Accents */

:root {
    /* Brand Colors - Based on Logo */
    --primary-blue: #00a2ff;
    --primary-purple: #8b5cf6;
    --primary-magenta: #d946ef;

    /* Gradients - Keep vibrant! */
    --gradient-flame: linear-gradient(135deg, #00a2ff 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(0, 162, 255, 0.03) 100%);
    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);

    /* Background Colors - Light Theme */
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(139, 92, 246, 0.05);

    /* Text Colors - Dark for Light Theme */
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Macro Colors - Keep vibrant */
    --color-protein: #22c55e;
    --color-carbs: #f59e0b;
    --color-fat: #ef4444;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(139, 92, 246, 0.15);

    /* Glassmorphism - Light Theme */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(20px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-flame);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn.coming-soon {
    cursor: default;
    pointer-events: none;
}

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

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo span {
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-flame);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Background Effects */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 480px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
}

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

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Image & Phone Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 400px;
    background: var(--gradient-flame);
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.phone-mockup {
    width: 280px;
    height: auto;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.card-streak {
    top: 15%;
    left: -20%;
    animation-delay: 0s;
}

.card-macros {
    bottom: 20%;
    right: -15%;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-icon {
    font-size: 1.5rem;
}

.floating-text {
    display: flex;
    flex-direction: column;
}

.floating-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.floating-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(8px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-subtle);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    transform: translateY(-50%);
    pointer-events: none;
}

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

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    background: white;
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-card-hover);
}

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

.feature-highlight {
    grid-row: span 2;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

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

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-protein);
    font-weight: 700;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    overflow: hidden;
}

.screenshots-wrapper {
    margin: 0 -24px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-wrapper::-webkit-scrollbar {
    display: none;
}

.screenshots-track {
    display: flex;
    gap: 24px;
    padding: 0 calc((100vw - var(--container-width)) / 2 + 24px);
    width: max-content;
}

.screenshot-item {
    flex-shrink: 0;
    width: 260px;
    text-align: center;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.screenshot-item:hover img {
    box-shadow: var(--shadow-glow);
    border-color: rgba(139, 92, 246, 0.3);
}

.screenshot-label {
    display: block;
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

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

.step-item {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-flame);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    margin: 16px 0 20px;
}

.step-item h3 {
    margin-bottom: 12px;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--glass-border), var(--primary-purple), var(--glass-border));
    margin-top: 100px;
    flex-shrink: 0;
}

/* Social Proof Section */
.social-proof {
    padding: 120px 0;
}

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

.proof-quote {
    max-width: 480px;
}

.proof-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
}

.proof-quote h2 {
    margin-bottom: 20px;
}

.proof-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.proof-stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.proof-stat:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.proof-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.proof-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
}

.cta-box {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: var(--gradient-flame);
    filter: blur(120px);
    opacity: 0.2;
    pointer-events: none;
}

.cta-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    padding: 80px 0 24px;
    border-top: 1px solid var(--glass-border);
    background: #f8fafc;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand>p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary-purple);
    transform: translateX(4px);
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.copyright p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

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

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

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

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

    .floating-card {
        display: none;
    }

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

    .feature-highlight {
        grid-row: auto;
    }

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

    .proof-quote {
        max-width: 100%;
    }

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

    .footer-brand {
        text-align: center;
    }

    .footer-brand>p {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }
}

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

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

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 40px);
    }

    .hero-scroll-indicator {
        display: none;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

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

    .proof-stats {
        grid-template-columns: 1fr;
    }

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

    .cta-box {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .phone-mockup {
        width: 240px;
    }

    .screenshot-item {
        width: 220px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {

    .feature-card,
    .step-item,
    .proof-stat,
    .screenshot-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .feature-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .feature-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .feature-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .feature-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .feature-card:nth-child(7) {
        animation-delay: 0.7s;
    }

    .feature-card:nth-child(8) {
        animation-delay: 0.8s;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}