:root {
    --green-950: #052615;
    --green-900: #07351e;
    --green-800: #0a4c2a;
    --green-700: #0a6638;
    --orange-500: #f97316;
    --orange-300: #fdba74;
    --white: #ffffff;
    --mist: rgba(255, 255, 255, 0.78);
    --muted: rgba(255, 255, 255, 0.68);
    --glass: rgba(255, 255, 255, 0.12);
    --glass-strong: rgba(255, 255, 255, 0.18);
    --border: rgba(255, 255, 255, 0.22);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    --radius: 8px;
    --font-stack: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--font-stack);
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.22), transparent 34%),
        linear-gradient(155deg, var(--green-950) 0%, var(--green-900) 45%, var(--green-700) 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

a {
    color: inherit;
}

a:focus-visible,
.country-card__cta--disabled:focus-visible {
    outline: 3px solid var(--orange-300);
    outline-offset: 4px;
}

.selector-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.selector-page__ambient {
    position: fixed;
    z-index: -2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    filter: blur(34px);
    pointer-events: none;
    transform: rotate(-12deg);
}

.selector-page__ambient--primary {
    top: -10rem;
    right: -12rem;
    width: 34rem;
    height: 18rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(10, 102, 56, 0.05));
}

.selector-page__ambient--accent {
    bottom: -9rem;
    left: -13rem;
    width: 38rem;
    height: 20rem;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.34), rgba(255, 255, 255, 0.05));
}

.selector-shell {
    width: min(1080px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 20px;
    display: flex;
    flex-direction: column;
}

.selector-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.selector-brand__logo {
    display: block;
    width: clamp(128px, 16vw, 168px);
    height: auto;
}

.selector-brand__mark {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--mist);
    font-size: 0.8rem;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.selector-hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
    gap: clamp(28px, 4.8vw, 58px);
    align-items: center;
    padding: clamp(34px, 6vw, 72px) 0;
}

.selector-hero__eyebrow {
    margin: 0 0 14px;
    color: var(--orange-300);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.selector-hero__title {
    max-width: 11ch;
    margin: 0;
    color: var(--white);
    font-size: clamp(2.72rem, 5.8vw, 4.9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.selector-hero__subtitle {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--mist);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.65;
}

.country-grid {
    display: grid;
    gap: 16px;
}

.country-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 262px;
    padding: clamp(20px, 3vw, 26px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, var(--glass-strong), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.country-card::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 42%);
    opacity: 0.72;
}

.country-card--active {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.country-card--active:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.58);
    background-color: rgba(255, 255, 255, 0.14);
}

.country-card--disabled {
    color: rgba(255, 255, 255, 0.74);
}

.country-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.country-card__marker {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--green-950);
    font-size: 0.94rem;
    font-weight: 700;
    background: var(--white);
}

.country-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.country-card__badge--available {
    color: #4b2504;
    background: var(--orange-300);
}

.country-card__badge--soon {
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.14);
}

.country-card__body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}

.country-card__title {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.45rem, 3.4vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
}

.country-card__domain {
    margin: 12px 0 0;
    color: var(--orange-300);
    font-size: 1rem;
    font-weight: 700;
}

.country-card__description {
    max-width: 33rem;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.58;
}

.country-card__cta {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-top: clamp(16px, 2vw, 22px);
    padding: 12px 16px;
    border: 1px solid rgba(249, 115, 22, 0.7);
    border-radius: var(--radius);
    color: #361500;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    background: var(--orange-500);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.18);
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease;
}

.country-card__cta:hover {
    transform: translateY(-1px);
    border-color: #063f24;
    color: var(--white);
    background: #063f24;
    box-shadow: 0 10px 22px rgba(6, 63, 36, 0.22);
}

.country-card__cta--disabled {
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    cursor: default;
}

.country-card__cta--disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.selector-footer {
    padding: 0 0 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

.selector-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .selector-shell {
        width: min(100% - 24px, 620px);
        padding-top: 20px;
    }

    .selector-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .selector-hero {
        grid-template-columns: 1fr;
        padding: 34px 0 28px;
    }

    .selector-hero__title {
        max-width: 12ch;
        font-size: clamp(2.45rem, 11vw, 4.1rem);
    }
}

@media (max-width: 520px) {
    .selector-brand__mark {
        width: 100%;
    }

    .country-card {
        min-height: 248px;
    }

    .country-card__header {
        align-items: center;
        flex-wrap: wrap;
    }

    .country-card__cta {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .country-card--active,
    .country-card__cta {
        transition: none;
    }
}
