:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(0, 0, 0, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --accent: #8b5cf6;
    --android-color: #10b981;
    --windows-color: #0ea5e9;
    --whatsapp-color: #25d366;
    --border: rgba(255, 255, 255, 0.1);
    --focus: #93c5fd;

    /* Space on the left and right of the page: 16px on phones, up to 32px on big screens */
    --gutter: clamp(16px, 4vw, 32px);
    --content: 1200px;
    --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body {
        overflow-x: clip;
    }
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

strong {
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
    flex-shrink: 0;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Background Effects ---------- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(clamp(60px, 10vw, 100px));
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: clamp(260px, 45vw, 500px);
    height: clamp(260px, 45vw, 500px);
    background: var(--primary);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    background: var(--accent);
}

/* The moving shapes only run on bigger screens: on phones they cost battery and smoothness. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .shape {
        animation: float 10s infinite ease-in-out alternate;
    }

    .shape-2 {
        animation-delay: -5s;
    }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* ---------- Navigation ---------- */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.glass-nav.is-scrolled {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 2 * var(--gutter), var(--content));
    min-height: var(--header-h);
    margin-inline: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: clamp(20px, 1vw + 16px, 24px);
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 30px);
}

.site-nav a:not(.btn-primary-small) {
    padding: 8px 0;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.site-nav a:not(.btn-primary-small):hover {
    color: var(--primary);
}

/* The page you are on */
.site-nav a[aria-current="page"]:not(.btn-primary-small) {
    position: relative;
    color: var(--primary-light);
}

@media (min-width: 880px) {
    .site-nav a[aria-current="page"]:not(.btn-primary-small)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }
}

.menu-toggle {
    display: none;
}

/* Phones and small tablets: the links fold into a menu button. */
@media (max-width: 879.98px) {
    .js .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        cursor: pointer;
    }

    .menu-bar {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--text-main);
        transition: transform 0.3s, opacity 0.3s;
    }

    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 12px var(--gutter) 20px;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .js .site-nav a:not(.btn-primary-small) {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .js .site-nav a:not(.btn-primary-small):hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .js .site-nav a[aria-current="page"]:not(.btn-primary-small) {
        background: rgba(59, 130, 246, 0.12);
    }

    .js .site-nav .btn-primary-small {
        margin-top: 8px;
        min-height: 48px;
    }

    /* Without JavaScript the links simply wrap under the logo. */
    html:not(.js) .nav-inner {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    html:not(.js) .site-nav {
        flex-wrap: wrap;
        gap: 4px 18px;
    }
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-primary-small,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.btn-primary,
.btn-primary-small {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.btn-primary-small {
    min-height: 42px;
    padding: 10px 20px;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

@media (hover: hover) {
    .btn-primary:hover,
    .btn-primary-small:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    }

    .btn-outline:hover {
        border-color: var(--primary);
        background: rgba(59, 130, 246, 0.12);
    }
}

/* ---------- Layout & Typography ---------- */
main {
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
}

/* Soft fade-in when a page opens */
@media (prefers-reduced-motion: no-preference) {
    main {
        animation: page-in 0.5s ease-out both;
    }
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Page header (Apps, Buy, Contact) ---------- */
.page-hero {
    max-width: 760px;
    margin-inline: auto;
    padding-top: clamp(44px, 8vw, 88px);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 3.5vw + 18px, 54px);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.page-hero p {
    color: var(--text-muted);
    font-size: clamp(17px, 0.5vw + 15px, 19px);
}

.page-hero + .section {
    padding-top: clamp(28px, 5vw, 56px);
}

.section {
    padding-block: clamp(48px, 8vw, 96px);
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-title {
    margin-bottom: clamp(28px, 5vw, 50px);
    font-size: clamp(28px, 2vw + 20px, 40px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Hero Section ---------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(56px, 11vw, 120px) clamp(16px, 3vw, 32px);
    text-align: center;
}

.hero-content {
    max-width: 820px;
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    font-size: clamp(14px, 0.4vw + 12.5px, 16px);
    font-weight: 600;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(36px, 5.5vw + 14px, 64px);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.hero p {
    max-width: 600px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    color: var(--text-muted);
    font-size: clamp(17px, 0.6vw + 14.5px, 20px);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: clamp(28px, 4vw, 44px);
    list-style: none;
    color: var(--text-soft);
    font-weight: 600;
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-points .icon {
    color: var(--android-color);
}

/* ---------- Glass Cards ---------- */
.glass-card {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: transform 0.3s, border-color 0.3s;
}

@media (hover: hover) {
    .product-card:hover,
    .contact-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* ---------- Products Grid ---------- */
.product-grid {
    display: grid;
    /* As many 300px columns as fit; one full-width column on phones. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 3vw, 30px);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
}

.product-icon,
.contact-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-light);
}

.product-icon .icon,
.contact-icon .icon {
    width: 30px;
    height: 30px;
}

.product-icon.android {
    background: rgba(16, 185, 129, 0.12);
    color: var(--android-color);
}

.product-icon.windows {
    background: rgba(14, 165, 233, 0.12);
    color: var(--windows-color);
}

.product-card h2,
.product-card h3 {
    margin-bottom: 10px;
    padding-right: 4px;
    font-size: clamp(21px, 0.8vw + 17px, 24px);
    line-height: 1.3;
}

.platform-badge {
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.platform-badge.android {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: var(--android-color);
}

.platform-badge.windows {
    border: 1px solid rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.1);
    color: var(--windows-color);
}

.product-desc {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.price {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: clamp(28px, 1vw + 24px, 32px);
    font-weight: 800;
}

.price span {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
}

.soon-badge {
    position: absolute;
    top: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    padding: 4px 10px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Side by side when both fit on one line, otherwise one under the other (never a broken label). */
.product-actions > * {
    flex: 1 1 0;
    min-width: max-content;
    white-space: nowrap;
}

/* Narrow cards: every card stacks its buttons, so prices and buttons line up across the row. */
@container (max-width: 270px) {
    .product-actions > * {
        flex-basis: 100%;
    }
}

.btn-download,
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-download {
    background: rgba(255, 255, 255, 0.1);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-buy {
    background: var(--primary);
}

.btn-buy:hover {
    background: var(--primary-hover);
}

.btn-buy.btn-soft {
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
}

.btn-buy.btn-soft:hover {
    background: rgba(59, 130, 246, 0.28);
}

.btn-download.is-disabled {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: not-allowed;
}

.product-meta {
    margin: -6px 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Payment Form ---------- */
.payment-card {
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    max-width: 1000px;
    margin-inline: auto;
}

/* Laptops and big tablets: instructions on the left, form on the right. */
@media (min-width: 900px) {
    .payment-card {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.payment-instructions {
    padding: clamp(18px, 3vw, 24px);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
}

.payment-instructions h2,
.payment-instructions h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.steps {
    display: grid;
    gap: 16px;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-left: 44px;
    color: var(--text-soft);
    counter-increment: step;
}

.steps a {
    color: var(--primary-light);
    font-weight: 600;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: -1px;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.bkash-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
}

.bkash-number {
    color: var(--primary-light);
    font-size: clamp(20px, 1vw + 16px, 24px);
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.amount-line {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.amount-line strong {
    color: var(--text-main);
    font-size: 18px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-weight: 600;
}

.form-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-input);
    color: #fff;
    /* 16px stops iPhones from zooming in when a field is tapped. */
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

select.form-input {
    padding-right: 48px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    cursor: pointer;
}

.form-input option {
    background: var(--bg-dark);
    color: #fff;
}

.form-input option:disabled {
    color: #64748b;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.w-100 {
    width: 100%;
    margin-top: 6px;
    border-radius: 12px;
}

.form-note {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 3vw, 30px);
}

.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-card h2,
.contact-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.contact-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.contact-card p strong {
    color: var(--text-main);
}

.contact-card .btn-primary,
.contact-card .btn-download {
    width: 100%;
    border-radius: 12px;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: var(--whatsapp-color);
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: clamp(40px, 8vw, 80px);
    padding: clamp(32px, 5vw, 48px) var(--gutter) max(32px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(0, 0, 0, 0.2));
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(100%, var(--content));
    margin-inline: auto;
}

.logo-small {
    color: var(--text-main);
    font-size: 22px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.logo-small:hover {
    opacity: 1;
}

.footer-inner p {
    font-size: 15px;
    letter-spacing: 0.2px;
}

/* ---------- Toast (small message at the bottom) ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 300;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

/* Phones */
@media (max-width: 599.98px) {
    .cta-group > a {
        flex: 1 1 100%;
    }

    .hero-points {
        flex-direction: column;
        align-items: center;
    }

    /* Plain cards scroll more smoothly on budget phones than blurred glass. */
    .glass-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(30, 41, 59, 0.88);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

/* Very small phones (320px wide) */
@media (max-width: 359.98px) {
    .logo {
        font-size: 19px;
        letter-spacing: 0.5px;
    }

    .bkash-box .btn-copy {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* Phones turned sideways: keep the hero short */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-block: 40px 24px;
    }
}

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