/* ===== Base ===== */
:root {
    --primary: #006fbe;
    --primary-dark: #005091;
    --accent: #ff9a1f;
    --text-color: #333333;
    --muted: #6c757d;
    --bg-light: #f4f6f9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Container max width a bit larger for desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1180px;
    }
}

/* ===== Header / Navbar ===== */
.main-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand span {
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    color: #1f2933;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -0.35rem;
    height: 3px;
    background-color: var(--accent);
    border-radius: 999px;
}

/* Better tap target on mobile */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link:hover::after {
        left: 0;
        right: auto;
        width: 60px;
    }
}

/* ===== Hero (common for all pages) ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0084df 50%, #0096f1 100%);
    color: #ffffff;
    padding: 3.5rem 0 3rem;
}

.hero--compact {
    padding-top: 3rem;
    padding-bottom: 2.75rem;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p.lead {
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-cta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-btn-main {
    background-color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
    padding-inline: 1.75rem;
}

.hero-btn-main:hover {
    background-color: #ff8a00;
    border-color: #ff8a00;
}

.hero-btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
    font-weight: 500;
}

.hero-btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary);
}

.hero-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

/* On small screens stack hero */
@media (max-width: 991.98px) {
    .hero {
        text-align: center;
    }

    .hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-screenshot {
        margin-top: 2.5rem;
    }
}

/* ===== Generic Sections ===== */
.section-padding {
    padding: 3.5rem 0;
}

.section-padding-sm {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
}

/* ===== Home: Easy off-site backups block ===== */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-circle+h5 {
    margin-top: 0.85rem;
}

/* ===== Home: Power features grid ===== */
.power-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

@media (max-width: 991.98px) {
    .power-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .power-features {
        grid-template-columns: 1fr;
    }
}

.power-feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.power-feature-item p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ===== Home: Logos ===== */
.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.logo-item {
    width: 150px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: .8;
    transition: .2s;
}

.logo-item img:hover {
    opacity: 1;
}


/* ===== Home: Supported + News ===== */
.supported-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.supported-card h4 {
    font-weight: 600;
}

.supported-card ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.news-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.news-list li+li {
    margin-top: 0.35rem;
}

.news-list a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95rem;
}

.news-list a:hover {
    text-decoration: underline;
}

/* ===== Screens page ===== */
.layout-with-sidebar {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.article-sidebar {
    border-right: 1px solid #e5e7eb;
    padding-right: 1.5rem;
    margin-bottom: 2rem;
}

.article-sidebar h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.article-sidebar li+li {
    margin-top: 0.35rem;
}

.article-sidebar a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.article-sidebar a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .article-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 1.5rem;
    }
}

/* Rich article content styling */
.article-content {
    font-size: 0.98rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content h1 {
    font-size: 1.75rem;
}

.article-content h2 {
    font-size: 1.4rem;
}

.article-content h3 {
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 0.9rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.article-content code {
    background-color: #f1f5f9;
    border-radius: 0.25rem;
    padding: 0.1rem 0.25rem;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #0f172a;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9em;
    overflow: auto;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--muted);
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Article pagination */
.article-pagination {
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.95rem;
}

.article-pagination span {
    font-weight: 600;
    margin-right: 0.25rem;
}

.article-pagination a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.article-pagination a:hover {
    text-decoration: underline;
}

/* ===== Features page ===== */
.features-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--muted);
}

.features-table-wrapper {
    margin-top: 2rem;
}

.features-note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===== Download page ===== */
.download-box {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.download-platforms {
    margin-top: 2.5rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.download-platforms-icon {
    font-size: 2.5rem;
}

.download-platforms p {
    margin-bottom: 0.4rem;
}

.download-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===== Footer ===== */
.footer {
    background-color: #1f2933;
    color: #e5e7eb;
    padding-top: 3rem;
    font-size: 0.93rem;
}

.footer a {
    color: #d1e9ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-heading {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #9ca3af;
}

.footer-list {
    list-style: none;
    padding-left: 0;
}

.footer-list li+li {
    margin-top: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    margin-top: 2rem;
    padding: 0.9rem 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ===== Buttons CTA band (common) ===== */
.cta-band {
    background-color: var(--primary);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.cta-band h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== Small screens tweaks ===== */
@media (max-width: 575.98px) {
    .hero {
        padding-inline: 1rem;
    }

    .section-padding,
    .section-padding-sm {
        padding-inline: 1rem;
    }

    .supported-card {
        padding: 1.5rem 1.25rem;
    }

    .download-box {
        margin-inline: 0.5rem;
        padding: 1.75rem 1.25rem;
    }
}