:root {
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --accent: #fff;
    --muted: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: default;
}

/* NAVIGATION */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    transition: padding 0.4s ease;
}

.nav.scrolled {
    padding: 16px 48px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    mix-blend-mode: normal;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* HERO */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg,
            rgba(10, 10, 10, .9) 0%,
            rgba(10, 10, 10, .2) 50%,
            rgba(10, 10, 10, .4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp .8s ease forwards;
    animation-delay: .2s;
}

.hero-title {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    opacity: 0;
    animation: fadeUp .8s ease forwards;
    animation-delay: .4s;
}

.hero-subtitle {
    font-size: 18px;
    color: #999;
    margin-top: 24px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp .8s ease forwards;
    animation-delay: .6s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GENERAL */

section {
    padding: 120px 48px;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 40px;
}

/* GALLERY */

.gallery-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.gallery-section p {
    color: #777;
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter .5s ease, transform .5s ease;
    cursor: pointer;
}

.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* SUBSCRIPTION */

.subscription p {
    color: #777;
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
}

.pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #1a1a1a;
}

.plan {
    padding: 60px 40px;
    background: #0d0d0d;
    transition: background .3s ease;
    cursor: pointer;
}

.plan:hover {
    background: #111;
}

.plan h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #777;
    margin-bottom: 16px;
    font-weight: 400;
}

.plan .price {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -1px;
    color: #fff;
}

.plan .price span {
    font-size: 18px;
    color: #666;
}

.plan.highlight {
    background: #fff;
}

.plan.highlight h3 {
    color: #999;
}

.plan.highlight .price {
    color: #0a0a0a;
}

/* BUTTON */

.member-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    border: 1px solid #222;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: .35s ease;
}

.member-btn::after {
    content: '→';
    transition: transform .3s ease;
}

.member-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.member-btn:hover::after {
    transform: translateX(4px);
}

/* COMMUNITY */

.community {
    background: #0d0d0d;
}

.community-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.community-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: #fff;
}

.community-content p {
    color: #777;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
}

/* MAP - FIXED FOR SAFARI */

.community-map {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.map-wrapper {
    width: 100%;
    max-width: 920px;
    /* FIX: Explicit sizing for Safari */
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* EXPLORE BUTTON */

.explore-btn {
    margin-top: 36px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #999;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: .3s ease;
}

.explore-btn::after {
    content: '→';
    transition: transform .3s ease;
}

.explore-btn:hover {
    color: #fff;
}

.explore-btn:hover::after {
    transform: translateX(4px);
}

/* CONTACT */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 400;
}

.contact a {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 12px;
    transition: color .3s ease;
}

.contact a:hover {
    color: #fff;
}

/* FOOTER */

.footer {
    padding: 40px 48px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TABLET */

@media(max-width:1024px) {

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .gallery img {
        height: 350px;
    }

    .community-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .community-map {
        padding-top: 0;
    }
}

/* MOBILE */

@media(max-width:768px) {

    .nav {
        padding: 20px 24px;
    }

    .nav.scrolled {
        padding: 12px 24px;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, .98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .burger {
        display: block;
    }

    .hero {
        padding: 40px 24px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .gallery img {
        height: 300px;
    }

    .pricing {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 24px;
    }

    .plan {
        padding: 40px 24px;
    }

    .plan .price {
        font-size: 36px;
    }

    .footer {
        flex-direction: column;
        gap: 12px;
        padding: 24px;
    }

    /* FIX: Mobile Safari map adjustment */
    .map-wrapper {
        aspect-ratio: 4 / 3;
    }
}

/* LARGE SCREENS */

@media(min-width:1600px) {

    .gallery img {
        height: 650px;
    }
}