/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFF8E1 0%, #FBFBDC 50%, #F3E5AB 100%);
    min-height: 100vh;
    display: flex;
    align-items: safe center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 193, 7, 0.1) 0%,
        rgba(255, 235, 59, 0.05) 25%,
        rgba(255, 152, 0, 0.08) 50%,
        rgba(255, 193, 7, 0.03) 75%,
        rgba(255, 235, 59, 0.1) 100%
    );
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.6; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 450px;
    width: 90%;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 20px 40px rgba(255, 152, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

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

.app-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow:
        0 12px 24px rgba(255, 152, 0, 0.2),
        0 4px 8px rgba(255, 193, 7, 0.1);
    animation: iconFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.app-icon:hover { transform: scale(1.05); }

.app-icon-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; scale: 1; }
    50%      { opacity: 0.8; scale: 1.1; }
}

.content { margin-bottom: 20px; }

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FF8F00 0%, #FFB300 50%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.app-description {
    font-size: 1.1rem;
    color: #6B5B00;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.store-btn,
.website-btn {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out both;
}

.google-play-btn { animation-delay: 0.55s; }
.apk-btn         { animation-delay: 0.65s; }
.appstore-btn    { animation-delay: 0.75s; }
.website-btn     { animation-delay: 0.85s; }

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

.google-play-btn { background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%); }
.apk-btn         { background: linear-gradient(135deg, #FF7043 0%, #D84315 100%); }
.appstore-btn    { background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%); }
.website-btn     { background: linear-gradient(135deg, #FF8F00 0%, #E65100 100%); }

.store-btn:hover,
.website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 152, 0, 0.2);
}

.store-btn:active,
.website-btn:active { transform: translateY(0); }

.store-btn.disabled,
.store-btn.disabled:hover {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.button-content {
    display: grid;
    grid-template-columns: 35% 1fr;
    align-items: center;
    width: 100%;
    gap: 12px;
    z-index: 2;
    position: relative;
}

.button-icon {
    justify-self: end;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.apk-btn .platform-icon { width: 32px; height: 32px; }

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.button-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.2;
}

.button-store {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.button-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    pointer-events: none;
    z-index: 1;
}

.button-ripple.active { animation: rippleEffect 0.6s ease-out; }

@keyframes rippleEffect {
    to { transform: scale(2); opacity: 0; }
}

.floating-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 { width: 60px; height: 60px; top: 10%;    left: 10%;  animation-delay: 0s; }
.element-2 { width: 40px; height: 40px; top: 20%;    right: 15%; animation-delay: 1s; }
.element-3 { width: 80px; height: 80px; bottom: 15%; left: 20%;  animation-delay: 2s; }
.element-4 { width: 30px; height: 30px; bottom: 10%; right: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0)    rotate(0deg);   opacity: 0.3; }
    50%      { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

.privacy-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #6B5B00;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.privacy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.primary-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.secondary-divider {
    margin: 28px 0 14px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B5B00;
    opacity: 0.55;
    position: relative;
}

.secondary-divider::before,
.secondary-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 91, 0, 0.25), transparent);
}

.secondary-divider::before { left: 0; }
.secondary-divider::after  { right: 0; }

.secondary-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secondary-row .store-btn {
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    opacity: 0.85;
}

.secondary-row .store-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(255, 152, 0, 0.15);
}

.secondary-row .button-content {
    grid-template-columns: 35% 1fr;
    gap: 10px;
}

.secondary-row .button-icon  { width: 28px; height: 28px; }
.secondary-row .platform-icon { width: 22px; height: 22px; }
.secondary-row .apk-btn .platform-icon { width: 24px; height: 24px; }

.secondary-row .button-label { font-size: 0.72rem; }
.secondary-row .button-store { font-size: 0.95rem; }

@media (max-width: 480px) {
    .container { padding: 30px 20px; margin: 20px; }
    .app-title { font-size: 2rem; }
    .app-description { font-size: 1rem; }
    .app-icon { width: 100px; height: 100px; }
    .app-icon-glow { width: 120px; height: 120px; }
    .store-btn, .website-btn { padding: 14px 20px; }
}

@media (max-width: 320px) {
    .container { padding: 20px 15px; }
    .app-title { font-size: 1.8rem; }
    .primary-row { gap: 12px; }
}
