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

.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.15);
    padding: 4rem 3rem 3.5rem 3rem;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 6000;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content:hover {
    transform: translate(-50%, calc(-50% - 5px));
    box-shadow: 0 12px 40px rgba(37,99,235,0.2);
}

.hero h1 {
    color: #2563eb;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #334155;
    font-size: 1.4rem !important;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}
.document-upload {
    background: #f8fafc;
    padding: 2.5rem 0 2rem 0;
    text-align: center;
    border-radius: 0;
    margin: 0;
    border: none;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
}
.upload-card-link {
    display: block;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;
}
.upload-card-link:hover {
    box-shadow: 0 6px 24px rgba(37,99,235,0.13);
    transform: translateY(-2px) scale(1.02);
}
.upload-card-link .upload-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}
.upload-card-link .upload-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.upload-card-link .upload-desc {
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 2rem 0;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}
.step {
    flex: 1 1 0;
    text-align: center;
    padding: 2rem 2rem 2.5rem 2rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.07);
    margin: 0 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px;
    max-width: 320px;
}
.step i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}
.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.step-desc {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin: 0 -4px;
}
.step-arrow svg {
    width: 28px;
    height: 28px;
    color: #2563eb;
    background: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
}
.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.launch-note {
    color: #2563eb;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    width: 100%;
}
.launch-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: #2563eb;
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    z-index: 1;
}
.price-period {
    font-size: 1rem;
    font-weight: normal;
    color: #64748b;
}
.original-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.125rem;
    margin: -0.5rem 0 0.5rem 0;
    text-align: center;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}
.pricing-card.featured {
    text-align: center;
    border: 2px solid #2563eb;
    transform: scale(1.05);
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}
.pricing-card.featured .price {
    color: #2563eb;
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}
.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.pricing-card.featured .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.pricing-card ul {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    width: 100%;
    text-align: left;
}
.pricing-card li {
    margin-bottom: 1rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    width: 100%;
}
.pricing-card li i {
    color: #2563eb;
    min-width: 20px;
    text-align: center;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.pricing-card li:last-child {
    margin-bottom: 0;
}
.pricing-card.featured li {
    font-weight: 500;
}
.pricing-card.featured li i {
    color: #2563eb;
}
.pricing-card .btn {
    width: 100%;
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}
.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    margin: 1rem 0;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f2937;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    z-index: 1;
}
@media (max-width: 600px) {
    .hero-content {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .upload-card-link {
        width: 98%;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
}
@media (max-width: 900px) {
    .steps {
        flex-direction: column;
        align-items: stretch;
    }
    .step {
        margin: 1rem 0;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: -16px 0;
    }
}
.auth-buttons .btn {
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    box-shadow: none;
}
.legal-professional-signup {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    margin: 2rem 0;
}
.signup-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.signup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}
.signup-content {
    text-align: center;
}
.signup-header {
    margin-bottom: 3rem;
}
.signup-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}
.signup-content h2 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.signup-content p {
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.benefits-container {
    margin: 3rem 0;
}
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.benefit-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.benefit-icon {
    background: #e0f2fe;
    color: #2563eb;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.benefit-text h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.benefit-text p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}
.signup-cta {
    margin-top: 3rem;
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}
.cta-note {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .signup-container {
        padding: 2rem 1rem;
    }
    .benefits {
        grid-template-columns: 1fr;
    }
    .signup-content h2 {
        font-size: 2rem;
    }
    .benefit-item {
        padding: 1.5rem;
    }
    .step-title {
        font-size: 1.25rem;
    }
    .step-desc {
        font-size: 0.85rem;
    }
}

/* Hero Feature Previews */
.feature-previews {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 2rem;
    perspective: 1000px;
    z-index: 1000;
    padding-bottom: 80px;
}

.preview-item,
.preview-item.visible,
.preview-item:hover {
    z-index: 1000;
}

.preview-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.12);
    padding: 1.5rem;
    position: absolute;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: calc(100% - 2rem);
}

.preview-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.preview-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37,99,235,0.2);
}

.preview-highlight {
    right: 0;
    top: -5%;
    animation: float 6s ease-in-out infinite;
}

.preview-analysis {
    left: 0;
    top: 0%;
    animation: float 6s ease-in-out infinite 1s;
}

.preview-case {
    right: 0;
    top: 15%;
    animation: float 6s ease-in-out infinite 2s;
}

.preview-risk {
    left: 0;
    bottom: 45%;
    animation: float 6s ease-in-out infinite 3s;
    width: 280px !important;
    max-width: 280px;
}

.preview-explain {
    right: 0;
    bottom: 30%;
    animation: float 6s ease-in-out infinite 4s;
}

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

.analysis-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(37,99,235,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.analysis-content:hover {
    background: rgba(37,99,235,0.1);
    transform: scale(1.02);
}

.analysis-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
    transition: all 0.3s ease;
}

.analysis-content:hover .analysis-icon {
    transform: rotate(10deg);
    box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

.analysis-text {
    flex: 1;
    font-size: 0.9rem;
    color: #1e293b;
}

.analysis-progress {
    height: 4px;
    background: rgba(37,99,235,0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    width: 70%;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 0%; }
}

.analysis-result {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #2563eb;
}

.risk-meter {
    height: 6px;
    background: rgba(37,99,235,0.1);
    border-radius: 3px;
    margin: 0.75rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.risk-level {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
    width: 75%;
    border-radius: 3px;
    position: relative;
    transition: width 1s ease-out;
}

.risk-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shimmer 2s infinite;
}

.risk-marker {
    position: absolute;
    top: 50%;
    left: 75%;
    width: 2px;
    height: 12px;
    background: #ef4444;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(239,68,68,0.5);
    transition: left 1s ease-out;
}

.risk-details {
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.5s;
}

.risk-clause {
    background: rgba(239,68,68,0.05);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(239,68,68,0.1);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.7s;
}

.clause-text {
    font-size: 0.8rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.clause-explanation {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #ef4444;
    padding: 0.6rem;
    background: rgba(239,68,68,0.08);
    border-radius: 4px;
    border-left: 2px solid #ef4444;
}

.clause-explanation i {
    margin-top: 0.15rem;
    color: #ef4444;
    font-size: 0.8rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.chat-message {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
    margin: 0.25rem 0;
    word-break: break-word;
    border: 1px solid rgba(37,99,235,0.15);
}

.user-message {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-end;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top-left-radius: 16px;
    font-weight: 500;
    border-color: rgba(37,99,235,0.2);
}

.ai-message {
    background: #4475ff;
    color: #fff;
    align-self: flex-start;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top-right-radius: 16px;
    border-color: rgba(255,255,255,0.2);
}

.typing-indicator {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-left: 0.5rem;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: #4475ff;
    border-radius: 50%;
    opacity: 0.6;
    animation: typingDot 1.2s infinite;
}

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

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Navigation styles */
nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    z-index: 2147483647; /* Maximum z-index value */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

/* Ensure header also has maximum z-index */
header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    z-index: 2147483647; /* Maximum z-index value */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

.demo-text {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    cursor: default;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInContent 1.2s ease-out forwards;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.selection-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    height: calc(4.8em);
    width: 0;
    background: rgba(59, 130, 246, 0.12);
    z-index: 0;
    animation: selectText 2s ease-in-out forwards;
    animation-delay: 1.2s;
}

.selection-cursor {
    position: absolute;
    width: 12px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M0 0L12 10L0 20V0Z' fill='%23000000'/%3E%3C/svg%3E") no-repeat;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    animation: moveCursor 2s ease-out forwards;
    animation-delay: 1.2s;
    transform-origin: center;
}

@keyframes moveCursor {
    0% {
        opacity: 1;
        left: 1.5rem;
        top: 1.5rem;
        transform: rotate(-5deg);
    }
    15% {
        opacity: 1;
        left: 1.5rem;
        top: 1.5rem;
        transform: rotate(-5deg);
    }
    20% {
        transform: rotate(0deg);
    }
    85% {
        opacity: 1;
        left: calc(100% - 2rem);
        top: calc(1.5rem + 3.2em);
        transform: rotate(0deg);
    }
    90% {
        transform: rotate(5deg);
    }
    100% {
        opacity: 1;
        left: calc(100% - 2rem);
        top: calc(1.5rem + 3.2em);
        transform: rotate(5deg);
    }
}

@keyframes selectText {
    0% {
        width: 0;
        left: 1.5rem;
    }
    15% {
        width: 0;
        left: 1.5rem;
    }
    85% {
        width: calc(100% - 3rem);
        left: 1.5rem;
    }
    100% {
        width: calc(100% - 3rem);
        left: 1.5rem;
    }
}

.explanation-popup {
    background: #4475ff;
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    margin-top: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 3.2s;
    line-height: 1.5;
    position: relative;
}

.explanation-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: #4475ff;
    transform: rotate(45deg);
}

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

.context-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #3b82f6;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 1.5s;
}

.context-info i {
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lawyer-review {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
    min-width: 260px;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.2rem;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.reviewer-title {
    color: #64748b;
    font-size: 0.85rem;
}

.review-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f0fdf4;
    border-radius: 6px;
    color: #059669;
    font-size: 0.85rem;
    font-weight: 500;
}

.review-comments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
}

.comment-icon {
    color: #2563eb;
    font-size: 0.9rem;
    padding-top: 0.1rem;
}

.case-preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.case-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.case-title {
    font-weight: 600;
    color: #1e293b;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.document-item i {
    color: #2563eb;
    font-size: 0.9rem;
}

.document-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-weight: 500;
}

.preview-item.preview-risk {
    width: 260px !important;
    max-width: 260px;
}

.features h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 800;
    position: relative;
    padding-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.features h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card h3.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) h3 { transition-delay: 0.1s; }
.feature-card:nth-child(2) h3 { transition-delay: 0.15s; }
.feature-card:nth-child(3) h3 { transition-delay: 0.2s; }
.feature-card:nth-child(4) h3 { transition-delay: 0.25s; }
.feature-card:nth-child(5) h3 { transition-delay: 0.3s; }
.feature-card:nth-child(6) h3 { transition-delay: 0.35s; }

/* How It Works Section Animations */
.how-it-works h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-it-works h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.steps .step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps .step.animate {
    opacity: 1;
    transform: translateY(0);
}

.steps .step:nth-child(1) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }
.steps .step:nth-child(5) { transition-delay: 0.3s; }
.steps .step:nth-child(7) { transition-delay: 0.4s; }

/* Pricing Section Animations */
.pricing h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.coming-soon-label {
    text-align: center;
    color: #2563eb;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem auto 2rem auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 200px;
    display: block;
}

.coming-soon-label.animate {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

/* Document Upload Section Animations */
.document-upload {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.document-upload.animate {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .feature-previews {
        display: none;
    }

    .preview-item {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 6rem 1rem 3rem 1rem;
    }

    .hero-content {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .hero-content:hover {
        transform: none;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.85rem;
    }
}

/* Base text styles */
.hero p,
.step-desc,
.feature-card p,
.upload-card-link .upload-desc,
.pricing-card p,
.contact-form p,
.footer-section p,
.pricing-card ul li {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero p,
    .step-desc,
    .feature-card p,
    .upload-card-link .upload-desc,
    .pricing-card p,
    .contact-form p,
    .footer-section p,
    .pricing-card ul li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero p,
    .step-desc,
    .feature-card p,
    .upload-card-link .upload-desc,
    .pricing-card p,
    .contact-form p,
    .footer-section p,
    .pricing-card ul li {
        font-size: 1rem;
    }
}

.risk-preview-content {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.risk-preview-text {
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1e293b;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: default;
}

.risk-preview-text:hover {
    background: rgba(239,68,68,0.05);
}

.risk-preview-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(239,68,68,0.1);
    border-radius: 6px;
    z-index: 0;
    animation: highlightFade 2s ease-in-out infinite;
}

.risk-preview-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #f87171;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    width: 90%;
    box-shadow: 0 4px 12px rgba(248,113,113,0.2);
    opacity: 0;
    animation: tooltipFade 2s ease-in-out infinite;
}

.risk-preview-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #f87171;
}

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

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

.no-credit-card {
    text-align: center;
    color: #059669;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.5rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 8px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.no-credit-card::before {
    content: '\f09d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: #059669;
}

.promo-banner {
    margin-top: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    animation: pulse 2s infinite;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-content i {
    font-size: 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
}

.promo-text {
    display: flex;
    flex-direction: column;
}

.promo-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.promo-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.promo-cta {
    background: white;
    color: #2563eb;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-cta i {
    transition: transform 0.3s ease;
}

.promo-cta:hover i {
    transform: translateX(4px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }
}

@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }

    .promo-content {
        flex-direction: column;
    }

    .promo-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        padding: 1rem;
    }

    .promo-cta {
        padding: 0.75rem 1rem;
    }
}

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