/* ==========================================
   ZEVLO LANDING PAGE - LIGHT MODE
   Matching the Zevlo App Design System
   ========================================== */

/* CSS Variables / Design Tokens */
:root {
    /* Primary - Espresso Brown */
    --primary-50: #EFEBE9;
    --primary-100: #D7CCC8;
    --primary-200: #BCAAA4;
    --primary-300: #A1887F;
    --primary-400: #8D6E63;
    --primary-500: #795548;
    --primary-600: #6D4C41;
    --primary-700: #5D4037;
    --primary-800: #4E342E;
    --primary-900: #3E2723;
    --primary: #6D4C41;
    
    /* Gold Accent */
    --gold: #D4AF37;
    --gold-light: #E6C785;
    --gold-dark: #B8963A;
    
    /* Neutral Grays */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #717171;
    --gray-700: #616161;
    --gray-800: #484848;
    --gray-900: #222222;
    
    /* Backgrounds - Light Mode */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F7;
    --bg-cream: #FFFBF2;
    
    /* Text Colors */
    --text-primary: #222222;
    --text-secondary: #717171;
    --text-muted: #9E9E9E;
    
    /* Fox Colors */
    --fox-orange: #D84315;
    --fox-dark: #BF360C;
    --fox-cream: #FFF8E1;
    --fox-pink: #FFAB91;
    
    /* Shadows - Matching App */
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-button-hover: 0 2px 8px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1100px;
    
    /* Border Radius - Matching App */
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-icon {
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

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

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

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

.nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-button);
}

.nav-cta:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover);
}

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

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-card);
}

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

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 14px 20px !important;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 8px;
    border: none !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 140px 20px 80px;
    background: var(--bg-primary);
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-button);
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 16px 28px;
    font-size: 1rem;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-900);
    color: #fff;
}

/* Hero Visual / Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 260px;
    height: 520px;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-card-hover);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.scan-demo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.scan-frame {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
}

.scan-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.8);
    border-style: solid;
}

.scan-corner.tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 8px 0 0 0;
}

.scan-corner.tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 8px 0 0;
}

.scan-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 8px;
}

.scan-corner.br {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 8px 0;
}

.scan-line {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 20%; opacity: 0.5; }
    50% { top: 80%; opacity: 1; }
}

.mascot-container {
    animation: float 3s ease-in-out infinite;
}

.mascot {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

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

.scan-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 16px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-button);
}

.step-content {
    padding: 0 12px;
}

.step-icon {
    color: var(--primary-300);
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    margin-top: 22px;
    flex-shrink: 0;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.benefit-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.benefit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================
   MEET ZEV SECTION
   ========================================== */
.meet-zev {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.zev-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    background: var(--primary-50);
    border-radius: var(--radius-2xl);
    padding: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.zev-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.zev-visual {
    display: flex;
    justify-content: center;
}

.zev-mascot {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

.zev-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.zev-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.cta-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-content > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--gray-200);
}

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

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

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.5;
}

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

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zev-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding: 32px 24px;
    }
    
    .zev-content p {
        max-width: 100%;
    }
    
    .zev-content .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 110px 20px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .step {
        max-width: 100%;
    }
    
    .step-connector {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-card {
        padding: 24px 20px;
    }
    
    .zev-mascot {
        width: 100px;
        height: 100px;
    }
    
    .cta-content {
        padding: 0 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .scan-frame {
        width: 130px;
        height: 130px;
    }
    
    .mascot {
        width: 70px;
        height: 70px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .feature-card:hover,
    .benefit-card:hover {
        transform: none;
    }
    
    .feature-card:active,
    .benefit-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}
