/* XROAD desktop download landing — xroadsports.com/downloads/ */
:root {
    --install-accent: #e0556b;
    --install-ink: #1f2d5a;
    --install-muted: rgba(31, 45, 90, 0.62);
}

* { box-sizing: border-box; }

body.xroad-dl-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--install-ink);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 85, 107, 0.12), transparent 55%),
        linear-gradient(180deg, #f4f6fc 0%, #e8ecf6 100%);
}

.xroad-dl-page__wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 32px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.xroad-dl-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.xroad-dl-page__brand img {
    display: block;
    max-width: min(140px, 42vw);
    height: auto;
}

.xroad-dl-page__sign-in {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4c81de;
    text-decoration: none;
}

.xroad-dl-page__main { flex: 1; }

.xroad-dl-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 18px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.38) 48%, rgba(224, 85, 107, 0.08) 100%);
    box-shadow: 0 18px 48px rgba(31, 45, 90, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.xroad-dl-hero__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 120%;
    background:
        radial-gradient(ellipse 55% 45% at 18% 22%, rgba(255, 122, 144, 0.35), transparent 62%),
        radial-gradient(ellipse 50% 40% at 82% 78%, rgba(76, 129, 222, 0.28), transparent 58%);
    pointer-events: none;
    animation: xroad-dl-glow-shift 8s ease-in-out infinite alternate;
}

@keyframes xroad-dl-glow-shift {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate3d(2%, -1%, 0) scale(1.04); opacity: 1; }
}

.xroad-dl-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .xroad-dl-hero__inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .xroad-dl-hero__copy { grid-column: 1; grid-row: 1; }
    .xroad-dl-hero__app { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .xroad-dl-hero__actions { grid-column: 1; grid-row: 2; }
}

.xroad-dl-hero__eyebrow {
    display: inline-flex;
    padding: 0.28rem 0.7rem;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--install-accent);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.xroad-dl-hero__title {
    margin: 0;
    font-size: clamp(0.9rem, 0.7rem + 0.975vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1f2d5a;
}

.xroad-dl-hero__lead {
    margin: 8px 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(31, 45, 90, 0.62);
}

.xroad-dl-hero__version {
    margin: 6px 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(31, 45, 90, 0.45);
}

.xroad-dl-hero__icon {
    display: block;
    width: clamp(72px, 14vw, 88px);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(224, 85, 107, 0.28);
}

.xroad-dl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xroad-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: min(100%, 200px);
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ff7a90, #e0556b);
    box-shadow: 0 4px 14px rgba(224, 85, 107, 0.35);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.xroad-dl-btn:hover {
    color: #fff;
    box-shadow: 0 6px 18px rgba(224, 85, 107, 0.45);
    transform: translateY(-1px);
}

.xroad-dl-btn--mac-pkg,
.xroad-dl-btn--win {
    color: #1f2d5a;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(76, 129, 222, 0.35);
    box-shadow: 0 4px 14px rgba(31, 45, 90, 0.08);
}

.xroad-dl-btn--mac-pkg:hover,
.xroad-dl-btn--win:hover {
    color: #1f2d5a;
    background: rgba(255, 255, 255, 0.9);
}

.xroad-dl-btn--mac-pkg i,
.xroad-dl-btn--win i { color: #4c81de; }

.xroad-dl-btn__icon,
.xroad-dl-btn__arrow { display: none; }

.xroad-dl-btn i { font-size: 1rem; }

.xroad-dl-btn-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    text-align: center;
}

.xroad-dl-btn-size {
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.88;
}

.xroad-dl-btn-size:empty {
    display: none;
}

.xroad-dl-gatekeeper {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(76, 129, 222, 0.22);
    background: rgba(255, 255, 255, 0.72);
}

.xroad-dl-gatekeeper__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--install-ink);
}

.xroad-dl-gatekeeper__title i {
    color: #4c81de;
}

.xroad-dl-gatekeeper__text {
    margin: 0 0 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(31, 45, 90, 0.78);
}

.xroad-dl-gatekeeper__steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(31, 45, 90, 0.82);
}

.xroad-dl-gatekeeper__steps li + li {
    margin-top: 4px;
}

.glass-card {
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 24px rgba(31, 45, 90, 0.08);
}

.xroad-dl-page__steps-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.xroad-dl-page__steps-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(27, 36, 64, 0.78);
}

.xroad-dl-page__steps-list a { color: #4c81de; }

.xroad-dl-page__footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--install-muted);
}

.xroad-dl-page__footer a { color: #4c81de; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    .xroad-dl-hero__glow { animation: none; }
    .xroad-dl-btn { transition: none; }
}
