/* ===== 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. The square that used to float at top-left sat on top of the badge
   and headline on every product page, so it is no longer drawn. */
.product-hero::before { content: none; }
/* The ring that floated at bottom-right now sits behind each page's product mock-up. */
.product-hero::after { content: none; }
@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); }
/* Staggered down alternating sides, so labels of any length never run into each other. */
.product-hero-tag.tag-1 { top: 4%; left: -6%; }
.product-hero-tag.tag-2 { top: 27%; right: -12%; animation-delay: -1s; }
.product-hero-tag.tag-3 { bottom: 25%; left: -12%; animation-delay: -2s; }
.product-hero-tag.tag-4 { bottom: 2%; right: -4%; 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; }
}


/* ===== Product mock-ups (hero right side) =====
   A small UI picture of what each product does: a card with a header and status pill,
   then rows, KPI tiles, a mini chart and/or a progress bar, plus up to three floating
   cards. Content is illustrative. */
.pv-visual { position: relative; z-index: 2; padding: 30px 36px 62px 16px; animation: pFadeUp 1s ease-out 0.3s backwards; }
.pv-card {
    background: #fff; border-radius: 18px; border: 1px solid rgba(99,102,241,0.18); overflow: hidden;
    box-shadow: 0 30px 60px -22px rgba(15,23,42,0.35), 0 0 0 6px rgba(255,255,255,0.6);
}
.pv-head {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff); border-bottom: 1px solid #e2e8f0;
}
.pv-title { font-weight: 700; font-size: 0.82rem; color: var(--p-dark); }
.pv-title i { color: var(--p-primary); margin-right: 6px; }
.pv-pill {
    padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
    background: #dcfce7; color: #15803d; animation: pvPop 0.5s ease-out 1.4s backwards;
}
.pv-pill.is-blue { background: #e0e7ff; color: #4338ca; }
.pv-pill.is-amber { background: #fef3c7; color: #b45309; }
.pv-pill.is-red { background: #fee2e2; color: #b91c1c; }

.pv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px 8px; }
.pv-item-icon {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: var(--p-gradient); color: #fff; font-size: 1.05rem;
}
.pv-item strong { display: block; font-size: 0.86rem; color: var(--p-dark); line-height: 1.3; }
.pv-item small { display: block; font-size: 0.72rem; color: #64748b; }

.pv-list { list-style: none; margin: 0; padding: 4px 16px 6px; }
.pv-list li {
    display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed #e2e8f0;
    font-size: 0.78rem; animation: pvIn 0.4s ease-out backwards;
}
.pv-list li:first-child { border-top: 0; }
.pv-list li:nth-child(1) { animation-delay: 0.5s; }
.pv-list li:nth-child(2) { animation-delay: 0.75s; }
.pv-list li:nth-child(3) { animation-delay: 1s; }
.pv-list li:nth-child(4) { animation-delay: 1.25s; }
.pv-list li > i { width: 16px; text-align: center; color: #22c55e; }
.pv-list li.is-warn > i { color: #f59e0b; }
.pv-list li.is-bad > i { color: #ef4444; }
.pv-list li.is-todo > i { color: #cbd5e1; }
.pv-list li.is-info > i { color: var(--p-primary); }
.pv-list span { flex: 1; font-weight: 600; color: var(--p-dark); }
.pv-list em { font-style: normal; color: #64748b; font-size: 0.72rem; white-space: nowrap; }
.pv-list li.is-bad em { color: #dc2626; font-weight: 600; }
.pv-list li.is-warn em { color: #b45309; font-weight: 600; }

.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 6px; }
.pv-kpi { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 8px 10px; }
.pv-kpi strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--p-primary); line-height: 1.2; }
.pv-kpi small { font-size: 0.66rem; color: #64748b; }

.pv-chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding: 10px 16px 0; }
.pv-chart span {
    flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: #c7d2fe;
    transform-origin: bottom; animation: pvGrow 0.7s ease-out backwards;
}
.pv-chart span:nth-child(2) { animation-delay: 0.1s; } .pv-chart span:nth-child(3) { animation-delay: 0.2s; }
.pv-chart span:nth-child(4) { animation-delay: 0.3s; } .pv-chart span:nth-child(5) { animation-delay: 0.4s; }
.pv-chart span:nth-child(6) { animation-delay: 0.5s; } .pv-chart span:nth-child(7) { animation-delay: 0.6s; }
.pv-chart span:nth-child(8) { animation-delay: 0.7s; }
.pv-chart span.is-forecast { background: repeating-linear-gradient(45deg, #a5b4fc 0 5px, #e0e7ff 5px 10px); }
.pv-legend { display: flex; gap: 14px; padding: 8px 16px 2px; font-size: 0.66rem; color: #64748b; border-top: 1px solid #eef2f7; margin: 0 16px; padding-left: 0; }
.pv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: #c7d2fe; }
.pv-legend i.is-forecast { background: repeating-linear-gradient(45deg, #a5b4fc 0 3px, #e0e7ff 3px 6px); }

.pv-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px 14px; font-size: 0.72rem; font-weight: 600; color: var(--p-primary); }
.pv-foot i { margin-right: 4px; }
.pv-bar { flex: 1; min-width: 60px; height: 6px; border-radius: 6px; background: #eef2ff; overflow: hidden; }
.pv-bar span { display: block; height: 100%; width: var(--w, 100%); background: var(--p-gradient); animation: pvFill 1.5s ease-out 0.3s backwards; }

/* Dark card: control-room screens */
.pv-card.is-dark { background: #0b1220; border-color: rgba(99,102,241,0.35); box-shadow: 0 30px 60px -20px rgba(15,23,42,0.5), 0 0 0 6px rgba(255,255,255,0.6); }
.pv-card.is-dark .pv-head { background: #111a2e; border-color: #1e293b; }
.pv-card.is-dark .pv-title { color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.03em; }
.pv-card.is-dark .pv-title i { color: #ef4444; animation: pvBlink 1.4s ease-in-out infinite; }
.pv-card.is-dark .pv-pill.is-red { background: rgba(239,68,68,0.15); color: #f87171; }
.pv-card.is-dark .pv-list li { border-color: #1e293b; }
.pv-card.is-dark .pv-list span { color: #e2e8f0; }
.pv-card.is-dark .pv-list em { color: #94a3b8; font-family: ui-monospace, Consolas, monospace; }
.pv-card.is-dark .pv-list li.is-bad em { color: #f87171; }
.pv-card.is-dark .pv-foot { color: #a5b4fc; }
.pv-card.is-dark .pv-bar { background: #1e293b; }

/* Floating cards around the mock-up */
.pv-chip {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; z-index: 3;
    background: #fff; border-radius: 14px; border: 1px solid rgba(99,102,241,0.15);
    box-shadow: 0 12px 30px -8px rgba(15,23,42,0.25); animation: pTagFloat 5s ease-in-out infinite;
}
.pv-chip strong { display: block; font-size: 0.8rem; color: var(--p-dark); line-height: 1.2; white-space: nowrap; }
.pv-chip small { display: block; font-size: 0.7rem; color: #64748b; line-height: 1.3; white-space: nowrap; }
.pv-chip-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 0.8rem; flex: none; background: var(--p-gradient); }
.pv-chip-icon.is-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.pv-chip-icon.is-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.pv-chip-icon.is-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.pv-chip-icon.is-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.pv-chip.pv-tr { top: 0; right: -14px; }
.pv-chip.pv-bl { bottom: 0; left: -10px; animation-delay: -1.7s; }
.pv-chip.pv-br { bottom: 0; right: -14px; animation-delay: -3.3s; }
@media (max-width: 1199px) { .pv-visual { padding-top: 50px; } }

@keyframes pvIn { from { opacity: 0; transform: translateX(-8px); } }
@keyframes pvFill { from { width: 0; } }
@keyframes pvGrow { from { transform: scaleY(0); } }
@keyframes pvPop { from { opacity: 0; transform: scale(0.6); } }
@keyframes pvBlink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
    .pv-visual, .pv-chip, .pv-list li, .pv-bar span, .pv-pill, .pv-chart span, .pv-card.is-dark .pv-title i { animation: none; }
}
