/* C3 Page Specific Styles */
.c3-hero {
    position: relative;
    padding-top: 120px; /* Below nav */
    padding-bottom: 80px;
    background-color: #0b1120;
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(30, 41, 59, 0.5) 100%);
}

.c3-hero .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.c3-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.c3-hero .container {
    position: relative;
    z-index: 10;
    max-width: 100%;
    padding-left: 8%;
    margin: 0;
}

@media (min-width: 1600px) {
    .c3-hero .container {
        padding-left: 15%;
    }
}

.c3-hero-content {
    max-width: 600px;
    margin-right: auto;
    text-align: left;
}

.c3-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.c3-hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.c3-hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.c3-hero .highlight {
    color: #3b82f6;
}

.c3-hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-blue {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-blue:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #ccc;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

[data-theme="dark"] .btn-outline {
    color: #fff;
    border-color: #555;
}

/* Feature Cards Overlay */
.c3-hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.c3-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 280px;
}

[data-theme="dark"] .c3-feature-card {
    background: #1a1a2e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.c3-feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.c3-feature-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #111;
}

[data-theme="dark"] .c3-feature-text h4 {
    color: #fff;
}

.c3-feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

[data-theme="dark"] .c3-feature-text p {
    color: #aaa;
}

/* Workflow Section */
.workflow-section {
    padding: 6rem 0;
    background: #f8fafc;
    text-align: center;
}

[data-theme="dark"] .workflow-section {
    background: #0f0f16;
}

.workflow-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.workflow-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 4rem;
}

[data-theme="dark"] .workflow-section h2 {
    color: #fff;
}

.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.workflow-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    background: #fff;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .workflow-circle {
    border-color: #333;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    background: #111;
}

.workflow-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-arrow {
    font-size: 2rem;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 70px;
}

.workflow-step h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

[data-theme="dark"] .workflow-step h4 {
    color: #fff;
}

.workflow-step p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

[data-theme="dark"] .workflow-step p {
    color: #aaa;
}

/* Platform Features Grid */
.platform-features {
    padding: 4rem 0 6rem;
    background: #fff;
    text-align: center;
}

[data-theme="dark"] .platform-features {
    background: #050505;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    text-align: left;
}

.feature-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: border-color 0.2s;
}

[data-theme="dark"] .feature-box {
    border-color: #333;
    background: #111;
}

.feature-box:hover {
    border-color: #3b82f6;
}

.feature-box-icon {
    width: 40px;
    height: 40px;
    color: #3b82f6;
    flex-shrink: 0;
}

.feature-box-text h4 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
    color: #111;
}

[data-theme="dark"] .feature-box-text h4 {
    color: #fff;
}

.feature-box-text p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

[data-theme="dark"] .feature-box-text p {
    color: #aaa;
}

/* App Showcase */
.app-showcase {
    padding: 4rem 0;
    background: #f8fafc;
}

[data-theme="dark"] .app-showcase {
    background: #0f0f16;
}

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

.app-card {
    background: #fff;
    border-radius: 24px;
    padding: 0;
    display: flex;
    align-items: stretch;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.app-info {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-theme="dark"] .app-card {
    background: #1a1a2e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.app-mockup {
    width: 45%;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}

.app-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .app-info h3 {
    color: #fff;
}

.app-info h4 {
    font-size: 0.875rem;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.app-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

[data-theme="dark"] .app-info p {
    color: #bbb;
}

.app-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

[data-theme="dark"] .app-list li {
    color: #ddd;
}

.app-list li svg {
    color: #3b82f6;
    width: 16px;
    height: 16px;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    text-align: center;
    background: #fff;
}

[data-theme="dark"] .benefits-section {
    background: #050505;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.benefit-item h4 {
    font-size: 1.125rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

[data-theme="dark"] .benefit-item p {
    color: #aaa;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(234,242,255,0.9) 0%, rgba(255,255,255,0.9) 100%), url('img/c3_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 4rem 0;
    text-align: center;
}

[data-theme="dark"] .cta-banner {
    background: linear-gradient(135deg, rgba(10,10,25,0.9) 0%, rgba(0,0,10,0.9) 100%), url('img/c3_hero_bg.png');
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .cta-banner h2 {
    color: #fff;
}

.cta-banner p {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 2rem;
}

[data-theme="dark"] .cta-banner p {
    color: #ccc;
}

.cta-banner .btn-primary {
    background-color: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

[data-theme="dark"] .cta-banner .btn-primary {
    color: #60a5fa;
    border-color: #60a5fa;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .app-grid {
        grid-template-columns: 1fr;
    }
    .workflow-steps {
        flex-direction: column;
        gap: 2rem;
    }
    .workflow-arrow {
        transform: rotate(90deg);
        display: flex;
        justify-content: center;
        margin: 1rem auto !important;
    }
    .c3-hero-features {
        flex-wrap: wrap;
    }
    .c3-feature-card {
        min-width: calc(50% - 1rem);
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .c3-feature-card {
        min-width: 100%;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .app-card {
        flex-direction: column;
        text-align: center;
    }
    .app-list li {
        justify-content: center;
    }
}

/* --- C3 Page Entrance Animation --- */
@keyframes c3FadeInSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes c3TitleReveal {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes c3FeaturePop {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Initially hide elements until splash is done */
.c3-page nav,
.c3-page .c3-hero-content h1,
.c3-page .c3-hero-content h2,
.c3-page .c3-hero-content h3,
.c3-page .c3-hero-content p,
.c3-page .c3-hero-buttons,
.c3-page .c3-hero-features .c3-feature-card,
.c3-page section:not(.c3-hero),
.c3-page footer {
    opacity: 0;
}

body.c3-page.splash-done nav {
    animation: c3FadeInSlideUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

body.c3-page.splash-done .c3-hero-content h1 {
    animation: c3TitleReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

body.c3-page.splash-done .c3-hero-content h2 {
    animation: c3TitleReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

body.c3-page.splash-done .c3-hero-content h3 {
    animation: c3FadeInSlideUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

body.c3-page.splash-done .c3-hero-content p {
    animation: c3FadeInSlideUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

body.c3-page.splash-done .c3-hero-buttons {
    animation: c3FadeInSlideUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

body.c3-page.splash-done .c3-hero-features .c3-feature-card:nth-child(1) { animation: c3FeaturePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.3s; }
body.c3-page.splash-done .c3-hero-features .c3-feature-card:nth-child(2) { animation: c3FeaturePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.4s; }
body.c3-page.splash-done .c3-hero-features .c3-feature-card:nth-child(3) { animation: c3FeaturePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.5s; }
body.c3-page.splash-done .c3-hero-features .c3-feature-card:nth-child(4) { animation: c3FeaturePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.6s; }

body.c3-page.splash-done section:not(.c3-hero),
body.c3-page.splash-done footer {
    animation: c3FadeInSlideUp 1s ease forwards;
    animation-delay: 1.8s;
}

/* Alternating Features Section */
.alt-feature-section {
    padding: 6rem 0;
    background: var(--bg-tertiary);
}

.alt-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alt-feature-row:last-child {
    margin-bottom: 0;
}

.alt-feature-row.reverse {
    flex-direction: row-reverse;
}

.alt-feature-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .alt-feature-image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.alt-feature-image img,
.alt-feature-image video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.alt-feature-content {
    flex: 1;
    padding: 2rem;
}

.alt-feature-content h3 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

[data-theme="dark"] .alt-feature-content h3 {
    color: #fff;
}

.alt-feature-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

[data-theme="dark"] .alt-feature-content p {
    color: #bbb;
}

.alt-feature-list {
    list-style: none;
    padding: 0;
}

.alt-feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

[data-theme="dark"] .alt-feature-list li {
    color: #ddd;
}

.alt-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .alt-feature-row, .alt-feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Transparent Header navigation for C3 page */
.c3-nav {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.c3-nav .logo img {
    filter: brightness(0) invert(1);
}

.c3-nav .logo span {
    color: #ffffff !important;
}

.c3-nav .nav-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

.c3-nav .nav-item:hover,
.c3-nav .dropdown:hover > span {
    color: #ffffff !important;
}

/* Dark Dropdown Menu for C3 */
.c3-nav .dropdown-content {
    background-color: #0b1120 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.c3-nav .dropdown-content a {
    color: #cbd5e1 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.c3-nav .dropdown-content a:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    padding-left: 20px !important;
}

/* Scrolled state for C3 header - adds a subtle, premium glass blur */
.c3-nav.scrolled {
    background: rgba(11, 17, 32, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* --- C3 Splash Screen Intro & Video Transition --- */
.c3-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b1120;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    overflow: hidden;
}

.c3-splash-overlay .splash-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.c3-splash-overlay .splash-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c3-splash-overlay .skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.c3-splash-overlay .skip-btn:hover {
    background: #ffffff;
    color: #0b1120;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

body.c3-splash-active {
    overflow: hidden !important;
}

.c3-splash-overlay.fade-out {
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
    pointer-events: none;
}

/* Sound Toggle Button */
.c3-splash-overlay .sound-btn {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c3-splash-overlay .sound-btn:hover {
    background: #ffffff;
    color: #0b1120;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

@media (max-width: 576px) {
    .c3-splash-overlay .skip-btn {
        bottom: 20px !important;
        right: 20px !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }
    .c3-splash-overlay .sound-btn {
        bottom: 20px !important;
        left: 20px !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }
}
