:root {
    --bg: var(--bg-color);
    --white: var(--card-bg);
    --text: var(--text-color);
    --muted: var(--muted);
    --primary: #0d6efd;
    --border: var(--border-color);
    --shadow: 0 28px 80px rgba(13, 110, 253, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
}

.navbar-section {
    background: var(--landing-navbar-bg);
    border-bottom: 1px solid var(--landing-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-section .navbar-brand,
.navbar-section .navbar-toggler,
.navbar-section .nav-link {
    color: var(--text-color) !important;
}

.navbar-brand .bi-mortarboard-fill {
    color: var(--primary) !important;
}

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

.navbar-brand:hover .navbar-brand-text,
.navbar-brand:focus .navbar-brand-text {
    color: var(--navbar-brand-text) !important;
}

html[data-theme="dark"] .navbar-light .navbar-toggler-icon {
    filter: invert(1);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    letter-spacing: -0.5px;
}

.btn-register,
.btn-login {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
}

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

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

.hero-section {
    padding: 100px 0 70px;
    background: var(--landing-hero-bg);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.highlight {
    color: var(--primary);
}

.hero-copy {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-image-wrapper {
    max-width: 1100px;
    margin: 60px auto 0;
}

.hero-dashboard-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-dashboard-image {
        border-radius: 16px;
    }
}

.chart-area {
    min-height: 220px;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.09), rgba(255, 255, 255, 0.9));
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.chart-line,
.chart-line-alt {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d6efd, rgba(13, 110, 253, 0.3));
}

.chart-line {
    top: 34%;
    margin-left: 10%;
    margin-right: 20%;
}

.chart-line-alt {
    top: 58%;
    margin-left: 18%;
    margin-right: 12%;
    width: 70%;
}

.summary-row {
    gap: 1rem;
}

.summary-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border-color);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    flex: 1 1 45%;
    min-width: 130px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.summary-card strong {
    font-size: 1.1rem;
    color: var(--text);
}

.panel-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 100%;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--landing-card-bg);
    border-radius: 18px;
    border: 1px solid var(--landing-border-color);
}

.stat-title {
    font-size: 0.95rem;
    color: #445566;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.16);
}

.stat-bar.short {
    width: 40%;
}

.stat-bar.medium {
    width: 60%;
}

.stat-bar:not(.short):not(.medium) {
    width: 80%;
}

.features-section {
    background: var(--landing-section-bg);
}

.section-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-copy {
    color: var(--muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
}

html[data-theme="dark"] .stat-title {
    color: var(--muted);
}

.feature-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border-color);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.45rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0;
    flex: 1;
}

.info-section {
    background: var(--landing-info-bg);
    padding-top: 80px;
    padding-bottom: 80px;
}

.info-image {
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    background: var(--landing-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .info-image {
        min-height: 300px;
    }
}

.info-heading {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.info-list {
    display: grid;
    gap: 1.5rem;
}

.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-bullet {
    min-width: 46px;
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #0047b3);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.info-list strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.info-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.cta-section {
    background: var(--landing-cta-bg);
}

.cta-panel {
    background: transparent;
    border-radius: 30px;
    padding: 3.25rem 2rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
    max-width: 860px;
}

.cta-panel h2 {
    color: var(--white);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.75rem;
}

.btn-pill {
    border-radius: 999px;
    padding: 0.95rem 2.2rem;
}

.btn-light {
    background: var(--landing-card-bg);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .btn-light {
    border-color: rgba(255, 255, 255, 0.16);
}

.btn-light:hover,
.btn-light:focus {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    .navbar-nav {
        justify-content: center;
    }

    .hero-section {
        padding-top: 80px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .info-image {
        min-height: 320px;
        padding: 1.5rem;
    }

    .window-card-row {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        padding: 2.5rem 1.5rem;
    }
}

html[data-theme="dark"] .hero-dashboard-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .feature-card {
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .info-image {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .info-hero-image,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .hero-image-wrapper,
html[data-theme="dark"] .cta-panel {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ============================================================
   Site footer (always dark navy, independent of theme toggle)
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0B1220 0%, #111827 100%);
    color: #CBD5E1;
    padding: 4.5rem 0 2rem;
}

.site-footer .footer-brand {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    margin-bottom: 1rem;
}

.site-footer .footer-tagline {
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 260px;
}

.site-footer .footer-heading {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
}

/* Social buttons — rounded squares, teal accent, lift on hover */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #22D3EE;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.16);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease,
                box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
    color: #0B1220;
    background: #22D3EE;
    border-color: #22D3EE;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.35);
    outline: none;
}

/* Quick Links / Resources */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #22D3EE;
    transform: translateX(5px);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

/* Contact info */
.footer-contact li {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-contact li > i {
    color: #22D3EE;
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact-emails {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-contact a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #22D3EE;
    outline: none;
}

.footer-address {
    margin: 0;
    font-style: normal;
    color: #CBD5E1;
    line-height: 1.7;
}

/* Divider + bottom bar */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 3rem 0 1.75rem;
    opacity: 1;
}

.footer-bottom {
    color: #94A3B8;
    font-size: 0.9rem;
}

.footer-heart {
    color: #ef4444;
}

/* Floating WhatsApp button */
.whatsapp-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    text-decoration: none;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    animation: wa-glow 2.5s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.75);
    outline: none;
}

@keyframes wa-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
    50%      { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.9); }
}

@media (max-width: 575px) {
    .site-footer {
        padding-top: 3rem;
        text-align: center;
    }

    .footer-tagline {
        max-width: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: flex-start;
        text-align: left;
    }

    .whatsapp-fab {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab {
        animation: none;
    }

    .social-btn,
    .footer-links a,
    .whatsapp-fab {
        transition: none;
    }
}
