/* AI Builder Page Styles */

/* Prevent horizontal overflow on ai builder page */
body:has(.ai-hero),
body.ai-builder-page {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

body:has(.ai-hero) *,
body.ai-builder-page * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure html also respects viewport */
html:has(body:has(.ai-hero)),
html:has(body.ai-builder-page) {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* AI Builder Hero Section */
.ai-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.ai-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.ai-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.ai-hero-description {
    font-size: 1.1rem;
    margin: 0 0 3rem 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.ai-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
}

.ai-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ai-hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-hero-cta .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.ai-hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* AI Builder Plans Section */
.ai-plans-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, var(--white) 100%);
}

.ai-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.ai-plan-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ai-plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.ai-plan-card:hover::before {
    transform: scaleX(1);
}

.ai-plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

.ai-plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ai-plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ai-plan-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.ai-plan-icon svg {
    width: 32px;
    height: 32px;
}

.ai-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.ai-plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 2rem 0;
    line-height: 1;
}

.ai-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.ai-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
    text-align: left;
}

.ai-plan-features li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-plan-features li:last-child {
    border-bottom: none;
}

.ai-plan-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.ai-plan-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    margin-top: auto;
}

.ai-plan-card.featured .ai-plan-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ai-plan-card.featured .ai-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Features Section */
.ai-features-section {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.ai-how-it-works-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, var(--white) 100%);
}

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

.step-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

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

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.step-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.step-arrow {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.step-arrow svg {
    width: 40px;
    height: 40px;
}

/* Templates Section */
.ai-templates-section {
    padding: 6rem 0;
    background: var(--white);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.template-card {
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.template-card:hover::before {
    transform: scaleX(1);
}

.template-preview {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.template-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    position: relative;
}

.template-placeholder::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 20%;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 8px;
}

.template-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 60%;
    height: 15%;
    background: rgba(6, 182, 212, 0.15);
    border-radius: 8px;
}

.template-info {
    padding: 1.5rem;
}

.template-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.template-category {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

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

/* Benefits Section */
.ai-benefits-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, #f8fafc 100%);
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.benefits-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.benefit-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.benefits-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-builder-preview {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.preview-header {
    background: var(--bg-light);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
}

.preview-dot:nth-child(1) {
    background: #ef4444;
}

.preview-dot:nth-child(2) {
    background: #f59e0b;
}

.preview-dot:nth-child(3) {
    background: #10b981;
}

.preview-content {
    padding: 1.5rem;
}

.preview-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.toolbar-item {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.toolbar-item:nth-child(2) {
    animation-delay: 0.2s;
    width: 60px;
}

.toolbar-item:nth-child(3) {
    animation-delay: 0.4s;
    width: 50px;
}

.preview-canvas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.canvas-element {
    height: 60px;
    background: var(--bg-light);
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.canvas-element:nth-child(2) {
    animation-delay: 0.2s;
    height: 80px;
}

.canvas-element:nth-child(3) {
    animation-delay: 0.4s;
    height: 100px;
}

/* Support Section */
.ai-support-section {
    padding: 6rem 0;
    background: var(--white);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.support-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.support-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.support-card:hover::before {
    transform: scaleX(1);
}

.support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

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

.support-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.support-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.ai-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    margin: 0 0 2.5rem 0;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .benefits-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .support-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Ensure container doesn't cause overflow */
    .ai-hero .container,
    .ai-plans-section .container,
    .ai-features-section .container,
    .ai-how-it-works-section .container,
    .ai-security-section .container,
    .ai-control-section .container,
    .ai-support-section .container,
    .ai-cta-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Ensure all content respects viewport width */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    body:has(.ai-hero),
    body.ai-builder-page {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    body:has(.ai-hero) > *,
    body.ai-builder-page > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Reduce section padding on mobile */
    .ai-hero {
        padding: 4rem 0 3rem;
        overflow-x: hidden;
    }

    .ai-plans-section {
        padding: 3rem 0;
    }

    .ai-features-section {
        padding: 3rem 0;
    }

    .ai-how-it-works-section {
        padding: 3rem 0;
    }

    .ai-templates-section {
        padding: 3rem 0;
    }

    .ai-benefits-section {
        padding: 3rem 0;
    }

    .ai-support-section {
        padding: 3rem 0;
    }

    .ai-cta-section {
        padding: 3rem 0;
    }

    .ai-hero-title {
        font-size: 2.5rem;
    }

    .ai-hero-description {
        font-size: 1.1rem;
    }

    .ai-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .ai-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .ai-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ai-plan-card {
        padding: 2rem 1.5rem;
    }

    .ai-plan-card.featured {
        transform: scale(1);
    }

    .ai-plan-price {
        font-size: 2rem;
    }

    /* Prevent any element from causing horizontal overflow */
    .ai-plans-grid,
    .features-grid,
    .support-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Ensure all cards respect viewport width */
    .ai-plan-card,
    .feature-card,
    .support-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .ai-hero-cta .btn {
        width: auto;
        max-width: 280px;
        padding: 0.875rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .step-card {
        min-width: 100%;
        max-width: 100%;
    }

    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .template-card {
        max-width: 100%;
    }

    .benefits-list {
        gap: 1rem;
    }

    .benefit-item {
        padding: 1.25rem;
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .support-card {
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

.animate-delay-6 {
    transition-delay: 0.6s;
}

