: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;
}

.cyber-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 138px;
    padding: 0.62rem 2.35rem 0.62rem 0.9rem;
    border: 1px solid rgba(255, 51, 102, 0.35);
    border-radius: 12px;
    background-color: rgba(22, 22, 22, 0.94);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23f0f0f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
    background-position: right 0.8rem center;
    background-repeat: no-repeat;
    color: var(--text-light);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cyber-select:hover {
    border-color: rgba(255, 51, 102, 0.72);
    background-color: rgba(35, 20, 25, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 51, 102, 0.08);
    transform: translateY(-1px);
}

.cyber-select:focus-visible {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.2), 0 10px 28px rgba(0, 0, 0, 0.3);
}

.cyber-select option {
    background: #1c1c1f;
    color: var(--text-light);
    font-weight: 500;
}

.cyber-select option:hover,
.cyber-select option:focus {
    background: #351923;
    color: #fff;
}

.cyber-select option:checked {
    background: var(--accent-red);
    color: #fff;
}

.cyber-select[aria-hidden="true"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
}

.language-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 138px;
    padding: 0.62rem 0.8rem 0.62rem 0.9rem;
    border: 1px solid rgba(255, 51, 102, 0.35);
    border-radius: 12px;
    background: rgba(22, 22, 22, 0.94);
    color: var(--text-light);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.language-picker-button:hover,
.language-picker-button[aria-expanded="true"] {
    border-color: rgba(255, 51, 102, 0.72);
    background: rgba(53, 25, 35, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 51, 102, 0.08);
    transform: translateY(-1px);
}

.language-picker-button:focus-visible {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.2), 0 10px 28px rgba(0, 0, 0, 0.3);
}

.language-picker-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.language-picker-button[aria-expanded="true"] .language-picker-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.language-picker-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 100%;
    padding: 0.35rem;
    border: 1px solid rgba(255, 51, 102, 0.32);
    border-radius: 14px;
    background: rgba(24, 24, 27, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), 0 0 24px rgba(255, 51, 102, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.language-picker-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.language-picker-option {
    width: 100%;
    padding: 0.58rem 0.7rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-light);
    font: inherit;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.language-picker-option:hover,
.language-picker-option:focus-visible,
.language-picker-option.is-selected {
    background: rgba(255, 51, 102, 0.16);
    color: #fff;
    outline: none;
}

.language-picker-option.is-selected {
    box-shadow: inset 2px 0 0 var(--accent-red);
}

.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;
}

.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; }
    .language-picker-button { min-width: 154px; }
    .features-section { padding: 5rem 1.25rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-item { min-height: auto; }
}

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