/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== McKinsey-Inspired Professional Styling ===== */

/* Design System Variables */
:root {
    /* Colors - Quantum Sparkle Palette */
    --quantum-blue: #005EB8;
    --quantum-deep: #003D7A;
    --quantum-navy: #001F3F;
    --quantum-light: #E6F2FF;
    --quantum-teal: #00A9CE;
    --quantum-purple: #6366F1;
    --quantum-violet: #8B5CF6;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B7280;

    /* Quantum Gradients */
    --gradient-primary: linear-gradient(135deg, var(--quantum-blue) 0%, var(--quantum-deep) 100%);
    --gradient-quantum: linear-gradient(-45deg,
        var(--quantum-blue),
        var(--quantum-deep),
        var(--quantum-purple),
        var(--quantum-teal),
        var(--quantum-navy));
    --gradient-shimmer: linear-gradient(90deg,
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent);

    /* Spacing */
    --section-padding: 2.5rem 0;
    --section-title-margin: 0.75rem;
    --section-subtitle-margin: 2rem;
    --card-gap: 1.5rem;
    --form-group-margin: 1rem;

    /* Typography */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --title-size: 2.25rem;
    --subtitle-size: 1.125rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

/* Hero Section - Quantum Sparkle */
.hero-section, .hero-gradient, .hero {
    position: relative;
    background: var(--gradient-quantum);
    background-size: 400% 400%;
    animation: quantum-flow 20s ease infinite;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(139, 92, 246, 0.3),
        rgba(255, 255, 255, 0.2),
        rgba(0, 169, 206, 0.3),
        transparent);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(139, 92, 246, 0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 30%,
        rgba(0, 169, 206, 0.12) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 50% 80%,
        rgba(99, 102, 241, 0.1) 0%,
        transparent 50%
    );
    animation: sparkle-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes quantum-flow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
}

@keyframes shimmer {
    0%, 100% { left: -100%; opacity: 0; }
    50% { left: 100%; opacity: 1; }
}

@keyframes sparkle-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.feature-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        transparent,
        rgba(139, 92, 246, 0.2),
        rgba(0, 169, 206, 0.2),
        transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(135deg, var(--quantum-light) 0%, rgba(139, 92, 246, 0.03) 50%, #FFFFFF 100%);
}

.form-input {
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25),
                0 0 20px rgba(139, 92, 246, 0.1);
    border-color: var(--quantum-blue);
}

/* Google Auth Button (Fixed Top Right) */
.auth-button-fixed {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.auth-button-fixed:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Typography - Professional */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Global Base Styles */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #111827;
    background-color: #f9fafb;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Page Container - Sticky Footer Pattern */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-footer {
    flex-shrink: 0;
    margin-top: auto;
}

::selection {
    background-color: #3b82f6;
    color: white;
}

:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Button and Card Effects */
.btn-hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-area {
    flex: 1;
    width: 100%;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* HTMX Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: block;
}

.htmx-request.htmx-indicator {
    display: block;
}

.htmx-request button[type="submit"] {
    pointer-events: none;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
}

@media (min-width: 641px) {
    .mobile-only {
        display: none;
    }
}

/* Reasoning Step Block Styles (Existing) */
.step-continue .step-indicator {
    background: rgb(59 130 246 / 0.1);
    border: 1px solid rgb(59 130 246 / 0.2);
}

.step-continue .step-dot {
    background: rgb(59 130 246);
}

.step-continue .step-title {
    color: rgb(30 64 175);
}

.step-continue .step-confidence {
    color: rgb(37 99 235);
}

.step-stop .step-indicator,
.step-complete .step-indicator {
    background: rgb(59 130 246 / 0.1);
    border: 1px solid rgb(59 130 246 / 0.2);
}

.step-stop .step-dot,
.step-complete .step-dot {
    background: rgb(59 130 246);
}

.step-stop .step-title,
.step-complete .step-title {
    color: rgb(30 64 175);
    font-style: italic;
}

.step-stop .step-confidence,
.step-complete .step-confidence {
    color: rgb(37 99 235);
}

.step-ask .step-indicator {
    background: rgb(245 158 11 / 0.1);
    border: 1px solid rgb(245 158 11 / 0.2);
}

.step-ask .step-dot {
    background: rgb(245 158 11);
}

.step-ask .step-title {
    color: rgb(180 83 9);
}

.step-ask .step-confidence {
    color: rgb(217 119 6);
}

.step-error .step-indicator {
    background: rgb(239 68 68 / 0.1);
    border: 1px solid rgb(239 68 68 / 0.2);
}

.step-error .step-dot {
    background: rgb(239 68 68);
}

.step-error .step-title {
    color: rgb(185 28 28);
}

.step-error .step-confidence {
    color: rgb(220 38 38);
}

/* Common Block Styles */
.block-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.block-text {
    white-space: pre-wrap;
    font-family: inherit;
}

.block-json {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    white-space: pre;
    overflow-x: auto;
}

/* ===== Landing Page Specific Styles ===== */

/* Landing Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

.hero .tagline {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    opacity: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3),
                0 0 30px rgba(139, 92, 246, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: var(--title-size);
    font-weight: 800;
    margin-bottom: var(--section-title-margin);
    text-align: center;
}

.section-subtitle {
    font-size: var(--subtitle-size);
    text-align: center;
    margin-bottom: var(--section-subtitle-margin);
    color: #374151;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Problem Section */
.problem {
    background: #f9fafb;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.problem-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #ef4444;
}

/* Solution Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.feature:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.feature p {
    color: #374151;
    line-height: 1.6;
}

/* Differentiators */
.differentiators {
    background: #f9fafb;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.diff-item {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border-top: 4px solid #10b981;
}

.diff-item h3 {
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Use Cases */
.use-cases {
    padding: 4rem 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.case h3 {
    color: var(--mckinsey-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.case li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.case li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Founder Section */
.founders {
    background: var(--gradient-primary);
    color: white;
}

.founders .section-subtitle {
    color: white !important;
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.founder {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.founder-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.founder h3 {
    margin: 0;
    font-weight: 700;
}

.founder h3 a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.founder h3 a:hover {
    border-bottom-color: white;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: white;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.linkedin-link i {
    width: 18px;
    height: 18px;
}

/* Advisor Section */
.advisor-section {
    margin-top: 4rem;
}

.advisor-section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.advisor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.advisor {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.advisor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.advisor h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.advisor h4 a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.advisor h4 a:hover {
    border-bottom-color: white;
}

/* Contact Section */
.contact {
    background: #111827;
    color: white;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-item a {
    color: #60a5fa;
    text-decoration: none;
}

.contact-item a:hover {
    color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .features,
    .diff-grid,
    .case-grid,
    .founder-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Block-Specific Styles (From Individual Blocks) ===== */

/* Contact Form Block */
.contact-form-block .htmx-indicator {
    display: none;
}

.contact-form-block .htmx-request .htmx-indicator {
    display: block;
}

.contact-form-block .htmx-request button[type="submit"] {
    pointer-events: none;
}

.contact-form-block input:focus,
.contact-form-block select:focus,
.contact-form-block textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contact-form-block .alert-success {
    animation: successPulse 0.6s ease-in-out;
}

@media (max-width: 768px) {
    .contact-form-block .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .contact-form-block .space-x-6 {
        flex-direction: column;
        align-items: center;
    }

    .contact-form-block .space-x-6 > * {
        margin: 0.5rem 0;
    }
}

/* Toolbar Block */
.toolbar-block .nav-item {
    position: relative;
    overflow: hidden;
}

.toolbar-block .nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.toolbar-block .nav-item:hover::before {
    width: 100%;
}

#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#user-menu {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .toolbar-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Value Prop Block */
.perspective-1000 {
    perspective: 1000px;
}

.transform-gpu {
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

.value-prop-section .group:hover .animate-float {
    animation: float 2s ease-in-out infinite;
}

/* Architecture Highlight Block */
.architecture-highlights-section {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Carousel Block */
.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Features Block */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Search Block */
.search-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 1280px;
    margin: 0 auto;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.search-form-wrapper {
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem;
}

.search-form-flex {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    background: white;
    color: #111827;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 1px 6px rgba(59, 130, 246, 0.2);
}

.search-button {
    padding: 0.875rem 1.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-button:hover {
    background: #2563eb;
}

.search-button:active {
    transform: scale(0.98);
}

.search-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    color: #374151;
}

.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-error {
    padding: 1rem;
    background: rgb(254 242 242);
    border: 1px solid rgb(239 68 68);
    border-radius: 8px;
    color: rgb(127 29 29);
    margin-bottom: 1rem;
}

.search-error a {
    color: rgb(37 99 235);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 640px) {
    .search-form-wrapper {
        padding: 0 1rem;
    }
}

/* Search Results Block */
.search-results-container {
    max-width: 900px;
    margin: 0 auto;
}

.reasoning-step {
    transition: all 0.3s ease;
}

.reasoning-step:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-fill {
    transition: width 0.5s ease-in-out;
}

.theme-dark .reasoning-step {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.theme-light .reasoning-step {
    background-color: white;
    border-color: #e5e7eb;
}

.text-yellow-400 { color: #fbbf24; }
.text-green-400 { color: #34d399; }
.text-red-400 { color: #f87171; }
.text-gray-400 { color: #4b5563; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reasoning-step {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== Sidebar Drawer Styles ===== */

/* Drawer toggle button (always visible) */
.drawer-toggle-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.drawer-toggle-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar drawer */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--drawer-width, 320px);
    background: white;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-drawer.drawer-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #374151;
    transition: color 0.2s ease;
}

.drawer-close-btn:hover {
    color: #111827;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.drawer-section {
    margin-bottom: 2rem;
}

.drawer-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #374151;
    font-size: 0.875rem;
}

/* Drawer overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.sidebar-drawer.drawer-open ~ .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Tools Browser Modal Styles ===== */

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.modal-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.modal-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #374151;
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #374151;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #111827;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Tools browser specific */
.tools-browser-content {
    width: 100%;
    max-width: 1400px;
}

.tools-search-bar {
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tools-search-bar input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.tools-search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tools-search-bar i {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    pointer-events: none;
}

.tools-browser-main {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.tools-browser-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #374151;
}

.tools-browser-loading i {
    margin-bottom: 1rem;
    color: #3b82f6;
}

.tools-browser-loading p {
    font-size: 1.125rem;
}

/* Tool items */
.tool-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-item:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

.tool-item.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-drawer {
        width: 80vw;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .drawer-toggle-btn {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

/* ===== Toolbar Styles ===== */
.toolbar {
    background: white;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.toolbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--quantum-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toolbar-brand .brand-link:hover {
    color: var(--quantum-blue);
}

.toolbar-nav {
    display: flex;
    gap: 2rem;
}

.toolbar-nav .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.toolbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--quantum-blue), var(--quantum-teal));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.toolbar-nav .nav-link:hover::after,
.toolbar-nav .nav-link.active::after {
    width: 80%;
}

.toolbar-nav .nav-link:hover {
    color: var(--quantum-blue);
    background: rgba(0, 94, 184, 0.05);
}

.toolbar-nav .nav-link.active {
    color: var(--quantum-blue);
}

/* ===== Architecture Diagram Styles ===== */
.architecture-diagram {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--quantum-navy) 0%, var(--quantum-deep) 100%);
}

.architecture-diagram .section-title {
    color: white !important;
}

.architecture-diagram .section-subtitle {
    color: white !important;
}

.architecture-description {
    max-width: 900px;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: white;
    text-align: center;
    font-weight: 500;
}

.architecture-layers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.architecture-layer {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.layer-title {
    flex: 0 0 200px;
    padding-right: 2rem;
    border-right: 2px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.layer-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--quantum-blue), var(--quantum-teal));
    border-radius: 6px;
    flex-shrink: 0;
    position: absolute;
    left: 0;
}

.layer-icon i {
    width: 20px;
    height: 20px;
    color: white;
}

.layer-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    line-height: 1.3;
    width: 100%;
    padding-left: 40px;
}

.layer-components {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.component-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.component-box:hover::before {
    transform: translateX(100%);
}

.component-blue {
    background: linear-gradient(135deg, var(--quantum-blue), var(--quantum-deep));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}

.component-blue:hover {
    box-shadow: 0 8px 24px rgba(0, 94, 184, 0.4);
    transform: translateY(-4px);
}

.component-purple {
    background: linear-gradient(135deg, var(--quantum-blue), var(--quantum-deep));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.component-purple:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
}

.component-teal {
    background: linear-gradient(135deg, var(--quantum-teal), #0088AA);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 169, 206, 0.3);
}

.component-teal:hover {
    box-shadow: 0 8px 24px rgba(0, 169, 206, 0.4);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .toolbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .toolbar-nav {
        gap: 1rem;
    }

    .architecture-layer {
        flex-direction: column;
        align-items: stretch;
    }

    .layer-title {
        flex: none;
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: none;
        border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    }

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

    .layer-components {
        grid-template-columns: 1fr;
    }

    .faq-item {
        padding: 1.5rem;
    }
}

/* Value Grid */
.value-grid {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--quantum-navy) 0%, var(--quantum-deep) 100%);
}

.value-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.value-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--quantum-blue), var(--quantum-teal));
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.value-card-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.value-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.value-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: white !important;
    margin: 0;
    line-height: 1.3;
}

.value-card-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@media (max-width: 768px) {
    .value-grid-cards {
        grid-template-columns: 1fr;
    }
}

/* Blog List */
.blog-list {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--quantum-navy) 0%, var(--quantum-deep) 100%);
}

.blog-list .section-title {
    color: white !important;
}

.blog-list .section-subtitle {
    color: white !important;
}

.blog-posts {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.blog-post-title a {
    color: var(--quantum-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--quantum-teal);
}

.blog-post-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
}

.blog-post-link {
    color: var(--quantum-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-post-link:hover {
    color: var(--quantum-blue);
}

/* Blog Post */
.blog-post {
    padding: 6rem 0;
    background: #FFFFFF;
    min-height: 100vh;
}

.blog-post-container {
    max-width: 800px;
}

.blog-post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-post .blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.blog-post .blog-post-meta {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    color: var(--text-medium);
}

.blog-post-content {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.blog-post-content h1 {
    font-size: 2.2rem;
}

.blog-post-content h2 {
    font-size: 1.8rem;
}

.blog-post-content h3 {
    font-size: 1.4rem;
}

.blog-post-content p {
    margin: 1rem 0;
}

.blog-post-content a {
    color: var(--quantum-teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 169, 206, 0.3);
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: var(--quantum-blue);
    border-bottom-color: rgba(0, 94, 184, 0.5);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    margin: 0.5rem 0;
}

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

.blog-post-content em {
    color: var(--quantum-teal);
    font-style: italic;
}

.blog-post-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--quantum-navy) 0%, var(--quantum-deep) 100%);
}

.faq .section-title {
    color: white !important;
}

.faq .section-subtitle {
    color: white !important;
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--quantum-blue);
    margin: 0 0 1rem 0;
}

.faq-answer {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}
