/* Custom scrollbar for thumbnail row */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth fade/slide animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

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

/* SHINY CTA BUTTON STYLES */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 20%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: #AD86FF;
    inherits: false;
}

.shiny-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    --gradient-angle: 0deg;
    --gradient-angle-offset: 0deg;
    --gradient-percent: 20%;
    --gradient-shine: #AD86FF;
    --shadow-size: 2px;
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem; /* Adjusted for navbar */
    font-size: 0.875rem; /* Text sm */
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(#000000, #000000) padding-box, conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent 0%, #AD86FF 5%, var(--gradient-shine) 15%, #AD86FF 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px #1a1818;
    outline: none;
    transition: --gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1), --gradient-percent 800ms cubic-bezier(0.25, 1, 0.5, 1), --gradient-shine 800ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    cursor: pointer;
    isolation: isolate;
    outline-offset: 4px;
    font-family: 'Inter', 'sans-serif';
    z-index: 0;
    animation: border-spin 2.5s linear infinite;
}

@keyframes border-spin {
    to {
        --gradient-angle: 360deg;
    }
}

.shiny-cta:active {
    transform: translateY(1px);
}

.shiny-cta::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    --size: calc(100% - 6px);
    --position: 2px;
    --space: 4px;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white 0.5px, transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: 0.4;
    pointer-events: none;
}

.shiny-cta::after {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, #AD86FF, transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
    animation: shimmer 4s linear infinite;
    animation-play-state: running;
}

.shiny-cta span {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.shiny-cta span::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px #AD86FF;
    opacity: 0;
    border-radius: inherit;
    transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1);
    animation: breathe 4.5s linear infinite;
}

@keyframes shimmer {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.20); }
}

/* Video carousel styles */
.video-element {
    -webkit-appearance: none;
    appearance: none;
}

.video-element::-webkit-media-controls {
    display: none !important;
}

.video-element::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-element::-webkit-media-controls-panel {
    display: none !important;
}

.video-element::-webkit-media-controls-play-button {
    display: none !important;
}

.video-element::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.video-element::--webkit-media-controls {
    display: none !important;
}

/* Hero Section Styles from Template */
/* Subtle Grid Background */
.bg-grid {
    background-size: 4rem 4rem;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Staggered Immersive Animation */
.stagger-in {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(10px);
    animation: immersiveEnter 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-0 { animation-delay: 0ms; }
.delay-100 { animation-delay: 150ms; }
.delay-200 { animation-delay: 300ms; }
.delay-300 { animation-delay: 450ms; }
.delay-400 { animation-delay: 600ms; }
@keyframes immersiveEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Hero Interaction Styles */
#hero {
    --x: 50%;
    --y: 50%;
}
.hero-spotlight {
    background: radial-gradient(
        800px circle at var(--x) var(--y),
        rgba(173, 134, 255, 0.15),
        transparent 40%
    );
    z-index: 1;
}
.hero-float-card {
    --float-x: 0px;
    --float-y: 0px;
    translate: var(--float-x) var(--float-y);
    transition: translate 0.35s ease-out;
    will-change: translate;
}
#faq .faq-icon {
    color: #ffffff;
}

/* Keep FAQ proportions slightly slimmer */
#faq .faq-grid .faq-button {
    padding: 1.25rem;
}

#faq .faq-grid .faq-content > div {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.25rem;
}
.hero-grid-highlight {
    background-size: 4rem 4rem;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    mask-image: radial-gradient(
        300px circle at var(--x) var(--y),
        black,
        transparent
    );
    -webkit-mask-image: radial-gradient(
        300px circle at var(--x) var(--y),
        black,
        transparent
    );
    z-index: 2;
}

/* Border gradient shared style */
.border-gradient {
    position: relative;
}
.border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.0) 100%);
    pointer-events: none;
}

/* Hero feature showcase */
.feature-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.feature-showcase-card {
    display: flex;
    flex-direction: column;
    --feature-border-mid: rgba(255, 255, 255, 0.2);
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.0) 100%);
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.feature-card-small,
.feature-card-large {
    --feature-border-mid: rgba(255, 255, 255, 0.2);
}

.feature-showcase-title {
    font-size: 1.5rem;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.feature-showcase-copy {
    margin-top: 0.5rem;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.46);
    font-size: 1rem;
    line-height: 1.35;
}

.feature-showcase-content {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.feature-showcase-card-tall {
    min-height: 24rem;
}

.feature-showcase-card-wide {
    min-height: 20rem;
}

.feature-photo-stack {
    position: relative;
    height: 11.75rem;
    width: 14.75rem;
    margin: 0.9rem auto 0;
}

.feature-photo {
    position: absolute;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

.feature-photo-left {
    width: 6.7rem;
    height: 6.7rem;
    left: 0.75rem;
    top: 0.9rem;
    transform: rotate(-15deg);
    z-index: 3;
}

.feature-photo-right {
    width: 7.7rem;
    height: 7.7rem;
    left: 7.25rem;
    top: 0.5rem;
    transform: rotate(5deg);
    z-index: 2;
}

.feature-photo-center {
    width: 6.85rem;
    height: 6.85rem;
    left: 4.25rem;
    top: 4.65rem;
    transform: rotate(-6deg);
    z-index: 4;
}

.feature-photo-stack:hover .feature-photo-left {
    transform: rotate(-15deg) translate(-0.18rem, -0.32rem);
}

.feature-photo-stack:hover .feature-photo-right {
    transform: rotate(5deg) translate(0.22rem, -0.26rem);
}

.feature-photo-stack:hover .feature-photo-center {
    transform: rotate(-6deg) translate(0, -0.38rem);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.feature-ui-stack {
    position: relative;
    height: 13.25rem;
}

.feature-ui {
    position: absolute;
    max-width: 11.5rem;
    width: auto;
    height: auto;
    opacity: 0.96;
    border-radius: 0.75rem;
}

.feature-ui-format {
    left: -0.2rem;
    top: 0.4rem;
    max-width: 8.8rem;
    transform: rotate(-9deg);
    opacity: 1;
    filter: none;
    z-index: 6;
}

.feature-ui-duration {
    right: -0.05rem;
    top: 0.15rem;
    max-width: 9rem;
    transform: rotate(12deg);
    opacity: 1;
    filter: none;
    z-index: 6;
}

.feature-ui-aspect-left {
    left: 18%;
    top: 4.25rem;
    max-width: 6.35rem;
    filter: blur(2px);
    opacity: 0.74;
    z-index: 1;
}

.feature-ui-aspect-center {
    left: 50%;
    top: 4.1rem;
    max-width: 8rem;
    transform: translateX(-50%);
    z-index: 3;
}

.feature-ui-aspect-right {
    right: 18%;
    top: 4.25rem;
    max-width: 6.35rem;
    filter: blur(2px);
    opacity: 0.74;
    z-index: 1;
}

.feature-bottom-visual {
    height: calc(100% - 5.75rem);
    min-height: 14.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    margin-top: auto;
}

.feature-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-two-up {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.7rem;
    overflow: visible;
    padding: 0 0.2rem;
}

.feature-two-up .feature-cover-image {
    width: 46%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-two-up .feature-cover-image:first-child {
    transform: rotate(-9deg) translateY(0.4rem);
}

.feature-two-up .feature-cover-image:last-child {
    transform: rotate(7deg) translateY(-0.1rem);
}

@media (min-width: 768px) {
    .feature-showcase-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .feature-card-small {
        grid-column: span 4 / span 4;
    }

    .feature-card-large {
        grid-column: span 8 / span 8;
    }

    .feature-showcase-card {
        padding: 1.8rem;
    }

    .feature-showcase-title {
        font-size: 1.5rem;
    }

    .feature-showcase-copy {
        font-size: 1rem;
    }

    .feature-showcase-card-tall {
        min-height: 25.92rem;
    }

    .feature-photo-stack {
        height: 9.8rem;
        margin-top: 1.15rem;
    }

    .feature-photo-left {
        width: 6.55rem;
        height: 6.55rem;
    }

    .feature-photo-right {
        width: 7.45rem;
        height: 7.45rem;
        left: 8.4rem;
    }

    .feature-photo-center {
        width: 6.2rem;
        height: 6.2rem;
        left: 5.7rem;
        top: 4.05rem;
    }

    .feature-ui-stack {
        height: 11rem;
    }

    .feature-ui {
        max-width: 11.5rem;
    }

    .feature-showcase-card-wide {
        min-height: 19.44rem;
    }

    .feature-bottom-visual {
        min-height: 16.2rem;
    }

    .feature-two-up {
        gap: 0.85rem;
    }

    .feature-two-up .feature-cover-image {
        width: 42%;
    }
}

.feature-card-no-bottom-padding {
    padding-bottom: 0;
    isolation: isolate;
}

.feature-card-no-bottom-padding::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -42%;
    width: 135%;
    height: 120%;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(173, 134, 255, 0.30) 0%, rgba(173, 134, 255, 0.18) 34%, rgba(173, 134, 255, 0.08) 56%, rgba(173, 134, 255, 0) 74%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.feature-card-no-bottom-padding .feature-bottom-visual {
    margin-bottom: 0;
}

.feature-card-no-bottom-padding > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .feature-showcase-grid {
        gap: 1.25rem;
    }
}

/* Conversations section */
.conversation-heading-gradient {
    background: linear-gradient(90deg, #E35556 0%, #AD86FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.conversation-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.conversation-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.conversation-item {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    align-items: flex-start;
    width: 100%;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.0) 100%);
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.conversation-copy {
    width: 100%;
    max-width: 33rem;
}

.conversation-title {
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: #ffffff;
}

.conversation-description {
    margin-top: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    line-height: 1.55;
}

.conversation-bullets {
    margin-top: 1rem;
    display: grid;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.35;
}

.conversation-bullets li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.conversation-bullets li::before {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 9999px;
    background: #AD86FF;
    box-shadow: 0 0 10px rgba(173, 134, 255, 0.75);
    flex-shrink: 0;
}

.conversation-visual-single {
    width: 100%;
    max-width: 15.5rem;
}

.conversation-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.conversation-visual-duo {
    width: 100%;
    max-width: 23.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.35rem 0.25rem;
}

.conversation-image-tilt-left,
.conversation-image-tilt-right {
    width: 47%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

.conversation-image-tilt-left {
    transform: rotate(-9deg) translateY(-0.1rem);
}

.conversation-image-tilt-right {
    transform: rotate(8deg) translateY(0.35rem);
}

.conversation-visual-duo:hover .conversation-image-tilt-left {
    transform: rotate(-9deg) translate(-0.2rem, -0.32rem);
}

.conversation-visual-duo:hover .conversation-image-tilt-right {
    transform: rotate(8deg) translate(0.2rem, -0.22rem);
    box-shadow: 0 23px 48px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .conversation-grid {
        gap: 2rem;
    }

    .conversation-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .conversation-item-top {
        display: grid;
        grid-template-columns: minmax(220px, 18rem) minmax(280px, 32rem);
        align-items: center;
        justify-content: center;
        gap: clamp(2rem, 4vw, 4rem);
        padding: 2rem;
    }

    .conversation-item-top .conversation-visual-single {
        max-width: 18rem;
    }

    .conversation-item-top .conversation-copy {
        max-width: 32rem;
    }

    .conversation-item-top .conversation-description {
        max-width: 30rem;
    }

    .conversation-item-bottom {
        padding: 2rem;
        height: 100%;
        justify-content: flex-start;
    }

    .conversation-item-bottom .conversation-visual-single,
    .conversation-item-bottom .conversation-visual-duo {
        max-width: 23.25rem;
        margin-left: auto;
        margin-right: auto;
    }

    .conversation-item-bottom .conversation-copy {
        margin-top: auto;
    }

    .conversation-item-bottom .conversation-title,
    .conversation-item-bottom .conversation-description {
        max-width: none;
    }

    .conversation-title {
        font-size: 1.5rem;
    }

    .conversation-description {
        max-width: 30rem;
    }
}

@media (max-width: 767px) {
    .conversation-item {
        align-items: center;
    }

    .conversation-copy {
        text-align: center;
    }

    .conversation-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Community gallery */
.community-gallery-grid {
    position: relative;
    column-count: 2;
    column-gap: 0.42rem;
    padding-bottom: 5.5rem;
    isolation: isolate;
}

.community-gallery-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30rem;
    background: linear-gradient(
        to bottom,
        rgba(9, 7, 14, 0) 0%,
        rgba(9, 7, 14, 0.78) 18%,
        rgba(9, 7, 14, 0.94) 34%,
        rgba(9, 7, 14, 0.99) 52%,
        #09070E 100%
    );
    pointer-events: none;
    z-index: 5;
}

.community-gallery-item {
    position: relative;
    margin: 0 0 0.42rem;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    background: #0C0B10;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.community-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(173, 134, 255, 0) 48%, rgba(173, 134, 255, 0.22) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.community-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.community-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(173, 134, 255, 0.5);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.45), 0 0 30px rgba(173, 134, 255, 0.15);
}

.community-gallery-item:hover img {
    transform: scale(1.05);
}

.community-gallery-item:hover::after {
    opacity: 1;
}

@media (min-width: 1024px) {
    .community-gallery-grid {
        column-count: 4;
        column-gap: 0.55rem;
    }

    .community-gallery-item {
        margin-bottom: 0.55rem;
    }
}
