/* ===== PRODUCT DETAIL PAGES ===== */
:root {
    --p-primary: #6366f1;
    --p-secondary: #8b5cf6;
    --p-accent: #06b6d4;
    --p-dark: #0f172a;
    --p-darker: #020617;
    --p-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
}

/* Hero — Light Gradient Theme */
.product-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #ecfeff 100%);
    overflow: hidden;
    padding: 140px 0 80px;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 30%, rgba(99,102,241,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 70%, rgba(6,182,212,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(139,92,246,0.12) 0%, transparent 60%);
}

.product-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: pgridShift 25s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
@keyframes pgridShift { 0% { transform: translate(0,0); } 100% { transform: translate(60px,60px); } }

.product-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: porbFloat 10s ease-in-out infinite;
}
.product-orb-1 {
    width: 450px; height: 450px;
    background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(139,92,246,0.3));
    top: -120px; right: -120px;
}
.product-orb-2 {
    width: 350px; height: 350px;
    background: linear-gradient(135deg, rgba(6,182,212,0.35), rgba(99,102,241,0.25));
    bottom: -80px; left: -80px;
    animation-delay: -4s;
}
@keyframes porbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-30px) scale(1.08); }
}

/* Decorative shapes */
.product-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 8%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(99,102,241,0.25);
    border-radius: 14px;
    transform: rotate(20deg);
    animation: pFloat 6s ease-in-out infinite;
}
.product-hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 12%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(6,182,212,0.25);
    border-radius: 50%;
    animation: pFloat 7s ease-in-out infinite reverse;
}
@keyframes pFloat {
    0%,100% { transform: translateY(0) rotate(20deg); }
    50% { transform: translateY(-20px) rotate(35deg); }
}

.product-hero-content { position: relative; z-index: 2; color: var(--p-dark); }

.product-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px;
    background: white;
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; color: var(--p-primary);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(99,102,241,0.1);
    animation: pFadeDown 0.8s ease-out;
}
.product-hero-badge .live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
    animation: pPulse 2s ease-in-out infinite;
}
@keyframes pPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
@keyframes pFadeDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

.product-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900; line-height: 1.15; margin-bottom: 18px;
    color: var(--p-dark);
    animation: pFadeUp 1s ease-out;
}
.product-hero h1 .gradient {
    background: var(--p-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.product-hero p.tagline {
    font-size: 1.1rem; color: #475569;
    margin-bottom: 24px; max-width: 640px; line-height: 1.7;
    animation: pFadeUp 1s ease-out 0.15s backwards;
}

/* Hero right visual */
.product-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pFadeUp 1s ease-out 0.3s backwards;
}

.product-hero-icon-circle {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-icon-circle::before,
.product-hero-icon-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(99,102,241,0.35);
    animation: pSpin 25s linear infinite;
}
.product-hero-icon-circle::after {
    inset: 30px;
    border-color: rgba(139,92,246,0.35);
    animation-duration: 18s;
    animation-direction: reverse;
}

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

.product-hero-icon-inner {
    width: 220px; height: 220px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 70px rgba(99,102,241,0.2), inset 0 0 0 8px rgba(99,102,241,0.04);
    animation: pIconPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.product-hero-icon-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.08) 0%, transparent 70%);
}

.product-hero-icon-inner i {
    font-size: 6rem;
    background: var(--p-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 8px 20px rgba(99,102,241,0.35));
    position: relative;
    z-index: 1;
}

@keyframes pIconPulse {
    0%,100% { transform: scale(1); box-shadow: 0 25px 70px rgba(99,102,241,0.2), inset 0 0 0 8px rgba(99,102,241,0.04); }
    50% { transform: scale(1.04); box-shadow: 0 30px 80px rgba(99,102,241,0.35), inset 0 0 0 8px rgba(99,102,241,0.08); }
}

/* Floating tags around the icon */
.product-hero-tag {
    position: absolute;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--p-dark);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(99,102,241,0.15);
    animation: pTagFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}
.product-hero-tag:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(99,102,241,0.25);
    border-color: rgba(99,102,241,0.3);
}
.product-hero-tag i { margin-right: 6px; font-size: 0.75rem; color: var(--p-primary); }
.product-hero-tag.tag-1 { top: 20px; left: 30px; }
.product-hero-tag.tag-2 { top: 30px; right: 20px; animation-delay: -1s; }
.product-hero-tag.tag-3 { bottom: 40px; left: 10px; animation-delay: -2s; }
.product-hero-tag.tag-4 { bottom: 20px; right: 30px; animation-delay: -3s; }

@keyframes pTagFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.product-hero-stats {
    display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px;
    animation: pFadeUp 1s ease-out 0.3s backwards;
}
.product-hero-stat {
    padding: 16px 22px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(99,102,241,0.08);
    transition: all 0.3s ease;
}
.product-hero-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
}
.product-hero-stat strong {
    display: block;
    font-size: 1.6rem; font-weight: 800;
    background: var(--p-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product-hero-stat span { font-size: 0.8rem; color: #64748b; font-weight: 500; }

@keyframes pFadeUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }

.product-hero-cta {
    margin-top: 32px;
    animation: pFadeUp 1s ease-out 0.45s backwards;
}
.btn-product {
    padding: 16px 36px; font-size: 1.05rem; font-weight: 600;
    border-radius: 50px; border: none;
    background: var(--p-gradient); color: white; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.btn-product:hover { transform: translateY(-3px); box-shadow: 0 14px 45px rgba(99,102,241,0.55); color: white; }

.btn-product-outline {
    padding: 16px 36px; font-size: 1.05rem; font-weight: 600;
    border-radius: 50px; border: 2px solid rgba(99,102,241,0.3);
    background: white; color: var(--p-primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    margin-left: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(99,102,241,0.08);
}
.btn-product-outline:hover {
    background: var(--p-primary);
    border-color: var(--p-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.25);
}

/* Features section (white) */
.product-features {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.product-features-header {
    text-align: center;
    margin-bottom: 60px;
}
.product-features-badge {
    display: inline-block;
    padding: 8px 22px;
    background: rgba(99,102,241,0.08);
    color: var(--p-primary);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 30px;
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 16px;
}
.product-features h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--p-dark);
    margin-bottom: 14px;
}
.product-features-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.product-feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 26px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}
.product-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.product-feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--p-gradient);
    transform: scaleX(0); transition: transform 0.5s ease; transform-origin: left;
}
.product-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.3);
}
.product-feature-card:hover::before { transform: scaleX(1); }

.product-feature-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(99,102,241,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: all 0.4s ease;
}
.product-feature-icon i { font-size: 1.5rem; color: var(--p-primary); transition: all 0.4s ease; }
.product-feature-card:hover .product-feature-icon { background: var(--p-gradient); transform: scale(1.1) rotate(-5deg); }
.product-feature-card:hover .product-feature-icon i { color: white; }

.product-feature-card h4 {
    font-size: 1.15rem; font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 10px;
}
.product-feature-card p {
    font-size: 0.92rem; color: #64748b; line-height: 1.7; margin: 0;
}

/* Use case dark section */
.product-usecase {
    padding: 100px 0;
    background: var(--p-darker);
    position: relative;
    overflow: hidden;
    color: white;
}
.product-usecase::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 60%);
}
.product-usecase-content { position: relative; z-index: 2; text-align: center; }
.product-usecase h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.product-usecase p {
    font-size: 1.05rem; color: #94a3b8;
    max-width: 700px; margin: 0 auto 36px; line-height: 1.7;
}

/* CTA */
.product-cta {
    padding: 90px 0;
    background: #f8fafc;
    text-align: center;
}
.product-cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800; color: var(--p-dark);
    margin-bottom: 14px;
}
.product-cta p {
    font-size: 1.05rem; color: #64748b;
    max-width: 600px; margin: 0 auto 32px;
}

/* Responsive */
@media (max-width: 991px) {
    .product-hero-icon-circle { width: 280px; height: 280px; margin: 50px auto 0; }
    .product-hero-icon-inner { width: 170px; height: 170px; }
    .product-hero-icon-inner i { font-size: 4.5rem; }
    .product-hero-tag { display: none; }
}

@media (max-width: 767px) {
    .product-hero { min-height: auto; padding: 120px 0 60px; }
    .product-hero h1 { font-size: 2rem; }
    .product-hero p.tagline { font-size: 1rem; }
    .product-hero-stats { gap: 12px; }
    .product-hero-stat { padding: 10px 14px; flex: 1 1 calc(50% - 12px); min-width: 0; }
    .product-hero-stat strong { font-size: 1.2rem; }
    .product-hero-stat span { font-size: 0.7rem; }
    .product-features { padding: 60px 0; }
    .btn-product-outline { margin-left: 0; margin-top: 12px; display: inline-flex; }
    .product-hero-icon-circle { width: 220px; height: 220px; }
    .product-hero-icon-inner { width: 140px; height: 140px; }
    .product-hero-icon-inner i { font-size: 3.5rem; }
}
