/* ============================================
   Laptop + phone device showcase, dynamic blog/service bits
   ============================================ */

/* ---------- Device showcase ---------- */
.device-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.device-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 60px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); color: var(--text-soft); font-size: 0.85rem; }
.device-badges i { color: #a5b4fc; }

.device-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 72px; }
.device-row.flip .device-stage { order: 2; }
.device-stage { position: relative; padding: 0 9% 6% 0; }
.device-row.flip .device-stage { padding: 0 0 6% 9%; }
.device-stage::before {
    content: ""; position: absolute; inset: 10% 5% 0; z-index: 0;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent);
    filter: blur(20px);
}

.laptop { position: relative; z-index: 1; }
.laptop-screen {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    border-radius: 14px 14px 0 0;
    border: 10px solid #1b1f2a; border-bottom-width: 14px;
    background: #0d1118;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.55);
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease; }
.device-row:hover .laptop-screen img { transform: translateY(-4%); }
.laptop-base {
    position: relative; height: 14px; margin: 0 -6%;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, #2a303d, #161a23);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 18%; height: 6px; border-radius: 0 0 8px 8px; background: #11141b; }

.phone {
    position: absolute; z-index: 2; right: 0; bottom: 0;
    width: 24%; aspect-ratio: 390 / 844; overflow: hidden;
    border-radius: 22px; border: 6px solid #1b1f2a;
    background: #0d1118;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
}
.device-row.flip .phone { right: auto; left: 0; }
.device-row:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-notch { position: absolute; z-index: 1; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 10px; border-radius: 10px; background: #1b1f2a; }

.device-cat { color: #c084fc; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.device-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 10px 0 14px; }
.device-copy > p { color: var(--text-soft); line-height: 1.7; margin-bottom: 22px; }
.device-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.device-metrics div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); }
.device-metrics strong { display: block; font-size: 1.4rem; font-weight: 800; background: var(--gradient-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.device-metrics span { color: var(--text-mute); font-size: 0.8rem; }
.device-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.device-tech span { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--text-soft); font-size: 0.8rem; }
.device-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rating-inline { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--text-soft); }
.rating-inline .stars { color: #fbbf24; letter-spacing: 2px; }
.rating-inline strong { color: white; }

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; }
.service-card .feature-list { flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.service-price { font-weight: 700; color: white; }
.service-link { color: #c4b5fd; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.service-link i { transition: transform 0.2s; }
.service-link:hover i { transform: translateX(3px); }

/* ---------- Blog images ---------- */
.article-thumb.has-cover, .article-cover.has-cover { background: #0f131b; padding: 0; }
.article-thumb.has-cover picture, .article-cover.has-cover picture { display: block; width: 100%; height: 100%; }
.article-thumb.has-cover img, .article-cover.has-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-cover.has-cover { overflow: hidden; }
@media (max-width: 640px) {
    .article-cover.has-cover { aspect-ratio: auto; }
    .article-cover.has-cover picture { height: auto; }
    .article-cover.has-cover img { height: auto; max-height: 65vh; object-fit: contain; }
}
.featured-post:hover .featured-title { color: #c084fc; }
.article-body img { max-width: 100%; border-radius: 14px; margin: 10px 0; }
.article-body a { color: #c084fc; text-decoration: underline; }
.article-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 40px; padding: 22px 24px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.article-cta strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.article-cta span { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .device-row, .device-row.flip { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
    .device-row.flip .device-stage { order: 0; padding: 0 9% 6% 0; }
    .device-row.flip .phone { left: auto; right: 0; }
}
@media (max-width: 640px) {
    .device-row { margin-top: 44px; }
    .laptop-screen { border-width: 6px; border-bottom-width: 9px; border-radius: 10px 10px 0 0; }
    .laptop-base { height: 9px; }
    .phone { width: 27%; border-width: 4px; border-radius: 14px; }
    .phone-notch { height: 6px; top: 4px; }
    .device-actions .btn { flex: 1 1 100%; }
    .article-cta { padding: 18px; }
    .article-cta .btn { width: 100%; }
}

.service-card h3 a:hover { color: #c084fc; }
.service-more { color: var(--text-soft); font-weight: 600; font-size: 0.9rem; }
.service-more:hover { color: white; }
