html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

:root {
    --primary: #00BFFF;
    --secondary: #86868b;
    --text: #ffffff;
    --dark-text: #1d1d1f;
    --white: #ffffff;
    --gradient-start: #042648;
    --gradient-end: #010a13;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #001f3f;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.5s ease;
    padding: 5px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: -55px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4A90E2
}

.sign-in-btn {
    background-color: #0077ED; /* Original background color */
    color: transparent;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 980px;
    transition: all 0.3s ease;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.sign-in-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: 
        linear-gradient(90deg, rgba(70, 50, 120, 0.097), rgba(70, 50, 120, 0.077)),
        var(--gradient-purple-blue, linear-gradient(90deg, #ffdefc63 -23.44%, #dfe4ff4a 50%, #5dbdf594 123.44%));
    background-blend-mode: multiply;
    background-size: 200% 200%;
    animation: bg-text-breath 10s ease infinite;
    z-index: -1;
    border-radius: 980px;
    opacity: 0.65; /* Add some opacity to see the text better */
}


.sign-in-btn:hover::before {
    filter: brightness(1.2);
}

.sign-in-btn:hover {
    filter: brightness(1.1);
}


main {
    padding-top: 0;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text);
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-bottom: 10vh;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.07143;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 32px;
    line-height: 1.10722;
    font-weight: 400;
    letter-spacing: .004em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.bg-green-pink {
    background: var(--gradient-green-pink, linear-gradient(90deg, #D7EEA5 0%, #FFD8DA 60.58%, #F15FD1 121.16%));
}
.bg-purple-blue {
    background: var(--gradient-purple-blue, linear-gradient(90deg, #FFDEFC -23.44%, #DFE4FF 50%, #5DBEF5 123.44%));
}
.bg-green-blue {
    background: var(--gradient-green-blue, linear-gradient(101deg, #D7EEA5 -10.95%, #CCF6FF 51.74%, #5DBEF5 111.88%));
}
.bg-orange-pink {
    background: var(--gradient-orange-pink, linear-gradient(101deg, #FF9E1B -20.05%, #FFD8DA 48.84%, #F6B7E8 117.73%));
}
.bg-blue-pink {
    background: var(--gradient-blue-pink, linear-gradient(90deg, #DFE4FF -28.25%, #FFDEFC 52.04%, #FA8EDC 127.47%));
}
.bg-blue-orange {
    background: var(--gradient-blue-orange, linear-gradient(90deg, #83D2F5 -24.59%, #CCF6FF 51.01%, #FFD684 123.53%));
}
.bg-faded {
    background: linear-gradient(90deg, rgba(223, 228, 255, 0.05) 0.24%, rgba(246, 183, 232, 0.20) 102.56%);
}



.bg-clip-text {
    background-size: 200% 200%;
    animation: bg-text-breath 5s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

@keyframes bg-text-breath {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.widget-container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
}

#ai-call-widget {
    margin-top: 0;
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section, .content-section, .slogan {
    overflow: hidden;
    width: 100%;
    padding: 50px 0;
    background-color: #021526;
}

.content-section {
    position: relative;
    z-index: 1;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center;
    font-size: 28px;
    line-height: 1.10722;
    font-weight: 400;
    letter-spacing: .004em;
    margin-bottom: 64px;
    color: var(--text);
    opacity: 0.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.card h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: .009em;
    margin-bottom: 12px;
}

.card p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text);
    opacity: 0.8;
}

.slogan {
    background-color: #002447;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.slogan h2 {
    font-size: 64px;
    line-height: 1.0625;
    font-weight: 600;
    letter-spacing: -0.009em;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background-color: rgba(0, 31, 63, 0.8);
    color: var(--text);
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    max-width: 25%;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

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

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.social-icons a:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.2);
}

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

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

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

.footer-legal li a:hover {
    color: var(--primary);
}

#platform {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hamburger menu styles */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.hamburger {
    width: 18px; /* Reduced from 21px */
    height: 12px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px; /* Reduced from 3px */
    width: 100%;
    background-color: var(--text);
    border-radius: 2px; /* Adjusted for the thinner lines */
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 5px;
}

.hamburger span:nth-child(3) {
    top: 10px;
}

/* Hamburger animation */
.menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

.client-carousel {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.carousel-content {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    height: 40px;
}

.carousel-content span {
    display: inline-block;
    padding: 0 20px;
    font-size: 22px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}


/* Hide mobile button on desktop */
.try-for-free.mobile-btn {
    display: none;
}

@media (min-width: 769px) {
    .carousel-content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-content span {
        position: relative;
        transform: none;
        left: auto;
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    .carousel-content {
        justify-content: flex-start;
        animation: scroll 40s linear infinite; /* Increased speed */
        height: auto;
    }

    .carousel-content span {
        margin-right: calc(15vw - 30px);
        opacity: 1;
        transition: opacity 0.5s ease;
    }

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

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding-bottom: 60px; /* Add some bottom padding to accommodate the carousel */
        justify-content: flex-start;
        padding-top: 130px;
    }

    .client-carousel {
        position: absolute;
        bottom: 20px;
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        top: 0;
        background-color: rgba(0, 31, 63); /* Show background only when active */
        pointer-events: auto; /* Enable interactions when menu is open */
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        display: block;
        margin: 15px 0;
        font-size: 18px;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .sign-in-btn {
        display: block;
        margin-left: auto;
        font-size: 14px;
        padding: 6px 12px;
    }
    .logo, .sign-in-btn {
        display: flex;
        align-items: center;
    }

    .try-for-free.desktop-btn {
        display: none;
    }

    /* Show mobile button on mobile */
    .try-for-free.mobile-btn {
        display: inline-block;
    }

    /* Ensure the mobile button is visible when the menu is active */
    .nav-links.active .try-for-free.mobile-btn {
        display: inline-block;
    }


    nav {
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .widget-container {
        max-width: 100%;
        margin-top: -20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .slogan h2 {
        font-size: 36px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    .card p {
        font-size: 14px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .footer-section {
        flex-basis: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 15px;
        justify-content: center;
    }
}

.logo-button {
    text-decoration: none;
    }

a {
    text-decoration: none;
    }


/* Add these styles to your existing CSS */

.mobile-buttons {
    display: none;
    align-items: center;
    margin-left: auto; /* This will push the content to the right */
}

.menu-toggle {
    display: none;
    cursor: pointer;
    margin-left: 15px; /* Increase this value to move the hamburger menu more to the right */
}

.hamburger {
    width: 20px;
    height: 14px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--text);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 5px;
}

.hamburger span:nth-child(3) {
    top: 10px;
}

/* Hamburger animation */
.menu-toggle.active .hamburger span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-buttons {
        display: flex;
    }
    nav {
        padding-right: 0; /* Add some padding on the right side */
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #001f3f;
        padding: 20px;
        padding-top: 30px; /* Increased top padding */
        flex-direction: column;
        align-items: flex-start;
        z-index: 1000;
    }
    .logo-button {
        z-index: 1001; /* Higher than the nav-links to ensure it stays on top */
    }

    header {
        transition: background-color 0.3s ease;
    }

    header.menu-open {
        background-color: #001f3f; /* Solid background when menu is open */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        padding: 5px 0;
    }

    .try-for-free.desktop-btn {
        display: none;
    }

    .try-for-free.mobile-btn {
        display: inline-block;
    }

    /* Add extra space for the first menu item */
    .nav-links a:first-child {
        margin-top: 20px;
    }
}