:root {
    --paper: #f7f7f3;
    --white: #ffffff;
    --black: #101010;
    --ink: #1a1a1a;
    --muted: #6f6f6f;
    --rule: #d8d8d8;
    --dark-panel: #141414;
    
    /* Font stacks */
    --font-primary: 'Neue Haas Grotesk Display Pro', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-secondary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --paper: #101010;
    --white: #1a1a1a;
    --black: #f7f7f3;
    --ink: #f7f7f3;
    --muted: #a0a0a0;
    --rule: #333333;
    --dark-panel: #000000;
}

body.dark-mode #cursor-glow {
    background: radial-gradient(circle, rgba(247, 247, 243, 0.1) 0%, rgba(247, 247, 243, 0.03) 40%, transparent 70%);
}

body.dark-mode .hero-image img, 
body.dark-mode .beat-cover {
    filter: grayscale(1) invert(0); /* Mantém o estilo editorial mas ajusta contraste */
}

body.dark-mode .license-card.active {
    background-color: var(--black);
    color: #101010;
}

body.dark-mode .payment-instructions {
    background: #1a1a1a;
    color: var(--paper);
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Background Glow - Editorial Style (Monochrome/Subtle) */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 16, 16, 0.05) 0%, rgba(16, 16, 16, 0.02) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(100px);
    transition: transform 0.15s ease-out;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(247, 247, 243, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-mode header {
    background: rgba(16, 16, 16, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    height: 80px;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    font-weight: 400;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    margin-left: 4px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li a {
        font-size: 24px;
        font-weight: 800;
    }

    body.dark-mode nav ul {
        background: var(--dark-panel);
    }

    /* Transformação do hambúrguer em X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }
}

.theme-toggle-custom {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--black);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 25px;
    background: var(--paper);
    display: flex;
}

.toggle-half {
    width: 50%;
    height: 100%;
    background: var(--black);
}

.theme-toggle-custom:hover {
    transform: scale(1.1);
}

body.dark-mode .theme-toggle-custom {
    transform: rotate(180deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

nav ul a:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--black);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
}

.hero-text h1 {
    font-size: clamp(48px, 8vw, 120px);
    margin-bottom: 32px;
    word-break: break-word;
}

.hero-text h1 span {
    display: block;
    color: var(--muted);
}

.hero-text p {
    font-size: 18px;
    color: var(--black);
    margin-bottom: 48px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 24px;
}

.hero-image img {
    width: 100%;
    filter: grayscale(1);
    border: 1px solid var(--black);
}

/* Buttons */
.btn {
    padding: 18px 40px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    letter-spacing: 0.1em;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--black);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Showcase Section */
.showcase {
    padding: 120px 0;
    border-bottom: 1px solid var(--black);
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 64px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
}

.filter-btn {
    background: none;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

.beat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas para dar espaço à waveform */
    gap: 1px;
    background: var(--black);
    border: 1px solid var(--black);
}

.beat-card {
    background: var(--paper);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    border: 1px solid transparent;
}

/* MICRO-INTERAÇÃO: Hover Effect */
.beat-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    border-color: var(--black);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.beat-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.beat-cover-small {
    width: 60px;
    height: 60px;
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.beat-card:hover .beat-cover-small {
    transform: rotate(-5deg) scale(1.1);
}

.beat-title-area h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.beat-meta-line {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
}

.play-ws-btn {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.play-ws-btn:hover {
    background: var(--black);
    color: var(--white);
}

.waveform-container {
    width: 100%;
    height: 40px;
    padding: 5px 0;
}

.beat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.beat-price-tag {
    font-size: 14px;
    color: var(--muted);
}

.beat-price-tag strong {
    display: block;
    font-size: 20px;
    color: var(--black);
    font-family: var(--font-primary);
}

.beat-actions {
    display: flex;
    gap: 10px;
}

.btn-card-primary, .btn-card-secondary {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.2s;
}

.btn-card-primary {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

.btn-card-secondary {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.btn-card-primary:hover {
    opacity: 0.8;
}

.btn-card-secondary:hover {
    background: var(--black);
    color: var(--white);
}

@media (max-width: 1100px) {
    .beat-grid { grid-template-columns: 1fr; }
}


/* Payments Section */
.payments {
    padding: 120px 0;
    border-bottom: 1px solid var(--black);
}

.payment-card {
    border: 1px solid var(--black);
    padding: 80px;
    text-align: center;
}

.payment-card h3 {
    font-size: 48px;
    margin-bottom: 32px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.payment-icon {
    padding: 12px 32px;
    border: 1px solid var(--black);
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
}

.payment-icon.mpesa {
    background-color: var(--black);
    color: var(--white);
}

.payment-icon.mpesa { border-color: #000; }
.payment-icon.emola { border-color: #000; }
.payment-icon.paypal { border-color: #000; }

body.dark-mode .payment-icon.mpesa,
body.dark-mode .payment-icon.emola,
body.dark-mode .payment-icon.paypal { border-color: rgba(255,255,255,0.3); }

/* Contacts Section */
.contacts {
    padding: 120px 0;
}

.contacts h2 {
    font-size: 64px;
    margin-bottom: 80px;
}

.custom-beats-area {
    border: 1px solid var(--black);
    padding: 100px 60px;
    text-align: center;
    background: var(--paper);
    transition: background 0.3s;
}

body.dark-mode .custom-beats-area {
    background: var(--dark-panel);
}

.custom-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-large {
    padding: 24px 48px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .custom-beats-area { padding: 60px 20px; }
    .custom-actions { flex-direction: column; }
    .btn-large { width: 100%; }
}


/* Editorial Footer */
.editorial-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--black);
    background: var(--paper);
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

.page-number {
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-primary);
}

@media (max-width: 768px) {
    .editorial-footer {
        position: relative; /* Deixa de ser fixo */
        padding: 30px 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-meta span:nth-child(even) {
        display: none; /* Esconde os separadores | */
    }
}

/* Footer Section */
footer {
    padding: 120px 0 200px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.footer-contacts {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-content p {
    color: var(--muted-color);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--black);
    opacity: 0.6;
    transition: all 0.3s ease;
}

body.dark-mode .socials a {
    color: var(--white);
}

.socials a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* SVG Icon Styling */
svg {
    display: block;
    fill: currentColor;
}

@media (max-width: 900px) {
    .hero {
        padding: 40px 0;
        position: relative;
        overflow: hidden;
    }

    .hero-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 600px;
        text-align: center;
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    /* Overlay gradiente para profundidade */
    .hero-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(16,16,16,0.2), rgba(16,16,16,0.8));
        z-index: 2;
    }

    .hero-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: grayscale(0.5) blur(20px);
        transform: scale(1.1); /* Evita bordas brancas no blur */
        border: none;
    }

    .hero-text {
        position: relative;
        z-index: 10;
        padding: 60px 24px;
        background: rgba(247, 247, 243, 0.1);
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        margin: 0 15px;
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

    body.dark-mode .hero-text {
        background: rgba(16, 16, 16, 0.4);
    }

    .hero-text h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    /* Glassmorphism adjustment for readability */
    .hero-text {
        background: rgba(0, 0, 0, 0.4);
        padding: 30px 20px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        color: #fff !important; /* Force white text in hero for contrast */
    }
    
    .hero-text p { color: rgba(255,255,255,0.8); }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
    }

    .hero-image { width: 100%; max-width: 300px; margin: 0 auto; }

    /* Explore Beats & Tags */
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 48px;
        line-height: 1;
    }

    .filters {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    /* Payments - Fixing Disproportionate Buttons */
    .payments {
        padding: 40px 0;
    }

    .payment-card {
        padding: 30px 20px;
    }

    .payment-icons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .payment-icon {
        padding: 12px 5px;
        font-size: 12px;
        min-width: 0;
        height: auto;
    }

    /* Footer - Removing Irrelevant Info */
    .editorial-footer {
        padding: 40px 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .editorial-footer .tags, 
    .editorial-footer .page-number,
    .editorial-footer .footer-tag {
        display: none; /* Remove noise as requested */
    }

    .footer-meta {
        justify-content: center;
        font-size: 11px;
    }

    .footer-content {
        text-align: center;
        flex-direction: column;
        gap: 30px;
    }

    .socials {
        justify-content: center;
        margin-top: 20px;
    }

    .socials a {
        background: transparent !important; /* Remove the boxes */
        width: 30px;
        height: 30px;
    }

    .socials a svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Hero - Blurred Background & Square Box */
    .hero {
        height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-position: center;
        background-size: cover;
        position: relative;
        overflow: hidden;
    }

    /* Pseudo-elemento para o efeito blurred no fundo mobile */
    .hero::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: inherit;
        filter: blur(10px) brightness(0.7);
        transform: scale(1.1);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: none;
    }

    .hero-text {
        background: #000; /* Caixa preta sólida */
        padding: 40px 30px;
        border-radius: 0; /* Remover bevel */
        width: 90%;
        margin: 0 auto;
        backdrop-filter: none;
    }

    .hero-text h1 { font-size: 38px; }
    .hero-btns { flex-direction: row; gap: 10px; }
    .hero-image { display: none; /* Foto já está no background */ }

    /* Explore Beats - Left Title, Right Vertical Tags */
    .section-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding-left: 20px;
        gap: 0;
    }

    .section-header h2 {
        text-align: left;
        font-size: 42px;
        margin: 0;
    }

    .filters {
        display: flex;
        flex-direction: column;
        max-height: 150px;
        overflow-y: auto;
        padding: 5px;
        gap: 5px;
        scrollbar-width: none; /* Revolver look - hide scrollbar */
    }
    
    .filters::-webkit-scrollbar { display: none; }

    .filter-btn {
        font-size: 10px;
        padding: 6px 10px;
        white-space: nowrap;
        border-radius: 0;
        text-transform: uppercase;
    }

    /* Payments - Uniform Theme (Editorial/Brutalist) */
    .payment-icons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 30px;
        border: none; /* Remover borda externa */
        padding: 0;
    }

    .payment-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px; /* Altura fixa para uniformidade */
        border: 1px solid var(--border); /* Borda fina uniforme */
        background: transparent !important; /* Remover cores sólidas */
        color: var(--black) !important;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 1px;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    body.dark-mode .payment-icon {
        color: var(--white) !important;
        border-color: rgba(255,255,255,0.2);
    }

    /* Ajuste específico para o SVG do PayPal */
    .payment-icon.paypal svg {
        width: 32px;
        height: 32px;
        opacity: 0.8;
    }

    .payment-icon:hover {
        background: var(--black) !important;
        color: var(--white) !important;
    }

    body.dark-mode .payment-icon:hover {
        background: var(--white) !important;
        color: var(--black) !important;
    }

    /* Footer - Proportional Height Reduction */
    .footer-content {
        padding: 30px 0;
    }

    .footer-bottom {
        padding: 20px 0;
        font-size: 10px;
    }

    .editorial-footer {
        padding: 20px;
        min-height: 0;
    }
}

/* Force social icon visibility in dark mode */
body.dark-mode .socials a svg {
    color: var(--white) !important;
    fill: var(--white) !important;
    opacity: 1;
}

body.dark-mode .socials a svg path {
    fill: var(--white) !important;
}

/* Forçar ícones a usar a cor do texto e serem visíveis */
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

body.dark-mode .socials a {
    background: rgba(255,255,255,0.05);
}

.socials a svg, 
.socials a svg path,
.socials a svg g {
    fill: currentColor !important;
}

.socials a svg {
    width: 22px;
    height: 22px;
    display: block;
}

.socials a:hover {
    background: var(--black);
    color: var(--white) !important;
    transform: translateY(-3px);
}

body.dark-mode .socials a:hover {
    background: var(--white);
    color: var(--black) !important;
}


/* MODAL DE CHECKOUT */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--paper);
    margin: 5% auto;
    padding: 60px;
    border: 1px solid var(--black);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalAppear 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 32px;
    font-weight: 900;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--muted);
}

.license-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

@media (max-width: 600px) {
    .license-options {
        grid-template-columns: 1fr;
    }
}

.license-card {
    border: 1px solid var(--rule);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.license-card:hover {
    border-color: var(--black);
}

.license-card.active {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.license-name {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.license-card p {
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    opacity: 0.7;
}

.license-price {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 900;
    margin-top: 8px;
}

.payment-instructions {
    background: #e9e9e5;
    padding: 24px;
    border: 1px dashed var(--black);
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
}

