:root {
    --bg-color: #f5f6f8;
    --text-primary: #121214;
    --text-secondary: #5e5e66;
    --btn-bg: #383840;
    --btn-hover: #4a4a52;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Background Image Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

/* Custom Cursor Trailer */
.cursor-trailer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: top 0.1s ease-out, left 0.1s ease-out;
}

/* Header */
.header {
    position: sticky;
    top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    width: 90%;
    max-width: 1440px;
    margin: 1.5rem auto 0 auto;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 1000;
    animation: fadeInDown 1s ease-out forwards;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    color: var(--text-primary);
    transition: transform var(--transition-smooth);
}

.logo:hover .logo-icon {
    transform: rotate(-15deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    opacity: 0.8;
    transition: opacity var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Main Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1440px;
    width: 90%;
    margin: 4rem auto 2rem auto;
    padding: 3rem 4rem;
    gap: 4rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-content {
    display: flex;
    flex-direction: column;
    animation: fadeInLeft 1s ease-out forwards;
}

.hero-title-huge {
    font-size: 6.5rem;
    line-height: 1;
    font-weight: 300;
    color: #135c34;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.hero-title-huge::before,
.hero-title-huge::after {
    content: "";
    display: inline-block;
    width: 0.15em;
    height: 0.15em;
    background-color: #135c34;
    border-radius: 50%;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-subtitle-intro {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    max-width: 576px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-features-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.hero-features-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.45rem;
    width: 5px;
    height: 10px;
    border: solid var(--text-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

/* Split button group */
.split-btn-group {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.split-btn-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.split-btn-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem 1rem 2.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: #135c34;
    color: #fff;
    border: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.split-btn-main:hover {
    background: #0f4a29;
}

.split-btn-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: #135c34;
    color: #fff;
    border: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    cursor: pointer;
    transition: background-color var(--transition-smooth);
}

.split-btn-toggle:hover {
    background: #0f4a29;
}

.split-btn-toggle svg {
    transition: transform var(--transition-smooth);
}

.split-btn-toggle.open svg {
    transform: rotate(180deg);
}

/* Dropdown menu */
.split-btn-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.split-btn-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-download.secondary {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-download.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.features-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    max-width: 600px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-badge svg {
    color: #121214;
}

/* App Mockup Card */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out forwards;
}

.app-card-main {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-smooth);
    max-width: 440px;
    width: 100%;
}

.app-card-main:hover {
    transform: translateY(-5px);
}

.app-mockup {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

/* Screenshots Section */
.screenshots-section {
    width: 90%;
    max-width: 1440px;
    margin: 3rem auto;
    padding: 0;
}

.screenshots-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.screenshots-card.alternating-row {
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem;
    width: 100%;
}

.screenshots-card.breathing-card {
    align-items: center;
    padding: 2.5rem;
    gap: 2rem;
    width: 100%;
}

.screenshots-card.breathing-card .slider-wrapper-outer {
    max-width: 368px;
    gap: 1rem;
}

.screenshots-card.breathing-card .screenshots-text {
    gap: 1.5rem;
}

.screenshot-text-part {
    flex: 1;
    text-align: center;
}

.screenshot-text-part p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.screenshots-card.alternating-row .monitor-wrapper {
    flex: 1;
    max-width: 368px;
    min-width: 0;
}

.photo-pack-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.photo-pack-card .photo-stack {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.photo-pack-info {
    flex: 1;
}

.photo-pack-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.photo-pack-info h3:empty {
    display: none;
}

.photo-pack-info p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .photo-pack-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    .photo-pack-card .photo-stack {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1.5rem !important;
    }
}

.screenshots-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.screenshots-text p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.screenshots-subtext {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    opacity: 0.75;
    margin-top: -1.25rem;
}

.screenshots-gifs {
    display: flex;
    gap: 1.5rem;
    flex: 1.5;
}

.monitor-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.monitor {
    width: 100%;
    background: #e1e4ea;
    border-radius: 12px;
    padding: 6px 6px 12px 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monitor::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #a1a5b5;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.monitor-screen {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    border: 3px solid #1a1a1e;
}

.monitor-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.monitor:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.15);
}

.monitor:hover .monitor-screen img {
    transform: scale(1.02);
}

.monitor-stand {
    width: 24px;
    height: 24px;
    background: linear-gradient(to right, #dcdfe6, #c8cbd2);
    margin-top: -12px;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.monitor-base {
    width: 70px;
    height: 5px;
    background: #c8cbd2;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    max-width: 1440px;
    margin: 5rem auto;
    padding: 0 2.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.text-left {
    text-align: left;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card.new-style {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.new-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #6a6eb2; /* soft indigo */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(106, 110, 178, 0.3);
}

.feature-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.feature-card.new-style h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 3.25rem;
}

.feature-card.new-style p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
    width: 90%;
    max-width: 1440px;
    margin: 5rem auto;
    padding: 4rem;
    background: linear-gradient(180deg, #a9e0f7 0%, #f2f7fb 100%);
    border-radius: 32px;
}

.how-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.how-left h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    position: relative;
    padding-left: 1.5rem;
}

.step::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.625rem;
    width: 8px;
    height: 8px;
    background-color: #555e9e;
    border-radius: 50%;
}

.step p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3b3f5c;
}


.how-right {
    display: flex;
    gap: 1.5rem;
}

.how-card {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.how-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.how-icon {
    width: 40px;
    height: 40px;
    background: #edf1fc;
    color: #6a6eb2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-icon svg {
    width: 20px;
    height: 20px;
}

.how-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.how-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Visual Placeholder for How-it-works cards */
.how-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Simple stacked photos effect */
.photo-stack {
    position: relative;
    width: 140px;
    height: 90px;
}

.photo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photo-layer:nth-child(1) { transform: rotate(-8deg) translateX(-10px); z-index: 1; }
.photo-layer:nth-child(2) { transform: rotate(8deg) translateX(10px); z-index: 2; }
.photo-layer:nth-child(3) { transform: rotate(0deg); z-index: 3; }

/* Simple sound wave effect */
.sound-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 60px;
}

.sound-wave .bar {
    width: 4px;
    background: #d1d8f5;
    border-radius: 2px;
    animation: wave 1.2s infinite ease-in-out alternate;
}

.sound-wave .bar:nth-child(odd) { background: #aeb6e2; }
.sound-wave .bar:nth-child(4n) { background: #6a6eb2; }

@keyframes wave {
    0% { height: 10px; }
    100% { height: 50px; }
}

.sound-wave .bar:nth-child(1) { animation-delay: 0.1s; height: 15px; }
.sound-wave .bar:nth-child(2) { animation-delay: 0.3s; height: 30px; }
.sound-wave .bar:nth-child(3) { animation-delay: 0.0s; height: 45px; }
.sound-wave .bar:nth-child(4) { animation-delay: 0.4s; height: 20px; }
.sound-wave .bar:nth-child(5) { animation-delay: 0.2s; height: 50px; }
.sound-wave .bar:nth-child(6) { animation-delay: 0.5s; height: 25px; }
.sound-wave .bar:nth-child(7) { animation-delay: 0.1s; height: 40px; }
.sound-wave .bar:nth-child(8) { animation-delay: 0.3s; height: 15px; }
.sound-wave .bar:nth-child(9) { animation-delay: 0.6s; height: 30px; }
.sound-wave .bar:nth-child(10) { animation-delay: 0.2s; height: 45px; }
/* ...and so on for a random look... */

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 3rem 2.5rem;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 600px;
        width: 100%;
        justify-self: center;
    }
    .cta-buttons {
        justify-content: center;
    }
    .features-inline {
        justify-content: center;
    }
    .hero-visual {
        justify-content: center;
    }
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        width: 90%;
        padding: 2.5rem 1.5rem;
        margin: 2rem auto;
        gap: 2.5rem;
    }
    
    .hero-content {
        align-items: flex-start;
        text-align: left;
        padding: 0;
    }
    
    .hero-features-list {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: flex-start;
        width: 100%;
    }
    
    .features-inline {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* .header is sticky by default */
    .mobile-menu-toggle {
        display: block;
    }
    .logo {
        flex-shrink: 0;
    }
    .logo-text {
        white-space: nowrap;
        font-size: 1.1rem;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        align-items: center;
        margin-top: 1rem;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-top: none;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .screenshots-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    .screenshots-text {
        align-items: center;
        padding-top: 0;
    }
    .screenshots-gifs {
        flex-direction: column;
        width: 100%;
    }
    .how-right {
        flex-direction: column;
    }
    .how-it-works {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title-huge { font-size: 4rem; }
    .hero-title { font-size: 2rem; }
    .features-grid-4 { grid-template-columns: 1fr; }
}

html {
    scroll-behavior: smooth;
}

/* Модальное окно "О приложении" */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    width: 90%;
    max-width: 696px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, #3a3a40 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}


/* --- Breathing Slider --- */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex: 1.5;
    position: relative;
    width: 100%;
}

.slider-wrapper-outer {
    flex: 1;
    max-width: 696px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.slider-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    background: #000000;
    position: relative;
}

.slide img, .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    pointer-events: none;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: #000;
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    margin-top: 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--text-primary);
    transform: scale(1.2);
    width: 20px;
    border-radius: 4px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.96);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slider-caption-container {
    width: 100%;
    position: relative;
    min-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-caption {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.slide-caption.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}


@media (max-width: 768px) {
    .screenshots-section {
        padding: 0;
        margin: 2rem auto;
    }
    
    .screenshots-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .screenshots-card.alternating-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .screenshots-card.alternating-row .screenshot-text-part {
        width: 100%;
        text-align: center;
    }
    
    .screenshots-card.alternating-row .monitor-wrapper {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .screenshots-card.alternating-row .monitor-wrapper:last-child {
        margin-bottom: 0;
    }
    
    .slider-container {
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        position: relative;
        padding: 0;
        box-sizing: border-box;
    }
    
    .slider-arrow {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 25;
        width: 44px;
        height: 44px;
        pointer-events: auto;
    }

    .slider-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .prev-arrow {
        left: 10px;
    }
    
    .next-arrow {
        right: 10px;
    }
    
    .slider-wrapper-outer {
        max-width: 100%;
        width: 100%;
    }
    
    .slider-caption-container {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .screenshots-section {
        padding: 0;
    }
    
    .screenshots-card {
        padding: 1.5rem 0.5rem;
    }
    
    .slider-arrow {
        width: 38px;
        height: 38px;
        top: 40%;
    }
    
    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .prev-arrow {
        left: 8px;
    }
    
    .next-arrow {
        right: 8px;
    }
}

/* --- SmartScreen Warning Block --- */
.smartscreen-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.smartscreen-text {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.smartscreen-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.smartscreen-title svg {
    color: #e67e22;
    flex-shrink: 0;
}

.smartscreen-desc {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.smartscreen-desc p {
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.smartscreen-visual {
    flex: 0.4;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.smartscreen-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.smartscreen-card:hover .smartscreen-img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .smartscreen-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 0.5rem 2rem 0.5rem;
        gap: 2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .smartscreen-text {
        text-align: center;
        align-items: center;
    }
    
    .smartscreen-title {
        justify-content: center;
        font-size: 1.35rem;
    }
    
    .smartscreen-desc {
        text-align: left;
    }
    
    .smartscreen-visual {
        flex: none;
        width: 100%;
        max-width: 220px;
    }
}

/* ==========================================================================
   Ko-fi Support Widget Styling
   ========================================================================== */

.kofi-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2.5rem;
    width: 90%;
    max-width: 1440px;
    margin: 2.5rem auto 1rem auto;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.kofi-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.kofi-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.kofi-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.kofi-button-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .kofi-section {
        padding: 1.5rem;
        margin: 1.5rem auto 1rem auto;
    }
    
    .kofi-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kofi-text {
        font-size: 0.95rem;
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    opacity: 0.8;
    transition: opacity var(--transition-smooth), background-color var(--transition-smooth);
}

.lang-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-chevron {
    transition: transform var(--transition-smooth);
    opacity: 0.7;
}

.lang-btn.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    min-width: 140px;
    z-index: 1100;
}

.lang-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-smooth);
    width: 100%;
}

.lang-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-option.active {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Responsive language selector for mobile nav */
@media (max-width: 768px) {
    .lang-selector {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .lang-btn {
        width: auto;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .lang-dropdown {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 200px;
        opacity: 0;
        transform: translateY(-5px);
        display: none;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.05);
        background: rgba(255, 255, 255, 0.8);
    }
    
    .lang-dropdown.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}





