/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.15s ease-out, transform 0.15s ease-out;
    box-shadow: none;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: none;
}

.download-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
    margin-top: 0.3rem;
}

.download-button:hover {
    background: var(--primary-dark);
}

/* Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.15);
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    opacity: 0.9;
    transition: none;
}

.feature-card:hover img {
    transform: none;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Problem/Solution Cards */
.problem-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: none;
    transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.solution-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: none;
    transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    position: relative;
}

.solution-card::before {
    content: '✓';
    position: absolute;
    top: -15px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.problem-card:hover, .solution-card:hover {
    transform: none;
}

.problem-card h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

.solution-card h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.problem-card ul, .solution-card ul {
    list-style: none;
    padding: 0;
}

.problem-card li, .solution-card li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.problem-card li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-size: 1.3rem;
    opacity: 0.5;
}

.solution-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Download Section */
.download-section {
    padding: 3rem 5% 4rem;
    text-align: center;
    background: transparent;
}

.download-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.download-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.download-options {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.download-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: none !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.download-card:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.download-card .card-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}

.download-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    flex-shrink: 0;
}

.download-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.download-card h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.download-card p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.3rem;
}

/* Download Page Styles */
.download-page-hero {
    text-align: center;
    padding: 4rem 5% 2rem;
    background: transparent;
}

.download-page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.download-page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.download-section-page {
    padding: 2rem 5% 4rem;
    background: transparent;
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.download-card-page {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.download-card-page .card-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1.2rem;
}

.download-card-page .windows-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.download-card-page .linux-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card-page .linux-icon svg {
    width: 100%;
    height: 100%;
}

.download-card-page .content-text {
    text-align: left;
}

.download-card-page .content-text h4 {
    font-size: 1.5rem;
    margin-bottom: 0rem;
    color: var(--text-color);
    font-weight: 600;
}

.download-card-page .content-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
    margin: 0;
}

.download-button-page {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.15s ease-out;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    width: 260px;
}

.download-button-page:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

/* Features Grid */
.features-preview {
    padding: 3rem 5% 5rem;
    background-color: transparent;
    position: relative;
}

.features-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.features-preview h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Problem Solution Section */
.problem-solution {
    padding: 5rem 5%;
    background-color: transparent;
    position: relative;
}

.problem-solution h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Interface Showcase */
.interface-showcase {
    padding: 0 5% 6rem;
    background: transparent;
    position: relative;
}

.interface-showcase h3 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.showcase-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.screenshot-item {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem;
    transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 4rem;
    min-height: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.screenshot-item > img.screenshot-media {
    width: 600px;
    height: 400px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

.screenshot-item:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* Remove shadows for all cards except "Элегантная простота" */
.screenshot-item.welcome-screen,
.screenshot-item.call-interface,
.screenshot-item.encryption-feature {
    box-shadow: none;
}

.screenshot-item.welcome-screen:hover,
.screenshot-item.call-interface:hover,
.screenshot-item.encryption-feature:hover {
    box-shadow: none;
}

.screenshot-item:nth-child(odd) {
    flex-direction: row;
}

.screenshot-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* .screenshot-image kept for backward compatibility on other pages */
.screenshot-image {
    position: relative;
    width: 600px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background: none;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: none;
}

.screenshot-item:hover .screenshot-image img {
    transform: none;
}

/* Remove inner image frame shadows for reverted cards */
.screenshot-item.welcome-screen .screenshot-image,
.screenshot-item.call-interface .screenshot-image {
    box-shadow: none;
}

.image-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.image-info h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.image-info p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.screenshot-item.main-menu {
    min-height: 800px;
}

/* Main menu image without extra wrapper */
.screenshot-item.main-menu > img.screenshot-media {
    width: 600px;
    height: 700px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-radius: 16px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: background-color 0.15s ease-out, opacity 0.15s ease-out, transform 0.15s ease-out;
    z-index: 9998;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: none;
}

.scroll-to-top:active {
    transform: scale(0.95);
}

.scroll-to-top svg {
    animation: bounceUpDown 1.5s ease-in-out infinite;
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
