/* ============================================================
   BBIQ app pages — shared showcase layer (app-showcase.css)
   Hero, platform cards and store badges for the four app landing
   pages (Store / Moda / Jewelry / Home). The sections below the
   hero live in app-sections.css.
   ONE component layer, recoloured by --accent / --accent-deep,
   which each page sets on its wrapper (.coin-lp / .trader-lp).
   Each app also gets its own background weave via its theme
   class, so the pages differ by more than hue.
   Rounded geometry — every box takes its corner from the --r-*
   scale below. main.css resets the whole site to 90°, so each
   radius here carries !important to beat it.
   ============================================================ */

.coin-lp, .trader-lp {
    --a-soft: color-mix(in srgb, var(--accent) 15%, transparent);
    --a-line: color-mix(in srgb, var(--accent) 26%, transparent);
    --a-ink: #060606;                                             /* text on accent fills */
    --a-text: color-mix(in srgb, var(--accent-deep) 82%, #000);   /* accent text on light */
    --r-xl: 28px;                                                 /* panels */
    --r-lg: 22px;                                                 /* cards */
    --r-md: 14px;                                                 /* rows, chips, icon tiles */
    --r-sm: 10px;                                                 /* small tiles */
}
.theme-store { --a-text: #9a7b00; }                               /* yellow needs a darker ink on cream */

/* ===================== HERO ===================== */
.as-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 9.5rem 0 5.5rem;
    border-bottom: 1px solid var(--a-line);
}
.as-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(820px 520px at 80% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
        radial-gradient(620px 420px at 0% 100%, color-mix(in srgb, var(--accent-deep) 12%, transparent), transparent 60%),
        linear-gradient(180deg, #060606 0%, #080809 55%, #050505 100%);
}
/* Per-app weave, faded out toward the copy side */
.as-hero-bg::after {
    content: ''; position: absolute; inset: 0; opacity: 0.55;
    --w: color-mix(in srgb, var(--accent) 16%, transparent);
    background-image: radial-gradient(var(--w) 1.2px, transparent 1.6px);          /* Store: shelf dots */
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at 78% 40%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 78% 40%, #000 0%, transparent 68%);
}
[dir="rtl"] .as-hero-bg { transform: scaleX(-1); }
.theme-moda .as-hero-bg::after {                                                   /* Moda: fabric twill */
    background-image: repeating-linear-gradient(135deg, var(--w) 0 1px, transparent 1px 16px);
    background-size: auto;
}
.theme-jewelry .as-hero-bg::after {                                                /* Jewelry: cut facets */
    background-image:
        repeating-linear-gradient(60deg, var(--w) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(-60deg, var(--w) 0 1px, transparent 1px 44px);
    background-size: auto;
}
.theme-home .as-hero-bg::after {                                                   /* Home: floor plan */
    background-image:
        linear-gradient(var(--w) 1px, transparent 1px),
        linear-gradient(90deg, var(--w) 1px, transparent 1px);
    background-size: 68px 68px;
}
.as-motif {
    position: absolute; z-index: -1; top: 50%; inset-inline-end: -7%;
    width: min(720px, 62vw); height: auto; transform: translateY(-50%);
    color: var(--accent); opacity: 0.16; pointer-events: none;
}

.as-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem; align-items: center;
}

/* ---------- Copy ---------- */
.as-app-id {
    display: inline-flex; align-items: center; gap: 0.85rem;
    padding: 0.45rem 1.15rem 0.45rem 0.45rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--a-line);
    border-radius: 999px !important;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
[dir="rtl"] .as-app-id { padding: 0.45rem 0.45rem 0.45rem 1.15rem; }
.as-app-id img {
    width: 48px; height: 48px; object-fit: cover;
    border: 1.5px solid var(--accent); box-shadow: 0 0 22px var(--a-soft);
}
.as-app-id-text { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.2; }
.as-app-id .n { font-size: 0.98rem; font-weight: 800; color: #fff; }
.as-app-id .t { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.as-hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 900; line-height: 1.03;
    letter-spacing: -0.035em; margin: 1.6rem 0 1.2rem;
}
/* Three-part headlines (BBIQ Store) step down a size so they stay within four lines */
.as-hero h1.is-long { font-size: clamp(2.2rem, 4.3vw, 3.5rem); line-height: 1.08; }
[dir="rtl"] .as-hero h1, [dir="rtl"] .as-hero h1.is-long { letter-spacing: 0; line-height: 1.25; }
.as-hero h1 .accent {
    display: block;
    background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 62%, #fff) 0%, var(--accent) 45%, var(--accent-deep) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.as-hero-desc { max-width: 560px; margin-bottom: 2rem; color: #b4b4b0; font-size: 1.08rem; line-height: 1.7; }

/* ---------- Store badges (Google Play · App Store · web version) ---------- */
/* Badges take a soft 16px corner, text buttons a full pill (like the header CTA). */
.as-stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.as-stores.center { justify-content: center; }
.store-badge {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 0.7rem;
    min-width: 176px; min-height: 62px; padding: 0.7rem 1.15rem; padding-inline-start: 1rem;
    background: #fff; color: #060606; border: 1.5px solid transparent;
    border-radius: 16px !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Light sweep across the badge on hover */
.store-badge::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.34) 50%, transparent 64%);
    transform: translateX(-130%); transition: transform 0.75s ease;
}
[dir="rtl"] .store-badge::after { transform: translateX(130%); }
.store-badge:hover::after { transform: translateX(130%); }
[dir="rtl"] .store-badge:hover::after { transform: translateX(-130%); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .b-text { display: flex; flex-direction: column; gap: 0.12rem; line-height: 1.1; text-align: start; white-space: nowrap; }
.store-badge .b-top { font-size: 0.63rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.8; }
.store-badge .b-main { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -18px var(--accent); }
.store-badge:focus-visible, .as-platform-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Google Play — the brand-coloured primary */
.store-badge.is-accent {
    color: var(--a-ink);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff) 0%, var(--accent) 52%, color-mix(in srgb, var(--accent) 88%, #000) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 34px -18px var(--accent);
}
.store-badge.is-accent:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 24px 46px -16px var(--accent); }

/* App Store — polished onyx with a lit edge that runs from white into the app accent */
.store-badge.is-onyx {
    color: #fff;
    background:
        linear-gradient(180deg, #303033 0%, #141415 48%, #050505 100%) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.22) 42%, var(--accent) 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 36px -20px #000,
                0 0 34px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.store-badge.is-onyx::before {                      /* glass highlight on the top half */
    content: ''; position: absolute; inset: 0 0 52% 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02));
}
.store-badge.is-onyx:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 24px 46px -20px #000,
                0 0 46px -8px color-mix(in srgb, var(--accent) 85%, transparent);
}

/* Web version — quiet glass */
.store-badge.is-outline {
    background: rgba(255, 255, 255, 0.05); color: #fff; border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.store-badge.is-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* Not released yet: same badge, the top line says so in the accent colour */
.store-badge.is-soon { cursor: default; }
.store-badge.is-soon .b-top { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 1; font-weight: 800; color: var(--accent); }
.store-badge.is-soon .b-top::before {
    content: ''; width: 6px; height: 6px; flex-shrink: 0; background: var(--accent);
    border-radius: 999px !important; animation: asPulse 2s ease-in-out infinite;
}
.store-badge.is-soon:hover { transform: none; }
.store-badge.is-soon:hover::after { transform: translateX(-130%); }
[dir="rtl"] .store-badge.is-soon:hover::after { transform: translateX(130%); }
[dir="rtl"] .store-badge .b-top, [dir="rtl"] .store-badge .b-main,
[dir="rtl"] .as-app-id .t, [dir="rtl"] .as-status { letter-spacing: 0; }

/* Page buttons (catalogue / trader CTAs) follow the same rounded language */
.coin-lp .btn-primary, .coin-lp .btn-secondary,
.trader-lp .btn-primary, .trader-lp .btn-secondary {
    padding: 0.95rem 1.9rem; border-radius: 999px !important;
}

.as-ios-hint {
    display: flex; align-items: flex-start; gap: 0.6rem; max-width: 560px;
    margin-top: 1.1rem; font-size: 0.88rem; line-height: 1.55; color: #b4b4b0;
}
.as-ios-hint svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.12rem; color: var(--accent); }
.as-ios-hint a { color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--a-line); }
.as-ios-hint a:hover { border-bottom-color: var(--accent); }

.as-points { display: flex; flex-wrap: wrap; gap: 0.7rem 1.3rem; margin-top: 2rem; }
.as-point { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: #cfcfca; }
.as-point .tick {
    width: 19px; height: 19px; display: inline-grid; place-items: center;
    background: var(--a-soft); color: var(--accent); font-size: 0.7rem; font-weight: 800;
    border-radius: 999px !important;
}

/* ---------- Visual: three live screens ---------- */
.as-hero-visual { position: relative; height: 580px; display: grid; place-items: center; }
.as-stage {
    position: absolute; width: 270px; height: 76%;
    background: linear-gradient(160deg, var(--accent), var(--accent-deep));
    opacity: 0.2; transform: rotate(9deg); border-radius: 40px !important;
}
/* The hairline round the frame is a shadow ring, so it follows the corner in every browser */
.as-phone {
    position: absolute; width: 232px; aspect-ratio: 1 / 2; overflow: hidden;
    background: #0b0b0a; border: 7px solid #131311; border-radius: 34px !important;
    box-shadow: 0 0 0 1px var(--a-line), 0 44px 80px -34px #000, 0 0 70px -26px var(--accent);
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease;
}
.as-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.as-phone::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 38%);
}
.as-phone.is-center { z-index: 3; animation: asFloat 7s ease-in-out infinite; }
.as-phone.is-left  { z-index: 1; transform: translate(-60%, 5%) rotate(-8deg) scale(0.84); filter: brightness(0.7); }
.as-phone.is-right { z-index: 2; transform: translate(60%, 5%) rotate(8deg) scale(0.84); filter: brightness(0.7); }
.as-hero-visual:hover .as-phone.is-left  { transform: translate(-70%, 3%) rotate(-10deg) scale(0.86); filter: none; }
.as-hero-visual:hover .as-phone.is-right { transform: translate(70%, 3%) rotate(10deg) scale(0.86); filter: none; }
@keyframes asFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.as-chip {
    position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 0.65rem;
    max-width: 230px; padding: 0.6rem 0.95rem 0.6rem 0.6rem;
    background: rgba(12, 12, 10, 0.88); border: 1px solid var(--a-line);
    border-radius: var(--r-md) !important;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
    font-size: 0.84rem; font-weight: 700; line-height: 1.3; color: #fff;
}
[dir="rtl"] .as-chip { padding: 0.6rem 0.6rem 0.6rem 0.95rem; }
.as-chip .ic {
    width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--accent); color: var(--a-ink); border-radius: var(--r-sm) !important;
}
.as-chip .ic svg { width: 20px; height: 20px; }
.as-chip.is-top { top: 0; inset-inline-start: 0; animation: asFloat 5.5s ease-in-out infinite; }
.as-chip.is-bottom { bottom: 0; inset-inline-end: 0; animation: asFloat 6.5s ease-in-out infinite reverse; }

/* ===================== PLATFORM CARDS (closing CTA) ===================== */
.as-platforms {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
    margin-top: 3rem; text-align: start;
}
.as-platform {
    display: flex; flex-direction: column; gap: 0.75rem; padding: 1.8rem 1.6rem;
    background: rgba(12, 12, 10, 0.88); border: 1px solid #1f1f1b; border-radius: var(--r-lg) !important;
    transition: transform 0.22s ease, border-color 0.22s ease;
}
.as-platform:hover { transform: translateY(-5px); border-color: var(--a-line); }
.as-platform.is-soon { border: 1px dashed var(--a-line); }
.as-platform-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.as-platform-ic { width: 48px; height: 48px; display: grid; place-items: center; background: var(--a-soft); color: var(--accent); border-radius: var(--r-md) !important; }
.as-platform-ic svg { width: 24px; height: 24px; }
.as-status {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.65rem;
    border: 1px solid var(--a-line); color: var(--accent); border-radius: 999px !important;
    font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.as-status.is-live::before {
    content: ''; width: 6px; height: 6px; background: var(--accent);
    border-radius: 999px !important; animation: asPulse 2s ease-in-out infinite;
}
.as-status.is-soon { border-style: dashed; border-color: rgba(255, 255, 255, 0.3); color: #d8d8d2; }
@keyframes asPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.as-platform h3 { font-size: 1.22rem; font-weight: 800; color: #fff; }
.as-platform p { flex: 1; margin-bottom: 0.6rem; font-size: 0.92rem; line-height: 1.65; color: #9a9a92; }
.as-platform-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; text-align: center;
    min-height: 54px; padding: 0.9rem 1.4rem; font-size: 0.95rem; font-weight: 800;
    background: var(--accent); color: var(--a-ink); border: 1.5px solid var(--accent);
    border-radius: 999px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.as-platform-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.as-platform-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px var(--accent); }
.as-platform-btn.is-onyx {
    color: #fff; border-color: transparent;
    background:
        linear-gradient(180deg, #303033 0%, #141415 48%, #050505 100%) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.22) 42%, var(--accent) 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 30px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.as-platform-btn.is-onyx:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 40px -8px color-mix(in srgb, var(--accent) 85%, transparent); }
.as-platform-btn.is-ghost { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.as-platform-btn.is-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .as-hero { padding: 7.5rem 0 3.5rem; }
    .as-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .as-hero-visual { height: 500px; }
    .as-phone { width: 204px; }
    .as-motif { top: auto; bottom: 0; transform: none; width: 90vw; opacity: 0.1; }
    .as-chip.is-top { inset-inline-start: 4%; }
    .as-chip.is-bottom { inset-inline-end: 4%; }
    .as-platforms { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 640px) {
    .coin-lp, .trader-lp { --r-xl: 22px; --r-lg: 18px; }
    .as-hero { padding-top: 6.5rem; }
    .as-hero-desc { font-size: 1rem; }
    .as-stores { flex-direction: column; }
    .as-stores .store-badge { width: 100%; justify-content: center; }
    .as-hero-visual { height: 430px; }
    .as-phone { width: 172px; border-width: 5px; border-radius: 26px !important; }
    .as-phone.is-left  { transform: translate(-54%, 5%) rotate(-8deg) scale(0.84); }
    .as-phone.is-right { transform: translate(54%, 5%) rotate(8deg) scale(0.84); }
    .as-chip { font-size: 0.76rem; max-width: 180px; }
    .as-chip .ic { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .as-phone.is-center, .as-chip, .as-status.is-live::before, .store-badge.is-soon .b-top::before { animation: none; }
    .as-phone, .store-badge, .store-badge::after, .as-platform, .as-platform-btn { transition: none; }
}
