:root {
    --primary-color: #2D5A27;
    --primary-light: #4A8B3D;
    --accent-color: #F9A826;
    --text-light: #F4F4F4;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    /* full-cover background on body so it always fills the screen */
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* iOS Safari fix: fixed attachment doesn't render on mobile */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
}

.bg-image { display: none; }

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 10, 0.82) 0%,
        rgba(20, 40, 20, 0.70) 50%,
        rgba(10, 15, 29, 0.85) 100%
    );
    z-index: 0;
}

/* ── Language Switcher ── */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.35rem 0.7rem;
    flex-wrap: nowrap;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    color: white;
    background: var(--primary-color);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    user-select: none;
}

/* ── Main Layout ── */
.cs-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    gap: 1.5rem;
}

/* ── Logo ── */
.cs-logo img {
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    margin-bottom: 0.5rem;
}

/* ── Badge ── */
.cs-badge {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 0.45rem 1.3rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* ── Title ── */
.cs-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 1.05;
    max-width: 900px;
}

.highlight {
    color: var(--primary-light);
}

/* ── Subtitle ── */
.cs-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    opacity: 0.8;
    max-width: 560px;
    line-height: 1.7;
}

/* ── Form ── */
.cs-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.cs-form-inner {
    display: flex;
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    overflow: hidden;
    padding: 0.3rem 0.3rem 0.3rem 1.4rem;
}

.cs-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    min-width: 0;
}

.cs-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.cs-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.cs-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 90, 39, 0.5);
}

.cs-form-note {
    font-size: 0.78rem;
    opacity: 0.5;
}

.cs-form-success {
    font-size: 0.9rem;
    color: #a8f0a0;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* ── Social ── */
.cs-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cs-social-link {
    width: 46px;
    height: 46px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.cs-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.4);
}

/* ── Copyright ── */
.cs-copyright {
    font-size: 0.8rem;
    opacity: 0.4;
    margin-top: 0.5rem;
}

.cs-copyright a {
    color: inherit;
    text-decoration: none;
}

.cs-copyright a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .cs-main {
        gap: 1.2rem;
        padding: 5rem 1.5rem 3rem;
    }

    .countdown-item {
        padding: 1rem 1.2rem;
        min-width: 70px;
    }

    .countdown-sep {
        font-size: 1.8rem;
    }

    .cs-form-inner {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
        gap: 0.8rem;
    }

    .cs-input {
        text-align: center;
        padding: 0.5rem 0;
    }

    .cs-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem;
    }

    .lang-switcher {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 400px) {
    .countdown {
        gap: 0.3rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.8rem 0.8rem;
    }

    .countdown-num {
        font-size: 1.6rem;
    }
}
