/* JetBrains Mono Font Loading */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/src/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/src/JetBrains_Mono/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800;
    font-style: italic;
    font-display: swap;
}

/* Custom Green Color Palette */
:root {
    --primary: #2d5a2d;           /* Deep forest green */
    --primary-light: #4a7c59;    /* Medium forest green */
    --secondary: #6b8e5a;        /* Sage green */
    --success: #52c41a;          /* Fresh green */
    --info: #4ecdc4;             /* Soft mint green */
    --warning: #ff6b6b;          /* Light sage */
    --danger: #ec350c;           /* Warm brown (muted alternative to red) */
    --light: #f7faf5;            /* Very light green tint */
    --light-blue: #45b7d1;            /* Very light blue tint */
    --dark: #1a3d1a;             /* Very dark green */
    --muted: #b4b7b3;            /* Muted green-gray */
    --muted-dark: #949494;            /* Muted green-gray */
    --background: #fafcf7;       /* Soft green-white background */
    --surface: #ffffff;          /* Pure white for cards */
    --accent: #b8d8ba;           /* Soft green accent */
    --accent-dark: #3d503f;           /* dark green accent */
    --grey: #ccc;
    --logo-og: #ffbfa2;

}

body {
    background-color: var(--background);
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;*/
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', 'Courier New', monospace;

}

a {
    color: var(--secondary);
}
a:hover {
    color: var(--primary);
}

.link-none {
    text-decoration: none;
}

.main-button {
    height: 120px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: var(--accent-dark);
}

.feed-button {
    background: linear-gradient(135deg, var(--warning), var(--warning)) !important;
    border: none !important;
    color: white !important;
}

.nap-button {
    background: linear-gradient(135deg, var(--info), var(--info)) !important;
    border: none !important;
    color: white !important;
}

.view-data-button {
    background: linear-gradient(135deg, var(--light-blue), var(--light-blue)) !important;
    border: none !important;
    color: white !important;
}

.schedule-item {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ongoing-nap {
    background: linear-gradient(135deg, var(--accent), var(--accent));
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.recent-activity {
    font-size: 0.9rem;
    color: var(--muted);
}

.time-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--dark);
}

.manual-time-input {
    display: none;
}


/* view page styles */
.feed-entry {
    border-left: 4px solid var(--warning);
}

.nap-entry {
    border-left: 4px solid var(--info);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 8px;
    padding: 12px 16px !important;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stats-card i {
    font-size: 1.2rem !important;
    margin-bottom: 4px !important;
    opacity: 0.9;
}

.stats-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 4px 0 2px 0;
    line-height: 1;
}

.stats-card p {
    font-size: 0.75rem;
    margin: 0 !important;
    opacity: 0.9;
    font-weight: 500;
}

.chart-container {
    background: var(--surface);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.entry-card {
    transition: all 0.2s ease;
}

.entry-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

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


.nav-pills .nav-link.active {
    background-color: var(--secondary);
}

.delete-btn {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}

/* Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

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

.btn-outline-primary {
    background-color: var(--surface) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--surface) !important;
}

.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-info {
    background-color: var(--info) !important;
    border-color: var(--info) !important;
}

.btn-warning {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
    color: var(--dark) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-background {
    color: var(--background) !important;
}

.text-light-blue {
    color: var(--light-blue) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-background {
    background-color: var(--background) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-grey {
    background-color: var(--grey) !important;
}

.bg-logo-og {
    background-color: var(--logo-og) !important;
}

.bg-accent-dark {
    background-color: var(--accent-dark) !important;
}

.bg-light-blue {
    background-color: var(--light-blue) !important;
}

.bg-info {
    background-color: var(--info) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.alert-success {
    background-color: var(--light) !important;
    border-color: var(--success) !important;
    color: var(--dark) !important;
}

.alert-info {
    background-color: var(--light) !important;
    border-color: var(--info) !important;
    color: var(--dark) !important;
}


/* dashboard page styles */
.dashboard-header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.dashboard-header-nav {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-header-nav .brand {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.dashboard-header-nav .nav-items {

}

.dashboard-header-nav .nav-item {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.dashboard-header-nav .nav-item:hover {
    opacity: 1;
    color: white;
}

.dashboard-header-nav .nav-button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dashboard-header-nav .nav-button:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.nav-buttons {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
}

.nav-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    margin-left: 0.5rem;
    transition: all 0.3s;
}

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

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vital-card {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 120px;
}

.placeholder-text {
    color: var(--muted);
    font-style: italic;
}

/* Recent Activity Timeline Styles */
.recent-activity-section {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.activity-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light);
    transition: background-color 0.2s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background-color: var(--light);
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.activity-content {
    flex-grow: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.activity-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.activity-item:hover .activity-actions {
    opacity: 1;
}

.activity-details {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.activity-time-ago {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Quick Insights Styles */
.insights-row {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.insight-card:hover {
    transform: translateY(-2px);
}

.insight-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.insight-header h6 {
    color: var(--dark);
    font-weight: 600;
}

.mini-chart-container {
    height: 100px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sleep-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2px;
}

.sleep-block {
    width: 8px;
    background: var(--info);
    border-radius: 2px;
    opacity: 0.8;
}

.sleep-block.ongoing {
    background: var(--warning);
    animation: pulse 2s infinite;
}

.insight-summary {
    border-top: 1px solid var(--accent);
    padding-top: 0.5rem;
}

/* Schedule Adherence Panel Styles */
.schedule-section {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.schedule-timeline {
    max-height: 500px;
    overflow-y: auto;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    transition: all 0.2s;
    position: relative;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item.completed {
    opacity: 0.7;
}

.schedule-item.overdue {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 3px solid var(--warning);
    padding-left: 1rem;
    margin-left: -0.5rem;
}

.schedule-item.upcoming {
    border-left: 3px solid var(--info);
    padding-left: 1rem;
    margin-left: -0.5rem;
}

.schedule-time {
    flex-shrink: 0;
    width: 70px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.schedule-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    margin: 0 1rem;
    font-size: 1rem;
}

.schedule-item.completed .schedule-icon {
    background: var(--accent);
}

.schedule-content {
    flex-grow: 1;
    min-width: 0;
}

.schedule-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.schedule-notes {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.schedule-logged {
    font-size: 0.8rem;
}

.schedule-actions {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.schedule-item:hover .schedule-actions {
    opacity: 1;
}

.schedule-summary {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

/* Quick Reports Styles */
.reports-row {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid var(--accent);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.report-header h6 {
    color: var(--dark);
    font-weight: 600;
}

.report-summary {
    border-top: 1px solid var(--accent);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Chart Toggle Styles */
.chart-toggle {
    opacity: 0;
    transition: opacity 0.2s;
}

.report-card:hover .chart-toggle {
    opacity: 1;
}

.toggle-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

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

.toggle-btn i {
    font-size: 0.8rem;
}

/* Quick Date Filter Styles */
.quick-date-filter {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--accent);
}

.quick-filter {
    transition: all 0.2s;
}

.quick-filter.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quick-filter:not(.active):hover {
    background-color: var(--accent);
    border-color: var(--secondary);
}

#customDateFrom, #customDateTo {
    max-width: 140px;
}

#dateRangeDisplay {
    font-weight: 500;
}

@media (max-width: 768px) {
    .dashboard-header-nav {
        margin: 0 1rem;
        padding: 0.75rem 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-header-nav .nav-items {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .dashboard-header-nav .nav-item,
    .dashboard-header-nav .nav-button {
        font-size: 0.8rem;
    }
    
    .vitals-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile date filter adjustments */
    .quick-date-filter .row {
        flex-direction: column;
    }
    
    .quick-date-filter .col-md-8,
    .quick-date-filter .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .quick-filter {
        margin-bottom: 0.5rem;
    }
    
    #customDateFrom, #customDateTo {
        max-width: 100%;
    }
}

/* ========== Dashboard Navigation Styles ========== */

/* Responsive header styles */
@media (max-width: 576px) {
    .btn[href*="log"], .btn[href*="index"] {
        padding: 10px 15px !important;
        min-width: 50px;
    }
}

/* Mobile navigation styles */
#mobileNav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333 !important;
}

/* Hamburger button styles */
.btn[data-bs-target="#mobileNav"]:hover {
    color: #333 !important;
    background-color: #f8f9fa !important;
}

/* Ensure mobile menu doesn't overflow */
.position-relative {
    overflow: visible !important;
}

/* Brand text responsive */
@media (max-width: 420px) {
    .brand span {
        font-size: 1rem !important;
    }
}

/* Navigation active states */
.nav-item.active,
.dropdown-item.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Chart toggle buttons */
.chart-toggle {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chart-toggle:hover {
    opacity: 1;
}

.chart-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.landing-page {
    overflow-x: hidden;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--background) 0%, var(--light) 100%);
    position: relative;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 1rem;
    text-align: center;
    min-height: 200px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--info));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
}

.hero-stats .stat-item {
    padding: 1rem 0.5rem;
}

.hero-stats h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
    color: var(--dark);
}

.hero-cta .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame {
    background: #333;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #666;
    border-radius: 2px;
}

.phone-screen {
    background: #fbfcf8;
    border-radius: 20px;
    padding: 7px;
    min-height: 500px;
    position: relative;
}

.app-preview .app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.app-time {
    text-align: center;
}

.app-time .time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark);
}

.app-time .date {
    font-size: 0.9rem;
    color: var(--muted);
}

.status-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.badge-item {
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--dark);
}

.badge-item.feed i {
    color: var(--warning);
}

.badge-item.sleep i {
    color: var(--info);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    background: white;
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.action-btn.feed-btn {
    border-color: var(--warning);
    color: var(--warning);
}

.action-btn.sleep-btn {
    border-color: var(--info);
    color: var(--info);
}

.action-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.ongoing-activity {
    background: var(--accent);
    border-radius: 10px;
    padding: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.activity-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.activity-duration {
    font-style: italic;
    font-size: 0.8rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

/* Features Section */
.features-section {
    background: var(--surface);
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--dark);
    font-size: 0.9rem;
}

.feature-list li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(135deg, var(--background) 0%, var(--light) 100%);
}

.step-item {
    position: relative;
    padding: 2rem;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.step-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.step-item p {
    color: var(--muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    background: var(--surface);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.simple-card {
    border: 1px solid var(--accent);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.simple-card:hover {
    border-color: var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--muted);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
}

.period {
    font-size: 1rem;
    color: var(--muted);
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--dark);
}

.pricing-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.pricing-cta .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.pricing-note {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 20px;
}

.pricing-note h5 {
    color: var(--dark);
    margin-bottom: 1rem;
}

/* Open Source Section */
.open-source-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent-dark) 100%);
    color: white;
}

.open-source-section .section-title {
    color: white;
}

.open-source-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.github-stats .stat-item h4 {
    color: white;
}

.github-stats .stat-item p {
    color: rgba(255, 255, 255, 0.7);
}

.code-preview {
    position: relative;
}

.code-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.code-header {
    background: #333;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28ca42;
}

.code-title {
    color: #ccc;
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
}

.code-content pre {
    margin: 0;
    color: #f8f8f2;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Community Section */
.community-section {
    background: var(--surface);
}

.community-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.personal-card {
    border-color: var(--logo-og);
    background: var(--light);
}

.personal-card:hover {
    border-color: var(--primary);
}

.community-card i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.community-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.community-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer-section {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand h5 {
    color: white;
    font-weight: 600;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted-dark);
    font-weight: 500;
    text-align: center;
    min-height: 400px;
}

.screenshot-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.screenshot-placeholder .placeholder-text {
    font-size: 0.9rem;
    max-width: 200px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
    
    .phone-screen {
        min-height: 400px;
        padding: 15px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .tech-badges {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-cta .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .code-content pre {
        font-size: 0.75rem;
        white-space: pre-wrap;
    }
}

/* Demo Loading Page Styles */
.demo-loading-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background) 0%, var(--light) 100%);
}

.demo-loading-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.demo-loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: demo-spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes demo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.demo-loading-title {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.demo-loading-message {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.demo-loading-steps {
    text-align: left;
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.demo-loading-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.demo-loading-step:last-child {
    margin-bottom: 0;
}

.demo-loading-step i {
    color: var(--success);
    margin-right: 0.75rem;
    width: 16px;
}

.demo-error-container {
    display: none;
}

.demo-error-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border-left: 5px solid var(--danger);
}