/* ============================================================================
   BODYFATAI WEBSITE - DESIGN TOKENS
   Extracted from mobile app design system
   ============================================================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors */
    --color-brand-green: #00A857;
    --color-green-light: #00CC66;
    --color-green-mid: #00B35A;
    --color-green-dark: #006644;
    
    /* Trial/Premium */
    --color-orange: #FFA500;
    --color-gold: #FFD700;
    
    /* Error */
    --color-red: #FF5555;
    
    /* Backgrounds */
    --color-bg-primary: #111111;
    --color-bg-secondary: #1A1A1A;
    --color-bg-tertiary: #222222;
    --color-bg-elevated: #2A2A2A;
    
    /* Borders */
    --color-border: #333333;
    --color-border-accent: rgba(0, 168, 87, 0.2);
    
    /* Text */
    --color-text-primary: #F8F8F5;
    --color-text-secondary: #888888;
    --color-text-tertiary: #666666;
    --color-text-muted: #B0B0B0;
    
    /* Spacing Scale */
    --space-2: 0.125rem;
    --space-4: 0.25rem;
    --space-6: 0.375rem;
    --space-8: 0.5rem;
    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-20: 1.25rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-48: 3rem;
    --space-52: 3.25rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 4px 16px rgba(0, 168, 87, 0.2);
    --shadow-accent-strong: 0 8px 24px rgba(0, 168, 87, 0.4);
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

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

/* ============================================================================
   GRID PATTERN BACKGROUND
   ============================================================================ */

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
    position: relative;
    z-index: 1;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-16) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    text-decoration: none;
}

.logo:visited,
.logo:hover,
.logo:active {
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-green-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-accent);
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-accent);
}

.logo-text {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-light);
    color: var(--color-text-primary);
}

/* Ensure logo text stays white and never shows visited link color */
.logo .logo-text,
.logo:visited .logo-text,
.logo:hover .logo-text,
.logo:active .logo-text {
    color: var(--color-text-primary);
    text-decoration: none;
}

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

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-base);
}

.nav-link:hover {
    color: var(--color-brand-green);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    background: linear-gradient(90deg, var(--color-brand-green), var(--color-green-dark));
    color: var(--color-text-primary);
    padding: var(--space-12) var(--space-24);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: var(--font-weight-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-strong);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: var(--space-16) var(--space-32);
    font-size: var(--text-lg);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-48);
    align-items: center;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-24);
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-brand-green), var(--color-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-32);
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: var(--space-32);
}

.hero-features {
    display: flex;
    gap: var(--space-24);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.hero-feature i {
    color: var(--color-brand-green);
    font-size: var(--text-lg);
}

/* ============================================================================
   PHONE MOCKUP
   ============================================================================ */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Screenshot Mockup */
.phone-mockup-screenshot {
    width: 350px;
    max-width: 100%;
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 168, 87, 0.3));
}

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

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Legacy mockup styles - kept for backwards compatibility */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--color-bg-secondary);
    border-radius: var(--space-32);
    border: 8px solid var(--color-border);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    padding: var(--space-16);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    border-radius: var(--space-20);
    overflow: hidden;
}

.mockup-content {
    padding: var(--space-24);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.stat-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-brand-green);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    box-shadow: var(--shadow-accent);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    margin-bottom: var(--space-8);
}

.stat-value {
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(90deg, var(--color-brand-green), var(--color-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mockup-chart {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    display: flex;
    align-items: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    height: 200px;
    gap: var(--space-8);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--color-green-light), var(--color-brand-green));
    border-radius: var(--radius-sm);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.chart-bar.active {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 168, 87, 0.5);
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */

.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-52);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-16);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
}

.feature-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    border-color: var(--color-brand-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-green-mid), var(--color-green-light));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-20);
    box-shadow: var(--shadow-accent);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-12);
}

.feature-description {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
}

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

.cta {
    padding: 80px 0;
    position: relative;
}

.cta-content {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95), 
        rgba(27, 27, 27, 0.95), 
        rgba(30, 30, 30, 0.95));
    border: 1px solid var(--color-brand-green);
    border-radius: var(--radius-2xl);
    padding: var(--space-52);
    text-align: center;
    box-shadow: var(--shadow-accent-strong);
    backdrop-filter: blur(10px);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-green-light));
    padding: var(--space-8) var(--space-20);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-24);
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-16);
}

.cta-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-32);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: var(--space-16);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

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

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-52) 0 var(--space-24);
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-48);
    margin-bottom: var(--space-32);
}

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

.footer-tagline {
    color: var(--color-text-secondary);
    margin-top: var(--space-12);
    font-size: var(--text-sm);
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--color-brand-green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-24);
    border-top: 1px solid var(--color-border);
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.footer-security {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.footer-security i {
    color: var(--color-brand-green);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-32);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .phone-mockup-screenshot {
        width: 280px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: var(--space-16);
    }
    
    .nav-link {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    .cta-content {
        padding: var(--space-32);
    }
    
    .cta-title {
        font-size: var(--text-3xl);
    }
    
    .cta-subtitle {
        font-size: var(--text-base);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-12);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-16);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--space-12);
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .phone-mockup-screenshot {
        width: 220px;
    }
}

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

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.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; }

