/* Imports of component CSS files */
@import url('components/header.css');
@import url('components/theme_toggle.css');
@import url('components/page_hero.css');
@import url('components/hero_constellation.css');
@import url('components/problem_section.css?v=20260816-1');
@import url('components/solution_section.css');
@import url('components/modularity_section.css?v=20261024-1');
@import url('components/use_cases.css');
@import url('components/admin_dashboard.css');
@import url('components/how_it_works.css');
@import url('components/about_section.css');
@import url('components/cta_section.css');
@import url('components/footer.css');
@import url('components/cookie_banner.css');
@import url('components/pricing.css');
@import url('components/product_ui.css?v=20260810-1');


@font-face {
    font-family: 'Carlito';
    src: url('../assets/fonts/Carlito-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Carlito';
    src: url('../assets/fonts/Carlito-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Carlito';
    src: url('../assets/fonts/Carlito-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../assets/fonts/MontserratAlternates-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../assets/fonts/MontserratAlternates-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../assets/fonts/MontserratAlternates-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../assets/fonts/MontserratAlternates-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../assets/fonts/MontserratAlternates-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../assets/fonts/OpenSans-Latin.woff2') format('woff2-variations');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Single source of truth for the KnowboundAI brand. */
    --brand-blue: #0052D4;
    --brand-blue-hover: #0041A8;
    --brand-blue-rgb: 0, 82, 212;
    --brand-ink: #161F2E;
    --brand-blue-highlight: color-mix(in srgb, var(--brand-blue) 62%, #FFFFFF);

    --background: #F4F6F9;
    --surface: #FFFFFF;
    --surface-elevated: #FAFBFD;
    --text-primary: #1F2229;
    --text-secondary: #505160;
    --text-muted: #788699;
    --border: #D1DBE5;
    --primary: var(--brand-blue);
    --primary-hover: var(--brand-blue-hover);
    --primary-glow: rgba(0, 82, 212, 0.12);
    --secondary: var(--brand-blue-highlight);
    --secondary-hover: color-mix(in srgb, var(--brand-blue) 76%, #FFFFFF);
    --success: #10B981;
    --soft-blue: #EBF1F7;
    --soft-violet: color-mix(in srgb, var(--brand-blue) 6%, #FFFFFF);
    --card-shadow: 0 4px 6px -1px rgba(80, 81, 96, 0.08), 0 2px 4px -1px rgba(80, 81, 96, 0.04);
    --card-shadow-hover: 0 10px 15px -3px rgba(80, 81, 96, 0.12), 0 4px 6px -2px rgba(80, 81, 96, 0.06);
    
    --font-heading: 'Montserrat Alternates', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-logo: 'Montserrat Alternates', sans-serif;

    /* Shared shape scale for public-facing UI. */
    --radius-control: 10px;
    --radius-card: 20px;
    --radius-panel: 24px;
    --radius-pill: 999px;
}

[data-theme="dark"] {
    --background: #12141A;
    --surface: #181C26;
    --surface-elevated: #202534;
    --text-primary: #F0F3F6;
    --text-secondary: #A4B2C6;
    --text-muted: #74859C;
    --border: #2D3446;
    /* Brand blue stays identical across themes; only its surrounding contrast changes. */
    --primary: var(--brand-blue);
    --primary-hover: var(--brand-blue-highlight);
    --primary-glow: rgba(var(--brand-blue-rgb), 0.25);
    --secondary: var(--brand-blue-highlight);
    --secondary-hover: color-mix(in srgb, var(--brand-blue) 48%, #FFFFFF);
    --success: #34D399;
    --soft-blue: #1D2331;
    --soft-violet: #1a2233;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Global resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Common container and section */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-control);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--surface-elevated);
    border-color: var(--text-muted);
}

/* Utility Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Local SVG Icon styling override for Material Icons */
.material-icons-outlined {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    vertical-align: middle;
    text-indent: -9999px; /* Hide text before JS runs to prevent layout shift/FOUT */
    overflow: hidden;
}

/* Component imports moved to top */
