/* Quantoo Core - High End Product Page Styles */

/* 0. Page-Specific Typography & Colors */
body {
    font-family: var(--font-mono);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
}

/* Tag Styles Override */
.tag {
    border: 1px solid currentColor;
}

/* Background Utilities (Enterprise Soft Look) */
.bg-soft {
    background-color: #F7F9FC; /* Neutral Off-White */
    color: var(--color-text-primary);
}

.bg-product-core {
    background-color: rgba(90, 198, 243, 0.06); /* Tinted Accent (5-7%) */
    background-color: rgba(90, 198, 243, 0.06); /* #5AC6F3 Tint */
    color: var(--color-text-primary);
}

.text-core-accent {
    color: #5AC6F3;
}
.border-core-accent {
    border-color: #5AC6F3;
}
.bg-core-accent-soft {
    background-color: rgba(90, 198, 243, 0.1);
}

/* Ensure headings/text in these sections don't get forced to white by legacy styles */
.bg-product-core h2, 
.bg-product-core h3, 
.bg-product-core p {
    color: var(--color-text-primary);
}

/* Dark Theme (Enterprise Slate) */
.bg-dark,
.hero-dark {
    background-color: #0B1120; /* Deep Dark Core Color */
    color: #FFFFFF;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark .tag,
.hero-dark h1, .hero-dark .tag {
    color: #FFFFFF;
}

.bg-dark p, .bg-dark li,
.hero-dark p {
    color: rgba(255, 255, 255, 0.9) !important;
}
.bg-dark ul {
    color: rgba(255, 255, 255, 0.9);
}

/* 1. Layouts & Grids */
.core-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (max-width: 1024px) {
    .core-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.visual-container {
    position: relative;
    width: 100%;
    /* Removed fixed height to allow content to dictate size (e.g. cards) */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* 2. Visual: Core Pulse (Hero) */
.core-pulse-visual {
    width: 100%;
    height: 400px; /* Fixed height needed for absolute positioning of rings */
    position: relative;
}

.core-node-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #ffffff, var(--color-accent));
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(90, 198, 243, 0.6), inset 0 0 20px rgba(255,255,255,0.5);
    z-index: 10;
}

.core-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px solid rgba(90, 198, 243, 0.3);
    border-radius: 50%;
}

.core-satellite {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Satellite Positions (static for now, can animate along path) */
.core-satellite:nth-child(4) { top: 20%; left: 20%; }
.core-satellite:nth-child(5) { top: 20%; right: 20%; }
.core-satellite:nth-child(6) { bottom: 20%; left: 30%; }
.core-satellite:nth-child(7) { bottom: 30%; right: 15%; }

.core-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(90,198,243,0.8), transparent);
    z-index: 1;
}

/* 3. Visual: Chaos vs Order (Why Needed) */
.chaos-order-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px; /* Increased from 380px (~50% larger) */
}
.order-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08); /* Distinct thin border */
    border-radius: 16px; /* Slightly larger radius */
    padding: 2.25rem; /* Increased from 1.5rem */
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Increased gap */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* enhanced shadow */
    color: var(--color-text-primary);
    transition: transform 0.3s ease;
}
.order-card:hover { /* Micro interaction */
    transform: translateY(-2px);
}
.order-card.chaos { border-left: 6px solid #FF6464; } /* Thicker accent border */
.order-card.order { border-left: 6px solid #5AC6F3; }

/* Inner Card Elements */
.card-icon-box {
    width: 64px; /* Increased from 40px */
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-chaos { background: rgba(255,100,100,0.15); color: #FF6464; }
.icon-order { background: rgba(90,198,243,0.15); color: #5AC6F3; }

.card-info {
    flex: 1;
}
.card-title {
    font-weight: 600;
    font-size: 1.25rem; /* Increased from default */
    margin-bottom: 0.5rem;
}
.text-chaos { color: #FF6464; }
.text-order { color: #5AC6F3; }

.card-desc {
    font-size: 1rem; /* Increased from 0.85rem */
    opacity: 0.8;
    line-height: 1.5;
}

.card-arrow {
    text-align: center;
    color: rgba(0,0,0,0.2); /* Adapted for visibility */
    margin: 0.5rem 0;
}
/* Ensure arrow is visible on dark theme if inherited */
.bg-dark .card-arrow {
    color: rgba(255,255,255,0.3);
}

/* Section 3: Target Audience Visuals */
.target-visual-container {
    padding-left: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.scale-line {
    position: absolute;
    left: 4rem; /* Aligned with icon center */
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(90,198,243,0.2), rgba(90,198,243,0.8));
    z-index: 0;
}
.segment-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    /* backdrop-filter: blur(10px); REMOVED for performance */
    transition: transform 0.3s ease;
}
.segment-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.segment-icon {
    width: 48px;
    height: 48px;
    background: rgba(90, 198, 243, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.segment-content h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}
.segment-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7) !important;
    margin: 0;
}

/* Accent phrase styling */
.text-accent-gradient {
    background: linear-gradient(90deg, #fff, #90E0FF);
    -webkit-background-clip: text;
    background-clip: text; /* Standard property */
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* Section 5: Orbit Visual */
.orbit-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orbit-core {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #fff, var(--color-accent));
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(90,198,243,0.4);
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-primary); /* Dark text on bright core */
    font-size: 1.2rem;
    font-family: var(--font-mono) !important;
}
.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(255,255,255,0.3); /* Increased visibility from 0.1 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    will-change: transform;
}
.ring-1 { width: 240px; height: 240px; animation: rotate 30s linear infinite; }
.ring-2 { width: 380px; height: 380px; animation: rotate 45s linear infinite reverse; }
.ring-3 { width: 520px; height: 520px; animation: rotate 60s linear infinite; }

.orbit-item {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Specific Positions for Orbit Items */
.pos-1 { top: 10%; right: 20%; animation: float 6s ease-in-out infinite; }
.pos-2 { top: 40%; left: 0%; animation: float 7s ease-in-out infinite 1s; }
.pos-3 { bottom: 15%; right: 10%; animation: float 8s ease-in-out infinite 2s; }
.pos-4 { bottom: 30%; left: 10%; animation: float 5s ease-in-out infinite 0.5s; }
.pos-5 { top: 28%; left: 60%; animation: float 9s ease-in-out infinite 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 5. Layout: Process Flow (Operating Model) */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 3rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.process-step {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0; /* Init hidden */
    /* Animation applied via .active class on parent */
}

.process-flow.active .process-step {
    animation: flowAppear 0.8s ease forwards;
}

.process-arrow {
    color: var(--color-accent);
    opacity: 0;
     /* Animation applied via .active class on parent */
}

.process-flow.active .process-arrow {
    animation: flowArrow 0.8s ease forwards;
}

/* Stagger Process Animation (Slower Speed) */
.process-flow.active .process-step:nth-child(1) { animation-delay: 0.2s; }
.process-flow.active .process-arrow:nth-child(2) { animation-delay: 0.6s; }
.process-flow.active .process-step:nth-child(3) { animation-delay: 1.0s; }
.process-flow.active .process-arrow:nth-child(4) { animation-delay: 1.4s; }
.process-flow.active .process-step:nth-child(5) { animation-delay: 1.8s; }
.process-flow.active .process-arrow:nth-child(6) { animation-delay: 2.2s; }
.process-flow.active .process-step:nth-child(7) { animation-delay: 2.6s; }
.process-flow.active .process-arrow:nth-child(8) { animation-delay: 3.0s; }
.process-flow.active .process-step:nth-child(9) { animation-delay: 3.4s; }
.process-flow.active .process-arrow:nth-child(10) { animation-delay: 3.8s; }
.process-flow.active .process-step:nth-child(11) { animation-delay: 4.2s; }

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

@keyframes flowArrow {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.core-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Increased gap for windows */
}
@media (max-width: 1024px) {
    .core-bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .core-bento-grid { grid-template-columns: 1fr; }
}
.bento-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px; /* Standard OS radius */
    padding: 0; /* Clear padding for header */
    color: var(--color-text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sophisticated window shadow */
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* MacOS Window Controls */
.window-header {
    height: 36px;
    background: #F5F7FA;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
    flex-shrink: 0;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.dot.yellow { background: #FFBD2E; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.dot.green { background: #27C93F; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }

.window-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-card h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 5. Visual: Horizontal Flow Chain (Operational Model) */
.flow-chain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 2rem 0;
}
.flow-node {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

/* 6. Visual: Dark Dashboard Mockup (AI) */
.mockup-dash {
    background: #1A1F2C; /* Dark UI bg */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}
.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}
.mockup-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot.red { background: #FF5f56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27C93F; }

.mockup-graph-lines {
    width: 100%;
    height: 120px;
    position: relative;
}
.mockup-line-path {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px var(--color-accent));
}

/* 7. Visual: UI Card Light (Service) */
.ui-card-light {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Stronger shadow for lift */
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: var(--color-text-primary); /* Force dark text */
}
.ui-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.ui-list-item:last-child { border-bottom: none; }
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.pending { background: #FFF4E5; color: #FF9800; }
.status-badge.done { background: #E8F5E9; color: #4CAF50; }

/* 8. Visual: Metrics Grid (Results) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.metric-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center; /* Keep text centered */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: var(--color-text-primary); /* Force dark text */
    /* 3-line layout structure */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
    margin: 0; /* Handled by gap */
    display: block;
}
.metric-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: block;
    margin: 0;
}
.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0; /* Handled by gap */
    padding-top: 0.5rem; /* Additional separation for trend */
    border-top: 1px solid rgba(0,0,0,0.05); /* Optional subtle divider? No, user just said divide into 3 lines. gap is enough. */
}
.metric-trend.up { color: #5AC6F3; }
.metric-trend.down { color: #F44336; }

/* 9. Timeline (Implementation & Transition) */
.timeline-visual {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.timeline-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {  
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.step-marker {
    width: 54px;
    height: 54px;
    background: #F0F9FF;
    color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(90,198,243,0.2);
    position: relative;
}
.step-marker::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 1px solid rgba(90,198,243,0.1);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}
.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Footer Override for Product Page */
.footer {
    background-color: #FFFFFF !important;
    border-top: 1px solid var(--color-border);
}
