/* ═══════════════════════════════════════════════════════
   HOMEPAGE SECTIONS — News Ticker + Feature Showcase + Knowledge Hub
   ═══════════════════════════════════════════════════════ */

/* ── NEWS TICKER ── */
.news-ticker-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 5;
}
.news-ticker-inner {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 40px;
    gap: 16px;
}
.news-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #a5b4fc;
    white-space: nowrap;
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.news-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: newsPulse 1.5s infinite;
    box-shadow: 0 0 8px #ef4444;
}
@keyframes newsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.news-ticker-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: newsScroll 120s linear infinite;
}
.news-ticker-bar:hover .news-ticker-content {
    animation-play-state: paused;
}
@keyframes newsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.news-ticker-item {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-ticker-item:hover {
    color: #fff;
}
.news-dot {
    color: #4f46e5;
    font-weight: bold;
}

/* ── FEATURE SHOWCASE ── */
.feature-showcase-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 48px 0;
}
.feature-showcase {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.showcase-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #10b981;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.showcase-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: showcasePulse 1.5s infinite;
    box-shadow: 0 0 10px #10b981;
}
@keyframes showcasePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.showcase-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.08);
    min-height: 320px;
}
.showcase-input {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: #0f172a;
    margin-bottom: 20px;
    font-family: 'SF Mono', Menlo, monospace;
}
.showcase-input i {
    color: #6366f1;
    font-size: 16px;
}
.showcase-cursor {
    color: #6366f1;
    animation: blink 1s infinite;
    font-weight: 300;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.showcase-thinking {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.showcase-thinking.active {
    display: flex;
}
.thinking-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    margin: 0 2px;
    animation: dotBounce 1.4s infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.showcase-result {
    display: none;
    animation: fadeInUp 0.5s ease;
}
.showcase-result.active {
    display: block;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.showcase-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.showcase-result-row:last-of-type {
    border-bottom: none;
}
.result-label {
    color: #64748b;
    font-weight: 500;
}
.result-value {
    color: #0f172a;
    font-weight: 600;
}
.result-value.confidence {
    color: #10b981;
}
.result-value.price {
    color: #4f46e5;
    font-weight: 800;
    font-size: 16px;
}
.expert-avatar {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
.showcase-cta {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.showcase-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79,70,229,0.35);
}
.showcase-try-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 22px;
    background: #fff;
    color: #4f46e5;
    border: 2px solid #c7d2fe;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}
.showcase-try-btn:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    transform: translateY(-2px);
}

/* ── KNOWLEDGE HUB ── */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.knowledge-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
    border-color: #c7d2fe;
}
.knowledge-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}
.knowledge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.knowledge-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #eef2ff, #f1f5f9);
}
.knowledge-category {
    display: inline-block;
    padding: 4px 10px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.5px;
    align-self: flex-start;
}
.knowledge-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}
.knowledge-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}
.knowledge-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.knowledge-meta i {
    font-size: 11px;
}
.knowledge-link {
    color: #4f46e5;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.knowledge-card:hover .knowledge-link i {
    transform: translateX(4px);
}
.knowledge-link i {
    transition: transform 0.3s ease;
}
.knowledge-cta {
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .news-ticker-inner { height: 36px; padding: 0 14px; }
    .news-ticker-label { font-size: 10.5px; padding-right: 12px; }
    .news-ticker-item { font-size: 12px; }
    
    .feature-showcase-section { padding: 50px 0; }
    .showcase-panel { padding: 20px; }
    .showcase-result-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    
    .knowledge-grid { grid-template-columns: 1fr; gap: 20px; }
    .knowledge-card { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════
   GLOBAL SPACING TIGHTENING — Professional compact layout
   ═══════════════════════════════════════════════════════ */

/* Section labels — smaller gap */
.section-header .label {
    margin-bottom: 8px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    margin-bottom: 0;
}

/* Grid systems — consistent 20px gap */
.services-grid,
.os-grid,
.platform-grid,
.tools-grid,
.knowledge-grid {
    gap: 20px;
}

/* Cards — consistent padding */
.service-card,
.os-card,
.platform-card,
.tool-card,
.knowledge-card {
    padding: 22px;
}

/* Section footer — reduce bottom gap */
.section-footer {
    margin-top: 28px;
}

/* Reduce hero-to-section gap */
.section:first-of-type {
    padding-top: 32px;
}

/* Compact news ticker */
.news-ticker-inner {
    height: 36px;
}

/* Compact feature showcase */
.feature-showcase-section .section-header {
    margin-bottom: 24px;
}

/* Knowledge Hub compact */
.knowledge-grid {
    margin-bottom: 24px;
}

.knowledge-cta {
    margin-top: 0;
}

/* Trust badges compact strip */
.trust-strip,
.trust-badges-section {
    padding: 20px 0;
}

/* Business Journey compact */
.business-journey-section {
    padding: 40px 0;
}

/* Platform cards compact */
.platform-section,
.os-section {
    padding: 48px 0;
}

/* CTA compact */
.cta-section,
.cta-enterprise {
    padding: 48px 0 36px;
}

/* Responsive — mobile pe aur compact */
@media (max-width: 768px) {
    .section { padding: 32px 0; }
    .section-header { margin-bottom: 20px; }
    .services-grid,
    .os-grid,
    .platform-grid,
    .tools-grid,
    .knowledge-grid {
        gap: 14px;
    }
    .service-card,
    .os-card,
    .platform-card,
    .tool-card,
    .knowledge-card {
        padding: 18px;
    }
}

/* NEWS TICKER FORCE COMPACT */
.news-ticker-bar,
#newsTicker {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0;
    margin: 0;
}
.news-ticker-bar .news-ticker-inner,
#newsTicker .news-ticker-inner {
    height: 32px;
    padding: 0 16px;
    gap: 12px;
}
.news-ticker-bar .news-ticker-label,
#newsTicker .news-ticker-label {
    font-size: 10.5px;
    line-height: 32px;
    padding-right: 12px;
}
.news-ticker-bar .news-ticker-item,
#newsTicker .news-ticker-item {
    font-size: 12px;
    line-height: 20px;
    height: 20px;
}
.news-ticker-bar .news-ticker-content,
#newsTicker .news-ticker-content {
    height: 20px;
    gap: 28px;
}
.news-ticker-bar .news-ticker-track,
#newsTicker .news-ticker-track {
    height: 20px;
}

/* FEATURE SHOWCASE COMPACT */
.feature-showcase-section {
    padding: 40px 0;
}
.showcase-panel {
    padding: 20px;
    min-height: 260px;
}
.showcase-input {
    padding: 12px 16px;
    margin-bottom: 16px;
}
.showcase-result-row {
    padding: 8px 0;
}
.showcase-cta {
    padding: 12px;
    margin-top: 14px;
}

/* KNOWLEDGE HUB COMPACT */
.section-compact {
    padding: 36px 0;
}
.section-compact .section-header {
    margin-bottom: 20px;
}
.knowledge-grid {
    gap: 14px;
    margin-bottom: 16px;
}
.knowledge-card {
    padding: 16px;
    gap: 8px;
}
.knowledge-image {
    height: 120px;
}
.knowledge-card h3 {
    font-size: 15px;
}
.knowledge-card p {
    font-size: 12.5px;
}
.knowledge-meta {
    font-size: 11px;
    padding-top: 6px;
    gap: 10px;
}
