/* ==========================================================================
   Notion Templates Page Styles (templates.css)
   Aesthetic: Dark, Clean, Glowing Borders, Persuasive Focus
   Circular Gallery Layout
   ========================================================================== */

.hero-templates {
    position: relative;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 100dvh;
}

/* Gradient fade at the bottom to blend with "Como Funciona" (#080808) */
.hero-templates::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Overlap by 1px to prevent any sub-pixel gap lines */
    left: 0;
    width: 100%;
    height: 35vh;
    /* Large fade area for smoothness */
    background: linear-gradient(to top, #080808 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-templates .ambient-light {
    position: absolute;
    top: -5%;
    left: 20%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(33, 189, 239, 0.08) 0%, rgba(5, 5, 5, 0) 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: driftAmbient1 15s ease-in-out infinite;
}

@keyframes driftAmbient1 {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-40%) translateY(40px) scale(1.1);
        opacity: 1;
    }
}

.hero-templates .ambient-light-2 {
    top: auto;
    bottom: -10%;
    left: 80%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 80, 255, 0.04) 0%, rgba(5, 5, 5, 0) 70%);
    animation: driftAmbient2 12s ease-in-out infinite alternate;
}

@keyframes driftAmbient2 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-50px) translateX(-30px) scale(1.2);
        opacity: 1;
    }
}

.hero-bg-figma {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5);
    animation: slowBreatheImg 18s ease-in-out infinite alternate;
}

@keyframes slowBreatheImg {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(0.5);
    }

    100% {
        transform: translateY(-2%) scale(1.08);
        filter: brightness(0.85);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: flex-end;
    /* Align content to the right */
    align-items: center;
}

.hero-content-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center aligns text block contents */
    text-align: center;
    gap: 1.5rem;
    max-width: 550px;
    /* Restrict width so it doesn't span the full screen */
}

/* Tag pill matching Figma */
.hero-tag {
    display: inline-block;
    position: relative;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fff;
    background: rgba(33, 189, 239, 0.15);
    /* Base background track for border */
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    box-shadow: 0 0 15px rgba(33, 189, 239, 0.1);
    overflow: hidden;
    z-index: 1;
}

.hero-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 85%, #21BDEF 100%);
    animation: spin-border 3s linear infinite;
    z-index: -2;
}

.hero-tag::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #0b110f;
    border-radius: 100px;
    z-index: -1;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.5);
    /* Dimmer grey text */
    line-height: 1.6;
    margin: 0;
    max-width: 450px;
    font-weight: 300;
}

@media (max-width: 900px) {
    .hero-content-wrapper {
        justify-content: center;
        /* Center text vertically and horizontally on mobile */
        padding-top: 2rem;
    }

    .hero-content-right {
        max-width: 100%;
    }
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
}

.scroll-cue-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* =========================================================
   Marketplace Section
   ========================================================= */
.marketplace-section {
    position: relative;
    padding: 2rem 2rem 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 100dvh;
}

.marketplace-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.marketplace-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Marketplace Controls (Search & Filters) */
.marketplace-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    pointer-events: none;
    z-index: 10;
}

.template-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ffffff);
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    outline: none;
}

.template-search-input::placeholder {
    color: #64748b;
}

.template-search-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #21BDEF;
    box-shadow: 0 0 15px rgba(33, 189, 239, 0.2);
}

/* Filters */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #21BDEF;
    border-color: #21BDEF;
    color: #050505;
    font-weight: 500;
}

/* =========================================================
   Circular Gallery — 3D Carousel (Cylinder)
   ========================================================= */

.gallery-wrapper-cylinder {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 3rem;
    z-index: 10;
}

.drag-cue {
    font-size: 0.875rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.gallery-scene-cylinder {
    position: relative;
    width: 400px;
    height: 500px;
    perspective: 1500px;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.gallery-scene-cylinder:active {
    cursor: grabbing;
}

.gallery-stage-cylinder {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.gallery-item-cylinder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Product Card */
.template-card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: all 0.7s ease;
    cursor: pointer;
    opacity: 0.3;
    transform: scale(0.85);
    filter: blur(2px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.template-card-container:hover {
    opacity: 0.6;
    filter: blur(0px);
}

.gallery-item-cylinder.is-active .template-card-container {
    opacity: 1;
    cursor: default;
    transform: scale(1);
    filter: blur(0px);
    box-shadow: 0 0 30px rgba(33, 189, 239, 0.3);
}

.card-bg-border {
    position: absolute;
    inset: 0;
    background-color: #2a2a2a;
    /* carbon border */
}

/* EFEITO STAR BORDER */
.card-star-border {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 75%, #21BDEF 100%);
    animation: spin-border 4s linear infinite;
}

@keyframes spin-border {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

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

.card-inner {
    position: absolute;
    inset: 2px;
    background-color: #111111;
    /* carbon */
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* EFEITO GLARE HOVER */
.card-glare-wrapper {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    overflow: hidden;
    border-radius: 22px;
}

.card-glare {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 20;
    pointer-events: none;
}

.template-card-container:hover .card-glare {
    animation: animacao-brilho 0.8s ease-in-out forwards;
}

@keyframes animacao-brilho {
    0% {
        left: -150%;
    }

    100% {
        left: 200%;
    }
}

/* Capa do Template */
.card-cover {
    height: 220px;
    /* increased from 192px */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* cover gradients mapped to classes */
.cover-gradient-1 {
    background: linear-gradient(135deg, #181818, #222222);
}

.cover-gradient-2 {
    background: linear-gradient(135deg, #1a1a1a, #262626);
}

.cover-gradient-3 {
    background: linear-gradient(135deg, #111111, #1f1f1f);
}

.cover-gradient-4 {
    background: linear-gradient(135deg, #151515, #242424);
}

.cover-gradient-5 {
    background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
}

.cover-gradient-6 {
    background: linear-gradient(135deg, #121212, #1d1d1d);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.9);
    /* carbon */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #21BDEF;
    /* verde ciano */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    /* font-bold */
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    border-radius: 9999px;
    /* rounded-full */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wider */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: 20;
}

.card-icon {
    position: absolute;
    bottom: -2rem;
    /* -bottom-8 */
    left: 1.5rem;
    /* left-6 */
    width: 64px;
    /* w-16 */
    height: 64px;
    /* h-16 */
    background: #1a1a1a;
    /* carbon light */
    border-radius: 12px;
    /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    /* shadow-lg */
    border: 1px solid #333333;
    /* carbon border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    /* text-3xl */
    z-index: 10;
}

.card-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card-lucide-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.15;
}

.card-lucide-bg.text-white {
    color: #ffffff;
}

.card-lucide-bg.text-dark {
    color: #0f172a;
}

/* text-slate-900 */
.card-lucide-bg svg {
    width: 96px;
    height: 96px;
}

.card-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.4) 0%, #111111 100%);
    z-index: 2;
}

/* Conteúdo do Cartão */
.card-content-wrap {
    padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    /* pt-14 pb-6 px-6 */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #111111;
    /* variant of carbon */
    pointer-events: none;
    text-align: left;
}

.card-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    /* font-bold */
    color: #ffffff;
    line-height: 1.25;
    /* leading-tight */
    margin-bottom: 0.5rem;
}

.card-description {
    color: #94a3b8;
    /* slate-400 */
    font-size: 0.875rem;
    /* text-sm */
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    /* pt-4 */
    border-top: 1px solid #222222;
    /* border-carbon */
    pointer-events: auto;
    /* allows button clicking */
}

.card-price-wrap {
    display: flex;
    flex-direction: column;
}

.card-original-price {
    font-size: 0.75rem;
    /* text-xs */
    color: #64748b;
    /* slate-500 */
    text-decoration: line-through;
}

.card-price {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    /* font-bold */
    color: #ffffff;
}

.card-price .text-cyan {
    color: #21BDEF;
}

/* verde ciano */

.card-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    border-radius: 0.5rem;
    /* rounded-lg */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    /* font-semibold */
    transition: all 0.2s;
    border: 1px solid #333333;
    /* carbon light */
    background: #1a1a1a;
    /* carbon */
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item-cylinder.is-active .card-btn {
    background: #21BDEF;
    /* bg-verde-ciano */
    color: #050505;
    /* text-dark */
    border-color: #21BDEF;
}

.gallery-item-cylinder.is-active .card-btn:hover {
    background: #a1ffea;
    box-shadow: 0 0 15px rgba(33, 189, 239, 0.4);
    /* bg-verde-ciano lighter */
}

/* =========================================================
   Animations
   ========================================================= */

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

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

.fade-in {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================================
   Utilities for Section Benefits
   ========================================================= */

.section-benefits {
    padding-top: 2rem;
}

/* =========================================================
   Template Details Modal
   ========================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    /* carbon dark semi-transparent */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
}

.modal-box {
    background: #111111;
    /* carbon */
    border: 1px solid #333333;
    /* border-carbon */
    border-radius: 24px;
    width: 95%;
    max-width: 1150px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(33, 189, 239, 0.05);
    /* neon glow */
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for modal */
.modal-box::-webkit-scrollbar {
    width: 8px;
}

.modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.modal-box::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: none;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: #21BDEF;
    background: rgba(10, 10, 10, 0.9);
}

.modal-content-expanded {
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .modal-content-expanded {
        flex-direction: row;
        align-items: stretch;
        padding-bottom: 0;
    }
}

/* --- Esquerda: Capa & Gallery --- */
.modal-left-col {
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
}

@media (min-width: 768px) {
    .modal-left-col {
        width: 420px;
        flex-shrink: 0;
        border-right: 1px solid #222222;
        min-height: 100%;
    }
}

.modal-cover {
    height: 160px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.2) 0%, #0d0d0d 100%);
    z-index: 1;
}


.modal-gallery-wrap {
    padding: 2.5rem 1.5rem 1.5rem;
}

.modal-section-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.modal-gallery-item {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #333;
    position: relative;
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.modal-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Direita: Info & Ações --- */
.modal-right-col {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

@media (min-width: 768px) {
    .modal-right-col {
        padding: 3rem 2.5rem;
    }
}

.modal-header-info {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-category {
    font-size: 0.75rem;
    color: #21BDEF;
    /* neon cyan */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    background: rgba(33, 189, 239, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.modal-creator {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.modal-description {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-features-wrap {
    margin-bottom: 2rem;
}

.modal-about-wrap {
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes pricing to the bottom */
}

.modal-about-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.modal-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #222222;
}

.modal-pricing-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-original-price {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: line-through;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-buy-btn {
    background: #21BDEF;
    color: #050505;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(33, 189, 239, 0.2);
}

.modal-buy-btn:hover {
    background: #a1ffea;
    box-shadow: 0 0 25px rgba(33, 189, 239, 0.4);
    transform: scale(1.02);
}

/* Secondary variant specifically for Details button */
.btn-details {
    background: transparent;
    border-color: #333333;
    color: #21BDEF;
}

.btn-details:hover {
    background: rgba(33, 189, 239, 0.1) !important;
    border-color: #21BDEF !important;
    color: #21BDEF !important;
    box-shadow: none !important;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.title-left,
.subtitle-left,
.label-left {
    text-align: left;
}

/* =========================================================
   Responsiveness
   ========================================================= */

@media (max-width: 900px) {
    .gallery-scene-cylinder {
        transform: scale(0.9);
    }
}

@media (max-width: 600px) {
    .filters-container {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .gallery-scene-cylinder {
        transform: scale(0.85);
    }
}

/* =========================================================
   Como Funciona
   ========================================================= */

.how-it-works {
    position: relative;
    padding: 7rem 2rem;
    overflow: hidden;
    background: #080808;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient fade at the bottom to blend with "Templates Notion" (#121212) */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Overlap by 1px to prevent any sub-pixel gap lines */
    left: 0;
    width: 100%;
    height: 35vh;
    /* Large fade area for smoothness */
    background: linear-gradient(to top, #121212 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}


.how-ambient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(100, 80, 255, 0.07) 0%, rgba(8, 8, 8, 0) 70%);
    pointer-events: none;
}

.how-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

.how-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    text-align: center;
}

/* Steps row */
.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    position: relative;
}

/* Connecting line */
.how-steps::before {
    content: '';
    position: absolute;
    top: 96px;
    left: calc(12.5% + 8px);
    right: calc(12.5% + 8px);
    height: 1px;
    background: linear-gradient(to right,
            rgba(33, 189, 239, 0.0) 0%,
            rgba(33, 189, 239, 0.25) 10%,
            rgba(33, 189, 239, 0.25) 90%,
            rgba(33, 189, 239, 0.0) 100%);
    z-index: 0;
}

/* Energy flow */
.how-steps::after {
    content: '';
    position: absolute;
    top: 95.5px;
    left: calc(12.5% + 8px);
    right: calc(12.5% + 8px);
    height: 2px;
    background: linear-gradient(90deg,
            rgba(33, 189, 239, 0) 0%,
            rgba(33, 189, 239, 1) 50%,
            rgba(33, 189, 239, 0) 100%);
    background-size: 250px 100%;
    background-repeat: no-repeat;
    animation: flow-energy-bg 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(33, 189, 239, 0.8));
    pointer-events: none;
}

@keyframes flow-energy-bg {
    0% {
        background-position: 0% 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        background-position: 100% 0;
        opacity: 0;
    }
}

.how-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    transition: transform 0.3s ease;
}

.how-step:hover {
    transform: translateY(-6px);
}

/* Icon circle */
.how-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid rgba(33, 189, 239, 0.4);
    background: rgba(33, 189, 239, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.how-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: rgba(33, 189, 239, 0.9);
    transition: color 0.3s ease;
}

.how-step:hover .how-icon-wrap {
    border-color: rgba(33, 189, 239, 0.8);
    background: rgba(33, 189, 239, 0.12);
    box-shadow: 0 0 24px rgba(33, 189, 239, 0.2);
}

.how-step:hover .how-icon-wrap svg {
    color: #21BDEF;
}

.how-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}

.how-step-num {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.how-step-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
    max-width: 180px;
}

@media (max-width: 860px) {
    .how-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 0;
    }

    .how-steps::before,
    .how-steps::after {
        display: none;
    }
}

@media (max-width: 520px) {
    .how-steps {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Horizontal Scroll Features
   ========================================================= */

.horizontal-scroll-section {
    position: relative;
    /* 4 panels = 400vh of scroll distance to complete the animation */
    height: 400vh;
    background: #000;
}

.hz-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* hide the scrollbar of the container itself since we slide the track */
    background: linear-gradient(rgba(8, 8, 8, 0.65), rgba(8, 8, 8, 0.65)), url("/assets/Site section Notion.png") left center / cover no-repeat;
    transition: background-position 0.1s ease-out;
    /* Smooth background shift */
}

.hz-track {
    display: flex;
    height: 100%;
    /* 4 panels * 100vw = 400vw total width */
    width: 400vw;
    will-change: transform;
    /* Smooth out the exact scrolling frame updates slightly */
    transition: transform 0.1s ease-out;
}

.hz-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background removed to allow continuous effect from container */

.hz-panel-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.hz-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1.5rem 0;
}

.hz-desc {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.reveal-word {
    --threshold: calc(var(--word-index) / var(--word-total));
    --calc-progress: calc((var(--reveal) - var(--threshold)) * var(--word-total) * 1.5);
    /* Blur will be max 12px when unrevealed, and 0px when fully revealed */
    --blur-amount: calc((1 - clamp(0, var(--calc-progress), 1)) * 12px);
    filter: blur(var(--blur-amount));
    /* Keep a minimum opacity so it's not totally invisible, but mainly blurred */
    opacity: clamp(0.3, var(--calc-progress) + 0.3, 1);
    display: inline-block;
    will-change: filter, opacity;
}

/* =========================================================
   FAQ Section
   ========================================================= */

.faq-section {
    padding: 6rem 2rem;
    /* Dark carbon */
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.faq-container {
    max-width: 800px;
    width: 100%;
}

.faq-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    color: #21BDEF;
    /* Cyan */
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: #21BDEF;
    box-shadow: 0 0 15px rgba(33, 189, 239, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #94a3b8;
    /* Slate 400 */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================================================
   Text Blur Reveal Effect
   ========================================================= */

.blur-reveal-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, filter, transform;
}

.blur-reveal-container.is-revealed .blur-reveal-word {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}
