/* =====================================================
   CSS Reset & Base Styles
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0A0A0A;
    color: #E4E4E7;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    zoom: 0.8;
}

/* =====================================================
   Design Tokens
   ===================================================== */

:root {
    /* Primary Colors */
    --primary-300: #66B2FF;
    --primary-500: #007AFF;
    --primary-700: #0059B8;

    /* Neutral Colors */
    --neutral-900: #0A0A0A;
    --neutral-800: #141414;
    --neutral-400: #6B6B70;
    --neutral-200: #A1A1A6;
    --neutral-50: #E4E4E7;
    --neutral-0: #FFFFFF;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;

    /* Glow Effects */
    --glow-md: 0px 0px 24px 0px rgba(0, 122, 255, 0.15);
    --glow-lg: 0px 0px 48px 0px rgba(0, 122, 255, 0.25);
}

/* =====================================================
   Typography
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--neutral-0);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 64px;
    line-height: 1.1;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    color: var(--neutral-50);
    line-height: 1.6;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover {
    color: var(--primary-300);
}

/* =====================================================
   Layout Utilities
   ===================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =====================================================
   Header
   ===================================================== */

.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-desktop {
    display: flex;
    gap: var(--space-lg);
    flex: 1;
    justify-content: center;
}

.nav-desktop a {
    color: var(--neutral-50);
    font-size: 16px;
    font-weight: 500;
    transition: color 200ms ease;
}

.nav-desktop a:hover {
    color: var(--neutral-0);
}


/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: var(--neutral-800);
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    z-index: 1001;
    box-shadow: var(--glow-md);
    margin-top: 15px; /* Spacing below header */
}

/* Invisible bridge so mouse doesn't lose hover */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-menu a {
    padding: 10px 20px;
    font-size: 15px !important;
    color: var(--neutral-200) !important;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neutral-0) !important;
}




.header-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--neutral-0);
    cursor: pointer;
    padding: var(--space-xs);
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--neutral-900);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.nav-mobile.active {
    display: flex;
    opacity: 1;
}

.nav-mobile-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-3xl) var(--space-md);
    gap: var(--space-md);
}

.nav-mobile a {
    color: var(--neutral-50);
    font-size: 24px;
    font-weight: 500;
}

.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* =====================================================
   Buttons
   ===================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--primary-500);
    color: var(--neutral-0);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-300);
    transform: scale(1.03);
    color: var(--neutral-0);
}

.btn-primary:active {
    background: var(--primary-700);
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--neutral-0);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-400);
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: var(--neutral-0);
    background: rgba(255, 255, 255, 0.05);
    color: var(--neutral-0);
}

/* =====================================================
   Announcement Banner
   ===================================================== */



/* =====================================================
   Hero Section
   ===================================================== */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particlesCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(102, 178, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 800ms ease-out;
}

.hero-title {
    background: linear-gradient(to bottom, #FFFFFF, #E4E4E7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    font-size: 18px;
    color: var(--neutral-200);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Customer Logos Section
   ===================================================== */

.customers-section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title-sm {
    font-size: 24px;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--neutral-200);
    font-weight: 400;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    align-items: center;
    justify-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 300ms ease;
}

.logo-item:hover {
    opacity: 1;
}

.company-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.company-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-200);
}

/* =====================================================
   Section Headers
   ===================================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
    font-size: 18px;
    color: var(--neutral-200);
}

/* =====================================================
   Features Section
   ===================================================== */

.features-section {
    padding: var(--space-3xl) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--neutral-800);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 300ms ease-out;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
}

.feature-title {
    color: var(--neutral-0);
}

.feature-description {
    color: var(--neutral-200);
    font-size: 16px;
}

/* =====================================================
   Platform Section
   ===================================================== */

.platform-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 122, 255, 0.05) 100%);
}

.platform-partners {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
}

.partner-logo {
    opacity: 0.7;
    transition: opacity 300ms ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* =====================================================
   Agentic Solutions Section
   ===================================================== */

.agentic-section {
    padding: var(--space-3xl) 0;
}

.agentic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
}

.agentic-card {
    background: var(--neutral-800);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 300ms ease;
}

.agentic-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--glow-md);
}

.agentic-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary-300);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.agentic-title {
    margin-bottom: var(--space-md);
}

.agentic-description {
    color: var(--neutral-200);
    margin-bottom: var(--space-md);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary-500);
    font-weight: 600;
    font-size: 16px;
}

/* =====================================================
   Research Section
   ===================================================== */

.research-section {
    padding: var(--space-3xl) 0;
    background: var(--neutral-800);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.research-card {
    background: var(--neutral-900);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 300ms ease;
}

.research-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
}

.research-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, transparent 100%);
}

.research-type {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 122, 255, 0.2);
    color: var(--primary-300);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.research-title {
    color: var(--neutral-0);
    margin-bottom: var(--space-md);
}

/* =====================================================
   GenAI Section
   ===================================================== */

.genai-section {
    padding: var(--space-3xl) 0;
}

.genai-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.genai-description {
    font-size: 18px;
    color: var(--neutral-200);
    margin: var(--space-md) 0 var(--space-xl);
}

.genai-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   Testimonials Section
   ===================================================== */

.testimonials-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 122, 255, 0.03) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.testimonial-card {
    position: relative;
    padding: var(--space-lg);
    animation: fadeInUp 600ms ease-out;
    animation-fill-mode: both;
}

.testimonial-card:nth-child(1) {
    animation-delay: 100ms;
}

.testimonial-card:nth-child(2) {
    animation-delay: 200ms;
}

.testimonial-card:nth-child(3) {
    animation-delay: 300ms;
}

.quote-mark {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 120px;
    color: var(--neutral-400);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.6;
    color: var(--neutral-50);
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-0);
}

.author-title {
    font-size: 14px;
    color: var(--neutral-200);
}

.author-logo {
    max-width: 60px;
    height: auto;
    opacity: 0.5;
    filter: brightness(0) invert(1);
}

/* =====================================================
   Resources Section
   ===================================================== */

.resources-section {
    padding: var(--space-3xl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    background: var(--neutral-800);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 300ms ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    box-shadow: var(--glow-md);
}

.resource-type {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary-300);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.resource-title {
    color: var(--neutral-0);
    font-size: 20px;
    margin-bottom: var(--space-md);
}

/* =====================================================
   Security Section
   ===================================================== */

.security-section {
    padding: var(--space-3xl) 0;
    background: var(--neutral-800);
}

.security-badges {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.security-badge {
    padding: var(--space-md) var(--space-xl);
    background: var(--neutral-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-0);
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta-section {
    padding: var(--space-4xl) 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 122, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-xl);
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: var(--neutral-800);
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-0);
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: var(--neutral-200);
    font-size: 14px;
    transition: color 200ms ease;
}

.footer-column a:hover {
    color: var(--neutral-0);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.copyright {
    font-size: 14px;
    color: var(--neutral-400);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 14px;
    color: var(--neutral-400);
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    .hero {
        min-height: 500px;
        padding: var(--space-2xl) 0;
    }

    .feature-grid,
    .agentic-grid {
        grid-template-columns: 1fr;
    }

    .research-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 20px;
    }

    body {
        font-size: 16px;
    }

    .nav-desktop {
        display: none;
    }

    .header-actions .btn-primary,
    .header-actions .btn-secondary {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        min-height: 400px;
        padding: var(--space-2xl) 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-lg);
    }

    .feature-grid,
    .agentic-grid,
    .research-grid,
    .testimonials-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
    }

    .genai-actions {
        flex-direction: column;
        width: 100%;
    }

    .genai-actions .btn-primary,
    .genai-actions .btn-secondary {
        width: 100%;
    }
}

/* =====================================================
   Accessibility
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
}

/* =====================================================
   Waitlist Modal
   ===================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--neutral-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    margin: var(--space-md);
    position: relative;
    box-shadow: var(--glow-lg);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--neutral-400);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 200ms ease;
}

.modal-close:hover {
    color: var(--neutral-0);
}

.modal-content {
    padding: var(--space-xl);
}

.modal-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.modal-title {
    font-size: 24px;
    margin-bottom: var(--space-xs);
    color: var(--neutral-0);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--neutral-200);
    line-height: 1.5;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-200);
}

.form-group input {
    background: var(--neutral-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--neutral-0);
    font-size: 16px;
    font-family: inherit;
    transition: all 200ms ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.btn-full {
    width: 100%;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: var(--space-md) 0;
    animation: fadeIn 300ms ease;
}

.success-icon {
    margin-bottom: var(--space-md);
}

.success-message h3 {
    margin-bottom: var(--space-xs);
    color: var(--neutral-0);
}

.success-message p {
    color: var(--neutral-200);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =====================================================
   Scroll Progress Bar
   ===================================================== */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-500);
    z-index: 2001;
    transition: width 100ms ease-out;
}

/* =====================================================
   About Section Layout
   ===================================================== */

.about-content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.about-text {
    flex: 1;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* For absolute positioning of canvas */
    height: 320px;
    /* Fixed height to match canvas/image */
}

#about-logo {
    width: 320px;
    height: 320px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.3;
    /* Make it subtle so particles pop */
}

#logoCanvas {
    width: 320px;
    height: 320px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 768px) {
    .about-content-wrapper {
        flex-direction: column-reverse;
        gap: var(--space-lg);
    }

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

    .section-title,
    .genai-description {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .genai-actions {
        justify-content: center !important;
    }
}


/* --- Solutions Card Expand/Fade Effect --- */
.feature-card {
    cursor: pointer; /* Suggests interactivity */
}

.feature-description {
    text-align: justify;
    line-height: 1.5;
    max-height: 7.5em; /* Roughly 5 lines */
    overflow: hidden;
    transition: max-height 0.8s ease; /* Smooth drop-down */
    
    /* Creates the fade effect at the bottom without needing background colors */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* On hover, remove the fade and expand the height */
.feature-card:hover .feature-description {
    max-height: 800px; /* Arbitrary large number to fit all text */
    -webkit-mask-image: none;
    mask-image: none;
}

/* --- Post Page Two-Column Layout --- */
.post-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar Styles */
.sidebar-title { color: white; margin-bottom: 20px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.sidebar-list { display: flex; flex-direction: column; gap: 15px; }
.sidebar-item { display: flex; align-items: center; gap: 15px; text-decoration: none; padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.02); transition: background 0.2s; }
.sidebar-item:hover, .sidebar-item.active { background: rgba(255,255,255,0.08); }
.sidebar-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-item-title { color: var(--neutral-200); font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.sidebar-item:hover .sidebar-item-title, .sidebar-item.active .sidebar-item-title { color: white; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { order: 2; margin-top: 40px; } /* Moves sidebar below content on mobile */
    .post-content-area { order: 1; }
}


/* Markdown Content Wrapper */
.markdown-content { color: var(--neutral-200); line-height: 1.8; font-size: 1.1rem; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 { color: white; margin-top: 2rem; margin-bottom: 1rem; }
.markdown-content p { margin-bottom: 1.5rem; }
.markdown-content a { color: var(--primary-400); text-decoration: none; }
.markdown-content a:hover { text-decoration: underline; }
.markdown-content ul, .markdown-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.markdown-content li { margin-bottom: 0.5rem; }
.markdown-content strong { color: white; }
.markdown-content h1 { font-size: 2.2rem; }
.markdown-content h2 { font-size: 1.6rem; }
.markdown-content h3 { font-size: 1.3rem; }
.markdown-content blockquote { 
    border-left: 4px solid var(--primary-500); 
    padding-left: 1rem; 
    font-style: italic; 
    color: var(--neutral-300); 
}