/* TraderShaan Link Hub - Premium Galaxy Theme */

:root {
    --bg-deep: #010102;
    --bg-card: rgba(6, 6, 12, 0.82);
    --bg-card-hover: rgba(10, 10, 18, 0.9);
    --border-glow: rgba(55, 52, 75, 0.28);
    --border-glow-strong: rgba(75, 70, 95, 0.4);
    --text-primary: #f5f4f9;
    --text-secondary: rgba(220, 218, 232, 0.92);
    --text-muted: rgba(195, 193, 210, 0.88);
    --accent-purple: #5a5678;
    --accent-blue: #4a5568;
    --accent-glow: rgba(45, 42, 65, 0.35);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    --shadow-glass-hover: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(70, 65, 95, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --shine-gradient: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0.06) 52%, transparent 62%);
    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 720px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.galaxy-page {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background — parallax cosmic wallpaper with readability zones */
.bg-parallax {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    left: 50%;
    top: -28%;
    width: 100%;
    min-width: 100vw;
    height: 280%;
    transform: translate3d(-50%, 0, 0);
    background-color: #010102;
    background-image: image-set(
        url('../images/galaxy-bg.webp') type('image/webp'),
        url('../images/galaxy-bg.jpg') type('image/jpeg')
    );
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
    filter: brightness(1.05) contrast(1.05) saturate(1.02);
}

/* Hero-zone scrim — galaxy stays bright at top, text band readable below */
.bg-hero-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52vh;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.1) 14%,
        rgba(0, 0, 0, 0.45) 28%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.4) 52%,
        transparent 100%
    );
}

/* Edge vignette only */
.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        ellipse 105% 100% at 50% 40%,
        transparent 58%,
        rgba(0, 0, 0, 0.22) 100%
    );
    pointer-events: none;
}

.page-shell {
    position: relative;
    z-index: 10;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
}

@media (prefers-reduced-motion: reduce) {
    .bg-layer {
        top: 0;
        height: 100%;
        transform: translate3d(-50%, 0, 0) !important;
    }
}

@media (max-width: 768px) {
    .bg-layer {
        top: 0;
        height: 100%;
        transform: translate3d(-50%, 0, 0) !important;
        filter: brightness(1.02) contrast(1.02) saturate(1);
    }
}

/* Keyboard focus — visible on all interactive elements */
.link-tile:focus-visible,
.software-item:focus-visible,
.site-footer__nav a:focus-visible,
.legal-page__back:focus-visible {
    outline: 2px solid rgba(210, 208, 225, 0.95);
    outline-offset: 3px;
}

.link-tile:focus-visible {
    transform: translateY(-2px) scale(1.01);
}

.tile-grid.is-visible .link-tile:focus-visible {
    transform: translateY(-2px) scale(1.01);
}

/* Hero */
.hero {
    text-align: center;
    padding-top: 0;
    margin-bottom: 32px;
    animation: fade-up 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-banner {
    position: relative;
    height: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 -4px;
    border: 1px solid rgba(55, 52, 75, 0.3);
    background-color: #010102;
    background-image: image-set(
        url('../images/galaxy-bg.webp') type('image/webp'),
        url('../images/galaxy-bg.jpg') type('image/jpeg')
    );
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.28) 55%,
        rgba(0, 0, 0, 0.62) 100%
    );
    pointer-events: none;
}

.hero-banner__glow {
    display: none;
}

.hero-banner__text {
    position: absolute;
    bottom: 20px;
    left: 24px;
    text-align: left;
    z-index: 2;
}

.hero-banner__brand {
    display: block;
    font-size: 12px;
    letter-spacing: 6px;
    color: #f5f4f9;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-banner__sub {
    display: block;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(230, 228, 240, 0.9);
    margin-top: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.hero-logo {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: drop-shadow(0 4px 20px rgba(30, 28, 45, 0.5));
    animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(22px, 4.8vw, 28px);
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #faf9fc;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.6);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82em;
    line-height: 1;
    color: #34d399;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.55));
}

.verified-badge i {
    font-size: 1em;
}

.hero-tagline {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #f8f7fb;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-description {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(235, 234, 242, 0.95);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Promotional billboard — between hero and links */
.promo-billboard {
    position: relative;
    margin: 8px 0 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    animation: promo-pop-in 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.promo-billboard__glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        125deg,
        rgba(130, 200, 255, 0.45),
        rgba(180, 140, 255, 0.35),
        rgba(52, 211, 153, 0.3),
        rgba(130, 200, 255, 0.45)
    );
    background-size: 300% 300%;
    animation: promo-border-flow 8s ease-in-out infinite;
    z-index: 0;
}

.promo-billboard__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: linear-gradient(145deg, rgba(16, 16, 28, 0.96) 0%, rgba(8, 8, 16, 0.94) 100%);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.promo-billboard__icon-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.22), rgba(100, 140, 255, 0.18));
    border: 1px solid rgba(130, 200, 255, 0.35);
    color: #b8f0d8;
    font-size: 22px;
    animation: promo-icon-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.promo-billboard__content {
    flex: 1;
    min-width: 0;
}

.promo-billboard__badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #042f1a;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.45);
    animation: promo-badge-pulse 2.4s ease-in-out infinite;
}

.promo-billboard__title {
    font-size: clamp(16px, 3.8vw, 19px);
    font-weight: 700;
    color: #faf9fc;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.promo-billboard__message {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(220, 218, 232, 0.92);
}

.promo-billboard__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #04120c;
    background: linear-gradient(135deg, #86efac, #34d399);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    animation: promo-cta-glow 2.8s ease-in-out infinite;
}

.promo-billboard__cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(52, 211, 153, 0.5);
    color: #04120c;
}

.promo-billboard__cta:focus-visible {
    outline: 2px solid rgba(210, 208, 225, 0.95);
    outline-offset: 3px;
}

.promo-billboard__cta i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.promo-billboard__cta:hover i {
    transform: translateX(3px);
}

@keyframes promo-pop-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes promo-border-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes promo-badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(52, 211, 153, 0.45); }
    50% { transform: scale(1.04); box-shadow: 0 0 22px rgba(52, 211, 153, 0.65); }
}

@keyframes promo-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes promo-cta-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35); }
    50% { box-shadow: 0 10px 30px rgba(52, 211, 153, 0.55); }
}

@media (max-width: 640px) {
    .promo-billboard__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px 16px;
    }

    .promo-billboard__icon-wrap {
        margin: 0 auto;
    }

    .promo-billboard__cta {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-billboard,
    .promo-billboard__glow,
    .promo-billboard__badge,
    .promo-billboard__icon-wrap,
    .promo-billboard__cta {
        animation: none !important;
    }
}

/* Section dividers */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 20px;
}

.section-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 85, 110, 0.45), transparent);
}

.section-divider__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #faf9fc;
    background: rgba(8, 8, 16, 0.92);
    border: 1px solid rgba(90, 85, 115, 0.45);
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.section-divider__pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.section-divider__pill:hover {
    border-color: rgba(120, 115, 140, 0.55);
    box-shadow: var(--shadow-glass), 0 0 14px rgba(90, 85, 115, 0.2);
}

.section-divider__pill i {
    font-size: 12px;
    color: #e0dce8;
    position: relative;
    z-index: 1;
}

/* Link tiles */
.tile-grid {
    display: grid;
    gap: 12px;
}

.tile-grid--social {
    grid-template-columns: repeat(6, 1fr);
}

.tile-grid--telegram {
    grid-template-columns: repeat(5, 1fr);
}

.link-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    min-height: 100px;
    border-radius: var(--radius-sm);
    background: linear-gradient(165deg, rgba(14, 14, 22, 0.9) 0%, rgba(6, 6, 12, 0.82) 100%);
    border: 1px solid rgba(70, 66, 92, 0.35);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Inner shine sweep — continuous, slow drift */
.link-tile::before {
    content: '';
    position: absolute;
    top: -55%;
    left: 0;
    width: 48%;
    height: 210%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 28%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.04) 72%,
        transparent 100%
    );
    transform: rotate(22deg) translateX(-320%);
    animation: link-tile-shine 14s linear infinite;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

/* Border glare ring — lit from top-left like reference */
.link-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(210, 205, 228, 0.28) 18%,
        rgba(120, 115, 145, 0.2) 48%,
        rgba(55, 52, 72, 0.35) 78%,
        rgba(35, 33, 48, 0.55) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.link-tile:hover {
    background: linear-gradient(165deg, rgba(18, 18, 28, 0.95) 0%, rgba(10, 10, 18, 0.88) 100%);
    border-color: rgba(130, 125, 155, 0.45);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.58),
        0 0 20px rgba(90, 85, 115, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 1px 0 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.link-tile:hover::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 28%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.06) 72%,
        transparent 100%
    );
}

.link-tile:hover::after {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(225, 220, 240, 0.38) 20%,
        rgba(140, 135, 165, 0.26) 50%,
        rgba(70, 66, 92, 0.4) 80%,
        rgba(45, 42, 62, 0.6) 100%
    );
}

.link-tile:active {
    transform: translateY(-1px) scale(1.01);
}

@keyframes link-tile-shine {
    0% {
        transform: rotate(22deg) translateX(-320%);
    }

    100% {
        transform: rotate(22deg) translateX(420%);
    }
}

.link-tile__icon {
    font-size: 26px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.link-tile:hover .link-tile__icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(200, 198, 220, 0.35));
}

.link-tile__label {
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 600;
    text-align: center;
    color: #f5f4f9;
    line-height: 1.35;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

.link-tile--telegram {
    min-height: 112px;
    padding: 20px 8px;
}

.link-tile--telegram .link-tile__label {
    font-size: clamp(11px, 2.4vw, 13px);
    font-weight: 600;
    letter-spacing: 0.15px;
    line-height: 1.4;
    color: #f2f0f8;
}

.link-tile--disabled .link-tile__badge {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(90, 85, 110, 0.35);
    color: rgba(220, 218, 232, 0.92);
    text-align: center;
    line-height: 1.35;
    position: relative;
    z-index: 1;
    margin-top: 2px;
    box-sizing: border-box;
}

.link-tile--disabled .link-tile__label {
    width: 100%;
    text-align: center;
}

.link-tile--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.link-tile--disabled::before,
.link-tile--disabled::after {
    animation: none;
    display: none;
}

/* Software section */
.software-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.software-card {
    background: linear-gradient(165deg, rgba(14, 14, 22, 0.9) 0%, rgba(6, 6, 12, 0.82) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glass);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.software-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 40%);
    pointer-events: none;
}

.software-card__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: #f0eef5;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glow);
    position: relative;
    z-index: 1;
}

.software-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(55, 52, 75, 0.18);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.software-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.software-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--shine-gradient);
    transition: left 0.5s ease;
    pointer-events: none;
}

.software-item:hover {
    background: rgba(35, 33, 50, 0.2);
    border-color: var(--border-glow-strong);
    transform: translateX(3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.software-item:hover::after {
    left: 120%;
}

.software-item__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(35, 33, 50, 0.35);
    font-size: 14px;
    color: #c8c4d8;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.software-item:hover .software-item__icon {
    transform: scale(1.06);
}

.software-item__label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    color: #f5f4f9;
}

.software-item__arrow {
    font-size: 12px;
    color: rgba(200, 198, 215, 0.85);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.software-item:hover .software-item__arrow {
    transform: translateX(3px);
    color: #e8e6f0;
}

.software-card--forex {
    display: flex;
    flex-direction: column;
}

.coming-soon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.coming-soon__icon {
    font-size: 38px;
    color: #a8a4b8;
    opacity: 0.85;
}

.coming-soon__text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d8d4e4;
    background: linear-gradient(135deg, #c8c4d8, #e0dce8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll entrance animations */
.animate-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tile-grid .link-tile {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tile-grid.is-visible .link-tile {
    opacity: 1;
    transform: translateY(0);
}

.tile-grid.is-visible .link-tile--disabled {
    opacity: 0.45;
}

.tile-grid.is-visible .link-tile:hover {
    transform: translateY(-3px) scale(1.02);
}

.tile-grid.is-visible .link-tile--disabled:hover {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo img,
    .animate-section,
    .tile-grid .link-tile,
    .link-tile::before {
        animation: none !important;
    }

    .animate-section,
    .tile-grid .link-tile {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    margin: 32px 0 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(4, 4, 8, 0.7);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.disclaimer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.disclaimer__icon {
    font-size: 18px;
    color: #f0ad4e;
    margin-bottom: 6px;
}

.disclaimer__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #f0eef5;
    position: relative;
    z-index: 1;
}

.disclaimer__text {
    font-size: 13px;
    color: rgba(220, 218, 232, 0.9);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(4, 4, 8, 0.9);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.site-footer__copy {
    font-size: 12px;
    color: rgba(200, 198, 215, 0.9);
    position: relative;
    z-index: 1;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.site-footer__nav a {
    color: rgba(220, 218, 232, 0.92);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__nav a:hover {
    color: #f5f4f9;
}

.site-footer__sep {
    color: rgba(180, 178, 195, 0.7);
    opacity: 0.6;
}

/* Legal pages */
.legal-page {
    padding: 24px 0;
}

.legal-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(220, 218, 232, 0.92);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.legal-page__back:hover {
    color: #f5f4f9;
}

.legal-page__title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: #faf9fc;
}

.legal-page__body {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glass);
}

.legal-page__body h2 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: #f5f4f9;
}

.legal-page__body h2:first-child {
    margin-top: 0;
}

.legal-page__body p {
    font-size: 14px;
    color: rgba(220, 218, 232, 0.92);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page__body ul {
    margin: 0 0 12px 20px;
    color: rgba(220, 218, 232, 0.92);
    font-size: 14px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 640px) {
    .tile-grid--social {
        grid-template-columns: repeat(3, 1fr);
    }

    .tile-grid--telegram {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-tile--telegram .link-tile__label {
        font-size: 12px;
    }

    .link-tile__label {
        font-size: 13px;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        height: 120px;
    }

    .hero-logo img {
        width: 84px;
        height: 84px;
    }
}

@media (max-width: 400px) {
    .tile-grid--social {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile-grid--telegram {
        grid-template-columns: repeat(2, 1fr);
    }
}
