:root {
    --bg-color: #0a0a0a;
    --primary-color: #ffffff;
    --accent-color: #ff3b30;
    /* Vermelho vibrante para 18K Records */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --font-outfit: 'Outfit', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-poppins: 'Poppins', sans-serif;

    /* Cores Birdsystem */
    --bird-light: 203 84% 59%;
    /* #42A0ED */
    --bird-medium: 207 69% 45%;
    /* #267CC1 */
    --bird-purple: 258 80% 59%;
    /* #7544EA */
    --bird-dark: 0 0% 9%;
    /* #161616 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: var(--text-main);
    font-family: var(--font-outfit);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/bg-texture.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero Section */
.hero {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    padding: 20px;
    position: relative;
    display: inline-block;
}



.hero {
    margin-bottom: 80px;
    /* Desce mais os botões principais */
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 250px;
    /* Aumentado de 200px */
    height: auto;
    display: block;
    margin-top: -5px;
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.link-card:nth-child(1) {
    animation-delay: 0.2s;
}

.link-card:nth-child(2) {
    animation-delay: 0.4s;
}

.link-card:nth-child(3) {
    animation-delay: 0.6s;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 45px;
    height: 45px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.link-card:hover .icon-box {
    transform: rotate(15deg) scale(1.1);
}

.link-card span {
    flex-grow: 1;
    text-align: left;
    font-family: var(--font-montserrat);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
}

.arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.link-card:hover .arrow {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Footer Section */
.footer {
    width: 100%;
    margin-top: auto;
    animation: fadeIn 1.5s ease;
}


@keyframes ripple {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }

    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }
}

.footer-phrase {
    font-size: 0.95rem;
    /* Ajustado para um meio-termo ideal */
    font-weight: 500;
    color: #ffffff;
    /* Cor branca */
    letter-spacing: 0.5px;
    opacity: 1;
    /* Opacidade total */
    margin-top: 40px;
    animation: fadeIn 1.5s ease 1s both;
}

.dev-credits {
    font-size: 0.75rem;
    color: #ffffff;
    /* Cor branca */
    margin-top: 20px;
}

.dev-credits span {
    color: #ffffff;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tapAnimation {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    .logo {
        width: 160px;
    }

    .link-card {
        padding: 16px 20px;
    }

    .link-card span {
        font-size: 0.85rem;
    }
}

/* ======================================================
   BIRD SYSTEM COMPONENTS
   ====================================================== */

/* Floating Header */
.bird-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(env(safe-area-inset-top, 20px) + 8px) 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.bird-header button {
    pointer-events: auto;
}

/* Bird Button Base - Estilo igual aos botões principais */
.bird-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.bird-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.bird-btn:active {
    transform: scale(0.95);
}

.bird-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Faz o pássaro ficar branco por padrão */
    filter: brightness(0) invert(1);
}

.bird-btn:hover img {
    transform: rotate(10deg) scale(1.1);
}

.bird-btn.magic img {
    /* Faz o pássaro ficar vermelho (#ff3b30) durante a animação */
    filter: invert(27%) sepia(96%) saturate(4645%) hue-rotate(352deg) brightness(102%) contrast(108%);
}

.bird-btn.magic {
    animation: bird-magic 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Share Button (Top Right) - Reutiliza base bird-btn */
.share-top-btn {
    font-size: 1.1rem;
}

.share-top-btn svg {
    transition: transform 0.3s ease, color 0.3s ease, stroke 0.3s ease;
}

.share-top-btn.magic svg {
    color: var(--accent-color);
}

.share-top-btn.magic {
    animation: bird-magic 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modals General */
.bird-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bird-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bird-modal-content {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 24px;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, hsl(var(--bird-light)) 0%, hsl(var(--bird-medium)) 50%, hsl(var(--bird-purple)) 100%);
    border-radius: 32px;
    z-index: 2001;
    transform: translateY(110%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    font-family: var(--font-poppins);
    overflow: hidden;
    color: white;
}

.bird-modal-content.active {
    transform: translateY(0);
}

.bird-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.bird-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(var(--bird-medium));
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.bird-modal-close:hover {
    background: hsl(var(--bird-light));
    transform: scale(1.1);
}

.bird-modal-body {
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Animations */
@keyframes bird-magic {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }

    25% {
        transform: scale(1.3) rotate(5deg);
        box-shadow: 0 0 20px 10px rgba(255, 59, 48, 0.4);
    }

    50% {
        transform: scale(1.1) rotate(-3deg);
        box-shadow: 0 0 30px 15px rgba(255, 59, 48, 0.3);
    }

    75% {
        transform: scale(1.2) rotate(2deg);
        box-shadow: 0 0 25px 12px rgba(255, 59, 48, 0.35);
    }

    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Custom Modal Styles (Promo & Share) */
.bird-promo-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.bird-promo-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.bird-promo-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.bird-promo-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 300px;
}

.bird-promo-link-box {
    background: white;
    color: hsl(var(--bird-dark));
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bird-cta-btn {
    width: 100%;
    background: hsl(var(--bird-dark));
    color: white;
    padding: 18px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bird-cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.bird-secondary-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bird-secondary-link {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.bird-secondary-link:hover {
    opacity: 1;
}

/* Share Modal specific */
.share-profile-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
    backdrop-filter: blur(5px);
}

.share-profile-logo {
    width: 52px;
    height: 52px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.share-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-profile-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.share-profile-info p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    padding: 8px 4px;
    border-radius: 12px;
    transition: background 0.2s;
}

.share-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-label {
    font-size: 0.65rem;
    font-weight: 600;
}

.bird-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.bird-join-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.bird-join-text {
    font-size: 0.85rem;
    margin-bottom: 16px;
    opacity: 0.9;
}