/* Modern Slate Design System */
:root {
    /* Color Palette */
    --bg-primary: #1E1E1E;
    --bg-secondary: #0f1012;
    /* Darker variant for contrast */
    --bg-card: #25262b;
    --accent-primary: #0078D7;
    --accent-hover: #198AE0;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #606060;
    --border-subtle: #2F2F2F;
    --success: #2ED573;
    --pulse-red: #FF4757;

    /* Metrics */
    --u-spacing: 4px;
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Bootstrap Overrides */
/* Global Dark Theme Overrides */
:root, [data-bs-theme="dark"] {
    --bs-body-bg: #1E1E1E; /* Custom Slate Background */
    --bs-body-color: #FFFFFF;
    --bs-primary: #0078D7;
    --bs-primary-rgb: 0, 120, 215;
}

.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}
.text-primary {
    color: var(--accent-primary) !important;
}

/* Fix for bg-light in dark mode to not be white */
.bg-light {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.bg-white {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Animations */
.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hover-white:hover {
    color: white !important;
    transition: color 0.2s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-primary);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    height: var(--header-height);
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand:hover {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.btn-cta {
    background-color: var(--accent-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    color: white;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0;
    margin-top: 80px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.text-accent {
    color: var(--accent-primary) !important;
}

.text-muted {
    color: var(--text-muted);
}

/* Components */
.badge-privacy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(46, 213, 115, 0.1);
    color: var(--success);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

/* Hero & Typography Utilities */
.hero-section {
    padding: 120px 0;
    text-align: center;
}

.display-1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-hero-sub {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--text-secondary);
}

.btn-cta-lg {
    font-size: 1.1rem;
    padding: 14px 32px;
}

.hover-underline {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Card Utilities */
.bg-card {
    background-color: var(--bg-card);
    border-radius: 8px;
}

.border-subtle {
    border: 1px solid var(--border-subtle);
}

.display-4 {
    font-size: 2.5rem;
}

.fw-bold {
    font-weight: 700;
}

.text-accent {
    color: var(--accent-primary) !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* HUD Visualization */
.hud-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 60px auto 0;
    background: #252525;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-doc {
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 4px;
    padding: 40px;
    opacity: 0.9;
}

.mock-line {
    height: 12px;
    background: #e0e0e0;
    margin-bottom: 16px;
    border-radius: 2px;
}

.hud-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background-color: var(--pulse-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pulse-red);
    animation: pulse 2s infinite;
}

.hud-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
}

/* Bootstrap Accordion Overrides for Dark Theme */
.accordion-button {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-item {
    background-color: transparent !important;
    border-color: var(--border-subtle) !important;
}

.accordion-body {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
}

.accordion-flush .accordion-item {
    border-left: 0 !important;
    border-right: 0 !important;
}

/* Table Overrides */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-subtle);
    color: var(--text-primary);
}

.table-dark tbody tr {
    border-bottom: 1px solid var(--border-subtle);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Additional Bootstrap Component Overrides */
.btn-outline-light {
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.card {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
}

.badge {
    font-weight: 500;
}

/* Ensure proper spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}