:root {
    /* Palette from Design Specs */
    --color-primary: #1A237E;    /* Deep Navy */
    --color-secondary: #448AFF;  /* Tech Blue */
    --color-fresh: #43A047;      /* Leaf Green */
    --color-sync: #D32F2F;       /* Berry Red */
    --color-bg: #FAFAFA;         /* Off-White */
    --color-surface: #FFFFFF;    /* Pure White */
    --color-text: #333333;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    background-color: var(--color-surface);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px; /* Constrain logo height */
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.nav-toggle-line {
    width: 18px;
    height: 2px;
    background: var(--color-primary);
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding-top: 0.5rem;
        border-top: 1px solid #ececec;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        width: 100%;
        padding: 0.65rem 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
    background-color: #2962FF; /* Darker shade of Tech Blue */
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: rgba(68, 138, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, #E3F2FD 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    min-height: 300px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Sections General */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.solution-card-dynamic {
    border-top-color: var(--solution-accent);
}

.card-fresh {
    border-top-color: var(--color-fresh);
}

.card-sync {
    border-top-color: var(--color-sync);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.solution-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.solution-card p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-text {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Trust Bar */
.trust-bar {
    background-color: #E8EAF6; /* Light Indigo tint */
    padding: 2rem 0;
    text-align: center;
}

.trust-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Contact & About */
.about-content, .contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-container p {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* Product Detail Pages (Solutions Hub) */
.product-section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.product-section:last-of-type {
    border-bottom: none;
}

.product-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.product-container.reverse {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-visual {
    flex: 1;
    height: 350px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .product-container, .product-container.reverse {
        flex-direction: column;
    }
    .product-visual {
        width: 100%;
        height: 250px;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-container {
    max-width: 700px; /* Optimal reading width */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.article-meta {
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: block;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.article-body h3, .article-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.article-body ul, .article-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Post Layout */
.post-hero-section {
    padding-bottom: 2rem;
}

.post-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(68, 138, 255, 0.12);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title {
    color: var(--color-primary);
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-meta-inline {
    margin-bottom: 0;
}

.post-meta-dot {
    color: #9e9e9e;
}

.post-content-section {
    padding-top: 2rem;
}

.post-cover-wrap {
    margin-top: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.post-cover-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.post-body h1 {
    display: none;
}

.post-body hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 2rem 0;
}

.post-cta-card {
    margin-top: 3rem;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.post-cta-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.post-cta-card p {
    margin-bottom: 1rem;
    color: #555;
}

.post-cta-actions {
    margin-top: 0;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
}

/* App Store Badge Placeholders */
.app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.badge-placeholder {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Utility Classes */
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.my-1 { margin: 1rem 0; }
.my-15 { margin: 1.5rem 0; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-muted { color: #666; }
.muted-sm { font-size: 0.9rem; color: #666; }
.justify-center { justify-content: center; }
.icon-48 { width: 48px; height: 48px; }
.solution-icon { width: 64px; height: 64px; }

/* Solutions Page */
.section-title-spaced { margin-top: 1.5rem; }
.product-actions { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.product-visual-stack { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.freshfolio-visual-card {
    max-width: 400px;
    background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.freshfolio-visual-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: white;
    padding: 10px;
}

.freshfolio-visual-title { margin: 0 0 1rem 0; font-size: 1.5rem; }
.freshfolio-visual-text { margin: 0; opacity: 0.9; font-size: 0.95rem; }
.freshfolio-visual-meta { margin: 1rem 0 0 0; font-size: 0.85rem; opacity: 0.8; }

.planning-preview-wrap { max-width: 400px; margin-top: 1rem; }
.app-preview-label { text-align: center; margin-bottom: 1rem; font-size: 0.9rem; color: #666; }

.screenshot-preview { width:100%; height:400px; object-fit:cover; display:block; cursor: zoom-in; }
.screenshot-open {
    position:absolute;
    top:8px;
    right:8px;
    background:rgba(0,0,0,0.6);
    color:white;
    border:none;
    border-radius:8px;
    padding:8px 10px;
    cursor:pointer;
    font-weight:600;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

.screenshot-carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carousel-slides { display: flex; transition: transform 0.3s ease; }
.carousel-slide { min-width: 100%; text-align: center; position: relative; }
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.8rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots { text-align: center; margin-top: 0.5rem; }
.carousel-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #ccc;
    margin: 0 3px;
    cursor: pointer;
}

.carousel-dot.active { background: #1976D2; }

#lightbox {
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.6);
    z-index:9999;
}

#lightbox.hidden { display:none; }

#lightbox-content {
    width:min(95vw, 640px);
    max-height:95vh;
    overflow:hidden;
    position:relative;
}

#lightbox img {
    width:100%;
    max-height:95vh;
    object-fit:contain;
    display:block;
}

.lightbox-close {
    position:absolute;
    top:8px;
    right:8px;
    background:transparent;
    color:white;
    border:none;
    font-size:24px;
    z-index:4;
    cursor:pointer;
}

.lightbox-nav {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.45);
    color:white;
    border:none;
    border-radius:22px;
    width:44px;
    height:44px;
    display:none;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:3;
}

.lightbox-nav-left { left:8px; }
.lightbox-nav-right { right:8px; }

.app-stores-section {
    padding:3rem 0;
    text-align:center;
    background:#f9f9f9;
    border-radius:8px;
}

.app-stores-note { margin:1rem 0; }

.app-stores-grid {
    display:flex;
    gap:3rem;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:2rem;
}

.app-store-card {
    text-align:center;
    padding:2rem;
    background:white;
    border-radius:8px;
    min-width:280px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.app-store-icon-wrap {
    width:80px;
    height:80px;
    margin:0 auto 1rem;
    display:flex;
    align-items:center;
    justify-content:center;
}

.app-store-icon { width:80px; height:80px; border-radius:20px; }
.app-store-title-fresh { color:#43A047; margin-bottom:0.5rem; }
.app-store-title-sync { color:#1976D2; margin-bottom:0.5rem; }
.app-store-title { color: var(--solution-accent); margin-bottom: 0.5rem; }
.app-store-subtitle { color:#666; margin:0.5rem 0; font-size:0.95rem; }
.app-store-platforms { font-size:0.85rem; color:#999; margin-bottom:1.5rem; }

.store-badges {
    display:flex;
    flex-direction:column;
    gap:0.75rem;
    align-items:center;
}

.store-badge {
    width: 160px;
    height: auto;
    display: block;
}

.store-badges a .store-badge {
    transition: transform 0.2s;
}

.store-badges a:hover .store-badge {
    transform: scale(1.05);
}

.store-badge-disabled {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.store-link-note { margin-top:1rem; font-size:0.85rem; }
.support-inline-note { margin-top:2rem; font-size:0.9rem; color:#666; }

.bottom-cta {
    padding:3rem 0;
    text-align:center;
    border-top:1px solid #eee;
    margin-top:2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .product-actions .btn,
    .bottom-cta .btn,
    .contact-container .btn {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        height: 220px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2,
    .contact-container h2 {
        font-size: 2rem;
    }

    .solutions-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .solution-card {
        padding: 1.25rem;
    }

    .trust-content {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 1rem;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-body ul,
    .article-body ol {
        margin-left: 1.25rem;
    }

    .screenshot-preview {
        height: 300px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .app-stores-grid {
        gap: 1rem;
    }

    .app-store-card {
        min-width: 0;
        width: 100%;
        padding: 1.25rem;
    }

    .store-badge {
        width: 170px;
        height: auto;
        max-width: 100%;
    }

    .footer {
        margin-top: 3rem;
        padding: 2rem 0;
    }

    .footer-links {
        gap: 0.5rem 1rem;
    }
}