/* =====================================================================
   AFRIDOM.NET v2 preview: products-first hero + IT band
   Loaded after afridom-refresh.css. New "px-" and "it-" classes only.
   Game palette taken from AfriSort itself (midnight navy, gold, and its
   essence colors), pushed brighter: blue, yellow, red, pink, purple.
   ===================================================================== */

@font-face { font-family: "AfriSort Serif"; src: local("Georgia Bold"), local("Georgia-Bold"), url("../fonts/brand/gelasio-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AfriSort Serif"; src: local("Georgia Italic"), local("Georgia-Italic"), url("../fonts/brand/gelasio-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Yeseva One"; src: url("../fonts/brand/yeseva-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }

:root {
    --px-night: #0a1030;
    --px-night-2: #141a46;
    --px-gold: #ffc83d;
    --px-gold-soft: #f5d48a;
    --px-blue: #3aa0ff;
    --px-red: #ff4f6d;
    --px-pink: #ff5fb4;
    --px-purple: #a65bff;
    --px-green: #4cd38a;
    --px-mist: #c9d3ee;
}

/* ---------------- hero shell ---------------- */
.px-hero {
    position: relative; overflow: hidden; color: var(--px-mist);
    padding: 150px 0 90px; /* room for the template's fixed header on desktop */
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(166, 91, 255, .22), transparent 60%),
        radial-gradient(700px 500px at 5% 95%, rgba(58, 160, 255, .18), transparent 60%),
        linear-gradient(180deg, #0c1336 0%, var(--px-night) 100%);
}
/* starfield dots, as in the game's own backgrounds */
.px-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px);
    background-size: 46px 46px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.px-hero .container { position: relative; }
.px-hero p { color: inherit; }
.px-hero h1, .px-hero h2 { color: #fff; }

.px-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.px-intro > div { max-width: 700px; }
.px-intro__kicker { color: var(--px-gold-soft) !important; font-weight: 700; margin: 0 0 12px; }
.px-intro__title { font-size: 48px; line-height: 1.1; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.015em; }
.px-intro__lead { font-size: 19px; line-height: 1.6; margin: 0; max-width: 640px; }
.px-intro__alt {
    flex: none; display: block; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18);
    color: var(--px-mist); background: rgba(255, 255, 255, .04); transition: border-color .2s, background-color .2s;
}
.px-intro__alt span { display: block; font-size: 14px; }
.px-intro__alt strong { display: block; color: #fff; font-size: 16px; }
.px-intro__alt:hover { border-color: var(--ad-blue); background: rgba(52, 152, 219, .12); color: var(--px-mist); }

/* ---------------- product grid ---------------- */
.px-grid { display: grid; grid-template-columns: 7fr 5fr; grid-auto-rows: auto; gap: 22px; }
.px-afrisort { grid-row: 1 / span 3; }

/* ---------------- AfriSort flagship ---------------- */
.px-afrisort {
    position: relative; overflow: hidden; border-radius: 24px; isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        radial-gradient(420px 320px at 78% 22%, rgba(255, 95, 180, .30), transparent 70%),
        radial-gradient(460px 360px at 70% 95%, rgba(58, 160, 255, .30), transparent 70%),
        radial-gradient(380px 300px at 8% 10%, rgba(255, 200, 61, .14), transparent 70%),
        linear-gradient(160deg, #1a1f5a 0%, #10154a 45%, #0b0f33 100%);
    display: grid; grid-template-columns: 1.08fr .92fr; min-height: 600px;
    box-shadow: 0 30px 80px rgba(3, 6, 25, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.px-afrisort__glow { position: absolute; inset: auto -10% -30% 30%; height: 60%; background: radial-gradient(closest-side, rgba(166, 91, 255, .35), transparent); filter: blur(10px); z-index: -1; }
.px-afrisort__copy { padding: 38px 0 36px 38px; display: flex; flex-direction: column; }
.px-flag { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--px-gold-soft) !important; margin: 0 0 14px; }
.px-afrisort__logo {
    font-family: "AfriSort Serif", Georgia, serif; font-weight: 700; font-size: 60px; line-height: 1; margin: 0 0 10px;
    background: linear-gradient(180deg, #fff6d8 0%, #ffd56e 55%, #e9a93a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
    filter: drop-shadow(0 0 18px rgba(255, 200, 61, .35));
}
.px-afrisort__logo span { display: block; font-size: 30px; font-weight: 700; margin-top: 6px; }
.px-afrisort__tag { font-family: "AfriSort Serif", Georgia, serif; font-style: italic; font-size: 19px; color: #ffe2a1 !important; margin: 0 0 14px; }
.px-afrisort__desc { font-size: 17px; line-height: 1.6; margin: 0 0 20px; color: #dbe2f7 !important; max-width: 360px; }

.px-kingdoms { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 380px; }
.px-kingdoms li {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #eef2ff; font-size: 14px; font-weight: 700;
}
.px-kingdoms li span { font-size: 14px; }
.px-kingdoms li:nth-child(1) span { color: var(--px-gold); }
.px-kingdoms li:nth-child(2) span { color: var(--px-blue); }
.px-kingdoms li:nth-child(3) span { color: var(--px-red); }
.px-kingdoms li:nth-child(4) span { color: var(--px-purple); }
.px-kingdoms li:nth-child(5) span { color: var(--px-pink); }

.px-afrisort__cta { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.px-play {
    display: inline-block; padding: 17px 38px; border-radius: 999px; font-size: 19px; font-weight: 700; letter-spacing: .01em;
    color: #2b1700 !important; background: linear-gradient(180deg, #ffe9a6 0%, #ffc83d 55%, #f0a823 100%);
    box-shadow: 0 0 0 3px rgba(255, 200, 61, .25), 0 10px 30px rgba(255, 170, 40, .45), inset 0 -3px 0 rgba(160, 90, 0, .35);
    transition: transform .15s ease, box-shadow .2s ease;
    animation: px-breathe 3.2s ease-in-out infinite;
}
.px-play:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 200, 61, .35), 0 14px 36px rgba(255, 170, 40, .6), inset 0 -3px 0 rgba(160, 90, 0, .35); color: #2b1700; }
.px-play:active { transform: translateY(1px); }
.px-afrisort__note { font-size: 14px; color: #aeb9dc !important; }

/* art column: real gameplay screenshot in a phone, original vessel artwork in front */
.px-afrisort__art { position: relative; }
.px-phone {
    position: absolute; top: 40px; right: 36px; width: 236px; margin: 0; border-radius: 34px; padding: 8px; transform: rotate(5deg);
    background: linear-gradient(160deg, #2a3170, #0a0e2a); border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 40px rgba(255, 95, 180, .35), 0 0 80px rgba(58, 160, 255, .25), 0 30px 60px rgba(0, 0, 0, .5);
}
.px-phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.px-vessels { position: absolute; left: -6px; bottom: 34px; width: 300px; height: auto; overflow: visible; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.px-v { animation: px-bob 4.8s ease-in-out infinite; transform-box: fill-box; }
.px-v2 { animation-delay: -1.2s; } .px-v3 { animation-delay: -2.1s; } .px-v4 { animation-delay: -3s; } .px-v5 { animation-delay: -3.8s; }
.px-bubble { animation: px-rise 3.6s ease-in infinite; }
.px-bubble--late { animation-delay: -1.8s; }

@keyframes px-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes px-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 100% { transform: translateY(-130px); opacity: 0; } }
@keyframes px-breathe {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 200, 61, .25), 0 10px 30px rgba(255, 170, 40, .40), inset 0 -3px 0 rgba(160, 90, 0, .35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 200, 61, .18), 0 10px 40px rgba(255, 170, 40, .65), inset 0 -3px 0 rgba(160, 90, 0, .35); }
}

/* ---------------- secondary product cards ---------------- */
.px-card {
    position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: center;
    padding: 22px 24px 22px 22px; border-radius: 18px;
    background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .13);
}
.px-card h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 6px; }
.px-card__type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--px-gold-soft) !important; }
.px-card__desc { font-size: 15px; line-height: 1.55; margin: 0 0 8px; color: #d5dcf1 !important; }
.px-card__state { font-size: 13px; margin: 0; color: #9eabd2 !important; }
.px-card__link { font-size: 15px; font-weight: 700; color: #fff; border-bottom: 2px solid rgba(255, 255, 255, .3); padding-bottom: 1px; }
.px-card__link:hover { color: #fff; border-color: var(--ad-blue); }

/* status pills */
.px-live, .px-soon, .px-testing {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.px-live { background: rgba(76, 211, 138, .14); color: #8ff0bb; }
.px-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--px-green); box-shadow: 0 0 8px var(--px-green); }
.px-soon { background: linear-gradient(90deg, rgba(255, 95, 180, .25), rgba(166, 91, 255, .25)); color: #ffd1ea; }
.px-testing { background: rgba(217, 154, 30, .18); color: #ffd98a; }

/* AfriDama: real board artwork + its real logotype colors */
.px-afridama { overflow: hidden; }
.px-afridama__board { width: 116px; height: 116px; border-radius: 12px; transform: rotate(-5deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15); display: block; }
.px-afridama__logo { font-family: "Yeseva One", Georgia, serif; font-weight: 400 !important; font-size: 30px !important; letter-spacing: .01em; }
.px-afridama__logo span { color: #f0c35a; }

/* community cards: professional, with a quiet cultural accent strip */
.px-community { padding-left: 28px; }
.px-community::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 4px 4px 0; }
.px-chad::before { background: linear-gradient(180deg, #4c63d9 0 33%, #d99a1e 33% 66%, #c85a3c 66% 100%); }   /* Chad Connect: indigo, millet, laterite */
.px-ethiopia::before { background: linear-gradient(180deg, #2f7a52 0 33%, #e3b86c 33% 66%, #c4473a 66% 100%); } /* Ethiopian Diaspora Connect: green, gold, red */

/* option A: clean emblem */
.px-emblem { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; justify-self: center; }
.px-emblem--chad { background: #27358f; color: #ffcf6b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 10px 24px rgba(39, 53, 143, .45); }
.px-emblem--ethiopia { background: #24493b; color: #e9c27a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 10px 24px rgba(36, 73, 59, .45); }

/* option B: imagery */
.px-media { width: 116px; height: 96px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 22px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .15); }
.px-media svg { display: block; width: 100%; height: 100%; }
.px-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------------- IT band (existing banner photo + existing slogan) ---------------- */
.it-band { position: relative; background-size: cover; background-position: center 40%; padding: 90px 0; }
.it-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 50, 74, .95) 0%, rgba(20, 50, 74, .85) 45%, rgba(20, 50, 74, .35) 100%); }
.it-band .container { position: relative; }
.it-band__kicker { color: #9fd0f4 !important; font-weight: 700; margin: 0 0 10px; }
.it-band__title { color: #fff !important; font-size: 42px; line-height: 1.12; font-weight: 700; margin: 0 0 14px; max-width: 620px; }
.it-band__lead { color: #dce8f1 !important; font-size: 19px; margin: 0 0 28px; max-width: 540px; }
.it-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* services follow the band directly */
.it-band + .ad-services { padding-top: 70px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1199px) {
    .px-afrisort { grid-template-columns: 1fr .85fr; }
    .px-afrisort__logo { font-size: 52px; }
    .px-phone { width: 210px; right: 24px; }
    .px-vessels { width: 260px; left: -4px; }
}
@media (max-width: 991px) {
    .px-hero { padding: 64px 0 64px; } /* header is not fixed below 992px */
    .px-intro { flex-direction: column; align-items: flex-start; gap: 22px; }
    .px-intro__title { font-size: 40px; }
    .px-grid { grid-template-columns: 1fr 1fr; }
    .px-afrisort { grid-column: 1 / -1; grid-row: auto; }
    .px-afridama { grid-column: 1 / -1; }
    .it-band__title { font-size: 36px; }
}
@media (max-width: 767px) {
    .px-hero { padding: 48px 0 56px; }
    .px-intro { margin-bottom: 28px; }
    .px-intro__title { font-size: 32px; }
    .px-intro__lead { font-size: 17px; }
    .px-intro__alt { width: 100%; }
    .px-grid { grid-template-columns: 1fr; gap: 16px; }
    .px-afrisort { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
    .px-afrisort__copy { padding: 28px 22px 8px; }
    .px-afrisort__logo { font-size: 48px; }
    .px-afrisort__logo span { font-size: 25px; }
    .px-afrisort__art { order: -1; height: 330px; }
    .px-phone { width: 168px; top: 26px; right: 22px; border-radius: 26px; padding: 6px; }
    .px-phone img { border-radius: 21px; }
    .px-vessels { width: 250px; left: 10px; bottom: 6px; }
    .px-afrisort__cta { padding-bottom: 24px; align-items: stretch; }
    .px-play { text-align: center; }
    .px-card { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
    .px-community { padding-left: 22px; }
    .px-afridama__board { width: 84px; height: 84px; }
    .px-emblem { width: 60px; height: 60px; font-size: 24px; border-radius: 16px; }
    .px-media { width: 84px; height: 76px; }
    .it-band { padding: 60px 0; }
    .it-band::before { background: linear-gradient(180deg, rgba(20, 50, 74, .9), rgba(20, 50, 74, .92)); }
    .it-band__title { font-size: 30px; }
    .it-band__actions .ad-btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .px-v, .px-bubble, .px-play { animation: none !important; }
}
.px-vessels { z-index: 2; }
@media (max-width: 767px) { .px-vessels { width: 220px; left: 6px; bottom: 10px; } .px-phone { right: 16px; } }

/* ---------------- v3: brighter, glowing vessels ---------------- */
.px-v1 { filter: drop-shadow(0 0 10px rgba(30, 150, 255, .85)) drop-shadow(0 0 22px rgba(30, 150, 255, .45)); }
.px-v2 { filter: drop-shadow(0 0 10px rgba(255, 205, 30, .80)) drop-shadow(0 0 22px rgba(255, 190, 0, .40)); }
.px-v3 { filter: drop-shadow(0 0 12px rgba(255, 40, 85, .90)) drop-shadow(0 0 26px rgba(255, 200, 61, .45)); }
.px-v4 { filter: drop-shadow(0 0 10px rgba(30, 150, 255, .85)) drop-shadow(0 0 22px rgba(30, 150, 255, .45)); }
.px-v5 { filter: drop-shadow(0 0 10px rgba(255, 60, 160, .80)) drop-shadow(0 0 22px rgba(166, 91, 255, .40)); }
.px-vessels { filter: none; }
/* colored light pooling under the vessels */
.px-afrisort__art::after {
    content: ""; position: absolute; left: -20px; right: 10px; bottom: 0; height: 170px; z-index: 1; pointer-events: none;
    background:
        radial-gradient(90px 70px at 15% 80%, rgba(30, 150, 255, .45), transparent 70%),
        radial-gradient(90px 70px at 40% 85%, rgba(255, 205, 30, .40), transparent 70%),
        radial-gradient(90px 70px at 62% 80%, rgba(255, 40, 85, .45), transparent 70%),
        radial-gradient(90px 70px at 88% 85%, rgba(255, 60, 160, .35), transparent 70%);
    filter: blur(6px);
}
