/**
 * WeFlipify - Main Stylesheet
 * 
 * @package     WeFlipify
 * @author      WE Nest
 * @copyright   2024 WE Nest
 * @license     Proprietary
 * @version     1.0.0
 * @link        https://weflipify.com
 * 
 * @filename    style.css
 * @description Main stylesheet for WeFlipify landing page
 * @created     2025-12-27
 * @updated     2025-12-27
 * 
 * Colors:
 *   Dark Blue:  #294668 (frames, filled elements, headings)
 *   Light Blue: #75a7cc (header, footer, lines, underlines)
 *   Gray:       #3e3e3f (body text)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --color-primary: #294668;
    --color-secondary: #75a7cc;
    --color-text: #3e3e3f;
    --color-white: #ffffff;
    --color-bg-light: #f5f9fc;
    --color-bg-hero: linear-gradient(135deg, #e8f4fc 0%, #f0f7fb 50%, #fdf5f0 100%);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(41, 70, 104, 0.1);
    --shadow-md: 0 4px 12px rgba(41, 70, 104, 0.15);
    --shadow-lg: 0 10px 40px rgba(41, 70, 104, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --header-height: 70px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-family); 
    font-size: 16px; 
    line-height: 1.6; 
    color: var(--color-text); 
    background: var(--color-white); 
    -webkit-font-smoothing: antialiased; 
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 24px; 
    font-size: 14px; 
    font-weight: 600; 
    border-radius: var(--radius-md); 
    transition: all 0.2s ease; 
    white-space: nowrap; 
}
.btn-primary { 
    background: var(--color-primary); 
    color: var(--color-white); 
    border: 2px solid var(--color-primary); 
}
.btn-primary:hover { background: #1e3550; border-color: #1e3550; }
.btn-outline { 
    background: transparent; 
    color: var(--color-primary); 
    border: 2px solid var(--color-primary); 
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: var(--header-height); 
    background: var(--color-secondary); 
    z-index: 1000; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}
.header-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: var(--header-height); 
}
.logo { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 8px; }
.nav-link { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    padding: 8px 16px; 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--color-white); 
    border-radius: var(--radius-sm); 
    transition: background 0.2s ease; 
}
.nav-link:hover { background: rgba(255, 255, 255, 0.15); }
.nav-link svg { opacity: 0.7; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-outline { color: var(--color-white); border-color: var(--color-white); }
.header-actions .btn-outline:hover { background: var(--color-white); color: var(--color-primary); }
.header-actions .btn-primary { background: var(--color-primary); border-color: var(--color-primary); }
.login-link { padding: 8px 16px; color: var(--color-white); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); border-radius: 2px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { 
    position: relative; 
    padding: 140px 0 80px; 
    min-height: 90vh; 
    background: var(--color-bg-hero); 
    overflow: hidden; 
}
.hero-bg { 
    position: absolute; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    width: 50%; 
    background: linear-gradient(135deg, transparent 0%, rgba(117, 167, 204, 0.1) 100%); 
}
.hero-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}
.hero-text { position: relative; z-index: 2; }
.hero h1 { 
    font-size: 52px; 
    font-weight: 700; 
    color: var(--color-primary); 
    line-height: 1.15; 
    margin-bottom: 24px; 
}
.hero-description { 
    font-size: 18px; 
    line-height: 1.7; 
    color: var(--color-text); 
    margin-bottom: 16px; 
    max-width: 480px; 
}
.hero-tagline {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 32px;
    font-style: italic;
}
.hero-buttons { display: flex; gap: 16px; }
.hero-visual { position: relative; z-index: 2; }

/* ==========================================================================
   Preview Window
   ========================================================================== */
.flipbook-preview { position: relative; }
.preview-window { 
    background: var(--color-white); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg); 
    overflow: hidden; 
}
.preview-dots { 
    display: flex; 
    gap: 6px; 
    padding: 12px 16px; 
    background: #f5f5f5; 
    border-bottom: 1px solid #e5e5e5; 
}
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.preview-dots span:first-child { background: #ff6b6b; }
.preview-dots span:nth-child(2) { background: #ffd93d; }
.preview-dots span:last-child { background: #6bcb77; }
.preview-content { 
    padding: 20px; 
    min-height: 300px; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
}

.demo-book { display: flex; gap: 4px; max-width: 500px; margin: 0 auto; }
.demo-page { 
    flex: 1; 
    aspect-ratio: 0.75; 
    background: var(--color-white); 
    border-radius: var(--radius-sm); 
    box-shadow: var(--shadow-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}
.demo-page-content { text-align: center; }
.demo-page-content h3 { font-size: 16px; color: var(--color-primary); margin-bottom: 8px; }
.demo-page-content p { font-size: 12px; color: var(--color-text); }

.preview-tools { 
    position: absolute; 
    top: 80px; 
    right: -50px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.tool-btn { 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    background: var(--color-white); 
    box-shadow: var(--shadow-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--color-secondary); 
    font-size: 12px; 
    font-weight: 600; 
    transition: transform 0.2s ease; 
}
.tool-btn:hover { transform: scale(1.1); }

/* ==========================================================================
   Trusted By
   ========================================================================== */
.trusted-by { 
    padding: 40px 0; 
    background: var(--color-white); 
    border-bottom: 1px solid #e5e5e5; 
}
.trusted-logos { text-align: center; }
.trusted-text { 
    display: block; 
    font-size: 13px; 
    color: #888; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.logos-grid { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 48px; 
    flex-wrap: wrap; 
}
.logo-item { font-size: 18px; font-weight: 600; color: #bbb; }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: 100px 0; background: var(--color-white); }
.section-title { 
    text-align: center; 
    font-size: 36px; 
    font-weight: 700; 
    color: var(--color-primary); 
    margin-bottom: 60px; 
}
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
}
.feature-card { 
    text-align: center; 
    padding: 32px 24px; 
    border-radius: var(--radius-lg); 
    transition: box-shadow 0.3s ease; 
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--color-primary); 
    margin-bottom: 12px; 
}
.feature-card p { font-size: 14px; color: var(--color-text); line-height: 1.6; }

/* ==========================================================================
   Demo Section
   ========================================================================== */
.demo-section { padding: 80px 0; background: var(--color-bg-light); }
.demo-wrapper { 
    max-width: 900px; 
    margin: 0 auto; 
    background: var(--color-white); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg); 
    overflow: hidden; 
}
.demo-header { 
    display: flex; 
    align-items: center; 
    padding: 12px 20px; 
    background: #fafafa; 
    border-bottom: 1px solid #e5e5e5; 
}
.demo-title { font-size: 14px; font-weight: 500; color: var(--color-text); }
.demo-pages { margin-left: 20px; font-size: 13px; color: #888; }
.demo-search { margin-left: auto; padding: 8px; color: #888; transition: color 0.2s ease; }
.demo-search:hover { color: var(--color-primary); }

.demo-flipbook-container { 
    position: relative; 
    background: linear-gradient(180deg, #fef6e8 0%, #fdf0dc 100%); 
    min-height: 500px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.flipbook-placeholder { color: #888; }

/* ==========================================================================
   Toolbar
   ========================================================================== */
.demo-toolbar { 
    display: flex; 
    align-items: center; 
    padding: 10px 20px; 
    background: #fafafa; 
    border-top: 1px solid #e5e5e5; 
}
.toolbar-left, .toolbar-center, .toolbar-right { display: flex; align-items: center; gap: 4px; }
.toolbar-left { flex: 1; }
.toolbar-center { flex: 1; justify-content: center; }
.toolbar-right { flex: 1; justify-content: flex-end; }
.toolbar-btn { 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--radius-sm); 
    color: #666; 
    transition: all 0.2s ease; 
}
.toolbar-btn:hover { background: #e5e5e5; color: var(--color-primary); }
.toolbar-branding { 
    margin-left: 20px; 
    padding-left: 20px; 
    border-left: 1px solid #e5e5e5; 
    font-size: 12px; 
    color: #888; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.branding-link { display: flex; align-items: center; }
.branding-logo { height: 24px; width: auto; }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section { padding: 100px 0; background: var(--color-primary); text-align: center; }
.cta-content h2 { font-size: 36px; font-weight: 700; color: var(--color-white); margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: rgba(255, 255, 255, 0.8); margin-bottom: 32px; }
.cta-section .btn-primary { 
    background: var(--color-white); 
    color: var(--color-primary); 
    border-color: var(--color-white); 
}
.cta-section .btn-primary:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 60px 0 0; background: var(--color-secondary); color: var(--color-white); }
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 48px; 
    padding-bottom: 48px; 
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-logo { height: 50px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.6; opacity: 0.9; margin-bottom: 12px; }
.footer-company a { text-decoration: underline; }
.footer-links h4 { 
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 20px; 
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 24px 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    font-size: 13px; 
    opacity: 0.8; 
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 1; }
    .hero-visual { order: 2; }
    .hero-description { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav, .header-actions .btn { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero h1 { font-size: 36px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   Fullscreen Mode
   ========================================================================== */
.flipbook-fullscreen { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important; 
    width: 100vw !important; 
    height: 100vh !important; 
    z-index: 9999 !important; 
    background: rgba(0, 0, 0, 0.95) !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}
