/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --error-color: #f56565;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text .ai {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-large {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-white {
    color: white !important;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    margin-top: 4rem;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.magic-text {
    display: inline-block;
    animation: magicShimmer 3s ease-in-out infinite;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%,
        #ff6b9d 50%,
        var(--secondary-color) 75%,
        var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

@keyframes magicShimmer {
    0%, 100% {
        background-position: 0% center;
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
    }
    50% {
        background-position: 100% center;
        filter: drop-shadow(0 0 30px rgba(196, 113, 237, 0.5));
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.visual-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.visual-card.card-1 {
    width: 280px;
    animation-delay: 0s;
}

.visual-card.card-2 {
    width: 260px;
    animation-delay: 2s;
}

.visual-card.card-3 {
    width: 240px;
    animation-delay: 4s;
}

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

.card-header {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-content {
    height: 150px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.heatmap {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 8px;
}

.heatmap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 50%,
        rgba(102, 126, 234, 0.3) 100%);
    animation: heatmapPulse 3s ease-in-out infinite;
}

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

.clusters {
    position: relative;
    height: 100%;
}

.clusters::before,
.clusters::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.6;
    animation: clusterMove 4s ease-in-out infinite;
}

.clusters::before {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 20%;
}

.clusters::after {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 20%;
    animation-delay: 2s;
}

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

.gene-chart {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 1rem;
}

.gene-chart::before,
.gene-chart::after {
    content: '';
    width: 20%;
    background: var(--primary-gradient);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-in-out infinite;
}

.gene-chart::before {
    height: 60%;
}

.gene-chart::after {
    height: 80%;
    animation-delay: 1s;
}

@keyframes barGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

/* Features Section */
.features {
    padding: 2rem 0;
    background: var(--bg-primary);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.about-feature svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.image-placeholder {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Contact Section */
.contact {
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
}

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

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.benefit svg {
    color: var(--success-color);
    flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form-centered {
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    display: none;
    margin-top: 1.5rem;
    animation: slideIn 0.5s ease;
}

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

.form-message.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
    border: 2px solid var(--success-color);
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.2);
}

.form-message.success .success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.form-message.success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.form-message.success p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.form-message.error {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo svg circle,
.footer-brand .logo svg path {
    stroke: white;
    fill: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-visual {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .visual-card {
        width: 100% !important;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Demo Visual - Animated Spatial Visualization */
.demo-visual {
    margin-top: 1.5rem;
    text-align: center;
}

.spatial-viz {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.visual-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Animated elements */
.pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.spot {
    animation: spotGlow 2s ease-in-out infinite;
}

.spot-1 { animation-delay: 0s; }
.spot-2 { animation-delay: 0.2s; }
.spot-3 { animation-delay: 0.4s; }
.spot-4 { animation-delay: 0.6s; }
.spot-5 { animation-delay: 0.8s; }
.spot-6 { animation-delay: 1s; }
.spot-7 { animation-delay: 1.2s; }
.spot-8 { animation-delay: 1.4s; }

@keyframes spotGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.particle {
    animation: float 4s ease-in-out infinite;
}

.particle-1 { animation-delay: 0s; }
.particle-2 { animation-delay: 1s; }
.particle-3 { animation-delay: 2s; }
.particle-4 { animation-delay: 3s; }

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

.connection {
    animation: fadeConnection 3s ease-in-out infinite;
}

@keyframes fadeConnection {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Magical Footer with Fireflies */
.footer {
    position: relative;
    background: linear-gradient(180deg, 
        var(--bg-primary) 0%, 
        rgba(248, 249, 250, 0.95) 8%, 
        rgba(232, 233, 235, 0.9) 16%, 
        rgba(200, 200, 205, 0.8) 24%,
        rgba(150, 150, 160, 0.7) 32%,
        rgba(100, 100, 110, 0.6) 40%,
        rgba(60, 60, 70, 0.5) 48%,
        #0a0a0a 56%, 
        #12121f 70%,
        #1a1a2e 100%);
    overflow: hidden;
    min-height: 120px;
}

.firefly-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.firefly {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

/* Size variations */
.firefly.size-1 {
    width: 3px;
    height: 3px;
}

.firefly.size-2 {
    width: 6px;
    height: 6px;
}

.firefly.size-3 {
    width: 9px;
    height: 9px;
}

.firefly::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: fireflyGlow 2s infinite alternate;
}

/* Random glow timing for each firefly */
.firefly:nth-child(1)::before { animation-delay: 0s; animation-duration: 2.1s; }
.firefly:nth-child(2)::before { animation-delay: 0.3s; animation-duration: 1.8s; }
.firefly:nth-child(3)::before { animation-delay: 0.7s; animation-duration: 2.3s; }
.firefly:nth-child(4)::before { animation-delay: 1.1s; animation-duration: 1.9s; }
.firefly:nth-child(5)::before { animation-delay: 0.2s; animation-duration: 2.2s; }
.firefly:nth-child(6)::before { animation-delay: 0.9s; animation-duration: 2.0s; }
.firefly:nth-child(7)::before { animation-delay: 1.4s; animation-duration: 1.7s; }
.firefly:nth-child(8)::before { animation-delay: 0.5s; animation-duration: 2.4s; }
.firefly:nth-child(9)::before { animation-delay: 1.2s; animation-duration: 1.8s; }
.firefly:nth-child(10)::before { animation-delay: 0.8s; animation-duration: 2.1s; }
.firefly:nth-child(11)::before { animation-delay: 0.4s; animation-duration: 1.9s; }
.firefly:nth-child(12)::before { animation-delay: 1.0s; animation-duration: 2.3s; }
.firefly:nth-child(13)::before { animation-delay: 0.6s; animation-duration: 2.0s; }
.firefly:nth-child(14)::before { animation-delay: 1.3s; animation-duration: 1.8s; }
.firefly:nth-child(15)::before { animation-delay: 0.1s; animation-duration: 2.2s; }
.firefly:nth-child(16)::before { animation-delay: 0.9s; animation-duration: 1.9s; }
.firefly:nth-child(17)::before { animation-delay: 1.5s; animation-duration: 2.1s; }
.firefly:nth-child(18)::before { animation-delay: 0.3s; animation-duration: 2.0s; }
.firefly:nth-child(19)::before { animation-delay: 1.1s; animation-duration: 1.7s; }
.firefly:nth-child(20)::before { animation-delay: 0.7s; animation-duration: 2.4s; }
.firefly:nth-child(21)::before { animation-delay: 0.2s; animation-duration: 1.8s; }
.firefly:nth-child(22)::before { animation-delay: 1.0s; animation-duration: 2.2s; }
.firefly:nth-child(23)::before { animation-delay: 0.5s; animation-duration: 1.9s; }
.firefly:nth-child(24)::before { animation-delay: 1.4s; animation-duration: 2.3s; }
.firefly:nth-child(25)::before { animation-delay: 0.8s; animation-duration: 2.0s; }
.firefly:nth-child(26)::before { animation-delay: 0.4s; animation-duration: 1.8s; }
.firefly:nth-child(27)::before { animation-delay: 1.2s; animation-duration: 2.1s; }
.firefly:nth-child(28)::before { animation-delay: 0.6s; animation-duration: 1.9s; }
.firefly:nth-child(29)::before { animation-delay: 1.3s; animation-duration: 2.2s; }
.firefly:nth-child(30)::before { animation-delay: 0.1s; animation-duration: 2.4s; }
.firefly:nth-child(31)::before { animation-delay: 0.9s; animation-duration: 1.7s; }
.firefly:nth-child(32)::before { animation-delay: 1.5s; animation-duration: 2.0s; }
.firefly:nth-child(33)::before { animation-delay: 0.3s; animation-duration: 2.3s; }
.firefly:nth-child(34)::before { animation-delay: 1.1s; animation-duration: 1.8s; }
.firefly:nth-child(35)::before { animation-delay: 0.7s; animation-duration: 2.1s; }
.firefly:nth-child(36)::before { animation-delay: 0.2s; animation-duration: 1.9s; }
.firefly:nth-child(37)::before { animation-delay: 1.0s; animation-duration: 2.2s; }
.firefly:nth-child(38)::before { animation-delay: 0.5s; animation-duration: 2.0s; }
.firefly:nth-child(39)::before { animation-delay: 1.4s; animation-duration: 1.8s; }
.firefly:nth-child(40)::before { animation-delay: 0.8s; animation-duration: 2.4s; }
.firefly:nth-child(41)::before { animation-delay: 0.4s; animation-duration: 1.7s; }
.firefly:nth-child(42)::before { animation-delay: 1.2s; animation-duration: 2.1s; }
.firefly:nth-child(43)::before { animation-delay: 0.6s; animation-duration: 1.9s; }
.firefly:nth-child(44)::before { animation-delay: 1.3s; animation-duration: 2.3s; }
.firefly:nth-child(45)::before { animation-delay: 0.1s; animation-duration: 2.0s; }
.firefly:nth-child(46)::before { animation-delay: 0.9s; animation-duration: 1.8s; }
.firefly:nth-child(47)::before { animation-delay: 1.5s; animation-duration: 2.2s; }
.firefly:nth-child(48)::before { animation-delay: 0.3s; animation-duration: 1.9s; }
.firefly:nth-child(49)::before { animation-delay: 1.1s; animation-duration: 2.1s; }
.firefly:nth-child(50)::before { animation-delay: 0.7s; animation-duration: 2.4s; }

.firefly.size-1::before {
    width: 15px;
    height: 15px;
}

.firefly.size-2::before {
    width: 25px;
    height: 25px;
}

.firefly.size-3::before {
    width: 35px;
    height: 35px;
}

.firefly-pink {
    background: #ff6b9d;
    box-shadow: 0 0 20px #ff6b9d, 0 0 40px #ff6b9d;
}

.firefly-pink::before {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.8) 0%, transparent 70%);
}

.firefly-blue {
    background: #4facfe;
    box-shadow: 0 0 20px #4facfe, 0 0 40px #4facfe;
}

.firefly-blue::before {
    background: radial-gradient(circle, rgba(79, 172, 254, 0.8) 0%, transparent 70%);
}

.firefly-green {
    background: #43e97b;
    box-shadow: 0 0 20px #43e97b, 0 0 40px #43e97b;
}

.firefly-green::before {
    background: radial-gradient(circle, rgba(67, 233, 123, 0.8) 0%, transparent 70%);
}

.firefly-purple {
    background: #c471ed;
    box-shadow: 0 0 20px #c471ed, 0 0 40px #c471ed;
}

.firefly-purple::before {
    background: radial-gradient(circle, rgba(196, 113, 237, 0.8) 0%, transparent 70%);
}

.firefly-cyan {
    background: #00f2fe;
    box-shadow: 0 0 20px #00f2fe, 0 0 40px #00f2fe;
}

.firefly-cyan::before {
    background: radial-gradient(circle, rgba(0, 242, 254, 0.8) 0%, transparent 70%);
}


@keyframes fireflyGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.footer-minimal {
    text-align: center;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1;
}

.footer-minimal p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-minimal a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-minimal a:hover {
    color: var(--secondary-color);
}

/* Magical Feature Card Animations */
.feature-icon-magic {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 1rem;
    position: relative;
    overflow: visible;
}

.magic-viz {
    width: 100%;
    height: 100%;
}

/* Spatial Expression - Glowing spots */
.magic-spot {
    animation: magicPulse 3s infinite ease-in-out;
    filter: drop-shadow(0 0 8px currentColor);
}

.spot-1 { animation-delay: 0s; }
.spot-2 { animation-delay: 0.3s; }
.spot-3 { animation-delay: 0.6s; }
.spot-4 { animation-delay: 0.9s; }
.spot-5 { animation-delay: 1.2s; }
.spot-6 { animation-delay: 1.5s; }

@keyframes magicPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Cell Clustering - Static with glowing connections */
.magic-cluster {
    filter: drop-shadow(0 0 6px currentColor);
    animation: clusterGlow 2s infinite ease-in-out;
}

.cluster-1 { animation-delay: 0s; }
.cluster-2 { animation-delay: 0.1s; }
.cluster-3 { animation-delay: 0.2s; }
.cluster-4 { animation-delay: 0s; }
.cluster-5 { animation-delay: 0.1s; }
.cluster-6 { animation-delay: 0.2s; }
.cluster-7 { animation-delay: 0s; }
.cluster-8 { animation-delay: 0.1s; }
.cluster-9 { animation-delay: 0.2s; }

@keyframes clusterGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Cluster connection lines - animated */
.cluster-line {
    opacity: 0.3;
    animation: lineGlow 3s infinite ease-in-out;
    filter: drop-shadow(0 0 3px currentColor);
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.3s; }
.line-3 { animation-delay: 0.6s; }
.line-4 { animation-delay: 0.9s; }
.line-5 { animation-delay: 1.2s; }
.line-6 { animation-delay: 1.5s; }
.line-7 { animation-delay: 1.8s; }
.line-8 { animation-delay: 2.1s; }
.line-9 { animation-delay: 2.4s; }

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.2;
        stroke-width: 1;
    }
    50% {
        opacity: 0.8;
        stroke-width: 2;
    }
}

/* Gene Analysis - Heatmap wave */
.magic-heat {
    animation: heatWave 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

.heat-1 { animation-delay: 0s; }
.heat-2 { animation-delay: 0.1s; }
.heat-3 { animation-delay: 0.2s; }
.heat-4 { animation-delay: 0.3s; }
.heat-5 { animation-delay: 0.4s; }
.heat-6 { animation-delay: 0.5s; }
.heat-7 { animation-delay: 0.6s; }
.heat-8 { animation-delay: 0.7s; }
.heat-9 { animation-delay: 0.8s; }
.heat-10 { animation-delay: 0.9s; }
.heat-11 { animation-delay: 1s; }
.heat-12 { animation-delay: 1.1s; }

@keyframes heatWave {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.3) drop-shadow(0 0 4px currentColor);
    }
}


/* Mobile optimizations for magic animations */
@media (max-width: 768px) {
    .feature-icon-magic {
        width: 100px;
        height: 100px;
    }
    
    .firefly.size-1 {
        width: 2px;
        height: 2px;
    }
    
    .firefly.size-2 {
        width: 4px;
        height: 4px;
    }
    
    .firefly.size-3 {
        width: 6px;
        height: 6px;
    }
    
    .firefly.size-1::before {
        width: 10px;
        height: 10px;
    }
    
    .firefly.size-2::before {
        width: 18px;
        height: 18px;
    }
    
    .firefly.size-3::before {
        width: 25px;
        height: 25px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}
