/* ================================================
   Products Index Page Styles
   ================================================ */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse at 30% 0%, rgba(99, 102, 241, 0.3) 0%, transparent 60%);
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.25) 0%, transparent 60%);
}

/* Animated Grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Floating Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    top: 30%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    bottom: 20%;
    right: 15%;
    animation-delay: -15s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    top: 50%;
    right: 30%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    color: #fbbf24;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.title-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hide-sp {
    display: inline;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: #818cf8;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #6366f1, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
}

/* Products Grid */
.products {
    padding: 100px 0;
    background: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Product Card - Enhanced */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    transform: translateY(-8px);
}

.product-card:hover::before {
    opacity: 1;
}

/* Product Visual */
.product-visual {
    position: relative;
    margin-bottom: 24px;
}

.product-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 20px;
    color: #6366f1;
    transition: transform 0.3s, background 0.3s;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 40px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.4s;
}

.product-card:hover .product-glow {
    opacity: 0.3;
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-coming {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Product Features List */
.product-features {
    list-style: none;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #475569;
}

.product-features svg {
    color: #10b981;
    flex-shrink: 0;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6366f1;
    margin-top: auto;
    transition: gap 0.3s;
}

.product-link svg {
    transition: transform 0.3s;
}

.product-card:hover .product-link {
    gap: 12px;
}

.product-card:hover .product-link svg {
    transform: translateX(4px);
}

/* Coming Soon Card */
.product-card-coming {
    opacity: 0.85;
    pointer-events: none;
}

.product-card-coming .product-icon {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.coming-soon-notify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: auto;
}

.coming-soon-notify svg {
    color: #94a3b8;
}

/* Fade In Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.why-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    color: #6366f1;
    transition: all 0.3s;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    transform: scale(1.1);
}

.why-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.why-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 16px 32px;
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .title-line {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 32px;
        padding: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 16px 60px;
    }

    .title-line {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hide-sp {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .stat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .stat-label {
        margin-top: 0;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products {
        padding: 60px 0;
    }

    .product-card {
        padding: 24px;
    }

    .product-icon {
        width: 64px;
        height: 64px;
    }

    .product-icon svg {
        width: 32px;
        height: 32px;
    }

    .product-name {
        font-size: 1.375rem;
    }

    .why-us {
        padding: 60px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 24px 20px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* Shape animations - reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .scroll-line,
    .status-dot {
        animation: none;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ================================================
   Hero Video Background
   ================================================ */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 27, 75, 0.8) 40%, rgba(49, 46, 129, 0.75) 100%);
}

.hero-bg {
    z-index: 1;
}
