/* ========================================
   FREELANCETRACKER PRO - 2025 EDITION
   Golden Ratio Design System
   ======================================== */

   :root {
    /* Colors - Video Hero Palette */
    --primary: #ff2d55;
    --secondary: #6c5ce7;
    --accent: #00d4ff;
    --success: #00ff88;
    --dark: #000000;
    --gray-900: #0a0a0a;
    --gray-700: #2a2a2a;
    --gray-400: #888888;
    --gray-300: #b3b3b3;
    --white: #ffffff;
    
    /* Nav login button */
.nav-login-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-login-btn:hover {
  background: var(--gradient-primary);
  color: var(--dark);
}

/* Main Navigation */
    --gradient-primary: linear-gradient(135deg, #ff2d55 0%, #6c5ce7 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    
    /* Typography - Inter System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Golden Ratio Spacing (base 16px) */
    --space-xs: 0.618rem;      /* 10px */
    --space-sm: 1rem;           /* 16px */
    --space-md: 1.618rem;       /* 26px */
    --space-lg: 2.618rem;       /* 42px */
    --space-xl: 4.236rem;       /* 68px */
    --space-xxl: 6.854rem;      /* 110px */
    
    /* Golden Ratio Typography */
    --text-xs: 0.618rem;        /* 10px */
    --text-sm: 0.875rem;        /* 14px */
    --text-base: 1rem;          /* 16px */
    --text-lg: 1.125rem;        /* 18px */
    --text-xl: 1.618rem;        /* 26px */
    --text-2xl: 2.618rem;       /* 42px */
    --text-3xl: 4.236rem;       /* 68px */
    --text-4xl: 6.854rem;       /* 110px */
    
    /* Container Widths (Golden Ratio) */
    --container-sm: 720px;      /* Mobile content */
    --container-md: 960px;      /* Tablet */
    --container-lg: 1400px;     /* Desktop (1.618 × 865) */
    --container-xl: 1600px;     /* Wide screens */
}

/* ========================================
   GLOBAL RESET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.homepage {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--white);
    line-height: 1.618; /* Golden ratio line height */
    font-size: var(--text-base);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CONTAINER SYSTEM
   ======================================== */

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

.container-wide {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
/* ========================================
   FIX 1: NAV BAR - HIDDEN ON LOAD
   ======================================== */

   .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9999;
    
    /* Hidden by default */
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show nav after scroll */
.main-nav.nav-visible {
    opacity: 1;
    transform: translateY(0);
}


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

.logo {
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

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

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

.nav-cta {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* ========================================
   STATS BAR - SOCIAL PROOF
   ======================================== */

/* ========================================
   FIX 3: STATS BAR - PEEK ABOVE FOLD
   ======================================== */

   .stats-bar {
    background: var(--gray-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    
    /* Position at bottom of viewport to create peek effect */
    margin-top: -12vh; /* Pull stats up so they peek */
    padding: var(--space-lg) 0 var(--space-xl); /* Reduced top padding */
    position: relative;
    z-index: 5; /* Above video hero */
}

/* Ensure smooth transition when scrolling */
.stats-bar::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gray-900));
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ========================================
   PROBLEM SECTION - PATTERN INTERRUPT
   ======================================== */

.problem-section {
    padding: var(--space-xxl) 0;
    background: var(--dark);
}

.problem-content {
    display: grid;
    grid-template-columns: 1.618fr 1fr; /* Golden ratio split */
    gap: var(--space-xxl);
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-title-left {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.problem-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.problem-point {
    display: flex;
    gap: var(--space-md);
}

.point-icon {
    font-size: var(--text-2xl);
    flex-shrink: 0;
}

.point-content h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.point-content p {
    color: var(--gray-300);
    line-height: 1.618;
}

.problem-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================
   SOLUTION SECTION
   ======================================== */

.solution-section {
    padding: var(--space-xxl) 0;
    background: var(--gray-900);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1.618fr; /* Golden ratio reverse */
    gap: var(--space-xxl);
    align-items: center;
}

.solution-content.reverse {
    grid-template-columns: 1.618fr 1fr;
}

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

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

.solution-description {
    font-size: var(--text-lg);
    line-height: 1.618;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.solution-description strong {
    color: var(--white);
    font-weight: 600;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.feature-icon {
    font-size: var(--text-2xl);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.feature-item p {
    color: var(--gray-300);
    line-height: 1.618;
}

.solution-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================
   MANIFESTO - MODERN CARDS
   ======================================== */

.manifesto-modern {
    padding: calc(var(--space-xxl) * 1.618) 0;
    background: var(--dark);
}

.manifesto-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xxl);
}

.section-title-center {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.manifesto-intro {
    font-size: var(--text-lg);
    color: var(--gray-300);
    line-height: 1.618;
}

.manifesto-intro strong {
    color: var(--white);
    font-weight: 600;
}

.manifesto-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.manifesto-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: var(--space-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.manifesto-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 45, 85, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 45, 85, 0.2);
}

.card-icon {
    width: 140px; /* Increased from default - icons pop more */
    height: 140px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.manifesto-card:hover .card-icon img {
    transform: scale(1.1);
}

.manifesto-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.manifesto-card p {
    color: var(--gray-300);
    line-height: 1.618;
    font-size: var(--text-base);
}

/* ========================================
   PROOF SECTION - SUCCESS STORIES
   ======================================== */

.proof-section {
    padding: calc(var(--space-xxl) * 1.618) 0;
    background: var(--gray-900);
}

.proof-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xxl);
}

.stories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--space-xl);
}

.story-card-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card-modern:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.story-image {
    width: 100%;
    height: 260px; /* Golden ratio: 260/160 ≈ 1.625 */
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card-modern:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: var(--space-xl);
}

.story-meta h4 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.story-role {
    font-size: var(--text-sm);
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.story-quote {
    color: var(--gray-300);
    line-height: 1.618;
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.story-outcome {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.outcome-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: calc(var(--space-xxl) * 1.618) 0;
    background: var(--dark);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
    font-weight: 900;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--gray-300);
    line-height: 1.618;
    margin-bottom: var(--space-xl);
}

.cta-primary-large {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    box-shadow: 0 10px 30px rgba(255, 45, 85, 0.3);
}

.cta-primary-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 45, 85, 0.5);
}

.cta-subtext {
    margin-top: var(--space-lg);
    color: var(--gray-400);
    font-size: var(--text-sm);
}

/* ========================================
   FOOTER
   ======================================== */

.footer-modern {
    background: var(--gray-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.footer-tagline {
    color: var(--gray-400);
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger delays */
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --text-3xl: 3rem;
        --text-2xl: 2rem;
        --space-xxl: 4rem;
    }
    
    .problem-content,
    .solution-content,
    .solution-content.reverse {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .problem-visual,
    .solution-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: var(--space-md);
    }
    
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .manifesto-grid-modern,
    .stories-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide,
    .container-narrow {
        padding: 0 var(--space-md);
    }
    
    .stat-number {
        font-size: var(--text-2xl);
    }
    
    .card-icon {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
