/**
 * SG AI Blocks Frontend Styles
 */

/* Hero Block */
.sg-hero-block {
    position: relative;
    padding: 128px 24px 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.sg-hero-block .bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.sg-hero-block .bg-circle {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.2;
    animation: pulse 4s ease-in-out infinite;
}

.sg-hero-block .bg-circle-1 {
    top: -160px;
    right: -160px;
    width: 384px;
    height: 384px;
    background: hsl(142, 71%, 45%);
}

.sg-hero-block .bg-circle-2 {
    bottom: -160px;
    left: -160px;
    width: 384px;
    height: 384px;
    background: hsl(220, 9%, 46%);
}

.sg-hero-block .bg-circle-3 {
    top: 50%;
    left: 50%;
    width: 384px;
    height: 384px;
    background: hsl(142, 76%, 36%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.sg-hero-block .hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.sg-hero-block .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(to right, hsla(142, 71%, 45%, 0.2), hsla(160, 84%, 39%, 0.2));
    border: 1px solid hsla(142, 71%, 45%, 0.4);
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    color: hsl(138, 74%, 59%);
    font-weight: 600;
}

.sg-hero-block .hero-badge svg {
    margin-right: 12px;
}

.sg-hero-block .hero-title {
    font-size: clamp(48px, 8vw, 144px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 32px;
    color: #fff;
}

.sg-hero-block .gradient-text {
    background: linear-gradient(to right, hsl(138, 74%, 59%), hsl(0, 0%, 100%), hsl(138, 74%, 59%));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 100%;
}

.sg-hero-block .hero-description {
    font-size: clamp(18px, 3vw, 24px);
    color: hsl(212, 17%, 81%);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.sg-hero-block .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

@media (min-width: 640px) {
    .sg-hero-block .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Products Showcase Block */
.sg-products-showcase {
    padding: 128px 24px;
    background: #000;
    color: #fff;
}

.sg-products-showcase .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.sg-products-showcase .section-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(to right, hsla(142, 71%, 45%, 0.2), hsla(160, 84%, 39%, 0.2));
    border: 1px solid hsla(142, 71%, 45%, 0.4);
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    color: hsl(138, 74%, 59%);
    font-weight: 600;
}

.sg-products-showcase .section-badge svg {
    margin-right: 12px;
}

.sg-products-showcase .section-title {
    font-size: clamp(48px, 6vw, 112px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}

.sg-products-showcase .section-description {
    color: hsl(213, 27%, 84%);
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.sg-products-showcase .products-grid {
    display: grid;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sg-products-showcase .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sg-products-showcase .product-card {
    position: relative;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(0, 0, 0, 0.95));
    border: 2px solid hsla(142, 71%, 45%, 0.4);
    border-radius: 24px;
    padding: 40px;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sg-products-showcase .product-card:hover {
    border-color: hsla(138, 74%, 59%, 0.8);
    transform: scale(1.05);
    box-shadow: 0 30px 60px hsla(142, 71%, 45%, 0.2);
}

.sg-products-showcase .product-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.sg-products-showcase .status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 900;
}

.sg-products-showcase .status-live {
    background: hsla(142, 71%, 45%, 0.3);
    color: hsl(138, 74%, 59%);
    border: 2px solid hsla(142, 71%, 45%, 0.5);
}

.sg-products-showcase .status-coming-soon {
    background: hsla(220, 9%, 46%, 0.3);
    color: hsl(213, 27%, 84%);
    border: 2px solid hsla(220, 9%, 46%, 0.5);
}

.sg-products-showcase .product-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sg-products-showcase .product-card:hover .product-icon {
    transform: scale(1.25);
}

.sg-products-showcase .product-name {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.sg-products-showcase .product-card:hover .product-name {
    color: hsl(142, 74%, 59%);
}

.sg-products-showcase .product-tagline {
    color: hsl(138, 74%, 59%);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
}

.sg-products-showcase .product-description {
    color: hsl(212, 17%, 81%);
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 32px;
}

.sg-products-showcase .product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.sg-products-showcase .feature-item {
    display: flex;
    align-items: center;
    color: hsl(212, 17%, 81%);
    font-weight: 600;
    transition: color 0.3s ease;
}

.sg-products-showcase .product-card:hover .feature-item {
    color: #fff;
}

.sg-products-showcase .check-icon {
    width: 20px;
    height: 20px;
    color: hsl(138, 74%, 59%);
    margin-right: 12px;
    flex-shrink: 0;
}

.sg-products-showcase .product-url {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid hsla(142, 71%, 45%, 0.3);
    transition: border-color 0.3s ease;
    backdrop-filter: blur(8px);
}

.sg-products-showcase .product-card:hover .product-url {
    border-color: hsla(138, 74%, 59%, 0.6);
}

.sg-products-showcase .product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sg-products-showcase .product-url-text {
    color: hsl(138, 74%, 59%);
    font-family: monospace;
    font-size: 18px;
}

.sg-products-showcase .coming-soon-message {
    text-align: center;
}

.sg-products-showcase .coming-soon-message span {
    color: hsl(213, 27%, 84%);
    font-weight: 700;
    font-size: 18px;
}

/* Services Carousel Block */
.sg-services-carousel {
    padding: 128px 24px;
    background: #000;
    color: #fff;
}

.sg-services-carousel .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.sg-services-carousel .section-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(to right, hsla(142, 71%, 45%, 0.2), hsla(160, 84%, 39%, 0.2));
    border: 1px solid hsla(142, 71%, 45%, 0.4);
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    color: hsl(138, 74%, 59%);
    font-weight: 600;
}

.sg-services-carousel .section-badge svg {
    margin-right: 12px;
}

.sg-services-carousel .section-title {
    font-size: clamp(48px, 6vw, 112px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}

.sg-services-carousel .section-description {
    color: hsl(213, 27%, 84%);
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.sg-services-carousel .carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.sg-services-carousel .carousel-track {
    display: flex;
    gap: 32px;
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.sg-services-carousel .carousel-track:hover {
    animation-play-state: paused;
}

.sg-services-carousel .service-card {
    min-width: 400px;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(0, 0, 0, 0.95));
    border: 2px solid hsla(142, 71%, 45%, 0.3);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.5s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sg-services-carousel .service-card:hover {
    border-color: hsla(142, 71%, 45%, 0.6);
    transform: scale(1.05);
    box-shadow: 0 30px 60px hsla(142, 71%, 45%, 0.2);
}

.sg-services-carousel .service-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sg-services-carousel .service-card:hover .service-icon {
    transform: scale(1.25);
}

.sg-services-carousel .service-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.sg-services-carousel .service-card:hover .service-title {
    color: hsl(142, 74%, 59%);
}

.sg-services-carousel .service-description {
    color: hsl(213, 27%, 84%);
    margin-bottom: 32px;
    line-height: 1.6;
    font-size: 18px;
}

.sg-services-carousel .service-features {
    margin-bottom: 32px;
}

.sg-services-carousel .service-features .feature-item {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: hsl(212, 17%, 81%);
    font-weight: 600;
    transition: color 0.3s ease;
}

.sg-services-carousel .service-card:hover .service-features .feature-item {
    color: #fff;
}

.sg-services-carousel .service-features .check-icon {
    width: 20px;
    height: 20px;
    color: hsl(138, 74%, 59%);
    margin-right: 16px;
    flex-shrink: 0;
}

.sg-services-carousel .service-details {
    font-size: 14px;
    color: hsl(220, 9%, 46%);
    border-top: 1px solid hsl(217, 19%, 27%);
    padding-top: 24px;
    line-height: 1.5;
}

/* Stats Block */
.sg-stats-block {
    padding: 96px 24px;
    background: #000;
    color: #fff;
}

.sg-stats-block .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sg-stats-block .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sg-stats-block .stat-item {
    text-align: center;
    transition: all 0.5s ease;
}

.sg-stats-block .stat-item:hover {
    transform: scale(1.25);
}

.sg-stats-block .stat-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.sg-stats-block .stat-item:hover .stat-emoji {
    animation: bounce 0.6s ease;
}

.sg-stats-block .stat-number {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    background: linear-gradient(to right, hsl(138, 74%, 59%), #fff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.sg-stats-block .stat-item:hover .stat-number {
    transform: scale(1.25);
}

.sg-stats-block .stat-label {
    color: hsl(213, 27%, 84%);
    font-weight: 600;
    font-size: 18px;
}

/* Contact CTA Block */
.sg-contact-cta {
    padding: 128px 24px;
    background: #000;
    color: #fff;
    text-align: center;
}

.sg-contact-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.sg-contact-cta .section-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(to right, hsla(142, 71%, 45%, 0.2), hsla(160, 84%, 39%, 0.2));
    border: 1px solid hsla(142, 71%, 45%, 0.4);
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    color: hsl(138, 74%, 59%);
    font-weight: 600;
}

.sg-contact-cta .section-badge svg {
    margin-right: 12px;
}

.sg-contact-cta .section-title {
    font-size: clamp(48px, 6vw, 112px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}

.sg-contact-cta .section-description {
    color: hsl(213, 27%, 84%);
    font-size: 24px;
    margin-bottom: 48px;
    line-height: 1.5;
}

.sg-contact-cta .cta-button {
    margin-top: 32px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(to right, hsl(142, 76%, 36%), hsl(158, 64%, 52%));
    color: #000;
    box-shadow: 0 10px 30px hsla(142, 71%, 45%, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, hsl(142, 71%, 45%), hsl(160, 84%, 39%));
    transform: scale(1.05);
    box-shadow: 0 15px 40px hsla(142, 71%, 45%, 0.4);
    color: #000;
    text-decoration: none;
}

.btn-outline {
    border: 2px solid hsla(138, 74%, 59%, 0.6);
    color: hsl(142, 74%, 59%);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: hsla(142, 71%, 45%, 0.2);
    border-color: hsl(138, 74%, 59%);
    color: hsl(142, 74%, 59%);
    text-decoration: none;
}

.btn-lg {
    padding: 24px 48px;
    font-size: 20px;
    font-weight: 900;
}

.btn svg {
    margin-left: 12px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-2px); }
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 767px) {
    .sg-hero-block .hero-title,
    .sg-products-showcase .section-title,
    .sg-services-carousel .section-title,
    .sg-contact-cta .section-title {
        font-size: 48px;
    }
    
    .sg-products-showcase .product-name {
        font-size: 36px;
    }
    
    .sg-services-carousel .service-title {
        font-size: 28px;
    }
    
    .sg-services-carousel .service-card {
        min-width: 300px;
    }
    
    .sg-products-showcase .products-grid {
        grid-template-columns: 1fr;
    }
    
    .sg-stats-block .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .sg-hero-block .hero-title,
    .sg-products-showcase .section-title,
    .sg-services-carousel .section-title,
    .sg-contact-cta .section-title {
        font-size: 36px !important;
    }
    
    .sg-products-showcase .product-name {
        font-size: 28px !important;
    }
    
    .sg-services-carousel .service-title {
        font-size: 24px !important;
    }
    
    .sg-stats-block .stat-number {
        font-size: 32px !important;
    }
    
    .sg-services-carousel .service-card {
        min-width: 280px;
    }
    
    .sg-products-showcase .product-card,
    .sg-services-carousel .service-card {
        padding: 24px;
    }
}