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

:root {
    --primary: #C2304C;
    --secondary: #861f33;
    --accent: #FF6B8A;
    --dark: #1C1B1F;
    --light: #FAFAFA;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html, body {
    background: linear-gradient(135deg, #C2304C 0%, #861f33 100%);
    min-height: 100%;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* iOS Share Button - Top Right */
.share-button-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.ios-share-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ios-share-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.ios-share-button:active {
    transform: scale(0.95);
}

.ios-share-button svg {
    width: 36px;
    height: 36px;
    color: white;
}

.share-feedback {
    max-width: 220px;
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    background: rgba(28, 27, 31, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.share-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.share-feedback[hidden] {
    display: none;
}

/* Animated Background Elements */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: bounce 15s infinite ease-in-out;
    will-change: transform;
}

.shape:nth-child(1) { 
    width: 80px; 
    height: 80px; 
    top: 10%; 
    left: 10%; 
    animation-delay: 0s; 
    animation-duration: 12s;
    background: rgba(255, 255, 255, 0.06);
}
.shape:nth-child(2) { 
    width: 120px; 
    height: 120px; 
    top: 20%; 
    right: 10%; 
    animation-delay: 3s; 
    animation-duration: 18s;
    background: rgba(255, 255, 255, 0.04);
}
.shape:nth-child(3) { 
    width: 60px; 
    height: 60px; 
    bottom: 20%; 
    left: 20%; 
    animation-delay: 6s; 
    animation-duration: 14s;
    background: rgba(255, 255, 255, 0.07);
}
.shape:nth-child(4) { 
    width: 100px; 
    height: 100px; 
    bottom: 10%; 
    right: 20%; 
    animation-delay: 9s; 
    animation-duration: 16s;
    background: rgba(255, 255, 255, 0.05);
}
.shape:nth-child(5) { 
    width: 90px; 
    height: 90px; 
    top: 50%; 
    left: 5%; 
    animation-delay: 2s; 
    animation-duration: 20s;
    background: rgba(255, 255, 255, 0.045);
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg); 
    }
    20% { 
        transform: translateY(-50px) translateX(30px) scale(1.08) rotate(15deg); 
    }
    40% { 
        transform: translateY(25px) translateX(-40px) scale(0.92) rotate(-10deg); 
    }
    60% { 
        transform: translateY(-35px) translateX(20px) scale(1.05) rotate(8deg); 
    }
    80% { 
        transform: translateY(15px) translateX(-25px) scale(0.98) rotate(-5deg); 
    }
}

/* Main Container */
.linktree-container {
    max-width: 680px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Logo/Header Section */
.header-section {
    margin-bottom: 1rem;
}

.logo-image {
    height: 68px;
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

/* Social Icons Row - Flat White Style */
.social-icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.social-icon-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    position: relative;
}

.social-icon-link:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.social-icon-link:active {
    transform: scale(0.95);
}

.social-icon-link.coming-soon {
    opacity: 0.3;
    cursor: not-allowed;
}

.social-icon-link.coming-soon:hover {
    opacity: 0.4;
    transform: none;
}

/* Tooltip for Coming Soon */
.social-icon-link.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.social-icon-link.coming-soon:hover::after {
    opacity: 1;
}

.social-icon-link svg {
    width: 100%;
    height: 100%;
    fill: white;
}

/* Links Section */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.download-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

/* Large Download Button with Share Icons */
.btn-large-download {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    isolation: isolate;
}

.btn-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.6s ease;
}

.btn-large-download::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(15, 8, 20, 0.35) 0%, rgba(15, 8, 20, 0.6) 100%);
    z-index: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.btn-large-download:hover::after {
    opacity: 0.85;
}

.btn-large-download:hover .btn-video-bg {
    transform: scale(1.06);
}

.btn-large-download .download-logo,
.btn-large-download > span,
.btn-large-download .store-badge,
.btn-large-download > img:not(.btn-video-bg) {
    position: relative;
    z-index: 2;
}

.btn-large-download .store-badge {
    display: block;
    margin: 0 auto;
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.btn-large-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large-download:active {
    transform: translateY(-1px);
}

.download-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Video Credit Button */
.video-credit {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 50;
}

.video-credit:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
