:root {
    /* Color Palette - True Apple Aesthetics */
    --color-bg-primary: #f6f5f2;
    /* Warm cream / off-white */
    --color-bg-secondary: #ffffff;
    --color-text-primary: #121212;
    /* High contrast dark */
    --color-text-secondary: #6B6B6B;
    --color-accent: #FF4F18;
    --color-highlight: rgba(255, 126, 89, 0.45);

    /* Typography - Pure SF Monolith Stack */
    --font-family-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;

    /* Structure */
    --container-width-max: 1200px;
    --nav-height: 80px;

    /* Easing */
    --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --hover-easing: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ====== Layout ====== */
.container {
    width: 100%;
    max-width: var(--container-width-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ====== Navigation ====== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background-color: transparent;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-asset {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}


/* ====== Navbar Buttons ====== */
/* ====== Navbar Buttons ====== */
.join-btn {
    position: relative;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Virtually invisible ghost border */
    width: 140px;
    height: 44px;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
    overflow: hidden;
    padding: 0;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05),
        /* Specular Rim Highlights */
        inset 0 1.5px 1px rgba(255, 255, 255, 0.8),
        inset 1px 0 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.03);
}

.join-btn span,
.join-btn-cta span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(30, 30, 35, 0.85);
    /* Warm dark slate — "wet ink" */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    /* Etched highlight */
    position: relative;
    z-index: 2;
    pointer-events: none;
    letter-spacing: -0.01em;
}

.join-btn:active {
    transform: scale(0.97);
}

/* ====== Hero Section ====== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: var(--nav-height) var(--space-4) var(--space-8);
}

.badge {
    position: relative;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Ghost border */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05),
        /* Specular Rim Highlights */
        inset 0 1.5px 1px rgba(255, 255, 255, 0.7),
        inset 1px 0 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    cursor: default;
    backdrop-filter: blur(10px);
}

/* Glass Button Common Styles */
.join-btn-cta {
    position: relative;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 180px;
    height: 56px;
    border-radius: 9999px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.06),
        /* Specular Rim Highlights */
        inset 0 1.5px 1px rgba(255, 255, 255, 0.8),
        inset 1px 0 1px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.join-btn-cta span {
    font-size: 1.05rem;
}

.join-btn::before,
.join-btn-cta::before,
.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent);
    transform: skewX(-20deg);
    filter: blur(4px);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.join-btn:hover,
.join-btn-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    backdrop-filter: blur(16px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.08),
        /* Refractive White Glow */
        0 0 20px rgba(255, 255, 255, 0.35),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.9);
}

/* Auto-glisten triggered by JS */
.badge.auto-glisten::before {
    animation: glisten-sweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.join-btn:hover::before,
.join-btn-cta:hover::before,
.badge:hover::before {
    animation: glisten-sweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.join-btn:active,
.join-btn-cta:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

@keyframes glisten-sweep {
    0% {
        left: -150%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

.main-title {
    font-family: Georgia, serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 400;
    /* Bold, solid weight like the reference */
    line-height: 0.95;
    letter-spacing: -0.04em;
    /* Still tight, but for bold font */
    margin: 0 0 100px 0;
    /* Increased margin bottom */
    color: var(--color-text-primary);
    white-space: normal;
    max-width: 1000px;
}

.subtitle-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    /* Added margin top for more spacing from title */
}

.subtitle-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align items within the wrapper */
    text-align: left;
}

.earth-icon {
    height: 40px;
    width: 40px;
    margin-bottom: 24px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin: 0;
}

.serif-hook {
    /* No longer specifically serif unless needed */
    color: var(--color-text-primary);
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-blob {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -40%) rotate(-1deg);
    width: 120%;
    height: auto;
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
}

.highlight-text {
    position: relative;
    z-index: 2;
}


.secondary-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    /* Elegant, lighter weight */
    color: var(--color-accent);
    margin: 0 0 var(--space-3) 0;
    letter-spacing: -0.015em;
}

.tertiary-text {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ====== Feature Showcase & Story Sections ====== */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px var(--space-4);
    text-align: center;
}

.section-title {
    color: var(--color-accent);
    font-family: Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.section-subtitle {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 60px;
}

/* ====== Feature Grid ====== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    width: 100%;
}

.feature-card-img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    /* Perfectly round corners for the pre-rendered images */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Premium soft shadow */
    transition: transform 0.4s var(--spring-easing), box-shadow 0.4s ease;
    will-change: transform;
}

.feature-card-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ====== Story Transition Section ====== */
.story-section {
    padding: var(--space-16) var(--space-4) 100px;
    text-align: center;
}

.story-text {
    color: #424245;
    /* Slightly darker than secondary text, very Apple-esque for intro text */
    font-size: 1.3rem;
    /* slightly larger */
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: var(--space-8);
}

.story-headline {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.global-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 130%;
    height: auto;
    z-index: -1;
    opacity: 0.85;
    pointer-events: none;
}

/* ====== Lifestyle Grid ====== */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    width: 100%;
}

.lifestyle-img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    /* Very generous, friendly radius for lifestyle images */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s var(--spring-easing), box-shadow 0.4s ease;
    will-change: transform;
}

.lifestyle-img:hover {
    transform: translateY(-8px) scale(1.02);
    /* Slight scale to make the image "bloom" */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {

    .feature-grid,
    .lifestyle-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== Final CTA Section ====== */
.cta-section {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-32) var(--space-4) var(--space-12);
    text-align: center;
    overflow: hidden;
    /* For watermark */
}

/* PING watermark background */
.ping-watermark {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: auto;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.cta-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-20);
    position: relative;
    z-index: 1;
    /* Above watermark */
}

.cta-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
}

.highlight-text {
    position: relative;
    z-index: 2;
}

.anywhere-blob,
.global-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 115%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.cta-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: 60px;
}

.email-input {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Soft grey border */
    border-radius: 980px;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    width: 280px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input::placeholder {
    color: var(--color-text-secondary);
}

.email-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 79, 24, 0.1);
    /* Soft orange glow */
}



/* ====== Marquee ====== */
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 40px 0 60px;
}

/* Apply gradient mask natively to the sides for infinite scroll fading */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary), transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.marquee-content img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-right: 0;
}

/* ====== Footer ====== */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-8) var(--space-6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Very light separator line */
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    width: 100%;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.footer-logo-asset {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-logo-asset:hover {
    opacity: 1;
}

.footer-logo-text {
    font-weight: 500;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 2;
    justify-content: center;
}

.footer-center a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.dot-separator {
    opacity: 0.5;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
}

.footer-right a {
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

/* Responsive CTA and Footer */
@media (max-width: 768px) {
    .cta-form {
        flex-direction: column;
    }

    .email-input {
        width: 100%;
        max-width: 320px;
    }

    .join-btn-cta {
        width: 100%;
        max-width: 320px;
    }

    .site-footer {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
    }

    .footer-center {
        flex-direction: column;
        gap: 8px;
    }

    .dot-separator {
        display: none;
    }
}

/* ====== Animations ====== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-up.is-visible {
    animation: fadeUp 1.2s var(--spring-easing) forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-25deg);
    }

    100% {
        transform: translateX(150%) skewX(-25deg);
    }
}

.join-btn,
.join-btn-cta {
    position: relative;
    overflow: hidden !important;
}

.join-btn::after,
.join-btn-cta::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: translateX(-150%) skewX(-25deg);
    pointer-events: none;
    z-index: 10;
}

.join-btn:hover::after,
.join-btn-cta:hover::after {
    animation: shimmer 0.8s var(--spring-easing) forwards;
}