/* Prevent horizontal overflow */
* {
    box-sizing: border-box;
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: white;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    padding: 0 1rem;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.cta-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}

.cta-secondary {
    background: white;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-secondary:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    border-color: #3b82f6;
}

/* Platform Overview Section */
.platform-overview {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    width: 100%;
}

.overview-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.overview-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.overview-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
}

/* Meet Resi Section */
.meet-resi-section {
    padding: 6rem 0;
    background: white;
    width: 100%;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.resi-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Resi Avatar Section */
.resi-avatar-section {
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.resi-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.resi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.resi-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.resi-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    width: fit-content;
}

.resi-feature i {
    font-size: 1.2rem;
}

.resi-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.coming-soon {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Resi Capabilities */
.resi-capabilities {
    padding: 2rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.capabilities-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 2rem;
    text-align: center;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.capability-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.capability-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.capability-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.capability-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Tools Highlight Section */
.tools-highlight {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    margin: 4rem 0;
    width: 100%;
}

.tools-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.tools-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.tools-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.tools-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

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

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.tool-card:hover::after {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
}

.tool-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: block;
}

.tool-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.tool-description {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.tool-features li {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.tool-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tool-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e40af;
    display: block;
    margin-bottom: 0.25rem;
}

.tool-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.tool-cta {
    margin-top: 1.5rem;
}

.tool-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tool-cta-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.tools-cta {
    text-align: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tools-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tools-cta-content {
    position: relative;
    z-index: 10;
}

.tools-cta h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.tools-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 1);
    color: #1e40af;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.tools-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

/* Features Section */
.features {
    padding: 6rem 0;
    width: 100%;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.features-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: #3b82f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-highlights {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.highlight-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

/* Getting Started Section */
.getting-started {
    padding: 6rem 0;
    background: #f8fafc;
    width: 100%;
}

.start-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.start-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.start-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-description {
    color: #64748b;
    line-height: 1.6;
}

.start-cta {
    text-align: center;
    padding: 0 1rem;
}

.cta-button.large {
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resi-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .resi-capabilities {
        order: 2;
    }

    .resi-avatar-section {
        order: 1;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
        margin: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .tools-highlight {
        margin: 2rem 0;
        padding: 4rem 0;
    }

    .tools-title {
        font-size: 2.5rem;
    }

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

    .tool-card {
        padding: 2rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .start-steps {
        grid-template-columns: 1fr;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-title,
    .start-title,
    .section-title,
    .features-title {
        font-size: 2rem;
    }

    .resi-avatar {
        width: 150px;
        height: 150px;
    }

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

    .capability-card {
        padding: 1rem;
    }

    .resi-features {
        flex-direction: column;
        align-items: center;
    }

    .tools-cta h3 {
        font-size: 2rem;
    }

    .tools-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .overview-stats {
        grid-template-columns: 1fr;
    }

    .resi-avatar {
        width: 120px;
        height: 120px;
    }

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

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

    .capability-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-button {
        min-width: 160px;
        padding: 0.875rem 1.5rem;
    }

    .tools-content,
    .container {
        padding: 0 1rem;
    }
}