/* =============================================
   PRODUTORA SK — DESIGN SYSTEM
   Dark Premium + Yellow Electric
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800&family=Bebas+Neue&display=swap');

:root {
    --bg:          #080808;
    --surface:     #111111;
    --surface-2:   #181818;
    --border:      rgba(255,255,255,0.08);
    --accent:      #FFE600;
    --accent-dim:  rgba(255,230,0,0.12);
    --accent-glow: rgba(255,230,0,0.35);
    --text:        #FFFFFF;
    --text-muted:  #888888;
    --font-title:  'Bebas Neue', sans-serif;
    --font-body:   'Space Grotesk', sans-serif;

    /* Bird System */
    --bird-light:  203 84% 59%;
    --bird-medium: 207 69% 45%;
    --bird-purple: 258 80% 59%;
    --bird-dark:   0 0% 9%;
}

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

body {
    background-color: #050505;
    background-image: url('img/fundo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* ── Dark overlay + noise sobre os tijolos ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* escurece os tijolos para ficar bem dark como na referência */
    background-color: rgba(0, 0, 0, 0.62);
    /* noise sutil por cima */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: auto, 180px 180px;
    pointer-events: none;
    z-index: 0;
}



/* =============================================
   FLOATING BIRD HEADER
   ============================================= */
.bird-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(env(safe-area-inset-top, 16px) + 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-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.25s ease;
}

.bird-btn:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.bird-btn:active { transform: scale(0.92); }

.bird-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.25s ease;
}

.bird-btn:hover img, .bird-btn:active img, .bird-btn.magic img {
    filter: brightness(0) saturate(100%) invert(86%) sepia(87%) saturate(1487%) hue-rotate(1deg) brightness(102%) contrast(101%);
}

.bird-btn.magic {
    animation: bird-magic 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-top-btn svg { transition: all 0.25s ease; stroke: white; }
.share-top-btn:hover svg { stroke: var(--accent); }
.share-top-btn.magic { animation: bird-magic 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* =============================================
   MAIN CONTAINER
   ============================================= */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 0 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =============================================
   HERO / LOGO
   ============================================= */
.hero {
    padding-top: calc(env(safe-area-inset-top, 20px) + 80px);
    margin-bottom: 48px;
    animation: fadeDown 0.8s ease both;
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo {
    width: 300px;
    height: auto;
    display: block;
    animation: boltGlow 2.8s ease-in-out infinite;
}

@keyframes boltGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,230,0,0.4)); }
    50%       { filter: drop-shadow(0 0 8px rgba(255,230,0,0.65)); }
}



/* Tagline below logo */
.tagline {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tagline span {
    color: var(--accent);
}

/* =============================================
   LINKS / CARDS
   ============================================= */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
    /* Balão unificado */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    animation: fadeUp 0.7s ease 0.1s both;
}

/* Linha com dois tiles */
.links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Base do card */
.link-card {
    position: relative;
    display: flex;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    transition: all 0.25s ease;
    animation: fadeUp 0.7s ease both;
    opacity: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.22s; }
.links-row .link-card:nth-child(1) { animation-delay: 0.1s; }
.links-row .link-card:nth-child(2) { animation-delay: 0.22s; }
.link-wide { animation-delay: 0.34s; }

/* Linha amarela deslizante na base */
.link-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.link-card::after { display: none; }

.link-card:hover {
    background: transparent;
}

.link-card:hover::before { width: 100%; }

.link-card:active {
    transform: scale(0.97);
}

/* ── TILE (lado a lado) ── */
.link-tile {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    text-align: left;
    gap: 12px;
}

.links-row .link-tile:first-child {
    border-right: 1px solid rgba(255,255,255,0.08);
}

.link-tile .icon-box {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.25s ease;
    margin: 0;
}

.link-tile:hover .icon-box {
    background: none;
    color: var(--accent);
    transform: scale(1.15);
}

.link-tile span {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.6;
    transition: color 0.25s ease;
}

/* ── WIDE (full width) ── */
.link-wide {
    flex-direction: row;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.link-wide .icon-box {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.link-wide:hover .icon-box {
    background: none;
    color: var(--accent);
    transform: scale(1.15);
}

.link-wide span {
    flex-grow: 1;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.25s ease;
}

.arrow {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    transition: all 0.25s ease;
}

.link-card:hover .arrow {
    color: var(--accent);
    transform: translateX(5px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    animation: fadeUp 1s ease 0.5s both;
}

.footer-phrase {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-phrase a { color: inherit; text-decoration: none; }
.footer-phrase a:hover { color: var(--accent); }

/* =============================================
   BIRD MODALS
   ============================================= */
.bird-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    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 20px 60px rgba(0,0,0,0.6);
    font-family: var(--font-body);
    overflow: hidden;
    color: white;
}

.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-content.active { transform: translateY(0); }

.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 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Promo modal */
.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);
}

.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;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bird-secondary-link:hover { opacity: 1; }

/* Share modal */
.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; }

/* =============================================
   SHIMMER
   ============================================= */
@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;
}

/* =============================================
   BIRD MAGIC ANIMATION
   ============================================= */
@keyframes bird-magic {
    0%   { transform: scale(1)   rotate(0deg);  box-shadow: 0 0 0 0 rgba(66,160,237,0); }
    25%  { transform: scale(1.3) rotate(5deg);  box-shadow: 0 0 20px 10px rgba(66,160,237,0.4); }
    50%  { transform: scale(1.1) rotate(-3deg); box-shadow: 0 0 30px 15px rgba(117,68,234,0.3); }
    75%  { transform: scale(1.2) rotate(2deg);  box-shadow: 0 0 25px 12px rgba(66,160,237,0.35); }
    100% { transform: scale(1)   rotate(0deg);  box-shadow: 0 0 0 0 rgba(66,160,237,0); }
}

/* =============================================
   ENTRY ANIMATIONS
   ============================================= */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .logo { width: 210px; }
    .link-card { padding: 18px 20px; }
    .link-card span { font-size: 0.85rem; }
    .icon-box { width: 40px; height: 40px; font-size: 1.1rem; }
}