:root {
    --gold-light: #F2D77D;
    --gold-main: #C59B3C;
    --gold-dark: #9A7220;
    --brown-dark: #3a2b1f;
    --brown-light: #5c4331;
    --cream: #eaddcb;
    /* richer cream derived from image */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--brown-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle Film Grain */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ================= NAVIGATION BAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(234, 221, 203, 0.7) 0%, rgba(234, 221, 203, 0) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.scrolled {
    background: rgba(234, 221, 203, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 60px;
    box-shadow: 0 4px 25px rgba(58, 43, 31, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brown-dark);
    letter-spacing: 2px;
    position: relative;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    color: var(--brown-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--brown-dark);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a.nav-highlight {
    color: var(--gold-dark);
    font-weight: 700;
}

.nav-links a.nav-highlight::after {
    background-color: var(--gold-main);
}

/* ================= HAMBURGER MENU ================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    /* Keep above the dropdown overlay */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--brown-dark);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-social-links {
    display: none;
    /* Hide on larger screens, only show in mobile hamburger */
}

@media (max-width: 768px) {
    .navbar {
        padding: 25px 30px;
    }

    .navbar.scrolled {
        padding: 15px 30px;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        gap: 40px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.8rem;
    }

    /* Hamburger Animation to X */
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav-social-links {
        display: flex;
        gap: 20px;
        margin-top: 30px;
        justify-content: center;
    }

    .nav-social-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        color: var(--brown-dark);
        text-decoration: none;
        padding: 10px 15px;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(154, 114, 32, 0.3);
        transition: all 0.3s ease;
    }

    .nav-social-links a:hover {
        background: rgba(255, 255, 255, 0.8);
        border-color: var(--gold-main);
        color: var(--gold-dark);
        transform: translateY(-2px);
    }

    .nav-social-links svg {
        width: 22px;
        height: 22px;
        transition: transform 0.3s ease;
    }

    .nav-social-links a:hover svg {
        transform: scale(1.1);
    }
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    width: 100vw;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align to bottom, then move up */
    overflow: hidden;
    background-color: var(--cream);
}

/* Beautiful gradient feathering to smoothly blend horizontal extremities */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 18vw 0 15vw -5vw var(--cream), inset -18vw 0 15vw -5vw var(--cream);
    pointer-events: none;
    z-index: 5;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Extra height for parallax */
    background-image: url('hero.png');
    background-size: cover;
    background-position: center bottom;
    /* Anchor origin to character/products */
    background-repeat: no-repeat;
    z-index: 0;
    transform-origin: center bottom;
    will-change: transform;
    /* Soften the image just a touch and increase contrast to hide upscaling artifacts */
    filter: contrast(1.05) saturate(1.1);
}

@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: auto;
        height: 100vh;
        min-height: 700px;
    }

    .hero-bg-image {
        background-size: cover;
    }
}

/* The content container overlay */
.hero-content {
    position: absolute;
    bottom: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    /* Glassmorphism backdrop */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 24px 48px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(92, 67, 49, 0.15), inset 0 2px 10px rgba(255, 255, 255, 0.7);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite, fadeIn 1s ease-out;
}

.coming-soon-badge {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--brown-dark);
    text-transform: uppercase;
    animation: pulseGlow 3s infinite ease-in-out;
}

.hero-subtitle {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--brown-dark);
    letter-spacing: 1.5px;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.02);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    }

    100% {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    }
}

/* ================= BLENDING MASKS ================= */
.blend-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to top, var(--cream) 0%, rgba(234, 221, 203, 0.8) 30%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.blend-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, var(--cream) 0%, rgba(234, 221, 203, 0.8) 30%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}


/* ================= CROWDFUND SECTION ================= */
.crowdfund-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-image: url('crowdfund.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background-color: var(--cream);
}

/* Fallback if attachment fixed struggles on mobile */
@media (max-width: 768px) {
    .crowdfund-section {
        background-attachment: scroll;
    }
}

.crowdfund-overlay {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(58, 43, 31, 0.15), inset 0 2px 20px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
}

/* Subtle outer glow matching the texture */
.crowdfund-overlay::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 40px;
    background: radial-gradient(circle, rgba(242, 215, 125, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.crowdfund-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cf-title {
    font-size: 3.2rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-main) 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 8px rgba(58, 43, 31, 0.15));
}

.cf-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brown-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cf-icon-container {
    width: 80px;
    height: 80px;
    margin: 5px 0;
    filter: drop-shadow(0 4px 8px rgba(197, 155, 60, 0.3));
}

.cf-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 12px;
    /* Soft pill background */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border: 1px solid var(--gold-main);
    color: var(--brown-dark);
    font-weight: 700;
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 10px 25px rgba(197, 155, 60, 0.2), inset 0 2px 4px rgba(255, 255, 255, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.cf-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(197, 155, 60, 0.3), inset 0 2px 8px rgba(255, 255, 255, 1);
    border-color: #D4AF37;
    background: linear-gradient(145deg, #fff, rgba(255, 255, 255, 0.6));
}

.cf-button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(197, 155, 60, 0.2);
}

.cf-button .currency {
    font-size: 1.6rem;
    vertical-align: top;
    line-height: 1.5;
    margin-right: 4px;
    font-family: 'Inter', sans-serif;
}

.btn-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-top: 4px;
}

.cf-headline {
    font-size: 3.5rem;
    line-height: 1.05;
    color: var(--brown-dark);
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
    text-shadow: 0 4px 10px rgba(58, 43, 31, 0.08);
    /* More refined shadow */
}

.cf-footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--brown-light);
    font-weight: 500;
    margin-top: 10px;
}

/* Animations */
.cf-title,
.cf-subtitle,
.cf-icon-container,
.cf-button,
.cf-headline,
.cf-footer-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible .cf-title {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.visible .cf-subtitle {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.visible .cf-icon-container {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.visible .cf-button {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.visible .cf-headline {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.visible .cf-footer-text {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Removed obsolete revealUp keyframes */


/* ================= MODAL ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(58, 43, 31, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-content {
    background: var(--cream);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal-backdrop.show .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--brown-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--brown-dark);
}

.modal-title {
    font-size: 2rem;
    color: var(--brown-dark);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.modal-desc {
    color: var(--brown-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--brown-dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(154, 114, 32, 0.3);
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--brown-dark);
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus {
    border-color: var(--gold-main);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 155, 60, 0.1);
}

.submit-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(154, 114, 32, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    text-align: center;
    color: var(--gold-dark);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 40px 0;
    animation: fadeIn 0.5s ease;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--cream);
    padding: 40px 20px;
    border-top: 1px solid rgba(154, 114, 32, 0.2);
    display: flex;
    justify-content: center;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--brown-light);
    letter-spacing: 0.5px;
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .cf-title {
        font-size: 2.2rem;
    }

    .cf-headline {
        font-size: 2.5rem;
    }

    .cf-button {
        padding: 12px 30px;
        font-size: 2.2rem;
    }

    .cf-subtitle {
        font-size: 0.9rem;
    }

    .hero-content {
        bottom: 10%;
        padding: 20px 40px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}