body {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-background {
    background-image: url("hero-collage.jpg");
    background-size: cover;
    background-position: top center;
}

.popup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.popup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.popup-grid.reverse {
    direction: rtl;
}

.popup-grid.reverse > * {
    direction: ltr;
}

code {
    background: rgba(209, 213, 219, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #f97316;
}

.dark code {
    background: rgba(55, 65, 81, 0.5);
    color: #fb923c;
}

.menu-transition {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
}

.menu-hidden {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
}

.menu-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.i18n {
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
    will-change: opacity, filter, transform;
}

.i18n-changing {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(2px);
}

.sub-list,
.feature-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: scale(0.98);
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
}

.sub-list.active,
.feature-content.active {
    max-height: 500px;
    opacity: 1;
    transform: scale(1);
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.dark .sub-list.active,
.dark .feature-content.active {
    background: rgba(249, 115, 22, 0.03);
}

.feature-card.active-card {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.4);
}

.toggle-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), color 0.3s ease;
}

.open .toggle-icon {
    transform: rotate(180deg);
    color: #f97316;
}

.proof-section {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.dark .proof-section {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.proof-item {
    display: flex;
    min-height: 6.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 0.85rem;
    background: rgba(249, 115, 22, 0.055);
    text-align: center;
}

.proof-number {
    display: block;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1;
    color: #f97316;
    font-weight: 900;
}

.proof-label {
    margin-top: 0.55rem;
    color: #4b5563;
    font-weight: 700;
}

.dark .proof-label {
    color: #d1d5db;
}

.testimonials-section {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(249, 115, 22, 0.01));
    border-top: 1px solid rgba(249, 115, 22, 0.12);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.testimonial-card {
    position: relative;
    display: flex;
    min-height: 17rem;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dark .testimonial-card {
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.testimonial-mark {
    position: absolute;
    top: -1rem;
    right: 1rem;
    font-size: 6rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(249, 115, 22, 0.16);
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #374151;
}

.dark .testimonial-text {
    color: #e5e7eb;
}

.testimonial-user {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.testimonial-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid rgba(249, 115, 22, 0.65);
    background: rgba(249, 115, 22, 0.14);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 800;
}

.testimonial-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.dark .testimonial-meta {
    color: #9ca3af;
}

.theme-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.22);
}

.theme-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.3);
}

.theme-btn:active {
    transform: scale(0.96);
}

.theme-btn-icon {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.site-footer {
    background: rgba(255, 255, 255, 0.55);
}

.dark .site-footer {
    background: rgba(5, 5, 5, 0.92);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: flex;
    min-height: 5.25rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 0.75rem;
    color: inherit;
    text-align: left;
    background: rgba(249, 115, 22, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.footer-link:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.65);
    background: rgba(249, 115, 22, 0.12);
}

.footer-link-title {
    font-weight: 800;
    color: #f97316;
}

.footer-link-note {
    font-size: 0.85rem;
    line-height: 1.35;
    color: #6b7280;
}

.dark .footer-link-note {
    color: #9ca3af;
}

.footer-copy {
    text-align: center;
    color: #6b7280;
}

.dark .footer-copy {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .popup-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popup-grid.reverse {
        direction: ltr;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-height: 14rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
