:root {
    --bg-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --accent-red: #ff3366;
    --accent-red-hover: #e02a5a;
    --card-bg: #2a2a2a;
    --border-color: #444;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-header .logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-red);
    text-shadow: 0 0 5px rgba(255, 51, 102, 0.3);
}

.lang-container-header {
    position: relative;
    margin: 0 1rem;
    isolation: isolate;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-button {
    text-decoration: none;
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.primary-button {
    background-color: var(--accent-red);
    color: white;
}

.primary-button:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, #331a20 0%, var(--bg-dark) 70%);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
    transform: scale(1.05);
}

.features-section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 24px;
    padding: 7rem 2rem;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 51, 102, 0.11), transparent 28rem),
        linear-gradient(180deg, rgba(12, 12, 12, 0.45), rgba(20, 20, 20, 0.95));
}

.features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    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: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.features-heading {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 3.25rem;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.section-kicker::before,
.section-kicker::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.features-section h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.features-heading p {
    max-width: 650px;
    margin: 1.25rem auto 0;
    color: #aaa;
    font-size: 1.08rem;
}

.feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section.features-focus .feature-item {
    animation: featureArrival 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.features-section.features-focus .feature-item:nth-child(2) { animation-delay: 0.04s; }
.features-section.features-focus .feature-item:nth-child(3) { animation-delay: 0.08s; }
.features-section.features-focus .feature-item:nth-child(4) { animation-delay: 0.12s; }
.features-section.features-focus .feature-item:nth-child(5) { animation-delay: 0.16s; }
.features-section.features-focus .feature-item:nth-child(6) { animation-delay: 0.2s; }

@keyframes featureArrival {
    0% {
        opacity: 0.35;
        transform: translateY(18px) scale(0.98);
        border-color: rgba(255, 51, 102, 0.18);
    }
    70% {
        border-color: rgba(255, 51, 102, 0.58);
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28), 0 0 34px rgba(255, 51, 102, 0.11);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-item {
    position: relative;
    display: flex;
    min-height: 205px;
    padding: 1.8rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        rgba(31, 31, 31, 0.88);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    transition: var(--transition);
}

.feature-item::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 51, 102, 0.08);
    filter: blur(8px);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(255, 51, 102, 0.65);
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28), 0 0 30px rgba(255, 51, 102, 0.08);
}

.feature-item:hover::after {
    transform: scale(1.25);
    background: rgba(255, 51, 102, 0.14);
}

.feature-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-right: 1.15rem;
    place-items: center;
    border: 1px solid rgba(255, 51, 102, 0.32);
    border-radius: 14px;
    color: var(--accent-red);
    background: rgba(255, 51, 102, 0.09);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-copy {
    position: relative;
    z-index: 1;
}

.feature-item h3 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.35;
}

.feature-item p {
    margin: 0;
    color: #aaa;
    font-size: 0.94rem;
    line-height: 1.7;
}

.feature-number {
    position: absolute;
    right: 1.2rem;
    bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.055);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
}

.social-section {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 2rem 7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 51, 102, 0.12), transparent 24rem),
        linear-gradient(180deg, #151515, #111111);
}

.social-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    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: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, black 22%, black 80%, transparent);
}

.social-heading {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.social-heading h2 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.social-heading p {
    max-width: 620px;
    margin: 1.15rem auto 0;
    color: #aaa;
    font-size: 1.05rem;
}

.social-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-card {
    --social-color: var(--accent-red);
    position: relative;
    display: flex;
    min-height: 116px;
    align-items: center;
    gap: 0.95rem;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: var(--text-light);
    text-decoration: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)), rgba(29, 29, 29, 0.9);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card::after {
    position: absolute;
    right: -44px;
    bottom: -52px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--social-color) 18%, transparent);
    content: "";
    filter: blur(10px);
    transition: transform 0.25s ease;
}

.social-card:hover,
.social-card:focus-visible {
    border-color: color-mix(in srgb, var(--social-color) 62%, white 8%);
    outline: none;
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26), 0 0 26px color-mix(in srgb, var(--social-color) 13%, transparent);
}

.social-card:hover::after,
.social-card:focus-visible::after {
    transform: scale(1.25);
}

.social-card-youtube { --social-color: #ff304f; }
.social-card-tiktok { --social-color: #25f4ee; }
.social-card-reddit { --social-color: #ff7a3d; }
.social-card-discord { --social-color: #8c82ff; }

.social-card-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--social-color) 52%, transparent);
    border-radius: 14px;
    color: var(--social-color);
    background: color-mix(in srgb, var(--social-color) 11%, transparent);
}

.social-card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.social-card-copy {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.social-card-copy strong {
    color: #fff;
    font-size: 1rem;
}

.social-card-copy small {
    overflow: hidden;
    color: #999;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card-arrow {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-left: auto;
    color: color-mix(in srgb, var(--social-color) 78%, white 15%);
    font-size: 1.15rem;
    line-height: 1;
}

.main-footer {
    background-color: var(--card-bg);
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-red);
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 80%; text-align: center; }
    .main-header { flex-direction: column; gap: 1rem; }
    .lang-container-header { margin: 0; }
    .features-section { padding: 5rem 1.25rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-item { min-height: auto; }
    .social-section { padding: 5rem 1.25rem 5.5rem; }
    .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .social-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1050px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.app-download-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 2rem;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.14), rgba(255, 51, 102, 0.03));
    border-bottom: 1px solid var(--border-color);
}

.app-download-banner.is-hidden {
    display: none;
}

.app-download-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

.app-download-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.app-download-badge {
    display: block;
    line-height: 0;
}

.app-download-badge svg {
    display: block;
    width: 135px;
    height: 40px;
}

.app-download-continue {
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.app-download-continue:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

@media (max-width: 560px) {
    .app-download-banner {
        padding: 12px 1.1rem;
        justify-content: center;
        text-align: center;
    }

    .app-download-copy {
        width: 100%;
        text-align: center;
    }

    .app-download-actions {
        width: 100%;
        justify-content: center;
    }
}
