/* homepage specific css*/
.video {
    margin-top: 2rem;
}

/* =========================================
   VIDEO COMING SOON PLACEHOLDER
   ========================================= */
.video-coming-soon {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #fff1f2, #fff7ed, #fefce8);
    border: 3px dashed #f9a8d4;
    border-radius: 16px;
}

.coming-soon-content {
    max-width: 400px;
}

.coming-soon-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.coming-soon-content h3 {
    margin: 0 0 0.6rem;
    color: #9d4772;
    font-size: 1.5rem;
}

.coming-soon-content p {
    margin: 0;
    color: #6b5562;
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================
   COMFY PLUSHPALS — RESPONSIVE VIDEO
   ========================================= */
.video-section {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.video-section .video-embed {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #000;
    line-height: 0;
}

/* Thumbnail button */
.video-section .video-thumbnail {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: inherit;
    outline: none;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Prevent browser button colours */
.video-section .video-thumbnail:focus,
.video-section .video-thumbnail:active {
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Keep keyboard navigation accessible */
.video-section .video-thumbnail:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

/* Thumbnail image */
.video-section .video-thumbnail-image {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: cover;
    object-position: center;
    transition: transform 250ms ease;
}

.video-section .video-thumbnail:hover .video-thumbnail-image {
    transform: scale(1.02);
}

/* Hover overlay */
.video-section .video-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
    transition: background 250ms ease;
}

.video-section .video-thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Play button */
.video-section .video-play-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #ff0033;
    box-shadow: none;
    transform: translate(-50%, -50%);
    transition: background 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.video-section .video-play-button span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 19px solid #fff;
}

/* Hover effect */
.video-section .video-thumbnail:hover .video-play-button {
    background: #e6002e;
    transform: translate(-50%, -50%) scale(1.06);
}

/* Bottom label */
.video-section .video-thumbnail-label {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}

/* YouTube player after clicking */
.video-section .youtube-player {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: inherit;
    background: #000;
}

/* Mobile sizing */
@media (max-width: 480px) {
    .video-section .video-play-button {
        width: 60px;
        height: 43px;
        border-radius: 11px;
    }

    .video-section .video-play-button span {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 15px;
    }

    .video-section .video-thumbnail-label {
        right: 8px;
        bottom: 8px;
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .video-section .video-thumbnail-image,
    .video-section .video-thumbnail::after,
    .video-section .video-play-button {
        transition: none;
    }
}

.homepage-buttons {
    text-align: center;
    margin: 2rem 0;
}

/* Align icons and text perfectly in homepage buttons */
.homepage-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    vertical-align: middle;
    margin: 0.75rem;
}

.homepage-buttons img {
    display: block;
    height: 25px;
    width: auto;
}

/* Call to action Rainbow Pastel Ribbon */
.cta-ribbon-rainbow {
    background: linear-gradient(
        90deg,
        #ffd1dc,
        #ffe4b5,
        #fffacd,
        #d4f8d4,
        #d6ecff,
        #e6d8ff
    );
    color: #4d2a5a;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    padding: 0.7rem 1.3rem;
    border-radius: 12px;
    border: 3px solid #f5b3ff;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px rgba(255, 180, 255, 0.35);
    background-size: 400% 400%;
    animation: rainbowShift 8s ease infinite, ribbonSway 3s ease-in-out infinite;
}

/* Shifting rainbow shimmer */
@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Gentle tilt like a hanging ribbon */
@keyframes ribbonSway {
    0% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1.4deg);
    }

    100% {
        transform: rotate(-1deg);
    }
}

/* =========================================
   CROWDFUNDING LAUNCH STATUS
   ========================================= */
.launch-status {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 18px;
    padding: 16px 20px;
    box-sizing: border-box;
    background: linear-gradient(
        135deg,
        #fff8e7,
        #fff0f5,
        #f0f8ff
    );
    border: 2px solid #f5c6dc;
    border-radius: 16px;
    box-shadow:
        0 4px 12px rgba(225, 143, 180, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: left;
}

.launch-status-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.launch-status-label {
    color: #a34c81;
    font-size: 1.1rem;
    font-weight: 800;
}

.launch-status-badge {
    display: inline-block;
    padding: 5px 11px;
    color: #94631c;
    background: #fff0b8;
    border: 1px solid #f4d78b;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.launch-status-description {
    margin: 0;
    color: #594b59;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .launch-status {
        padding: 14px 15px;
        margin-bottom: 15px;
    }

    .launch-status-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .launch-status-label {
        font-size: 1rem;
    }

    .launch-status-description {
        font-size: 0.87rem;
    }
}

.homepage-crowdfunding-button {
    position: relative;
    display: inline-block;
    margin-top: 0.8rem;
    background: linear-gradient(135deg, #ffb3d9, #ffe0f0);
    color: #5d2a53;
    border: 3px solid #ff8fc7;
    padding: 1rem 1.7rem;
    font-size: 1.25rem;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(255, 120, 180, 0.35);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

/* Crowdfunding button hover */
.homepage-crowdfunding-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 18px rgba(255, 120, 180, 0.45);
    cursor: pointer;
}

/* Pulsing glow to draw attention */
.homepage-crowdfunding-button {
    animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(255, 150, 200, 0.25);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 150, 200, 0.55);
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 150, 200, 0.25);
    }
}

.button-text {
    position: relative;
    z-index: 2;
}

/* Sparkle base */
.sparkle {
    position: absolute;
    top: var(--y);
    left: var(--x);
    font-size: 1.2rem;
    opacity: 0.6;
    pointer-events: none;
    animation: sparkleAnim 2s infinite;
    animation-delay: var(--delay);
    z-index: 1;
}

/* Sparkle emoji */
.sparkle::before {
    content: '✨';
    display: block;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Random sparkle animation */
@keyframes sparkleAnim {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }

    25% {
        transform: scale(1.2) translate(2px, -2px);
        opacity: 0.4;
    }

    50% {
        transform: scale(0.9) translate(-2px, 1px);
        opacity: 0.5;
    }

    75% {
        transform: scale(1.1) translate(1px, 2px);
        opacity: 0.3;
    }

    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }
}

.homepage-steam-button {
    background-color: #d6ecff;
    color: #1a1a1a;
    border: 2px solid #a4c9ff;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: background-color 0.3s ease;
}

.homepage-steam-button:hover {
    background-color: #c1e0ff;
    transform: translateY(-2px);
}

/* fluxer button */
.fluxer-button {
    background-color: #e3d4ff;
    color: #3d316b;
    border: 2px solid #c9b7ff;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fluxer-button:hover {
    background-color: #d7c4ff;
    transform: translateY(-2px);
}

.fluxer-button:active {
    transform: translateY(0);
}

/* =========================================
   HOMEPAGE PATREON BUTTON
   ========================================= */
.homepage-patreon-button {
    background-color: #ffe0e8;
    color: #7a344d;
    border: 2px solid #ffb6c8;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.homepage-patreon-button:hover {
    background-color: #ffd0dd;
    transform: translateY(-2px);
}

.homepage-patreon-button:active {
    transform: translateY(0);
}

.homepage-patreon-button img {
    height: 25px;
    width: auto;
}

/* Ko-fi Button */
.homepage-kofi-button {
    background-color: #ffe8d6;
    color: #5a3d2b;
    border: 2px solid #ffd1b3;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.homepage-kofi-button:hover {
    background-color: #ffdcbf;
    transform: translateY(-2px);
}

.homepage-kofi-button:active {
    transform: translateY(0);
}

.homepage-crowdfunding-button img {
    height: 70px;
}

.fluxer-button img {
    height: 26px;
    width: 26px;
}

/* Updated Ko-fi icon size and position */
.homepage-kofi-button img {
    width: 44px;
    height: 34px;
    object-fit: contain;
    transform: translateX(-11px);
}

/* homepage specific css */

/* Video css border */
.video {
    background: #fffdf8;
    border: 3px dashed #ffd8b3;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin: 1rem auto 2rem auto;
    max-width: 1020px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.07);
}

.video iframe {
    border-radius: 8px;
}

/* Video section improvements */
.video-section h2 {
    margin-bottom: 0.5rem;
}

.game-summary {
    font-size: 1.15rem;
    color: #ff7ab2;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Smaller screens, logo should take up more space */
@media (max-width: 768px) {
    header img {
        /* max-width: 90%; */
    }
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.creator {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.video {
    text-align: center;
    margin-bottom: 2rem;
}

/* Crowdfunding CTA Section */
.crowdfunding-section {
    background: #fff0f5;
    border: 3px dashed #ff9acb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto 2rem auto;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

/* Game Jam Demo Section */
.demo-section {
    background: #fff0f5;
    border: 3px dashed #ff9acb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto 2rem auto;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

/* Haunted PS1 Demo Banner */
.demo-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 1rem auto;
    padding: 0.7rem 1rem;
    background: linear-gradient(
        90deg,
        #e6d8ff,
        #d6ecff,
        #fffacd,
        #ffd1dc
    );
    color: #4d2a5a;
    border: 3px dashed #f5b3ff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 8px rgba(255, 180, 255, 0.25);
}

/* Game Jam demo cover image */
.homepage-buttons .game-jam-demo-cover {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 1.5rem auto;
}

/* Demo button on the home page */
.demo-button {
    display: inline-block;
    padding: 18px 28px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff7ab2;
    text-decoration: none;
    border-radius: 14px;
    border: 3px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(45deg, #ff9ccd, #ffc8e9);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 154, 205, 0.3);
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 205, 0.5);
}

.demo-button::after {
    content: " ✨";
    opacity: 0;
    transition: 0.3s ease;
    margin-left: 6px;
}

.demo-button:hover::after {
    opacity: 1;
}

/* Steam / Fluxer / Ko-fi section */
.homepage-links-section {
    background: #fff0f5;
    border: 3px dashed #ff9acb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto 2rem auto;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Community section heading */
.homepage-links-heading {
    margin: -0.25rem 0 0.5rem 0;
    padding: 0.45rem 0.9rem;
    background: #fff8fc;
    border: 2px solid #ffb6d9;
    border-radius: 8px;
    color: #d94f91;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Homepage Community & Support Buttons */
.homepage-community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    align-items: stretch;
}

/* Keep all four buttons consistent within the grid */
.homepage-community-grid > a {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/* Keep icons at a consistent size */
.homepage-community-grid > a img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Smaller screens */
@media (max-width: 420px) {
    .homepage-community-grid {
        gap: 8px;
    }

    .homepage-community-grid > a {
        padding: 10px 6px;
        gap: 5px;
        font-size: 0.85rem;
    }

    .homepage-community-grid > a img {
        width: 20px;
        height: 20px;
    }
}

/* Hero section images */
.pitch img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 0 auto;
    box-sizing: border-box;
}

/* Styles the slideshow section */

/* Container */
.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Individual slide */
.slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.6s ease;
    text-align: center;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* Slide image */
.slide img {
    width: 100%;
    max-height: 510px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.slide p {
    color: #ff7ab2;
    font-size: 1.2rem;
}

/* Navigation Buttons */
.slide-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff9ccd;
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.2rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Show buttons when slideshow hovered */
.slideshow:hover .slide-button {
    opacity: 1;
    pointer-events: auto;
}

.slide-button:hover {
    transform: translateY(-50%) scale(1.1);
}

.slide-button.prev {
    left: 10px;
}

.slide-button.next {
    right: 10px;
}

/* Styles the key features section */
#key-features {
    background-color: #fff5ff;
    border-radius: 12px;
    padding: 24px 20px;
    margin: 20px 0;
}

#key-features h2 {
    font-size: 2rem;
    text-align: center;
    color: #ff7ab2;
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    font-size: 1.2rem;
    margin: 12px 0;
    padding-left: 28px;
    position: relative;
}

.features-list li::before {
    content: "⭐";
    position: absolute;
    left: 0;
}

/* Styles the blog button on the homepage */
.blog-button {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    border-radius: 12px;
    color: #7a9bff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(45deg, #b5c8ff, #d9e2ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.blog-button:hover {
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(45deg, #ff9ccd, #ffc8e9);
    transform: translateY(-2px);
}

.blog-button::after {
    content: " ✨";
    opacity: 0;
    transition: 0.3s ease;
}

.blog-button:hover::after {
    opacity: 1;
}

/* Styles the FAQ button on the homepage */
.faq-button {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    border-radius: 12px;
    color: #7a9bff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(45deg, #b5c8ff, #d9e2ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.faq-button:hover {
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(45deg, #ff9ccd, #ffc8e9);
    transform: translateY(-2px);
}

.faq-button::after {
    content: " ✨";
    opacity: 0;
    transition: 0.3s ease;
}

.faq-button:hover::after {
    opacity: 1;
}

/* Newsletter Section */
#newsletter {
    max-width: 840px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #ff9ccd;
    font-size: 1rem;
    width: 250px;
    max-width: 80%;
    outline: none;
    background: #fff;
    color: #ff7ab2;
}

.newsletter-form input:focus {
    border-color: #ff7ab2;
    box-shadow: 0 0 6px #ffb6d9;
}

.newsletter-form button {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(45deg, #ff9ccd, #ffc8e9);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: #ff7ab2;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 145, 180, 0.4);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 145, 180, 0.5);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    color: #ff7ab2;
}

/* =========================================
   NEWSLETTER / KIT FORM
   ========================================= */
.newsletter-form {
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0;
}

/* Keep the email field and button side-by-side */
.newsletter-form .formkit-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Email field */
.newsletter-form .formkit-field {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Email input */
.newsletter-form .formkit-input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Subscribe button */
.newsletter-form .formkit-submit {
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

/* Subscribe button text + emoji */
.newsletter-form .formkit-submit > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* =========================================
   MOBILE NEWSLETTER
   ========================================= */
@media (max-width: 600px) {
    .newsletter-form .formkit-fields {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .newsletter-form .formkit-field,
    .newsletter-form .formkit-submit {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .newsletter-form .formkit-submit {
        height: 48px !important;
    }
}

/* =========================================
   HOMEPAGE PAYPAL BUTTON
   ========================================= */
.homepage-paypal-button {
    background-color: #dceeff;
    color: #244b78;
    border: 2px solid #b6d7ff;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.homepage-paypal-button:hover {
    background-color: #c8e2ff;
    transform: translateY(-2px);
}

.homepage-paypal-button:active {
    transform: translateY(0);
}

/* =========================================
   HOMEPAGE YOUTUBE BUTTON
   Soft pastel styling to match the website
   ========================================= */

.homepage-youtube-button {
    box-sizing: border-box;
    background-color: #ffe1e1;
    color: #a83232;
    border: 2px solid #f5bcbc;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 4px 6px rgba(168, 50, 50, 0.08);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.homepage-youtube-button:hover {
    background-color: #ffd1d1;
    border-color: #eda5a5;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(168, 50, 50, 0.12);
}

.homepage-youtube-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(168, 50, 50, 0.08);
}

/* Align the YouTube icon with the button text */
.homepage-youtube-button img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transform: none;
}

.homepage-youtube-button:focus-visible {
    outline: 3px solid #e9a0a0;
    outline-offset: 3px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .homepage-youtube-button {
        transition: none;
    }

    .homepage-youtube-button:hover {
        transform: none;
    }
}

/* Smaller screens */
@media (max-width: 420px) {
    .homepage-youtube-button {
        padding: 10px 6px;
        gap: 5px;
        font-size: 0.85rem;
    }

    .homepage-youtube-button img {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   HOMEPAGE NOWPAYMENTS BUTTON — PURPLE
   ========================================= */
.homepage-nowpayments-button {
    box-sizing: border-box;
    background: linear-gradient(135deg, #e5e5ff, #d5d5ff);
    color: #373777;
    border: 2px solid #b8b8f5;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.homepage-nowpayments-button:hover {
    background: linear-gradient(135deg, #d5d5ff, #c5c5ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(90, 90, 180, 0.15);
}

.homepage-nowpayments-button:active {
    transform: translateY(0);
}

.homepage-nowpayments-button .crypto-button-main {
    font-size: 1.05rem;
    line-height: 1.2;
}

.homepage-nowpayments-button .nowpayments-now {
    color: #373777;
    font-weight: 900;
}

.homepage-nowpayments-button .crypto-button-action {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1.2;
}

/* =========================================
   HOMEPAGE KAS.COFFEE / KASPA BUTTON — GREEN
   ========================================= */
.homepage-kaspa-button {
    box-sizing: border-box;
    background: linear-gradient(135deg, #e0f7e9, #c8f2d8);
    color: #20583b;
    border: 2px solid #a8dfbd;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.homepage-kaspa-button:hover {
    background: linear-gradient(135deg, #c9efd8, #b5e8c9);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(50, 140, 85, 0.15);
}

.homepage-kaspa-button:active {
    transform: translateY(0);
}

/* Keep the Kaspa icon LEFT of kas.coffee */
.homepage-kaspa-button .crypto-button-main {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 1.05rem;
    line-height: 1.2;
    transform: translateX(-11px);
}

/* Kaspa icon */
.homepage-kaspa-button .homepage-kaspa-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* kas.coffee text */
.homepage-kaspa-button .homepage-kaspa-name {
    color: #278653;
    font-weight: 800;
}

/* Tip in Kaspa text */
.homepage-kaspa-button .crypto-button-action {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1.2;
}

/* Keyboard accessibility */
.homepage-kaspa-button:focus-visible {
    outline: 3px solid #72c995;
    outline-offset: 3px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .homepage-youtube-button,
    .homepage-nowpayments-button,
    .homepage-kaspa-button {
        transition: none;
    }

    .homepage-youtube-button:hover,
    .homepage-nowpayments-button:hover,
    .homepage-kaspa-button:hover {
        transform: none;
    }
}

/* Small-screen adjustments */
@media (max-width: 420px) {
    .homepage-youtube-button {
        padding: 10px 6px;
        gap: 5px;
        font-size: 0.85rem;
    }

    .homepage-youtube-button img {
        width: 20px;
        height: 20px;
    }

    .homepage-nowpayments-button,
    .homepage-kaspa-button {
        padding: 0.6rem 0.35rem;
        font-size: 0.9rem;
    }

    .homepage-nowpayments-button .crypto-button-main,
    .homepage-kaspa-button .crypto-button-main {
        font-size: 0.95rem;
    }

    .homepage-nowpayments-button .crypto-button-action,
    .homepage-kaspa-button .crypto-button-action {
        font-size: 0.75rem;
    }

    .homepage-kaspa-button .homepage-kaspa-icon {
        width: 19px;
        height: 19px;
    }

    .homepage-kaspa-button .crypto-button-main {
        gap: 5px;
    }
}

/* =========================================
   CENTRE THE COMMUNITY BUTTON GRID
   ========================================= */
.homepage-community-grid {
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Keep every button within its grid column */
.homepage-community-grid > a {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    justify-self: stretch;
}

/* Maintain equal spacing on smaller screens */
@media (max-width: 420px) {
    .homepage-community-grid {
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* =========================================
   SUPPORT SECTION — ANCHOR SCROLL FIX
   Keep the heading visible when navigating
   from the FAQ page
   ========================================= */

#support {
    scroll-margin-top: 75px;
}