/* Import component styles */
@import url('_theme.css');
@import url('_base.css');
@import url('_components/_navigation.css');
@import url('_components/_hero.css');
@import url('_components/_sections.css');
@import url('_components/_pricing.css');
@import url('_components/_modal.css');
@import url('_components/_footer.css');
@import url('_components/_cta.css');
@import url('_components/_about.css');
@import url('_components/_team.css');
@import url('_components/_responsive.css');
@import url('_components/_integration.css');
@import url('_components/_feedback.css');
@import url('_components/_cookie-banner.css');

/* Additional global styles */
:root {
    /* Animation durations */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection styles */
::selection {
    background-color: var(--accent-primary);
    color: var(--palette-dark-purple);
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Grid utilities */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation classes */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover effects */
.hover-scale {
    transition: transform var(--transition-normal) ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow var(--transition-normal) ease;
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}

/* Code block styles */
.code-block {
    background: var(--bg-code);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: var(--text-on-dark-bg);
}

.code-block .keyword {
    color: var(--accent-primary);
}

.code-block .string {
    color: var(--accent-secondary);
}

.code-block .comment {
    color: rgba(255, 255, 255, 0.6);
}

/* Card styles */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Button variants */
.btn-primary {
    background: var(--accent-primary);
    color: var(--palette-dark-purple);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--palette-dark-purple);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color var(--transition-normal) ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Slider styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    outline: none;
    border: 1px solid var(--border-subtle);
}

[data-theme='dark'] input[type="range"]::-webkit-slider-thumb {
    border: 2px solid rgba(40, 40, 43, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(51, 255, 255, 0.15);
}


input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-normal) ease;
}


input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 4px 12px rgba(66, 38, 70, 0.3),
        0 0 0 8px rgba(51, 255, 255, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform var(--transition-normal) ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .nav,
    .theme-toggle,
    .cta-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    [data-theme='dark'] body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
/* Detailed Workflow Steps */
.workflow-steps-detailed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step-detailed {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    flex-basis: calc(50% - 1rem);
    min-width: 320px;
}

.workflow-step-detailed .step-number {
    grid-row: 1 / span 2;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-page);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.workflow-step-detailed .step-content {
    grid-column: 2;
    grid-row: 1;
}

.workflow-step-detailed .step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.workflow-step-detailed .step-code-block {
    grid-column: 2;
    grid-row: 2;
    background: var(--bg-code);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.workflow-step-detailed .step-code-block pre {
    margin: 0;
    padding: 0rem;
    padding-bottom: 1.5rem;
}

/* --- Integration Architecture Diagram --- */
.section-subtitle {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.architecture-diagram-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
    position: relative;
}

.architecture-diagram-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.diagram-stage {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    flex-direction: column;
}

.diagram-heading {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diagram-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    flex: 1;
    min-width: 200px;
}

.diagram-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.diagram-box.source {
    max-width: 220px;
}

.diagram-box strong {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.diagram-box span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.box-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.diagram-connector {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
}

.arrow-line {
    width: 30px;
    height: 2px;
    background-color: var(--border-color);
}

.arrow-head {
    color: var(--border-color);
    font-size: 1.5rem;
    line-height: 1;
}

.code-wrapper-horizontal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
}

.code-wrapper-horizontal .step-code-block {
    background: var(--bg-code);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-wrapper-horizontal .step-code-block pre {
    margin: 0;
    padding: 1.5rem;
}

.model-versions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.model-versions span {
    background-color: var(--bg-page);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.application-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.diagram-box.application {
    max-width: 300px;
}

.brush-arrow-wrapper {
    width: 100%;
    height: 80px;
    position: relative;
    display: flex;
    justify-content: center;
}

.brush-arrow {
    width: 10px;
    height: 60px;
    background: var(--accent-primary-muted);
    position: relative;
    clip-path: polygon(0 15%, 100% 15%, 100% 100%, 0 100%);
}

.brush-arrow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid var(--accent-primary-muted);
}

.brush-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 20px;
    height: 10px;
    background: var(--accent-primary-muted);
    border-radius: 0 0 5px 5px;
    opacity: 0.8;
}


/* --- Responsive Adjustments for Integration Diagram --- */
@media (max-width: 1200px) {
    .architecture-diagram-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .diagram-connector {
        transform: rotate(90deg);
    }
}


@media (max-width: 1024px) {
    .workflow-steps-detailed {
        flex-direction: column;
    }

    .workflow-step-detailed {
        flex-basis: 100%;
    }
}

@media (max-width: 1200px) {
    .diagram-stage {
        flex-direction: row;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .diagram-box {
        max-width: 400px;
    }
}

.application-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-button {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-button-1:hover {
    background-color: var(--palette-gryan);
    color: var(--palette-dark-purple);
    border-color: var(--palette-gryan);
}

.filter-button-2:hover {
    background-color: var(--palette-green);
    color: var(--palette-dark-purple);
    border-color: var(--palette-green);
}

.filter-button-3:hover {
    background-color: var(--palette-cyan);
    color: var(--palette-dark-purple);
    border-color: var(--palette-cyan);
}

.filter-button-1.active {
    background-color: var(--palette-gryan);
    color: var(--palette-dark-purple);
    border-color: var(--palette-gryan);
    box-shadow: var(--shadow-md);
}

.filter-button-2.active {
    background-color: var(--palette-green);
    color: var(--palette-dark-purple);
    border-color: var(--palette-green);
    box-shadow: var(--shadow-md);
}

.filter-button-3.active {
    background-color: var(--palette-cyan);
    color: var(--palette-dark-purple);
    border-color: var(--palette-cyan);
    box-shadow: var(--shadow-md);
}


.application-body-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 3em; /* Ensure space even when empty */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Application Card Opacity States --- */
/* This is the default state for all cards */
.applications-grid .application-card-1,
.applications-grid .application-card-2,
.applications-grid .application-card-3 {
    transition: opacity 0.3s ease;
    opacity: 0.85;
}

/* This is the MORE SPECIFIC rule for the faded state that WILL override the default */
.applications-grid .application-card-1.faded,
.applications-grid .application-card-2.faded,
.applications-grid .application-card-3.faded {
    opacity: 0.4;
}