/* Homepage product showcase: a big window with demo screens of the real app.
   The window is laid out at a fixed desktop size (--sc-w x --sc-h) and scaled
   by js/home-showcase.js, so on a phone it reads like a crisp screenshot. */
.showcase { padding: 110px 0 120px; }
.showcase .sec-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.showcase .sec-head .lead { margin: 18px auto 0; }

.sc-tabs { display: flex; justify-content: center; margin-bottom: 30px; padding: 0 8px; }
.sc-tabs .bar { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px;
    background: rgba(13, 19, 40, .75); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.sc-tabs button { position: relative; overflow: hidden; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2);
    background: none; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: color .2s, background .2s; }
.sc-tabs button:hover { color: #fff; }
.sc-tabs button[aria-selected="true"] { color: #fff; font-weight: 700;
    background: linear-gradient(135deg, #4f6bff 0%, #3b5bfd 50%, #2a44d8 100%); box-shadow: 0 8px 26px -8px rgba(59, 91, 253, .8); }
.sc-tabs .prog { position: absolute; bottom: 0; right: 0; height: 3px; width: 0; background: rgba(255,255,255,.7); }
.sc-tabs .prog.run { animation: scProg linear forwards; }
@keyframes scProg { to { width: 100%; } }

.sc-persp { perspective: 2200px; }
.sc-fit { position: relative; transform-origin: 50% 0; transition: transform 120ms linear; }
.sc-fit.cropped { margin-left: -20px; overflow: hidden; border-radius: 0 24px 24px 0; }
.sc-glow { position: absolute; inset: 14% 8% -6%; z-index: -1; border-radius: 60px; filter: blur(90px); opacity: .45;
    background: linear-gradient(135deg, #3b5bfd, #2ee6c5 60%, #9b6bff); pointer-events: none; }
.sc-frame { --sc-w: 1180px; --sc-h: 640px; position: absolute; top: 0; width: calc(var(--sc-w) + 16px); height: calc(var(--sc-h) + 16px);
    padding: 8px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.04));
    box-shadow: 0 40px 120px -30px rgba(59, 91, 253, .6), 0 0 0 1px rgba(148, 163, 255, .18); }
.sc-frame.narrow { --sc-w: 974px; }
.sc-frame.narrow .sc-side { display: none; }
.sc-note { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- the app window ---------- */
.sc-app { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; direction: rtl; text-align: right;
    background: #0f172a; color: #e2e8f0; border: 1px solid rgba(51, 65, 85, .8); font-size: 13px; line-height: 1.45; }
.sc-chrome { direction: ltr; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #0b1222; border-bottom: 1px solid #1e293b; }
.sc-chrome .dots { display: flex; gap: 6px; }
.sc-chrome .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.sc-chrome .addr { margin: 0 auto; width: 420px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 12px;
    border-radius: 8px; background: #111a2e; color: #94a3b8; font-size: 12px; }
.sc-chrome .addr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.sc-body { flex: 1; min-height: 0; display: flex; }
.sc-side { width: 206px; flex-shrink: 0; padding: 14px 12px; background: #0b1324; border-left: 1px solid #1e293b; }
.sc-side .brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 16px; font-weight: 800; font-size: 15px; color: #fff; }
.sc-side .brand b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px;
    background: linear-gradient(135deg, #4f6bff, #2ee6c5); }
.sc-side .proj { margin: 0 4px 12px; padding: 9px 10px; border-radius: 10px; background: #111a2e; border: 1px solid #1e293b; font-size: 12px; }
.sc-side .proj small { display: block; color: #64748b; font-size: 10.5px; }
.sc-nav { display: flex; flex-direction: column; gap: 2px; }
.sc-nav span { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; color: #94a3b8; font-size: 12.5px; }
.sc-nav span svg { width: 15px; height: 15px; flex-shrink: 0; }
.sc-nav span.on { color: #fff; font-weight: 700; background: linear-gradient(135deg, #4f6bff, #3b5bfd); box-shadow: 0 6px 18px -6px rgba(59,91,253,.8); }
.sc-main { flex: 1; min-width: 0; padding: 18px 22px; overflow: hidden; }
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.sc-head small { color: #64748b; font-size: 11.5px; }
.sc-head h4 { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: #fff; }
.sc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #4f6bff, #3b5bfd); }
.sc-btn.ghost { background: #111a2e; border: 1px solid #1e293b; color: #cbd5e1; font-weight: 500; }
.sc-btns { display: flex; gap: 8px; }

.sc-screen { display: none; }
.sc-screen.on { display: block; animation: scIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes scIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sc-card { background: #131d33; border: 1px solid #1e293b; border-radius: 16px; padding: 16px; }
.sc-card h5 { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.sc-card h5 small { font-weight: 400; color: #64748b; font-size: 11px; }
.sc-grid { display: grid; gap: 12px; }
.sc-kpi .l { color: #94a3b8; font-size: 11.5px; }
.sc-kpi .v { margin-top: 6px; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-kpi .v small { font-size: 14px; color: #94a3b8; font-weight: 500; }
.sc-up { color: #34d399; } .sc-down { color: #f87171; } .sc-mute { color: #64748b; }
.sc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.sc-chip.g { background: rgba(52, 211, 153, .13); color: #34d399; }
.sc-chip.r { background: rgba(248, 113, 113, .13); color: #f87171; }
.sc-chip.a { background: rgba(251, 191, 36, .13); color: #fbbf24; }
.sc-chip.b { background: rgba(99, 125, 255, .16); color: #93a5ff; }
.sc-chip.n { background: #1e293b; color: #94a3b8; }
.sc-delta { margin-top: 6px; font-size: 11px; }

/* bars that grow when the window comes into view */
.sc-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; direction: ltr; }
.sc-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #6d83ff, #3b5bfd); height: 3%;
    transition: height .8s cubic-bezier(.2,.8,.2,1); }
.sc-axis { display: flex; justify-content: space-between; direction: ltr; color: #475569; font-size: 10px; margin-top: 6px; }
.sc-hbar { display: flex; align-items: center; gap: 8px; margin: 9px 0; font-size: 12px; }
.sc-hbar .k { width: 64px; color: #94a3b8; }
.sc-hbar .t { flex: 1; height: 9px; border-radius: 999px; background: #1e293b; overflow: hidden; }
.sc-hbar .t i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2ee6c5, #3b5bfd);
    transition: width 1s cubic-bezier(.2,.8,.2,1); }
.sc-hbar .n { width: 30px; text-align: left; font-variant-numeric: tabular-nums; }
.sc-ring { position: relative; width: 116px; height: 116px; margin: 4px auto 8px; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 10; }
.sc-ring .bg { stroke: #1e293b; }
.sc-ring .fg { stroke: url(#scRingGrad); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.8,.2,1); }
.sc-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; direction: ltr; font-size: 30px; font-weight: 800; color: #fff; }
.sc-area { width: 100%; height: 150px; display: block; }
.sc-area path.line { fill: none; stroke: #6d83ff; stroke-width: 2.5; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.6s ease; }
.sc-area path.fill { fill: url(#scAreaGrad); opacity: 0; transition: opacity 1s .6s ease; }
.sc-run .sc-area path.line { stroke-dashoffset: 0; }
.sc-run .sc-area path.fill { opacity: 1; }

/* tables */
.sc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sc-table th { text-align: right; font-weight: 500; color: #64748b; font-size: 11px; padding: 0 10px 9px; border-bottom: 1px solid #1e293b; white-space: nowrap; }
.sc-table td { padding: 9px 10px; border-bottom: 1px solid #17213a; white-space: nowrap; }
.sc-table tr:last-child td { border-bottom: 0; }
.sc-table .kw { color: #f1f5f9; font-weight: 500; }
.sc-table .num { font-variant-numeric: tabular-nums; }
.sc-pos { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 800; color: #fff; background: #1e293b; }
.sc-pos.top3 { background: linear-gradient(135deg, #10b981, #059669); }
.sc-pos.top10 { background: linear-gradient(135deg, #4f6bff, #3b5bfd); }
.sc-spark { width: 74px; height: 22px; display: block; }
.sc-spark path { fill: none; stroke: #6d83ff; stroke-width: 2; }
.sc-dom { direction: ltr; display: inline-block; color: #93a5ff; }

/* GEO */
.sc-eng { display: flex; align-items: center; gap: 7px; }
.sc-eng img, .sc-eng .gl { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.sc-eng .gl { display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #9b6bff, #3b5bfd); }
.sc-yes, .sc-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.sc-yes { background: rgba(52, 211, 153, .15); color: #34d399; }
.sc-no { background: rgba(248, 113, 113, .12); color: #f87171; }
.sc-quote { margin-top: 10px; padding: 12px; border-radius: 12px; background: #0f172a; border: 1px solid #1e293b; font-size: 12.5px; line-height: 1.8; color: #cbd5e1; }
.sc-quote mark { background: rgba(59, 91, 253, .22); color: #c7d0ff; padding: 1px 5px; border-radius: 5px; font-weight: 700; }

/* issue list */
.sc-issue { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #17213a; font-size: 12.5px; }
.sc-issue:last-child { border-bottom: 0; }
.sc-issue .sev { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-issue .txt { flex: 1; }
.sc-issue .cnt { font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }

/* floating cards around the window, wide screens only */
.sc-float { position: absolute; z-index: 3; display: none; pointer-events: none; }
.sc-float .in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; font-size: 13px;
    background: rgba(13, 19, 40, .88); border: 1px solid rgba(148, 163, 255, .22); backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7); animation: scFloat 6s ease-in-out infinite; }
.sc-float .in small { display: block; color: var(--ink-3); font-size: 12px; }
.sc-float img { width: 32px; height: 32px; border-radius: 8px; }
.sc-float .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.15); color: #34d399; font-weight: 800; }
.sc-float .big { font-size: 26px; font-weight: 900; line-height: 1; }
@keyframes scFloat { 50% { transform: translateY(-10px); } }
@media (min-width: 1280px) { .sc-float { display: block; } }

@media (max-width: 760px) {
    .showcase { padding: 70px 0 80px; }
    .sc-tabs button { padding: 8px 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-screen.on, .sc-float .in { animation: none; }
    .sc-bars i, .sc-hbar .t i, .sc-ring .fg, .sc-area path { transition: none; }
}
