/* style.css - Capitap Premium Layout */

:root {
    /* Color Palette - Premium "Fintech" Dark Theme */
    --clr-bg: #000000; /* Deep black from logo */
    --clr-surface: rgba(255, 255, 255, 0.03); /* Glass base */
    --clr-surface-hover: rgba(255, 255, 255, 0.08);
    --clr-border: rgba(255, 255, 255, 0.1);
    
    --clr-primary: #00D9D2; /* Vibrant Cyan */
    --clr-primary-glow: rgba(0, 217, 210, 0.4);
    --clr-secondary: #008C87; /* Teal */
    --clr-accent: #10b981; /* Success green */
    
    --clr-text: #f8fafc;
    --clr-text-muted: #94a3b8;
    
    /* Layout Variables */
    --max-width: 1280px;
    --nav-height: 80px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Effects */
    --glass-blur: blur(24px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Background Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--clr-secondary), transparent 70%);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--clr-primary), transparent 70%);
    right: -100px;
    top: 20vh;
    animation-delay: -5s;
}

.orb-3 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    bottom: -30vh;
    left: 20%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* Reusable Components */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-alt {
    background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--clr-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    box-shadow: 0 4px 14px var(--clr-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Animations Triggered by JS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.logo-icon {
    color: var(--clr-primary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px var(--clr-primary-glow));
}

.nav-links {
    display: flex;
    gap: 2rem;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 100%;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.nav-links a:hover {
    color: var(--clr-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-login {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-login:hover {
    color: var(--clr-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--clr-text);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-text);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

/* Mockup UI */
.app-mockup {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    transform: rotateX(5deg) scale(0.95);
    transform-origin: top center;
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, rgba(20,20,25,0.7) 0%, rgba(10,10,15,0.7) 100%);
}

.hero-visual:hover .app-mockup {
    transform: rotateX(0deg) scale(1);
}

.mockup-header {
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.mockup-header .dots {
    display: flex;
    gap: 6px;
}

.mockup-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4b5563;
}

.mockup-header .dots span:nth-child(1) { background: #ef4444; }
.mockup-header .dots span:nth-child(2) { background: #f59e0b; }
.mockup-header .dots span:nth-child(3) { background: #10b981; }

.mockup-header .bar {
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    transform: translateX(-15px);
}

.mockup-body {
    padding: 2rem;
    height: calc(100% - 40px);
    display: flex;
    align-items: flex-end;
}

.chart-container {
    width: 100%;
    height: 70%;
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chart-bars {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 10px;
}

.bar-fill {
    width: 8%;
    background: linear-gradient(to top, var(--clr-primary), var(--clr-secondary));
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.bar-fill:hover {
    opacity: 1;
    filter: brightness(1.2);
}

.chart-line {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 2px;
    background: dashed rgba(16, 185, 129, 0.5);
    border-top: 2px dashed var(--clr-accent);
}

/* Trusted By / Logo Marquee */
.trusted-by {
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.logo-marquee {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.trust-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    margin: 0 3rem;
    white-space: nowrap;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
}

.trust-logo:hover {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

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

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.2);
    background: var(--clr-surface-hover);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto 8rem;
}

.cta-banner {
    padding: 5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-secondary), transparent);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--clr-border);
    padding: 4rem 2rem 2rem;
    background: rgba(0,0,0,0.2);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--clr-text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--clr-primary);
    color: white;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* Media Queries */
@media (max-width: 900px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 200;
        position: relative;
    }
    
    .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-container.mobile-active .nav-links {
        display: flex;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        z-index: 100;
        border: none;
    }

    .nav-container.mobile-active .nav-links a {
        font-size: 1.5rem;
    }

    .nav-container.mobile-active .nav-actions {
        display: flex;
        position: fixed;
        bottom: 8rem; left: 0; width: 100%;
        justify-content: center;
        z-index: 1001;
    }

    .navbar {
        background: rgba(9, 9, 11, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Matchmaking UI Specifics */
.page-container {
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 80vh;
}

.network-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.network-layout > * {
    min-width: 0;
}

@media (max-width: 992px) {
    .network-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-filter {
        position: static;
        margin-bottom: 2rem;
    }
}

.sidebar-filter {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    height: fit-content;
    padding: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

/* Form Styles and Dropdown Fix */
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--clr-primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 2px var(--clr-primary-glow);
}

select.form-control option {
    background: #111 !important;
    color: #fff !important;
}

select.form-control {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    appearance: none;
    -webkit-appearance: none;
}

.filter-group h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Auth Layout */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.auth-layout > * {
    min-width: 0;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
}
.auth-visual {
    background: linear-gradient(135deg, #000, #002220);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    border-right: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}
.auth-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-form {
    width: 100%;
    max-width: 400px;
}

/* Profile Card */
.profile-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clr-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--clr-primary);
    font-size: 1.5rem;
    border: 2px solid var(--clr-primary);
}
.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    background: rgba(0, 217, 210, 0.1);
    color: var(--clr-primary);
    border: 1px solid rgba(0, 217, 210, 0.2);
}

/* Chat UI */
.chat-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - var(--nav-height) - 4rem);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}
.chat-layout > * {
    min-width: 0;
}

@media (max-width: 768px) {
    .chat-layout {
        grid-template-columns: 1fr;
        height: 100vh;
    }
    .chat-sidebar {
        display: none; /* In a real app we'd toggle these */
    }
}
.chat-sidebar {
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--clr-border);
    overflow-y: auto;
}
.chat-contact {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--clr-border);
    cursor: pointer;
    transition: var(--transition);
}
.chat-contact:hover, .chat-contact.active {
    background: rgba(255,255,255,0.05);
}
.chat-main {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.5);
}
.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-bubble {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}
.chat-bubble.received {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    border-bottom-left-radius: 2px;
}
.chat-bubble.sent {
    align-self: flex-end;
    background: var(--clr-secondary);
    color: white;
    border-bottom-right-radius: 2px;
}
.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
    .directory-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-filter {
        position: relative;
        top: 0;
        padding: 1.5rem;
    }
    .chat-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 70vh;
    }
    .chat-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--clr-border);
        max-height: 30vh;
    }
    .chat-messages {
        min-height: 40vh;
    }
}

/* New Pivot Sections Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    .diagram-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .diagram-container > div:nth-child(2) {
        flex-direction: row !important;
        justify-content: center !important;
    }
    .diagram-container svg {
        display: none !important;
    }
    .diagram-node {
        max-width: 200px;
        margin: 0 auto;
    }
    .section-title {
        font-size: 2.2rem !important;
    }
    .features > div {
        grid-template-columns: 1fr !important;
    }
    .ecosystem-diagram {
        padding: 1.5rem 1rem !important;
    }
    .diagram-node {
        padding: 0.75rem !important;
    }
}

@keyframes pulsing-glow {
    0% { box-shadow: 0 0 15px var(--clr-primary-glow); }
    50% { box-shadow: 0 0 35px var(--clr-primary-glow); }
    100% { box-shadow: 0 0 15px var(--clr-primary-glow); }
}

.pulse-node {
    animation: pulsing-glow 3s infinite ease-in-out;
}
