/* Build Your Robot Page Styles */

/* Global overflow fix for mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Hero Section */
.build-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--robert-blue);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--robert-accent);
    bottom: -150px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #3b82f6;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.build-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--robert-accent);
}

.build-hero-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--bg-gray-900);
}

.build-hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.primary-button {
    background: var(--robert-accent);
    color: white;
}

.primary-button:hover {
    background: var(--robert-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.secondary-button {
    background: white;
    color: var(--robert-accent);
    border: 2px solid var(--robert-accent);
}

.secondary-button:hover {
    background: var(--robert-accent);
    color: white;
}

.button-icon {
    width: 20px;
    height: 20px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 500px;
    margin: 0 auto;
}

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

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--robert-accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* Use Cases Section */
.use-cases-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--bg-gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--robert-blue) 0%, var(--robert-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.use-case-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    cursor: pointer;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--robert-accent);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f4f6;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.icon-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--robert-accent);
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--bg-gray-900);
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #4b5563;
}

.card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--robert-accent);
    font-weight: bold;
}

.card-cta {
    width: 100%;
    padding: 12px 24px;
    background: var(--robert-accent);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.card-cta:hover {
    background: var(--robert-blue);
}

/* Robot Builder Form Section */
.robot-builder-section {
    padding: 80px 0;
    background: #f9fafb;
}

.builder-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.builder-header {
    text-align: center;
    margin-bottom: 48px;
}

.builder-form {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 48px;
}

.form-section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--bg-gray-900);
}

.form-section-description {
    color: var(--text-gray);
    margin-bottom: 24px;
}

/* Industry Selector */
.industry-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.industry-option input {
    display: none;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.industry-option input:checked + .industry-card {
    border-color: var(--robert-accent);
    background: #eff6ff;
}

.industry-card:hover {
    border-color: #cbd5e1;
}

.industry-icon {
    width: 32px;
    height: 32px;
    color: var(--robert-accent);
}

.industry-card span {
    font-size: 14px;
    text-align: center;
    color: var(--bg-gray-900);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-option:hover {
    background: #f9fafb;
}

.checkbox-option input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-label {
    color: var(--bg-gray-900);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.feature-option input {
    display: none;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.feature-option input:checked + .feature-card {
    border-color: var(--robert-accent);
    background: #eff6ff;
}

.feature-icon {
    width: 28px;
    height: 28px;
    color: var(--robert-accent);
}

.feature-card span {
    font-size: 13px;
    text-align: center;
    color: var(--bg-gray-900);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bg-gray-900);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--robert-accent);
    box-shadow: 0 0 0 3px rgba(6, 67, 140, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 32px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 48px;
    background: var(--robert-accent);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: var(--robert-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.form-note {
    margin-top: 16px;
    color: var(--text-gray);
    font-size: 14px;
}

/* Process Timeline Section */
.process-section {
    padding: 80px 0;
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    background: var(--robert-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.marker-number {
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.timeline-content {
    flex: 1;
    padding-top: 8px;
}

.timeline-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--bg-gray-900);
}

.timeline-description {
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.6;
}

.timeline-duration {
    font-size: 14px;
    color: var(--robert-accent);
    font-weight: 600;
}

/* Final CTA Section */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--robert-blue) 0%, var(--robert-accent) 100%);
    position: relative;
    overflow: hidden;
}

.final-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.primary-button.large,
.secondary-button.large {
    padding: 20px 40px;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.primary-button.large {
    background: white;
    color: var(--robert-accent);
    font-weight: 700;
}

.primary-button.large:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.secondary-button.large {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.secondary-button.large:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: white;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--bg-gray-900);
}

.success-text {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-close {
    padding: 12px 32px;
    background: var(--robert-accent);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.success-close:hover {
    background: var(--robert-blue);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .build-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .build-hero-title {
        font-size: 36px;
    }
    
    .build-hero-description {
        font-size: 18px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Robot Builder Section - Mobile Fixes */
    .robot-builder-section {
        padding: 60px 0;
    }
    
    .builder-wrapper {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .builder-form {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .form-section {
        margin-bottom: 32px;
    }
    
    .form-section-title {
        font-size: 20px;
    }
    
    .form-section-description {
        font-size: 14px;
    }
    
    .industry-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .industry-card {
        padding: 16px 8px;
    }
    
    .industry-icon {
        width: 24px;
        height: 24px;
    }
    
    .industry-card span {
        font-size: 12px;
    }
    
    .checkbox-group {
        gap: 8px;
    }
    
    .checkbox-option {
        padding: 10px;
    }
    
    .checkbox-option input {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .checkbox-label {
        font-size: 14px;
        word-break: break-word;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px 8px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
    }
    
    .feature-card span {
        font-size: 11px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    /* Timeline */
    .timeline:before {
        left: 30px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
    }
    
    .marker-number {
        font-size: 16px;
    }
    
    .timeline-item {
        gap: 24px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-description {
        font-size: 18px;
    }
    
    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .build-hero-title {
        font-size: 28px;
    }
    
    .build-hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    /* Robot Builder Mobile Optimization */
    .robot-builder-section {
        padding: 40px 0;
    }
    
    .builder-wrapper {
        padding: 0 12px;
    }
    
    .builder-form {
        padding: 20px 16px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
    
    .form-section {
        margin-bottom: 24px;
    }
    
    .form-section-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .form-section-description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .industry-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .industry-card {
        flex-direction: row;
        padding: 12px;
        gap: 12px;
        text-align: left;
    }
    
    .industry-icon {
        width: 20px;
        height: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature-card {
        flex-direction: row;
        padding: 12px;
        gap: 12px;
        text-align: left;
    }
    
    .feature-icon {
        width: 20px;
        height: 20px;
    }
    
    .feature-card span {
        font-size: 14px;
    }
    
    .checkbox-option {
        padding: 8px;
        font-size: 14px;
    }
    
    .submit-button {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    /* Card adjustments */
    .use-case-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .card-description {
        font-size: 14px;
    }
    
    .card-features {
        font-size: 13px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.build-hero-content > * {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.build-hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.build-hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.build-hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.build-hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.build-hero-content > *:nth-child(5) { animation-delay: 0.5s; }

.use-case-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.use-case-card:nth-child(1) { animation-delay: 0.1s; }
.use-case-card:nth-child(2) { animation-delay: 0.2s; }
.use-case-card:nth-child(3) { animation-delay: 0.3s; }
.use-case-card:nth-child(4) { animation-delay: 0.4s; }
.use-case-card:nth-child(5) { animation-delay: 0.5s; }
.use-case-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 20px;
    height: 20px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}