/* Reset and 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;
    line-height: 1.6;
    color: #666666;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00BFE6 0%, #2A5CFF 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 92, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 92, 255, 0.4);
}

.btn-outline {
    border: 2px solid #2A5CFF;
    color: #2A5CFF;
    background: transparent;
}

.btn-outline:hover {
    background: #2A5CFF;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 245, 245, 0.8);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

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

.nav-link {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2A5CFF;
}

.nav-cta {
    background: linear-gradient(135deg, #00BFE6 0%, #2A5CFF 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 92, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2A5CFF;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 92, 255, 0.05) 0%, rgba(122, 63, 255, 0.05) 100%);
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2A5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    font-size: 1.2rem;
    padding: 20px 40px;
}

/* Integration Diagonal Scroll */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.integrations-scroll {
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
}

.scroll-text {
    text-align: center;
    margin-bottom: 1rem;
}

.scroll-text p {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 500;
}

.integrations-carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    border-radius: 16px;
    padding: 2rem 0.75rem;
    border: 1px solid #E8F2FF;
    box-shadow: 0 8px 30px rgba(42, 92, 255, 0.1);
    height: 400px;
    width: 100%;
}

.diagonal-grid {
    position: relative;
    height: 100%;
    width: 100%;
}

.integration-row {
    position: absolute;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    left: 0;
}

.integration-row:nth-child(1) {
    animation: continuousFlow 48s linear infinite;
    transform: translateY(380px);
    z-index: 12;
}

.integration-row:nth-child(2) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 4s;
    transform: translateY(380px);
    z-index: 11;
}

.integration-row:nth-child(3) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 8s;
    transform: translateY(380px);
    z-index: 10;
}

.integration-row:nth-child(4) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 12s;
    transform: translateY(380px);
    z-index: 9;
}

.integration-row:nth-child(5) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 16s;
    transform: translateY(380px);
    z-index: 8;
}

.integration-row:nth-child(6) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 20s;
    transform: translateY(380px);
    z-index: 7;
}

.integration-row:nth-child(7) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 24s;
    transform: translateY(380px);
    z-index: 6;
}

.integration-row:nth-child(8) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 28s;
    transform: translateY(380px);
    z-index: 5;
}

.integration-row:nth-child(9) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 32s;
    transform: translateY(380px);
    z-index: 4;
}

.integration-row:nth-child(10) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 36s;
    transform: translateY(380px);
    z-index: 3;
}

.integration-row:nth-child(11) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 40s;
    transform: translateY(380px);
    z-index: 2;
}

.integration-row:nth-child(12) {
    animation: continuousFlow 48s linear infinite;
    animation-delay: 44s;
    transform: translateY(380px);
    z-index: 1;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.6rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 75px;
    border: 1px solid #F0F4FF;
}

.integration-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(42, 92, 255, 0.2);
    border-color: #2A5CFF;
}

.integration-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.integration-logo span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

@keyframes continuousFlow {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px);
        opacity: 0;
    }
}

/* Value Propositions */
.value-props {
    padding: 100px 0;
    background: #FAFAFA;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2A5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.value-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
    flex: 1;
}

.value-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.value-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
}

.value-icon svg {
    width: 40px;
    height: 40px;
}

.value-slide h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-slide p {
    font-size: 1.1rem;
    max-width: 400px;
}

.carousel-arrow {
    background: white;
    border: 2px solid #E8F2FF;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2A5CFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: #2A5CFF;
    color: white;
    border-color: #2A5CFF;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(42, 92, 255, 0.3);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2A5CFF;
    transform: scale(1.2);
}

/* Featured Case Studies */
.featured-cases {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666666;
}

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

.case-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #F5F5F5;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.case-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    flex: 1;
}

.case-integrations {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.case-integrations img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.case-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.case-link {
    color: #2A5CFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #7A3FFF;
}

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

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: #2A5CFF;
    font-size: 1.2rem;
    padding: 20px 40px;
}

.cta-section .btn-primary:hover {
    background: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    color: #333;
    padding: 60px 0 30px;
    border-top: 1px solid #E8F2FF;
}

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

.footer-brand h3 {
    background: linear-gradient(135deg, #00BFE6 0%, #2A5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #666666;
}

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

.link-group h4 {
    color: #2A5CFF;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: #666666;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #2A5CFF;
}

.link-group p {
    color: #666666;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #E8F2FF;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

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

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

    .hero-visual {
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .integrations-scroll {
        max-width: 320px;
        margin: 0 auto;
    }

    .scroll-text {
        margin-bottom: 0.75rem;
    }

    .scroll-text p {
        font-size: 0.9rem;
    }

    .integrations-carousel {
        padding: 1.5rem 0.5rem;
        height: 300px;
        border-radius: 12px;
    }

    .integration-row {
        gap: 0.5rem;
    }

    .integration-logo {
        min-width: 50px;
        padding: 0.4rem 0.25rem;
        gap: 0.2rem;
    }

    .integration-logo img {
        width: 18px;
        height: 18px;
    }

    .integration-logo span {
        font-size: 0.65rem;
    }

    .carousel-container {
        flex-direction: column;
        gap: 1rem;
        position: relative;
        padding: 0 60px;
        width: 100%;
        max-width: 100%;
    }

    .value-carousel {
        height: 300px;
        min-height: 300px;
        width: 100%;
        flex: 1;
    }

    .value-slide {
        padding: 1rem;
        justify-content: center;
    }

    .value-slide h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .value-slide p {
        font-size: 1rem;
        max-width: 300px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .carousel-arrow-left {
        left: 15px;
    }

    .carousel-arrow-right {
        right: 15px;
    }

    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .carousel-dots {
        position: static;
        transform: none;
        margin-top: 1rem;
    }

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

    .case-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-integrations {
        margin-top: 0.5rem;
    }

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

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .integrations-carousel {
        width: 280px;
        height: 250px;
        margin: 0 auto;
    }

    .case-card {
        padding: 1.5rem;
    }

    .carousel-container {
        padding: 0 50px;
        width: 100%;
        max-width: 100%;
    }

    .value-carousel {
        height: 280px;
        min-height: 280px;
        width: 100%;
        flex: 1;
    }

    .value-slide {
        padding: 0.75rem;
    }

    .value-slide h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .value-slide p {
        font-size: 0.95rem;
        max-width: 280px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .value-icon svg {
        width: 30px;
        height: 30px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow-left {
        left: 10px;
    }

    .carousel-arrow-right {
        right: 10px;
    }

    .carousel-arrow svg {
        width: 14px;
        height: 14px;
    }
}
