/* ChromaGenesis - Pixel-perfect replica of aismartcube.com design */

:root {
    --primary-blue: #3B38D4;
    --primary-text: #292B35;
    --secondary-text: #696B7A;
    --light-text: #F6F7F9;
    --background-white: #FFFFFF;
    --background-light: #F8F9FA;
    --border-light: #E5E7EB;
    --warning-orange: #F59E0B;
    --success-green: #10B981;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-text);
    background-color: var(--background-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    background: linear-gradient(45deg, var(--primary-blue), #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
}

.nav-link {
    color: var(--primary-text) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    opacity: 1;
}

.btn-outline-secondary {
    border: 1px solid var(--border-light);
    color: var(--secondary-text);
    background: transparent;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--background-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.workspace-btn, .btn-primary {
    background-color: var(--primary-blue);
    color: var(--light-text);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 56, 212, 0.2);
}

.workspace-btn:hover, .btn-primary:hover {
    background-color: #2D2A9E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 56, 212, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 56, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tip-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #FEF3C7;
    color: #92400E;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid #FDE68A;
}

.tip-banner i {
    color: var(--warning-orange);
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #262626;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-intro {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.intro-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.7;
}

.cta-button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.badge-item i {
    color: var(--warning-orange);
}

.badge-item span {
    font-weight: 500;
    color: var(--primary-text);
    font-size: 0.875rem;
}

/* Features Carousel */
.features-carousel {
    padding: 3rem 0;
    background-color: var(--background-light);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: var(--background-white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    min-width: 180px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item span {
    font-weight: 500;
    color: var(--primary-text);
    text-align: center;
    font-size: 0.875rem;
}

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

/* Main Features */
.main-features {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.feature-image img {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

.feature-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.125rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.point-item i {
    margin-top: 0.25rem;
    font-size: 1rem;
}

.point-item strong {
    color: var(--primary-text);
    font-weight: 500;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text);
    margin-bottom: 3rem;
}

.accordion-item {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    text-align: left;
    width: 100%;
    font-size: 1.125rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--background-light);
    color: var(--primary-blue);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.contact-form {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-label {
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background-white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 56, 212, 0.1);
    outline: none;
}

.thank-you-message {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.thank-you-message i {
    font-size: 3rem;
}

.thank-you-message h3 {
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.thank-you-message p {
    color: var(--secondary-text);
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background-color: #1F2937;
    color: #D1D5DB;
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand .logo-container {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--light-text);
}

.footer-description {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-title {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-text);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #9CA3AF;
}

.contact-info i {
    color: var(--primary-blue);
    width: 20px;
}

.footer-divider {
    border-color: #374151;
    margin: 2rem 0 1rem;
}

.footer-brand-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright-text {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-intro {
        padding: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.75rem;
    }
    
    .product-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .carousel-track {
        gap: 1rem;
    }
    
    .feature-item {
        min-width: 150px;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .navbar-brand .logo-text {
        font-size: 1.125rem;
    }
}

/* Animation and Transitions */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pricing Styles */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--background-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(59, 56, 212, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--light-text);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-unit {
    font-size: 1rem;
    color: var(--secondary-text);
    display: block;
    margin-top: 0.5rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.feature-list i {
    margin-top: 0.25rem;
    font-size: 1rem;
}

.comparison-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.feature-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), #6366F1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--light-text);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

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

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue), #6366F1);
    color: var(--light-text);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--light-text);
    color: var(--primary-blue);
    border: none;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
}

/* Legal Pages Styles */
.legal-section {
    padding: 8rem 0 4rem;
    background-color: var(--background-white);
}

.legal-content {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.legal-updated {
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-text ul {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.contact-details {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--primary-text);
    line-height: 1.6;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus,
.accordion-button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
