html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    /* Functional Colors */
    --shadow-sm: 0 2px 10px rgba(29, 53, 87, 0.05);
    --shadow-md: 0 4px 20px rgba(29, 53, 87, 0.1);
    --shadow-lg: 0 10px 30px rgba(29, 53, 87, 0.15);
    /* Animation Timings */
    --animate-duration: 0.3s;
    --animate-delay: 0s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-soft);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(247, 249, 251, 0.95);
    border-bottom: 1px solid rgba(29, 53, 87, 0.1);
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.logo span {
    color: var(--mint);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1D3557;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease !important;
}

.dashboard-link:hover {
    background: linear-gradient(90deg, #26B3A7, #2EC4B6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.25);
    color: white !important;
}

.dashboard-link::after {
    display: none !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #1D3557;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 8rem 5% 12rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F9FB 0%, #FFFFFF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    transform: rotate(-45deg);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 3;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    animation: fadeIn 1s ease-out;
}

.hero-images {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-image {
    position: absolute;
    width: 30%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    opacity: 0.95;
    filter: brightness(1);
    max-height: 90%;
    object-fit: contain;
    top: 40%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid rgba(46, 196, 182, 0.1);
}

.hero-image.primary {
    right: 5%;
    transform: translateY(-50%) rotate(2deg);
    z-index: 2;
    animation: bouncePrimary 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.hero-image.secondary {
    right: 15%;
    transform: translateY(-50%) rotate(-2deg) scale(0.9);
    z-index: 1;
    animation: bounceSecondary 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    color: white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.25);
    background: linear-gradient(90deg, #26B3A7, #2EC4B6);
}

/* Features Section */
.features {
    padding: 5rem 5%;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animate-duration) ease,
               transform var(--animate-duration) ease;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    will-change: transform;
    background: linear-gradient(145deg, #FFFFFF, #F7F9FB);
    border: 1px solid rgba(46, 196, 182, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
    z-index: 1;
}

.feature-card i {
    font-size: 2rem;
    color: #2EC4B6;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card h3 {
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.feature-card p {
    color: var(--text-dark);
    margin: 0;
}

/* Demo Section */
.demo {
    padding: 5rem 5%;
    text-align: center;
}

.demo h2 {
    font-weight: 600;
}

.chat-preview {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.chat-preview:hover {
    transform: translateY(-5px);
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    color: white;
    text-align: left;
}

.preview-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.preview-overlay p {
    color: var(--text-white);
}

/* Embedded Chatbot Styles */
#legal-chatbot-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
}

.chat-toggle-button {
    background: var(--mint) !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.chat-toggle-button:hover {
    transform: scale(1.1) !important;
}

/* Add smooth transition for chat window */
.chat-window {
    transition: all 0.3s ease !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.contact-form {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(29, 53, 87, 0.1);
    border-radius: 10px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #1D3557;
    position: relative;
    z-index: 2;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2EC4B6;
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dark);
}

.submit-button {
    padding: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 3rem 5% 1rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(29, 53, 87, 0.1);
    background: linear-gradient(180deg, #F7F9FB, #FFFFFF);
    padding-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-content .logo {
    height: 50px;
}

.footer-content .logo span {
    color: var(--mint);
}

.footer-links a {
    text-decoration: none;
    color: #1D3557;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: #2EC4B6;
}

.social-links a {
    color: #1D3557;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    color: #2EC4B6;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: #1D3557;
    opacity: 0.7;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bouncePrimary {
    0% {
        transform: translateY(-55%) rotate(2deg) translateX(-5%);
        z-index: 2;
        opacity: 1;
        filter: brightness(1);
    }
    45% {
        transform: translateY(-45%) rotate(2deg) translateX(-5%);
        z-index: 2;
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        transform: translateY(-45%) rotate(-2deg) scale(0.9) translateX(5%);
        z-index: 1;
        opacity: 0.8;
        filter: brightness(0.95);
    }
    95% {
        transform: translateY(-55%) rotate(-2deg) scale(0.9) translateX(5%);
        z-index: 1;
        opacity: 0.8;
        filter: brightness(0.95);
    }
    100% {
        transform: translateY(-55%) rotate(2deg) translateX(-5%);
        z-index: 2;
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes bounceSecondary {
    0% {
        transform: translateY(-45%) rotate(-2deg) scale(0.9) translateX(5%);
        z-index: 1;
        opacity: 0.8;
        filter: brightness(0.95);
    }
    45% {
        transform: translateY(-55%) rotate(-2deg) scale(0.9) translateX(5%);
        z-index: 1;
        opacity: 0.8;
        filter: brightness(0.95);
    }
    50% {
        transform: translateY(-55%) rotate(2deg) translateX(-5%);
        z-index: 2;
        opacity: 1;
        filter: brightness(1);
    }
    95% {
        transform: translateY(-45%) rotate(2deg) translateX(-5%);
        z-index: 2;
        opacity: 1;
        filter: brightness(1);
    }
    100% {
        transform: translateY(-45%) rotate(-2deg) scale(0.9) translateX(5%);
        z-index: 1;
        opacity: 0.8;
        filter: brightness(0.95);
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 5% 2rem;
        min-height: auto;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        gap: 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-images {
        display: none; /* Hide images on smaller screens */
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background: rgba(247, 249, 251, 0.98);
        padding: 1rem 0;
        flex-direction: column;
        gap: 1rem;
        border-bottom: 1px solid rgba(29, 53, 87, 0.1);
        backdrop-filter: blur(10px);
    }

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

    .nav-links li:not(:last-child) {
        display: none;
    }

    .nav-links li:last-child {
        margin: 0;
    }

    .dashboard-link {
        margin: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .chat-preview {
        margin: 2rem 1rem;
    }

    #legal-chatbot-widget {
        bottom: 10px !important;
        right: 10px !important;
    }

    .navbar {
        padding: 1rem 5%;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .feature-card {
        margin: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links,
    .social-links {
        margin-top: 1rem;
    }

    .logo {
        height: 32px;
    }

    .hero-images {
        height: 350px;
    }

    .hero-image {
        width: 80%;
        opacity: 0.8;
    }

    .hero-image.primary {
        right: 0;
        top: 45%;
        transform: translateY(-50%) rotate(2deg) translateX(-5%);
    }

    .hero-image.secondary {
        left: 5%;
        top: 45%;
        transform: translateY(-50%) rotate(-2deg) scale(0.9) translateX(5%);
    }

    .about {
        margin-top: 0;
        padding-top: 6rem;
    }
}

/* New breakpoint specifically for tablet/small laptop */
@media (min-width: 574px) and (max-width: 768px) {
    .hero-image {
        width: 600px;
    }
    
    .hero-image.primary {
        margin-right: -300px;
    }
    
    .hero-image.secondary {
        margin-left: -300px;
    }
}

/* Mobile styles */
@media (max-width: 573px) {
    .hero {
        padding: 3rem 5% 1rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-images {
        height: 70vh;
    }
    
    .hero-image {
        width: 30%;
    }
    
    .hero-image.primary {
        margin-left: 5%;
        transform: translateX(-50%) translateY(-50%) rotate(2deg);
    }
    
    .hero-image.secondary {
        margin-left: -15%;
        transform: translateX(-50%) translateY(-50%) rotate(-2deg);
    }
}

/* Smallest screens */
@media (max-width: 380px) {
    .hero-image {
        width: 340px;
    }
    
    .hero-image.primary {
        margin-right: -170px;
    }
    
    .hero-image.secondary {
        margin-left: -170px;
    }
}

/* Loading animations */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-animation::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--mint);
    border-radius: 50%;
    animation: loading 0.8s infinite linear;
}

@keyframes loading {
    to { transform: rotate(360deg); }
}

/* Improve button and input styles */
.cta-button, .submit-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after, .submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active::after, .submit-button:active::after {
    width: 200%;
    height: 200%;
}

/* Add scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--mint), var(--navy));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1001;
}

/* Improve feature cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 50%);
    opacity: 0;
    transform: translate(-100%, -100%);
    transition: opacity 0.3s;
}

.feature-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.demo-prompt {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--mint);
    color: var(--text-white);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.demo-prompt i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animate-duration) ease,
               transform var(--animate-duration) ease;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    flex: 1;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    will-change: transform;
    background: linear-gradient(145deg, #FFFFFF, #F7F9FB);
    border: 1px solid rgba(46, 196, 182, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(46, 196, 182, 0.05));
    color: #2EC4B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--mint);
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1D3557;
}

.step-card p {
    color: #2D2D2D;
    font-size: 1rem;
    line-height: 1.6;
}

.step-arrow {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2EC4B6;
    font-size: 2rem;
    z-index: 2;
    width: auto;
    height: auto;
    background: none;
    margin: 0;
    transition: transform 0.3s ease;
}

.step-card:hover .step-arrow {
    transform: translateY(-50%) translateX(5px);
}

/* Add responsive styles */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-arrow {
        right: 50%;
        top: auto;
        bottom: -2.5rem;
        transform: translateX(50%) rotate(90deg);
    }
    
    .step-card:hover .step-arrow {
        transform: translateX(50%) rotate(90deg) translateY(-5px);
    }
    
    .step-card {
        margin: 0 1rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 5rem 5%;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animate-duration) ease,
               transform var(--animate-duration) ease;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.pricing-card {
    flex: 1;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    will-change: transform;
    background: linear-gradient(145deg, #FFFFFF, #F7F9FB);
    border: 1px solid rgba(46, 196, 182, 0.1);
    max-width: 350px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
}

.pricing-card.popular {
    border: 2px solid #2EC4B6;
    transform: scale(1.05);
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2EC4B6;
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    display: inline-block;
    min-width: 150px;
}

.price .period {
    color: var(--text-dark);
    font-size: 1.1rem;
    display: inline-block;
    vertical-align: bottom;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features i {
    color: var(--mint);
    font-size: 1rem;
}

.pricing-cta {
    width: 100%;
    padding: 1rem;
    border: none;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    color: white;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-cta:hover {
    background: linear-gradient(90deg, #26B3A7, #2EC4B6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.25);
}

/* Responsive pricing */
@media (max-width: 968px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .pricing-card.popular {
        transform: scale(1.02);
    }

    .pricing-card.popular:hover {
        transform: scale(1.02) translateY(-10px);
    }
}

/* Update all headings to navy */
h1, h2, h3, h4, h5, h6 {
    color: #1D3557;
}

/* Update buttons to mint */
.cta-button, .pricing-cta, .submit-button {
    background: #2EC4B6;
}

.cta-button:hover, .pricing-cta:hover, .submit-button:hover {
    background: #26B3A7;
}

/* Update mobile responsiveness for animations */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1.02);
    }

    .pricing-card.popular:hover {
        transform: scale(1.02) translateY(-10px);
    }
}

/* Fix LegalBot references */
.features h2,
.how-it-works h2,
.pricing h2 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animate-duration) ease,
               transform var(--animate-duration) ease;
}

/* Base card styles */
.card-base {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(46, 196, 182, 0.1);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card-base:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
}

.card-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Re-enable pointer events for interactive elements */
.card-base button,
.card-base a {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* Apply consistent button styling */
.button-base {
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.2);
}

.button-base:hover {
    background: linear-gradient(90deg, #26B3A7, #2EC4B6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.3);
}

/* Enhance section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    border-radius: 3px;
}

/* Enhance icons */
.icon-base {
    color: #2EC4B6;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(46, 196, 182, 0.05));
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.icon-base:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.15), rgba(46, 196, 182, 0.1));
}

/* Add subtle animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card,
.step-card,
.pricing-card {
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

/* Add consistent hover effects */
.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    color: #2EC4B6;
    transform: translateY(-2px);
}

/* Add hover effect to step cards */
.step-card:hover .step-number {
    background: linear-gradient(135deg, #2EC4B6, #26B3A7);
    color: white;
}

/* Update all icons to use mint color */
.feature-card i,
.step-card i,
.step-icon,
.pricing-features i,
.social-links i {
    color: #2EC4B6;
}

/* Ensure consistent icon hover effects */
.feature-card:hover i,
.step-card:hover i,
.step-card:hover .step-icon {
    color: #26B3A7;
    transform: scale(1.1);
}

/* Ensure consistent card hover effects */
.feature-card,
.step-card,
.pricing-card {
    transition: all 0.3s ease;
    will-change: transform;
    background: linear-gradient(145deg, #FFFFFF, #F7F9FB);
    border: 1px solid rgba(46, 196, 182, 0.1);
}

.feature-card:hover,
.step-card:hover,
.pricing-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
}

/* Ensure consistent button hover effects */
.cta-button,
.pricing-cta,
.submit-button {
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    transition: all 0.3s ease;
}

.cta-button:hover,
.pricing-cta:hover,
.submit-button:hover {
    background: linear-gradient(90deg, #26B3A7, #2EC4B6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.25);
}

/* Fix step number hover effects */
.step-number {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(46, 196, 182, 0.05));
    color: #2EC4B6;
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, #2EC4B6, #26B3A7);
    color: white;
}

/* About Section */
.about {
    background: #f5f5f5;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-text {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(46, 196, 182, 0.1);
    box-shadow: 0 4px 20px rgba(29, 53, 87, 0.05);
}

.about-text h3 {
    font-size: 2rem;
    color: #1D3557;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.2rem;
    color: #2D2D2D;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text .highlight {
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.1), rgba(29, 53, 87, 0.05));
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #2EC4B6;
    margin: 2rem 0;
}

.about-text .tagline {
    font-size: 1.4rem;
    color: #1D3557;
    font-weight: 500;
    text-align: center;
    margin-top: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(46, 196, 182, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
}

.stat-card i {
    font-size: 2rem;
    color: #2EC4B6;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #1D3557;
    margin: 0.5rem 0;
    font-weight: 600;
}

.stat-card p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 5%;
    background: #F7F9FB;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.faq-item {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.15);
}

.faq-item h3 {
    color: #1D3557;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-item p {
    color: #2D2D2D;
    line-height: 1.6;
    font-size: 1.1rem;
}

.faq-button {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-button h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1D3557;
    flex: 1;
    padding-right: 1rem;
}

.faq-button i {
    font-size: 1rem;
    color: #2EC4B6;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-button.active + .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.faq-button.active i {
    transform: rotate(180deg);
}

/* Update logo styles */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

/* Update About section styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(46, 196, 182, 0.1);
    transition: all 0.3s ease;
}

.stat-card i {
    pointer-events: none;
    font-size: 2rem;
    color: #2EC4B6;
    margin-bottom: 1rem;
}

.stat-card h3 {
    pointer-events: none;
    color: #1D3557;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    pointer-events: none;
    color: #2D2D2D;
    font-weight: 500;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
}

/* Update grid layouts for consistency */
.feature-grid,
.stats-grid,
.pricing-cards,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Special handling for FAQ items */
.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-button {
    width: 100%;
    padding: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    will-change: transform;
}

/* Special handling for step cards */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step-arrow {
    position: absolute;
    right: -2rem;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%) translateZ(0);
}

/* Add GPU acceleration for Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .card-base {
            -webkit-transform: translate3d(0,0,0);
        }
    }
}

/* Add base card class with hardware acceleration */
.card {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    perspective: 1000px;
    box-sizing: border-box;
}

/* Add visibility transition handling */
.feature-card,
.step-card,
.pricing-card,
.stat-card,
.faq-item {
    opacity: 0.99; /* Force GPU rendering without visible change */
    transform: translateZ(0);
    transition: transform 0.3s ease-in-out,
                box-shadow 0.3s ease-in-out,
                border-color 0.3s ease-in-out;
}

.card-visible {
    opacity: 1;
}

/* Add Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .feature-card,
        .step-card,
        .pricing-card,
        .stat-card,
        .faq-item {
            transform: translate3d(0,0,0);
        }
    }
} 

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (hover: none) {
    .feature-card:hover,
    .step-card:hover,
    .pricing-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .hero-image {
        width: 28%;
    }
    
    .hero-image.primary {
        right: 5%;
    }
    
    .hero-image.secondary {
        right: 17%;
    }
}

@media (max-width: 1200px) {
    .hero {
        padding: 6rem 5% 10rem;
    }
    
    .hero-image {
        width: 26%;
    }
    
    .hero-image.primary {
        right: 5%;
    }
    
    .hero-image.secondary {
        right: 18%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 500px;
    }
    
    .hero-image {
        width: 24%;
    }
    
    .hero-image.primary {
        right: 5%;
    }
    
    .hero-image.secondary {
        right: 19%;
    }
}

/* Add subtle shadow animation */
@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

.hero-image {
    animation: shadowPulse 3s ease-in-out infinite;
}

/* Modal Styles */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
}

.modal-content h2 {
    color: #1D3557;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-content h3 {
    color: #2EC4B6;
    margin: 2.5rem 0 1rem;
    font-size: 1.3rem;
}

.modal-content h3:first-of-type {
    margin-top: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #4A4A4A;
}

.modal-content ul {
    margin: 1rem 0 1.5rem;
    padding-left: 2rem;
    color: #4A4A4A;
}

.modal-content li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.modal-content em {
    color: #666;
    font-size: 0.9rem;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #2EC4B6;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #26B3A7;
}

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

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #2EC4B6;
}

/* Update button hover effects */
.submit-button {
    background: linear-gradient(90deg, #2EC4B6, #26B3A7);
    color: white;
    border: none;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.25);
    background: linear-gradient(90deg, #26B3A7, #2EC4B6);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Fix step arrows in How it Works section */
.step-arrow {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2EC4B6;
    font-size: 2rem;
    z-index: 2;
    width: auto;
    height: auto;
    background: none;
    margin: 0;
    transition: transform 0.3s ease;
}

.step-card:hover .step-arrow {
    transform: translateY(-50%) translateX(5px);
}

@media (max-width: 768px) {
    .step-arrow {
        right: 50%;
        top: auto;
        bottom: -2.5rem;
        transform: translateX(50%) rotate(90deg);
    }
    
    .step-card:hover .step-arrow {
        transform: translateX(50%) rotate(90deg) translateY(-5px);
    }
}

/* Add cursor pointer to all interactive elements */
.cta-button,
.pricing-cta,
.submit-button,
.faq-button,
.nav-links a,
.footer-links a,
.social-links a,
.dashboard-link,
.card-base {
    cursor: pointer;
}