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

:root {
    --olive: #556B2F;
    --olive-dark: #3A3E16;
    --olive-light: #EEF2E6;
    --gold: #F0D47A;
    --gold-dark: #A97800;
    --border: #D6E0C2;
    --bg: #F9FAF6;
    --text: #1A1A1A;
    --muted: #666;
    --radius: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    visibility: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    background:
        linear-gradient(rgba(58, 62, 22, 0.65), rgba(58, 62, 22, 0.70)),
        url("../assets/tournaq-background-banner-2.png");
    background-size: cover;
    background-position: center;
}

.nav {
    max-width: 960px;
    margin: 0 auto 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-burger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 150px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 8px 10px;
    border-radius: 999px;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    opacity: 0.95;
}

.hero {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 20px 36px;
}

.hero h1 {
    color: var(--gold);
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.05;
    margin-bottom: 14px;
}

.hero .subtitle,
.hero p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 18px;
}

.hero .description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    flex: 1;
    width: 100%;
}

section {
    margin-bottom: 56px;
}

.section-title,
section>h1,
section>h2 {
    font-size: clamp(22px, 2vw, 26px);
    color: var(--olive-dark);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
}

.section-text {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 10px;
}

ul {
    padding-left: 22px;
    margin-top: 10px;
    color: var(--muted);
}

li {
    margin-bottom: 6px;
}

.grid,
.downloads-grid,
.roadmap,
.three-grid,
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card,
.download-card,
.roadmap-step,
.highlight,
.info-box,
.guide-card,
.card-link {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.download-card:hover,
.card-link:hover,
.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.card {
    background: white;
    padding: 28px;
}

.highlight,
.info-box {
    background: white;
    padding: 28px;
}

.card h2,
.card h3,
.download-card h2,
.download-card h3 {
    color: var(--olive);
    font-size: 18px;
    margin-bottom: 10px;
}

.card p,
.download-card p,
.highlight p,
.info-box p {
    line-height: 1.7;
}

.highlight,
.roadmap-step {
    background: var(--olive-light);
}

.roadmap-step {
    padding: 22px;
    text-align: center;
}

.roadmap-step strong {
    display: block;
    color: var(--olive-dark);
    margin-bottom: 6px;
}

.phase-status,
.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.completed-status {
    background: #2e7d32;
    color: white;
}

.planned-status,
.status-badge {
    background: rgba(85, 107, 47, 0.12);
    color: var(--olive);
}

.download-card {
    background: white;
    padding: 24px;
    text-align: center;
}

.download-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.download-icon img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--olive-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.card-link .icon-box {
    width: 42px;
    height: 42px;
    margin: 0;
}

.btn,
.button {
    display: inline-block;
    background: var(--olive);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    transition: background 0.15s, transform 0.15s;
}

.btn:hover,
.button:hover {
    background: var(--olive-dark);
    transform: translateY(-1px);
}

.btn.disabled,
.button.disabled {
    background: #9AA48A;
    cursor: not-allowed;
    pointer-events: none;
}

.email-link,
.info-box a {
    color: var(--olive);
    font-weight: 700;
    text-decoration: none;
}

.card-link {
    display: block;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.card-link:hover {
    box-shadow: 0 3px 10px rgba(85, 107, 47, 0.12);
    border-color: var(--olive);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-link h2,
.card-link h3 {
    font-size: 16px;
    color: var(--olive);
    font-weight: 700;
}

.card-link p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.arrow {
    font-size: 18px;
    color: #bbb;
    margin-left: auto;
}

footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

footer p+p {
    margin-top: 8px;
}

footer a {
    color: var(--olive);
    font-weight: 600;
    text-decoration: none;
    margin: 0 6px;
}

@media (max-width: 760px) {
    header {
        display: flex;
        flex-direction: column;
    }

    .nav {
        flex-direction: row;
        margin-bottom: 0;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        order: -1;
        background: transparent;
        flex-shrink: 0;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 60px;
        width: auto;
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 12px;
        gap: 10px;
    }

    .nav-burger {
        display: flex;
        flex-shrink: 0;
    }

    .nav-toggle:checked + .nav-burger + .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 14px;
        text-align: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
    }

    .hero {
        padding: 12px 16px 14px;
        margin: 0;
        background: transparent;
    }

    .hero h1 {
        font-size: 26px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .hero .subtitle,
    .hero p {
        font-size: 13px;
        margin-bottom: 0;
        line-height: 1.4;
    }

    .grid,
    .downloads-grid,
    .roadmap,
    .three-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 40px 16px 70px;
    }

    /* hide the in-nav switcher on mobile */
    .nav .lang-switcher {
        display: none;
    }

    /* show the between-nav-and-hero switcher on mobile */
    header > .lang-switcher {
        display: flex;
        justify-content: center;
        padding: 8px 0 12px;
        gap: 8px;
    }
}

@media (min-width: 761px) {
    /* show in-nav switcher on desktop */
    .nav .lang-switcher {
        display: flex;
        gap: 4px;
        align-items: center;
        flex-shrink: 0;
    }

    /* hide the external (mobile-only) switcher on desktop */
    header > .lang-switcher {
        display: none;
    }
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn--active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(240, 212, 122, 0.12);
}

.feedback-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--olive-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-top: 40px;
}

.feedback-cta-text strong {
    display: block;
    font-size: 15px;
    color: var(--olive-dark);
    margin-bottom: 4px;
}

.feedback-cta-text p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.feedback-cta-btn {
    flex-shrink: 0;
    background: var(--olive);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background 0.15s;
    white-space: nowrap;
}

.feedback-cta-btn:hover { background: var(--olive-dark); }

@media (max-width: 520px) {
    .feedback-cta { flex-direction: column; align-items: flex-start; }
}
