/* Color Palette - CSS Custom Properties */
:root {
    /* Primary Brand Colors */
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.1);
    --primary-border: rgba(139, 92, 246, 0.2);
    
    /* Success Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-border: rgba(34, 197, 94, 0.2);
    
    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #666;
    --text-light: #a0aec0;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    
    /* Border Colors */
    --border-light: #e5e5e5;
    --border-subtle: rgba(0, 0, 0, 0.08);
    
    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Feature Card Colors */
    --finance: #ef4444;
    --subscriptions: #10b981;
    --notes: #3b82f6;
    --todos: #f59e0b;
}

/* Dark Mode Color Palette */
body.dark-mode {
    --text-primary: #e5e5e5;
    --text-secondary: #a0aec0;
    --text-muted: #a0aec0;
    --text-light: #64748b;
    
    --bg-primary: hsla(222, 84%, 5%, 1);
    --bg-secondary: hsla(222, 84%, 8%, 1);
    --bg-card: hsla(222, 84%, 10%, 1);
    
    --border-light: hsla(222, 84%, 15%, 1);
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 32px;
    width: auto;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dark-icon {
    display: none !important;
}

.light-icon {
    display: block !important;
}

/* Logo switching */
.dark-logo {
    display: none;
}

/* Dark mode styles - now handled by CSS custom properties */

/* Dark mode logo switching */
body.dark-mode .light-logo {
    display: none;
}

body.dark-mode .dark-logo {
    display: block;
}

body.dark-mode .light-icon {
    display: none !important;
}

body.dark-mode .dark-icon {
    display: block !important;
}

/* Dark mode screenshot switching */
body.dark-mode .light-screenshot {
    display: none;
}

body.dark-mode .dark-screenshot {
    display: block;
}

/* Dark mode app screenshot styling */
body.dark-mode .app-screenshot {
    border: 1px solid var(--border-subtle);
    box-shadow: 
        0 4px 6px -1px var(--shadow-light),
        0 2px 4px -1px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
}

body.dark-mode .app-screenshot:hover {
    box-shadow: 
        0 20px 25px -5px var(--shadow-medium),
        0 10px 10px -5px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px var(--primary-border);
    border-color: var(--primary-border);
}

/* Hero Section */
.hero {
    padding: 40px 0 80px;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.hero-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 120px 40px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
    min-height: 85vh;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    padding-right: 0;
    padding-top: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
    min-height: 500px;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image:hover::after {
    opacity: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.app-screenshot {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: 
        0 4px 6px -1px var(--shadow-light),
        0 2px 4px -1px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.app-screenshot:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 25px -5px var(--shadow-light),
        0 10px 10px -5px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 0 1px var(--primary-border);
    border-color: var(--primary-border);
}

.light-screenshot {
    display: block;
}

.dark-screenshot {
    display: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    border: 1px solid var(--success-border);
}

.hero-badge i {
    color: var(--success);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.feature-card.finance::before {
    background: var(--finance);
}

.feature-card.subscriptions::before {
    background: var(--subscriptions);
}

.feature-card.notes::before {
    background: var(--notes);
}

.feature-card.todos::before {
    background: var(--todos);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--subscriptions);
}

.trend-text {
    font-weight: 500;
}

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

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Documentation Section */
.docs {
    padding: 100px 0;
    background: var(--bg-primary);
}

.docs-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.docs-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.docs-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.code-block {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.code-block pre {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-block code {
    color: var(--text-primary);
}

.system-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.docs-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .system-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .docs-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Made with Love in Hero */
.hero-love {
    text-align: left;
    padding: 20px 0 0;
    margin-top: 20px;
}

.hero-love p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-love i {
    color: var(--finance);
    font-size: 18px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Dark mode for hero love - now handled by CSS custom properties */

/* Yellow Highlighting Effect - Basecamp Style */
.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #92400e;
    position: relative;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: all 0.3s ease;
    animation: highlightPulse 2s ease-in-out infinite;
}

.highlight:hover {
    background-position: 100% 50%;
    transform: scale(1.02);
}

@keyframes highlightPulse {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 1;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 0.9;
    }
}

/* Dark mode yellow highlighting */
body.dark-mode .highlight {
    background: linear-gradient(120deg, #451a03 0%, #78350f 50%, #92400e 100%);
    color: #fbbf24;
    background-size: 200% 100%;
    background-position: 0% 50%;
}

body.dark-mode .highlight:hover {
    background-position: 100% 50%;
    color: #fde68a;
}

/* Alternative highlight styles */
.highlight-bold {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #92400e;
    position: relative;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.highlight-bold:hover {
    background-position: 100% 50%;
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

body.dark-mode .highlight-bold {
    background: linear-gradient(120deg, #451a03 0%, #78350f 50%, #92400e 100%);
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .highlight-bold:hover {
    background-position: 100% 50%;
    color: #fde68a;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}
