/* ==========================================================================
   Public Pages Styles - AuditGlance by MatrixC
   ========================================================================== */

/* CSS Variables for Brand Colors */
:root {
    --matrixc-blue: #0275d8;
    --matrixc-blue-dark: #025aa5;
    --matrixc-purple: #5D78FF;
    --matrixc-purple-dark: #4a62d9;
    --gradient-primary: linear-gradient(135deg, #0275d8 0%, #5D78FF 100%);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-subtitle,
.hero-visual {
    animation: fadeInUp 0.6s ease-out both;
}

.hero-subtitle {
    animation-delay: 0.1s;
}

.hero-visual {
    animation-delay: 0.2s;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.public-content {
    flex: 1;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.public-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    padding: 0.875rem 0;
    transition: all 0.3s ease;
}

.public-navbar .navbar-brand {
    font-size: 1.25rem;
    color: var(--matrixc-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.public-navbar .nav-link {
    font-weight: 500;
    color: #6c757d;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--matrixc-blue);
}

.public-navbar .nav-link:focus-visible {
    outline: 2px solid var(--matrixc-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #f8fafe 0%, #f0f4ff 50%, #fafaff 100%);
    padding: 6rem 0 5rem;
}

.hero-gradient {
    background: linear-gradient(135deg, #0275d8 0%, #4a6cf7 60%, #5D78FF 100%);
    padding: 5rem 0;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

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

/* ==========================================================================
   Hero Visual
   ========================================================================== */
.hero-visual {
    position: relative;
}

.hero-visual .card {
    border-radius: 1rem !important;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background: var(--gradient-primary);
    border-radius: 1.25rem;
    opacity: 0.08;
    z-index: -1;
}

/* ==========================================================================
   Gradient Text
   ========================================================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--matrixc-blue-dark) 0%, var(--matrixc-purple-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card {
    height: 100%;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-icon.blue {
    background: rgba(2, 117, 216, 0.1);
    color: var(--matrixc-blue);
}

.feature-icon.purple {
    background: rgba(93, 120, 255, 0.1);
    color: var(--matrixc-purple);
}

.feature-icon.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.feature-icon.info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.feature-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.feature-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.public-footer {
    margin-top: auto;
    background: #1a1a2e !important;
    padding: 3.5rem 0 0 !important;
}

.public-footer .footer-content {
    padding-bottom: 2rem;
}

.public-footer h5,
.public-footer h6 {
    color: #e8e8f0;
    font-weight: 700;
}

.public-footer p,
.public-footer small,
.public-footer .text-white-50 {
    color: #8b8ba3 !important;
}

.public-footer a.text-white-50,
.public-footer a.text-decoration-none {
    color: #8b8ba3 !important;
    transition: color 0.2s ease;
}

.public-footer a:hover {
    color: #c4c4d8 !important;
    text-decoration: none;
}

.public-footer a.text-white {
    color: #c4c4d8 !important;
}

.public-footer a.text-white:hover {
    color: white !important;
}

.public-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
}

.public-footer .footer-bottom p {
    color: #6b6b80 !important;
    font-size: 0.875rem;
}

/* ==========================================================================
   Features Page - Hero
   ========================================================================== */
.features-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d1b3e 100%);
    padding: 6rem 0 5rem;
    text-align: center;
}

.features-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.features-hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.features-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-hero-title {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Features Page - Highlight Cards
   ========================================================================== */
.feature-highlight-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-highlight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-highlight-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.feature-highlight-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   Features Page - Section Layout
   ========================================================================== */
.features-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--matrixc-blue);
    margin-bottom: 0.75rem;
}

.features-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.features-section-desc {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.features-keypoints li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
}

.features-keypoints li i {
    color: var(--matrixc-blue);
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Features Page - Visual Cards (Mock UI)
   ========================================================================== */
.features-visual-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.features-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafbfc;
}

.features-visual-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease;
}

.features-visual-row:last-child {
    border-bottom: none;
}

.features-visual-row:hover {
    background: #f8f9fa;
}

.features-visual-row.resolved {
    opacity: 0.55;
}

/* ==========================================================================
   Features Page - Security Section
   ========================================================================== */
.features-security-section {
    background: linear-gradient(180deg, #f8fafe 0%, #ffffff 100%);
}

/* ==========================================================================
   Features Page - Traits / Steps
   ========================================================================== */
.features-traits-section {
    background: #f8fafe;
}

.features-trait-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.features-trait-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.features-trait-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.75rem;
    height: 100%;
}

.contact-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.contact-info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-info-card h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-card .text-muted {
    display: block;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ==========================================================================
   Homepage - Value Proposition
   ========================================================================== */
.home-value-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--matrixc-blue);
    margin-bottom: 0.75rem;
}

.home-value-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background 0.2s ease;
}

.home-value-item:hover {
    background: #f8fafe;
}

.home-value-item i {
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.home-value-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.home-value-item span {
    display: block;
    font-size: 0.825rem;
    color: #6c757d;
    line-height: 1.5;
}

.home-trust-card {
    background: #f8fafe;
    border: 1px solid rgba(2, 117, 216, 0.08);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
}

.home-trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.home-trust-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--matrixc-blue);
    background: rgba(2, 117, 216, 0.08);
    border: 1px solid rgba(2, 117, 216, 0.12);
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-company-section {
    background: linear-gradient(180deg, #f8fafe 0%, #ffffff 100%);
}

.about-highlight-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.about-highlight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-cta-card {
    border: 1px solid rgba(2, 117, 216, 0.12);
    background: rgba(2, 117, 216, 0.02);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.bg-gradient {
    background: var(--gradient-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }

    .home-value-title {
        font-size: 1.75rem;
    }

    .features-visual-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}
