:root {
    color-scheme: dark;
    --canvas: #0b0915;
    --surface: rgba(20, 18, 35, .84);
    --line: rgba(255, 255, 255, .09);
    --muted: #9d99ae;
    --text: #faf8ff;
    --violet: #8c72ff;
    --pink: #ec68a9;
    --mint: #7ef4c9;
    --amber: #ffcf83;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--canvas);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.ambient {
    position: fixed;
    z-index: -1;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(115px);
    opacity: .26;
    pointer-events: none;
}

.ambient-one { top: -190px; left: -170px; background: #6544ff; }
.ambient-two { top: 310px; right: -230px; background: #b44282; }

.shell { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 15px;
    background: linear-gradient(145deg, #997fff, #ef70aa);
    font-size: 23px;
    font-weight: 780;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.2px; }
.brand small { margin-top: 3px; color: #9e96b8; font-size: 9px; letter-spacing: 1.55px; }

.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #cdc8da;
    font-size: 12px;
}

.secure-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.hero { padding: 52px 0 48px; }
.eyebrow, .section-kicker { font-size: 12px; font-weight: 640; letter-spacing: 1px; color: #c3b9e5; }
.spark { color: var(--pink); }

h1 {
    max-width: 760px;
    margin: 15px 0 16px;
    font-size: clamp(36px, 7.5vw, 72px);
    line-height: 1.14;
    letter-spacing: -2.8px;
    font-weight: 730;
}

h1 span {
    background: linear-gradient(90deg, #c7b8ff 0%, #ff9cc7 74%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.9; }

.device-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 98px;
    margin-top: 30px;
    padding: 18px;
    border: 1px solid rgba(142, 120, 255, .3);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(73, 57, 130, .32), rgba(28, 23, 48, .88));
}

.radar { width: 43px; height: 43px; position: relative; flex: 0 0 43px; border: 1px solid rgba(144, 123, 255, .6); border-radius: 50%; }
.radar::before, .radar::after, .radar span { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(144, 123, 255, .55); border-radius: 50%; }
.radar::after { inset: 15px; background: var(--violet); border: 0; }
.radar span { inset: -5px; opacity: .3; animation: radar-pulse 1.8s ease-out infinite; }

@keyframes radar-pulse { 0% { transform: scale(.86); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

.device-copy { min-width: 0; flex: 1; }
.device-copy span, .device-copy strong { display: block; }
.device-kicker { margin-bottom: 3px; color: #aa98ff; font-size: 10px; letter-spacing: 1.4px; }
.device-copy strong { font-size: 16px; line-height: 1.45; }
#device-detail { margin-top: 3px; color: #b7afca; font-size: 12px; line-height: 1.5; }

.confidence-badge { padding: 7px 9px; border-radius: 9px; background: rgba(126, 244, 201, .12); color: var(--mint); font-size: 10px; font-weight: 750; letter-spacing: .6px; }
.is-estimated .confidence-badge, .is-warning .confidence-badge { background: rgba(255, 207, 131, .12); color: var(--amber); }
.is-neutral .confidence-badge { background: rgba(255, 255, 255, .09); color: #dedbe7; }

.manual-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 15px; }
.manual-choice[hidden], [hidden] { display: none !important; }
.manual-choice > span { color: var(--muted); font-size: 12px; }
.manual-choice button { padding: 7px 11px; border: 1px solid rgba(180, 160, 255, .32); border-radius: 99px; background: rgba(144, 123, 255, .1); color: #e1d8ff; cursor: pointer; }
.manual-choice button:hover { background: rgba(144, 123, 255, .22); }

.versions { margin-top: 6px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.9px; }
.version-count { color: var(--muted); font-size: 13px; }

.app-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }

.app-card {
    position: relative;
    flex: 1 1 255px;
    min-width: 0;
    min-height: 318px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--surface);
    transition: border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.app-card:hover { transform: translateY(-3px); border-color: rgba(196, 180, 255, .32); }
.app-card.is-recommended { border-color: rgba(161, 132, 255, .8); box-shadow: 0 0 0 1px rgba(142, 111, 255, .22), 0 16px 48px rgba(107, 73, 203, .16); }
.app-card.is-incompatible { opacity: .62; }

.recommended-ribbon {
    position: absolute;
    top: -12px;
    left: 15px;
    right: 15px;
    padding: 6px 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #7457ef, #da599a);
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
}

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; }
.app-icon svg { width: 22px; height: 22px; }
.icon-arm32 { background: rgba(255, 206, 130, .13); color: #ffc985; }
.icon-arm64_lite { background: rgba(159, 129, 255, .16); color: #bcaaff; }
.icon-arm64_main { background: rgba(238, 108, 167, .16); color: #f895bd; }
.variant-badge { max-width: 145px; color: #bdb7cc; font-size: 10px; text-align: right; }

.architecture-label { display: block; margin-top: 20px; color: #a69eba; font-size: 11px; letter-spacing: .8px; }
.app-card h3 { margin: 5px 0 6px; font-size: 24px; letter-spacing: -.6px; }
.app-description { min-height: 52px; margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.app-meta { display: flex; gap: 9px; color: #d3cedf; font-size: 11px; }
.app-meta span { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .055); }
.compatibility-note { min-height: 0; margin: 10px 0 0; color: var(--amber); font-size: 11px; }

.download-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-height: 45px;
    margin-top: 16px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .055);
    font-size: 12px;
    font-weight: 660;
}

.download-button svg { width: 17px; height: 17px; }
.download-button span:nth-child(2) { flex: 1; }
.app-card.is-recommended .download-button { border-color: transparent; background: linear-gradient(100deg, #7559f0, #bb65ca); }

.install-help {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 36px;
    padding: 19px;
    border: 1px solid rgba(255, 197, 113, .18);
    border-radius: 18px;
    background: rgba(114, 80, 41, .11);
}

.help-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 203, 127, .13); color: var(--amber); font-size: 23px; }
.install-help h2 { margin: 0 0 5px; font-size: 16px; }
.install-help p { margin: 0; color: #beb4ab; font-size: 13px; line-height: 1.75; }
.install-help strong { color: #ffe3b8; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 33px; padding: 0 2px; }
.steps > div { display: flex; align-items: flex-start; gap: 10px; }
.steps > div > span { color: #8f79de; font-size: 13px; }
.steps p { margin: -1px 0 0; color: #c8c2d4; font-size: 12px; line-height: 1.75; }
.steps strong { color: var(--amber); }

.footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .075); color: #a19aac; font-size: 12px; }
.footer a:hover { color: #d4c9ff; }

@media (max-width: 720px) {
    .shell { width: min(560px, calc(100% - 28px)); }
    .topbar { min-height: 76px; }
    .secure-pill { padding: 8px 10px; font-size: 10px; }
    .hero { padding: 47px 0 36px; }
    h1 { font-size: 42px; letter-spacing: -1.8px; }
    .hero-copy { font-size: 14px; line-height: 1.8; }
    .device-panel { min-height: 104px; padding: 13px; gap: 10px; }
    .device-copy strong { font-size: 13px; }
    #device-detail { font-size: 11px; }
    .confidence-badge { font-size: 8px; }
    .section-heading h2 { font-size: 25px; }
    .app-grid { gap: 17px; }
    .app-card { flex-basis: 100%; min-height: auto; }
    .app-description { min-height: 0; }
    .recommended-ribbon { left: 22px; right: 22px; }
    .steps { grid-template-columns: 1fr; gap: 15px; }
    .steps p br { display: none; }
    .footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
