/* Ensure hidden fallback elements stay hidden */
[hidden] {
    display: none !important;
}
:root {
    color-scheme: dark;
    --background: #080f20;
    --text: #f5f7ff;
    --muted: #9aa9c2;
    --blue: #5688ff;
    --border: rgba(255, 255, 255, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.page-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.17;
}

.glow-one {
    top: -250px;
    left: -150px;
    background: #2867ff;
}

.glow-two {
    top: 20%;
    right: -200px;
    background: #874bff;
}

.glow-three {
    bottom: -350px;
    left: 30%;
    background: #007eaa;
}

.background-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.site-header {
    min-height: 91px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 65px;
    object-fit: contain;
}

.brand-fallback {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.header-label {
    color: #8294b2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero {
    padding: 20px 15px 20px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 27px;
    padding: 9px 16px;
    border: 1px solid rgba(86, 136, 255, 0.25);
    border-radius: 50px;
    background: rgba(86, 136, 255, 0.10);
    color: #9dbaff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6d9aff;
    box-shadow: 0 0 12px #6d9aff;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 23px;
    font-size: clamp(38px, 6vw, 47px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

.gradient-text {
    background: linear-gradient(100deg, #7eacff, #a98aff, #72d5ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 590px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.destinations {
    padding-bottom: 10px;
}

.section-heading {
    max-width: 1050px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.destination-count {
    color: #8496b5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.website-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.website-card {
    position: relative;
    min-height: 205px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    color: var(--text);
    text-decoration: none;
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.website-card::before {
    position: absolute;
    top: -100px;
    right: -90px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(86, 136, 255, .10);
    filter: blur(55px);
    content: "";
    transition: .4s ease;
}

.website-card:hover,
.website-card:focus-visible {
    transform: translateY(-7px);
    border-color: rgba(110, 155, 255, .55);
    background: linear-gradient(145deg, rgba(46,82,150,.25), rgba(255,255,255,.045));
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.website-card:hover::before,
.website-card:focus-visible::before {
    transform: scale(1.5);
    background: rgba(112, 133, 255, .3);
}

.card-top,
.card-bottom {
    position: relative;
    z-index: 1;
}

.card-top,
.country-identity,
.card-bottom {
    display: flex;
    align-items: center;
}

.card-top,
.card-bottom {
    justify-content: space-between;
    gap: 15px;
}

.country-identity {
    min-width: 0;
    gap: 15px;
}

.country-image-wrapper {
    width: 63px;
    height: 48px;
    flex: 0 0 63px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag {
    width: 58px;
    height: 39px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.country-logo {
    width: 63px;
    height: 48px;
    object-fit: contain;
}

.country-fallback {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: linear-gradient(135deg, #294e91, #604a9f);
    color: #b9ceff;
    font-size: 15px;
    font-weight: 800;
}

.country-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.country-name {
    margin-bottom: 5px;
    color: #92a5c4;
    font-size: 12px;
}

.website-name {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.market-tag {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(86,136,255,.2);
    border-radius: 30px;
    background: rgba(86,136,255,.13);
    color: #a6bcff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-description {
    color: #91a1bb;
    font-size: 13px;
}

.card-arrow {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(86,136,255,.13);
    color: #a8c0ff;
    font-size: 20px;
    transition: .3s ease;
}

.website-card:hover .card-arrow,
.website-card:focus-visible .card-arrow {
    transform: translateX(4px);
    background: #5688ff;
    color: #fff;
}

.bottom-info {
    max-width: 1050px;
    margin: 75px auto 0;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid var(--border);
}

.bottom-info h2 {
    margin: 0 0 7px;
    font-size: 16px;
}

.bottom-info p {
    max-width: 550px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.global-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a8baff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 22px 15px;
    border-top: 1px solid var(--border);
    color: #71819d;
    font-size: 12px;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 750px) {
    .hero {
        padding: 80px 10px 50px;
    }

    .website-grid {
        gap: 14px;
    }

    .website-card {
        padding: 21px;
    }

    .bottom-info {
        margin-top: 55px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 36px, 1180px);
    }

    .site-header {
        min-height: 75px;
    }

    .brand-logo {
        max-width: 150px;
        max-height: 50px;
    }

    .header-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero {
        padding: 75px 5px 42px;
    }

    .hero h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .eyebrow {
        font-size: 9px;
    }

    .section-heading {
        margin-bottom: 17px;
    }

    .website-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .website-card {
        min-height: 175px;
        padding: 21px;
    }

    .website-name {
        font-size: 17px;
    }

    .bottom-info {
        margin-top: 45px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   UPDATED NEON DESIGN
   Shared glow behind all destination cards + global glow
   ===================================================== */

/* Make hidden image fallbacks reliably stay hidden */
[hidden] {
    display: none !important;
}

/* Animated ambient background lighting */
.page-background {
    isolation: isolate;
}

.page-background .glow {
    opacity: 0.23;
    filter: blur(125px);
    animation: tiNeonFloat 15s ease-in-out infinite alternate;
    will-change: transform;
}

.page-background .glow-one {
    background: #176bff;
}

.page-background .glow-two {
    background: #923bff;
    animation-delay: -5s;
}

.page-background .glow-three {
    background: #00c8ff;
    animation-delay: -10s;
}

@keyframes tiNeonFloat {
    0% {
        transform: translate3d(-18px, -12px, 0) scale(1);
    }
    100% {
        transform: translate3d(24px, 28px, 0) scale(1.12);
    }
}

/* Shared neon aura behind the complete destination section */
.destinations {
    position: relative;
    isolation: isolate;
}

.destinations::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 12px;
    left: 50%;
    width: 88%;
    height: 90%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(
        110deg,
        rgba(0, 119, 255, 0.34),
        rgba(130, 55, 255, 0.31),
        rgba(0, 220, 255, 0.27)
    );
    filter: blur(105px);
    opacity: 0.82;
    pointer-events: none;
}

/* More polished destination cards */
.website-grid {
    position: relative;
    gap: 17px;
}

.website-card {
    min-height: 185px;
    padding: 23px 25px;
    border: 1px solid rgba(116, 153, 255, 0.25);
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(19, 34, 62, 0.88),
        rgba(10, 19, 37, 0.91)
    );
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.16),
        0 0 15px rgba(54, 111, 255, 0.07),
        inset 0 0 20px rgba(75, 110, 255, 0.025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

/* Keep the main glow shared; use only a small highlight on hover */
.website-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -100px;
    right: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(91, 126, 255, 0.20);
    filter: blur(65px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.website-card:hover,
.website-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(112, 157, 255, 0.75);
    background: linear-gradient(
        120deg,
        rgba(34, 58, 100, 0.94),
        rgba(15, 27, 51, 0.97)
    );
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(52, 125, 255, 0.25),
        0 0 35px rgba(52, 125, 255, 0.12),
        inset 0 0 20px rgba(80, 125, 255, 0.07);
}

.website-card:hover::before,
.website-card:focus-visible::before {
    opacity: 1;
}

.website-card:focus-visible {
    outline: 2px solid #48dfff;
    outline-offset: 4px;
}

/* Consistent image holders for flags and regional logos */
.country-image-wrapper {
    width: 66px;
    height: 55px;
    flex: 0 0 66px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
}

.country-flag {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 43px;
    border-radius: 5px;
    object-fit: cover;
}

.country-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Country initials fallback */
.country-fallback {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: linear-gradient(135deg, #416ed0, #7752c7);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Neon heading */
.gradient-text {
    background: linear-gradient(
        100deg,
        #65a5ff,
        #b47aff,
        #51e1ff,
        #65a5ff
    );
    background-size: 250% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(91, 132, 255, 0.25));
    animation: tiNeonText 8s linear infinite;
}

@keyframes tiNeonText {
    to {
        background-position: 250% center;
    }
}

.eyebrow {
    box-shadow:
        0 0 16px rgba(86, 136, 255, 0.13),
        inset 0 0 12px rgba(86, 136, 255, 0.07);
}

.eyebrow-dot {
    box-shadow:
        0 0 8px #6d9aff,
        0 0 17px rgba(109, 154, 255, 0.8);
}

.section-heading h2 {
    text-shadow: 0 0 15px rgba(102, 151, 255, 0.22);
}

.website-name {
    text-shadow: 0 0 12px rgba(115, 158, 255, 0.14);
}

.market-tag {
    box-shadow: 0 0 12px rgba(86, 136, 255, 0.12);
}

.card-arrow {
    border: 1px solid rgba(89, 135, 255, 0.16);
    box-shadow: 0 0 12px rgba(86, 136, 255, 0.12);
}

.website-card:hover .card-arrow,
.website-card:focus-visible .card-arrow {
    box-shadow:
        0 0 12px rgba(86, 136, 255, 0.65),
        0 0 25px rgba(86, 136, 255, 0.35);
}

.site-header {
    border-bottom-color: rgba(91, 137, 255, 0.18);
    box-shadow: 0 1px 15px rgba(58, 110, 255, 0.07);
}

.bottom-info {
    border-top-color: rgba(91, 137, 255, 0.16);
}

.global-label {
    text-shadow: 0 0 12px rgba(106, 153, 255, 0.35);
}

.site-footer {
    border-top-color: rgba(91, 137, 255, 0.16);
}

/* Responsive adjustments for the shared glow and image holders */
@media (max-width: 750px) {
    .destinations::before {
        width: 100%;
        filter: blur(85px);
    }
}

@media (max-width: 560px) {
    .website-card {
        min-height: 170px;
        padding: 19px;
    }

    .website-name {
        font-size: 16px;
    }

    .country-image-wrapper {
        width: 58px;
        height: 50px;
        flex-basis: 58px;
    }

    .card-description {
        font-size: 12px;
    }

    .destinations::before {
        width: 110%;
        height: 95%;
        filter: blur(75px);
        opacity: 0.7;
    }

    .bottom-info {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Accessibility: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .page-background .glow,
    .gradient-text {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
