.textile-page {
    min-height: 100vh;
}

.textile-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* Hero Section */
.textile-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
    position: relative;
    overflow: hidden;
}

.textile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(53, 113, 255, 0.7) 0%, transparent 70%);
}

.textile-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.textile-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.textile-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 500px;
}

.textile-hero-stats {
    display: flex;
    gap: 40px;
}

.textile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.textile-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.textile-stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-align: center;
}

.textile-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textile-floating-card {
    background: var(--dark-card);
    border: 1px solid rgba(53, 113, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: textile-float 6s ease-in-out infinite;
    max-width: 300px;
}

@keyframes textile-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.textile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.textile-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.textile-card-message {
    color: var(--text-light);
    font-size: 1rem;
}

/* Section Headers */
.textile-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.textile-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-light);
}

.textile-section-subtitle {
    font-size: 1.125rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Chat Demo Section */
.textile-chat-section {
    padding: 80px 0;
    background: var(--dark-card);
}

.textile-role-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.textile-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

.textile-tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-light);
}

.textile-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.textile-tab-icon {
    font-size: 1.2rem;
}

.textile-chat-demo {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.textile-chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-card);
}

.textile-chat-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 8px;
}

.textile-chat-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.textile-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-dim);
}

.textile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: textile-pulse 2s infinite;
}

@keyframes textile-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.textile-chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.textile-message {
    display: flex;
    gap: 12px;
    animation: textile-message-in 0.3s ease-out;
}

@keyframes textile-message-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.textile-message.user {
    flex-direction: row-reverse;
}

.textile-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.textile-message.user .textile-message-avatar {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.textile-message.ai .textile-message-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.textile-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.textile-message.user .textile-message-content {
    background: var(--secondary);
    color: var(--white);
    border-bottom-right-radius: 6px;
}

.textile-message.ai .textile-message-content {
    background: var(--dark-card);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 6px;
}

.textile-typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
}

.textile-typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: textile-typing 1.4s infinite ease-in-out;
}

.textile-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.textile-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes textile-typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Why Choose Section */
.textile-why-choose {
    padding: 80px 0;
    background: var(--dark-bg);
}

.textile-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.textile-feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.textile-feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(53, 113, 255, 0.7);
}

.textile-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.textile-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-light);
}

.textile-feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .textile-hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

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

    .textile-hero-visual {
        margin-top: 20px;
    }

    .textile-hero-subtitle {
        font-size: 17px;
        margin: 0 auto;
    }

    .textile-hero-stats {
        justify-content: center;
    }

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

    .textile-features-grid {
        grid-template-columns: 1fr;
    }

    .textile-role-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .textile-role-tabs {
        display: flex;
        width: max-content;
    }

    .textile-tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .textile-chat-messages {
        height: 400px;
        padding: 8px;
    }

    .textile-message-avatar {
        width: 15px;
        height: 15px;
    }

    .textile-cta-content h2 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .textile-container {
        padding: 0 16px;
    }

    .textile-hero {
        padding: 90px 0;
    }

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

    .textile-hero-subtitle {
        font-size: 16px;
    }

    .textile-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .textile-chat-demo {
        margin: 0 -16px;
        border-radius: 0;
    }
}