/* ===================================
   auditgit - Enterprise Styling
   =================================== */

:root {
    --primary-color: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --secondary-color: #1976d2;
    --success-color: #2e7d32;
    --danger-color: #c62828;
    --warning-color: #f57c00;
    --info-color: #0288d1;
    --dark-color: #1a1a1a;
    --light-color: #f5f7fa;
    --section-alt-bg: #eeeeee;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* Section Alternate Background */
.bg-section-alt {
    background-color: var(--section-alt-bg);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.display-3, .display-4, .display-5 {
    font-weight: 800;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

/* Header - Sticky Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Navbar */
.navbar-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 180px;
    z-index: 1040;
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
    background: var(--primary-light);
    color: #fff;
}

.language-switcher .dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
}

.language-switcher .dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Demo Button */
.demo-button {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 0.5rem 1rem !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.demo-button:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Quick Start Button */
.quickstart-button {
    background-color: var(--dark-color) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 0.5rem 1rem !important;
    border: 2px solid var(--dark-color) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.quickstart-button:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Promo Banner
   Rendered unconditionally by Hugo; actual visibility is decided client-side
   (see the script in <head> of baseof.html) so it stays correct regardless
   of when this static site was last built/deployed. */
.promo-banner,
.promo-badge,
.promo-note {
    display: none;
}

html.promo-active .promo-banner {
    display: block;
}

html.promo-active .promo-badge {
    display: block;
}

html.promo-active .promo-note {
    display: inline-block;
}

.promo-banner {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e65100 100%);
    color: #fff;
    width: 100%;
}

.promo-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
}

.promo-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.promo-toggle[aria-expanded="true"] .promo-chevron {
    transform: rotate(180deg);
}

.promo-header-desktop {
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem 0.75rem;
}

.promo-collapse-desktop {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.promo-collapse-desktop:hover,
.promo-collapse-desktop:focus {
    background: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.promo-collapse-desktop .promo-chevron {
    font-size: 0.8rem;
}

.promo-collapse-desktop[aria-expanded="false"] .promo-chevron {
    transform: rotate(180deg);
}

.promo-body {
    display: block;
    padding: 0 1rem 1.25rem;
}

.promo-body.promo-collapsed {
    display: none;
}

.promo-headline-desktop {
    flex: 1 1 auto;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.promo-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.promo-text .promo-highlight {
    color: #ffe082;
}

.promo-cta {
    background-color: #fff;
    color: var(--warning-color) !important;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.promo-cta:hover {
    background-color: #fff3e0;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .promo-banner {
        position: absolute;
        top: 100%;
        width: 400px;
        max-width: calc(100vw - 32px);
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
        z-index: 1029;
        overflow: hidden;
    }

    .promo-body {
        padding: 0 1.25rem 1.25rem;
    }
}

.promo-note {
    background-color: #fff3e0;
    color: #e65100;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section .display-3,
.hero-section .display-4,
.hero-section .display-5 {
    color: #ffffff !important;
}

.hero-section h1 {
    font-size: 2.5rem !important;
}

.hero-section p,
.hero-section .lead {
    color: #ffffff;
}

.hero-section .btn-outline-light:hover,
.hero-section .btn-outline-light:focus {
    color: var(--primary-color);
}

.hero-icon-wrapper {
    animation: float 6s ease-in-out infinite;
}

.hero-icon {
    font-size: 14rem;
    opacity: 0.95;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Demo Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.feature-icon-wrapper {
    display: inline-block;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Technology Cards */
.tech-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.15);
}

.tech-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

/* Use Case Cards */
.use-case-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.use-case-card:hover {
    border-left-width: 8px;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* How It Works */
.how-it-works-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--border-color);
}

.how-it-works-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(13, 71, 161, 0.2);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
}

/* Why Cards */
.why-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.why-card ul {
    list-style: none;
    padding-left: 0;
}

.why-card ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.why-card ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Custom Text Colors */
.text-purple {
    color: #7b1fa2 !important;
}

/* Pricing Cards */
.pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-badge.promo-badge {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e65100 100%);
}

html.promo-active .pricing-card.promo-basic {
    border-color: var(--warning-color);
    background: linear-gradient(180deg, #fff8f0 0%, #ffffff 25%);
    box-shadow: 0 8px 30px rgba(245, 124, 0, 0.2);
}

html.promo-active .pricing-card.promo-basic:hover {
    box-shadow: 0 12px 35px rgba(245, 124, 0, 0.3);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.pricing-suffix {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pricing-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pricing-toggle-btn:hover {
    color: var(--primary-color);
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.pricing-toggle-btn.active:hover {
    color: #fff;
}

.pricing-toggle-badge {
    background: var(--success-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    line-height: 1.4;
}

.pricing-toggle-btn:not(.active) .pricing-toggle-badge {
    background: rgba(46, 125, 50, 0.12);
    color: var(--success-color);
}

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

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.pricing-features li.unavailable {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-features li.unavailable i {
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f8f9fa !important;
}

footer h5,
footer h6,
footer p,
footer small,
footer li {
    color: #f8f9fa !important;
}

footer a {
    color: #adb5bd !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light) !important;
}

footer .text-muted {
    color: #adb5bd !important;
}

/* Content Pages */
.content-page {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-page h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.content-page h2 {
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-page h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.content-page ul, .content-page ol {
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.content-page a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.content-page strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-icon {
        font-size: 8rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

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

    .feature-icon {
        font-size: 2.5rem;
    }

    .tech-icon {
        font-size: 2.8rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
    }

    .content-page {
        padding: 1.5rem;
    }
}

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

/* Selection */
::selection {
    background: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}

/* Loading Animation for Icons */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.feature-card:hover .feature-icon,
.tech-card:hover .tech-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Section Spacing */
section {
    scroll-margin-top: 70px;
}

/* Box Shadows */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ===== Cookie Consent Banner ===== */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background-color: var(--dark-color);
    color: #f5f7fa;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.consent-text {
    flex: 1 1 320px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-link {
    color: var(--primary-light);
    text-decoration: underline;
}

.consent-link:hover {
    color: #fff;
}

.consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .consent-actions {
        width: 100%;
    }
    .consent-actions .btn {
        flex: 1 1 0;
    }
}
