/* =============================================================
   Predictive Tech Labs — Custom branded icon tiles
   Replaces generic emoji/system glyphs with on-brand CSS + SVG.
   Amber/gold line icons on a soft gradient tile.
   ============================================================= */

.ptl-ico {
    --ico-size: 64px;
    --ico-glyph: 34px;
    width: var(--ico-size);
    height: var(--ico-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(234, 88, 12, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.38);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ptl-ico::after {
    /* subtle top-light sheen */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.16), transparent 60%);
    pointer-events: none;
}

.ptl-ico svg {
    width: var(--ico-glyph);
    height: var(--ico-glyph);
    display: block;
    position: relative;
    z-index: 1;
    stroke: #f59e0b;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.dark-mode .ptl-ico svg { stroke: #fbbf24; }

/* hover lift when the tile sits in an interactive card */
.tech-card:hover .ptl-ico,
.integration-item:hover .ptl-ico,
.strength-card:hover .ptl-ico,
.arch-feature:hover .ptl-ico {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
    border-color: rgba(245, 158, 11, 0.6);
}

/* ---- size variants ---- */
.ptl-ico.ptl-ico-lg { --ico-size: 84px; --ico-glyph: 46px; border-radius: 22px; }
.ptl-ico.ptl-ico-sm { --ico-size: 44px; --ico-glyph: 24px; border-radius: 13px; }

/* =============================================================
   Homepage — neutralise legacy emoji containers so tiles sit clean
   ============================================================= */
.card-icon,
.tech-logo-large,
.feature-icon-large,
.bot-icon:not(.bot-icon-logo) {
    font-size: 0 !important;
}
.quick-nav-card .card-icon,
.products-grid .card-icon {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 18px;
}
.tech-logo-large { display: block !important; }
.feature-icon-large { line-height: 0; }

/* brand variant — white tile that holds a full-colour brand logo (e.g. Gmail) */
.ptl-ico.ptl-ico-brand {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ptl-ico.ptl-ico-brand svg { stroke: none; }
.ptl-ico img {
    width: var(--ico-glyph);
    height: var(--ico-glyph);
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

/* inline icon used before a heading (e.g. integration / migration cards) */
.ptl-ico-inline {
    --ico-size: 46px;
    --ico-glyph: 26px;
    border-radius: 13px;
    margin-right: 12px;
}

/* =============================================================
   About — "AI Innovation" image card (replaces emoji placeholder)
   ============================================================= */
.mission-image--photo {
    position: relative;
    min-height: 300px;
    padding: 14px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(245, 158, 11, 0.16) 0%, rgba(13, 19, 34, 0.0) 38%),
                linear-gradient(330deg, rgba(96, 165, 250, 0.14) 0%, rgba(13, 19, 34, 0.0) 42%),
                linear-gradient(160deg, #0e1730 0%, #0a0f1f 100%);
    border: 1px solid rgba(245, 158, 11, 0.30);
    box-shadow: 0 20px 60px rgba(8, 12, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: block;
}
.mission-image--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    /* feather the edges so the artwork melts into the gradient frame */
    -webkit-mask-image: radial-gradient(130% 130% at 50% 45%, #000 62%, transparent 100%);
    mask-image: radial-gradient(130% 130% at 50% 45%, #000 62%, transparent 100%);
}
.mission-image-caption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* headings that lead with an inline icon tile */
.integration-item h3,
.migration-card h3 {
    display: flex;
    align-items: center;
    gap: 0;
}

/* migration cards sit on the amber band — use a light (white) tile */
.migration-card .ptl-ico {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.migration-card .ptl-ico svg { stroke: #ffffff; }

/* =============================================================
   Circular tech-stack avatars (About) — line icon badge
   ============================================================= */
.placeholder-avatar {
    background: linear-gradient(150deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.05)) !important;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.placeholder-avatar svg {
    width: 52px;
    height: 52px;
    stroke: #f59e0b;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.dark-mode .placeholder-avatar svg { stroke: #fbbf24; }

/* =============================================================
   "How We Work" RAG flow — centred dark-blue panel
   ============================================================= */
.rag-model-diagram,
.dark-mode .rag-model-diagram {
    background: linear-gradient(160deg, #122a52 0%, #0d1b38 55%, #0a1124 100%);
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 18px 50px rgba(8, 15, 35, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    align-items: stretch;
    justify-content: center;
}

.rag-model-diagram .rag-step {
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 16px;
    padding: 22px 16px;
    flex: 1 1 0;
}

.rag-model-diagram .step-content h4,
.dark-mode .rag-model-diagram .step-content h4 { color: #ffffff; }
.rag-model-diagram .step-content p,
.dark-mode .rag-model-diagram .step-content p { color: #c7d2e8; }

/* blue-tinted tiles inside the dark-blue RAG panel */
.rag-model-diagram .ptl-ico {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.20), rgba(37, 99, 235, 0.08));
    border-color: rgba(125, 185, 255, 0.45);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.rag-model-diagram .ptl-ico svg { stroke: #93c5fd; }
.rag-model-diagram .rag-arrow,
.dark-mode .rag-model-diagram .rag-arrow { color: #60a5fa; }

@media (max-width: 768px) {
    .rag-model-diagram .rag-step { width: 100%; }
}
