:root {
    --color-bg: #0A090C;
    --color-surface: #13121a;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-accent: #f7931a;
    --color-accent-dim: rgba(247, 147, 26, 0.15);
    --color-border: rgba(255, 255, 255, 0.08);
    --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --text-size: 18px;
    --line-height: 1.7;
    --max-width: 1100px;
}

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

html {
    background: var(--color-bg);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--text-size);
    line-height: var(--line-height);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}


/* ============ Header ============ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10, 9, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

header nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

header nav a {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--color-text);
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s;
}


/* ============ Language Switcher ============ */

.lang-switcher {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
}

.lang-current::after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--color-text-secondary);
    margin-left: 2px;
    transition: transform 0.2s;
}

.lang-switcher:hover .lang-current,
.lang-switcher.open .lang-current {
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-switcher.open .lang-current::after {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, color 0.15s;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    opacity: 1;
}

.lang-dropdown a.active {
    color: var(--color-accent);
    font-weight: 600;
}


/* ============ Hero ============ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 40px 80px;
    text-align: center;
    overflow: hidden;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.headline {
    position: relative;
    max-width: 800px;
}

.headline h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.headline p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}


/* ============ Buttons ============ */

.button {
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    height: 44px;
    border-radius: 24px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.button:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    opacity: 1;
}


/* ============ Main Sections ============ */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
}

section h1 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

section h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    max-width: 700px;
}

section p {
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-bottom: 16px;
}

section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}


/* ============ Community Grid ============ */

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.community-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.2s;
}

.community-card:hover {
    border-color: rgba(247, 147, 26, 0.3);
}

.community-card h3 {
    margin-bottom: 4px;
}

.community-card .location {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.community-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

.community-card.placeholder {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.15);
}

.community-card.placeholder:hover {
    border-color: var(--color-accent);
}

.card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}


/* ============ Goals ============ */

.goals-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.goal {
    padding-left: 20px;
    border-left: 2px solid var(--color-accent);
}

.goal h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.goal p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}


/* ============ Join / Contact ============ */

#join {
    text-align: center;
}

#join h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#join p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ============ Footer ============ */

footer {
    border-top: 1px solid var(--color-border);
    padding: 40px;
    margin-top: 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-social {
    color: var(--color-text-secondary);
    transition: color 0.2s;
    display: flex;
}

.footer-social:hover {
    color: var(--color-text);
    opacity: 1;
}


/* ============ Legal Page ============ */

.legal-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 40px 0;
}

.legal-page section {
    border-top: none;
    padding: 40px 0;
}

.legal-page section:first-child {
    padding-top: 60px;
}

.legal-page h3 {
    margin-top: 24px;
}


/* ============ Animations ============ */

.fade-in {
    animation: fadeIn 1.5s ease both;
}

.slide-up {
    animation: slideUp 0.8s ease both;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-600 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


/* ============ Reduced Motion ============ */

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-up,
    .delay-300,
    .delay-600 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ============ Responsive ============ */

@media (max-width: 640px) {
    header {
        padding: 16px 24px;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 9, 12, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
    }

    header nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    header > .lang-switcher {
        order: 0;
        margin-right: 8px;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: 90vh;
    }

    main {
        padding: 0 24px;
    }

    section {
        padding: 60px 0;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .goals-list {
        grid-template-columns: 1fr !important;
    }

    footer {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
